[03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07: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:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]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:39:48]ConnectInit Can't connect to host [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]accept exits with 8 [06:00:35]New connection [06:00:35]New thread 3067325796 created [06:00:35]Waiting for new connection... [06:00:35] Sock 8.Parse request [06:00:35]Sock 8.Check first char [06:00:35]Sock 8.First char is OK [06:00:35]request: POST /json_proto HTTP/1.0 [06:00:35]Method: POST [06:00:35]URL: /json_proto [06:00:35]Method is POST - this is cgi request [06:00:35]url: /json_proto [06:00:35]query_string will be loaded in cgi processing [06:00:35]execute_cgi json_proto POST (null) [06:00:35]execute_cgi path=json_proto method=POST [06:00:35]POST find Content-Length [06:00:35]Host: 172.17.36.199:8080 [06:00:35]Content-Length: 623 [06:00:35]Content-Type: application/json [06:00:35] [06:00:35]POST finish read [06:00:35]Found Content-Length = 623 [06:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176448", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:35]execute_script... [06:00:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176448", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:35]POST & json_proto [06:00:35]process_json_proto [06:00:35]json parsed OK: [06:00:35]protocol is kg_v1.0 [06:00:35]action value=close_receipt [06:00:35]process_action close_receipt [06:00:35]cmd_close_receipt [06:00:35]MH_GetDate [06:00:35]Write to MH i2c: F0 00 00 10 00 FF [06:00:35]Write i2c OK [06:00:35]MH_I2C_Read... [06:00:35]Read from MH i2c: F0 [06:00:35]MH_I2C_Read... [06:00:35]Read from MH i2c: F0 09 00 [06:00:35]MH_I2C_Read... [06:00:35]Read from MH i2c: F0 09 00 10 00 00 04 5C 5D 66 91 46 04 65 6B [06:00:35]GetLastDocTimeStamp 1717383867 [06:00:35]current date 1717394436 [06:00:35]FM_GetShiftState [06:00:35]SAM_PROTO_GetShiftState [06:00:35]wFMCommunicate request_size=4 [06:00:35]MH_SAM_APDU [06:00:35]CAPDU: 80 13 01 00 [06:00:35]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [06:00:35]Write i2c OK [06:00:35]MH_I2C_Read... [06:00:35]OFD Sender: No OFD packet to send [06:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:35]Read from MH i2c: E2 [06:00:35]MH_I2C_Read... [06:00:35]Read from MH i2c: E2 0E 00 [06:00:35]MH_I2C_Read... [06:00:35]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B1 [06:00:35]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:00:35]wFMCommunicate OK [06:00:35]SAM_PROTO_GetShiftState done [06:00:35]FM_GetShiftState done [06:00:35]opened in 1717373769 [06:00:35]opened+sec_in_day 1717460169 [06:00:35]quantity*price = 42500 [06:00:35]sum+1 = 42501 [06:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 7 03.06.2024 06:00 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39889 ФПД: 92562891218918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060036&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39889&fm=92562891218918&tin=02508201610067®Number=0000000000092680&sum=42500 0 [06:00:36]StoreToDocumentArchive [06:00:36]shift 376 fd 39889 [06:00:36]save to /storage/0376/doc_00039889 [06:00:36]save last doc name /storage/0376/doc_00039889 to /storage/kkm_last_doc_name [06:00:36]save OK [06:00:36]Clear old archive folders... [06:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=267 [06:00:36]tlvbuf is 00DF4430 [06:00:36]SAM_PROTO_ClearQueue [06:00:36]wFMCommunicate request_size=4 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 09 00 00 [06:00:36]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [06:00:36]RAPDU: 90 00 [06:00:36]wFMCommunicate OK [06:00:36]SAM_PROTO_ClearQueue done [06:00:36]KKMCreateOFDPacket [06:00:36]OFDProtocolAddRootSTLVToBuf [06:00:36]FM_MakeSignedData [06:00:36]FM_MakeSignedData [06:00:36]SAM_PROTO_SignData [06:00:36]wFMCommunicate request_size=4 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 0D 01 02 [06:00:36]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [06:00:36]RAPDU: 90 00 [06:00:36]wFMCommunicate OK [06:00:36]wFMCommunicate request_size=255 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 04 5C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [06:00:36]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 04 5C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 1F [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [06:00:36]RAPDU: 90 00 [06:00:36]wFMCommunicate OK [06:00:36]wFMCommunicate request_size=26 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 0D 02 02 15 38 38 32 10 04 04 00 D1 9B 00 00 35 04 06 00 54 2F 7A 40 1F E6 [06:00:36]Write to MH i2c: E2 1D 00 21 00 80 0D 02 02 15 00 38 38 32 10 04 04 00 D1 9B 00 00 35 04 06 00 54 2F 7A 40 1F E6 00 00 6C [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [06:00:36]RAPDU: 90 00 [06:00:36]wFMCommunicate OK [06:00:36]wFMCommunicate request_size=4 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 0D 03 02 [06:00:36]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 0B 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 0B 00 22 00 00 2A 77 C0 5F 33 03 31 1C 90 00 E1 [06:00:36]RAPDU: 2A 77 C0 5F 33 03 31 1C 90 00 [06:00:36]wFMCommunicate OK [06:00:36]SAM_PROTO_SignData done [06:00:36]FM_MakeSignedData done [06:00:36]CreateOFDProtocolMessage [06:00:36]wFMCommunicate request_size=4 [06:00:36]MH_SAM_APDU [06:00:36]CAPDU: 80 11 00 00 [06:00:36]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:36]Read from MH i2c: E2 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 17 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F5 [06:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:00:36]wFMCommunicate OK [06:00:36]CreateOFDProtocolMessage done [06:00:36]OFDSenderStorePacket 39889 [06:00:36]StoreOFDPacket docnum=39889 [06:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1F 01 00 00 DB F8 17 01 1E 0A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 04 5C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D1 9B 00 00 35 04 06 00 54 2F 7A 40 1F E6 2A 77 C0 5F 33 03 31 1C [06:00:36]CheckFolder [06:00:36]dirname=/storage/ofd_packets [06:00:36]CheckFolder done [06:00:36]ProducePacketName [06:00:36]name=ofd_packets/00039889 [06:00:36]NVStorageSaveData ofd_packets/00039889 [06:00:36]File name is /storage/ofd_packets/00039889 [06:00:36]Write 317 bytes [06:00:36]NVStorageSaveData done [06:00:36]OFDSenderStorePacket done [06:00:36]KKMCreateOFDPacket done [06:00:36]NVStorageSaveData kkm_last_timestamp [06:00:36]File name is /storage/kkm_last_timestamp [06:00:36]Write 4 bytes [06:00:36]NVStorageSaveData done [06:00:36]ExternCall_PrintAddStr [06:00:36]wPrintStart [06:00:36]Write to MH i2c: 01 00 00 24 00 24 [06:00:36]Write i2c OK [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: 01 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: 01 07 00 [06:00:36]MH_I2C_Read... [06:00:36]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [06:00:36]RasterBufferAndPrint [06:00:36]line Счет N : (3)176448 [06:00:36]line ИНН: 02508201610067 [06:00:36]line Контрольно-Кассовый Чек [06:00:36]line ПРОДАЖА [06:00:36]line Товар: 4700003150486 [06:00:36]line Водка Ороон 0,5 [06:00:36]line 1.000 * 425.00 [06:00:36]line = 425.00 [06:00:36]line НДС 12% НСП 1% [06:00:36]line > о реализуемом товаре [06:00:36]line ИТОГО: 425.00 [06:00:36]line НСП 1% : 3.76 [06:00:36]line НДС 12% : 45.13 [06:00:36]line Наличными: 425.00 [06:00:36]line Безнал.: 0.00 [06:00:36]line Место: АЗС № 63 "Партнер Нефть" [06:00:36]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:00:36]line СНО: Общий режим [06:00:36]line Чек 7 03.06.2024 06:00 [06:00:36]line Смена: 376 ФФД: 1.0 [06:00:36]line ЗНМ: 0300000037 [06:00:36]line РНМ: 0000000000092680 [06:00:36]line Версия ККМ: 001 [06:00:36]line ФМ: 0000000000874882 [06:00:36]line ФД: 39889 [06:00:36]line ФПД: 92562891218918 [06:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060036&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39889&fm=92562891218918&tin=02508201610067®Number=0000000000092680&sum=42500 [06:00:37]OFD Sender: Processing packet 39889 [packets to send 5, broken 4] [06:00:37]ProducePacketName [06:00:37]name=ofd_packets/00039889 [06:00:37]OFD Sender: To server: pG, [06:00:37]CommunicateWithHost lk.salyk.kg:30040 [06:00:37]ConnectInit lk.salyk.kg [06:00:37]line 0 [06:00:37]written 0, free lines is 4095 [06:00:37]Connected sock=10 [06:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1F 01 00 00 DB F8 17 01 1E 0A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 04 5C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D1 9B 00 00 35 04 06 00 54 2F 7A 40 1F E6 2A 77 C0 5F 33 03 31 1C [06:00:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 DA D3 47 00 48 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D1 9B 00 00 F4 03 04 00 B1 04 5D 66 B6 04 01 00 00 04 13 24 CB 2D 8E CD 6D [06:00:37]CommunicateWithHost err = 0 [06:00:37]CheckOFDResponse [06:00:37]1017 (14) - 77093643461234 [06:00:37]1041 (16) - 0000000000874882 [06:00:37]1040 (4) - 39889 [06:00:37]1012 (4) - 02.06.2024 23:48 [06:00:37]1206 (1) - 0 [06:00:37]OFD Sender: Remove packet 39889 [06:00:37]ProducePacketName [06:00:37]name=ofd_packets/00039889 [06:00:37]NVStorageDeleteData [06:00:37]Write to MH i2c: 01 00 00 4C 00 4C [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: 01 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: 01 07 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 19 0D 79 [06:00:37]RasterBufferAndPrint [06:00:37]line [06:00:37]line [06:00:37]line [06:00:37]line [06:00:37]line [06:00:37]written 0, free lines is 3359 [06:00:37]MH_Cut [06:00:37]Write to MH i2c: D1 01 00 53 00 01 25 [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: D1 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: D1 01 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: D1 01 00 53 00 00 24 [06:00:37]Write to MH i2c: 01 00 00 54 00 54 [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]OFD Sender: No OFD packet to send [06:00:38]*** Cut start [06:00:38]*** Partial cut [06:00:38]*** CUTSNS_PIN = 1 [06:00:38]*** CUTSNS_PIN = 0 [06:00:38]*** Brake cut motor [06:00:38]Read from MH i2c: 01 [06:00:38]MH_I2C_Read... [06:00:38]*** Stop cut motor [06:00:38]*** Cut end [06:00:38]Read from MH i2c: 01 07 00 [06:00:38]MH_I2C_Read... [06:00:38]Read from MH i2c: 01 07 00 54 00 00 00 00 00 00 FF 0F 69 [06:00:38]process_action close_receipt done [06:00:38]requested_data is exist [06:00:38]produce_requested_data [06:00:38]requested_item fm.sn is exist - process it [06:00:38]wFMCommunicate request_size=4 [06:00:38]MH_SAM_APDU [06:00:38]CAPDU: 80 11 00 00 [06:00:38]Write to MH i2c: E2 08 00 55 00 80 11 00 00 00 00 00 00 CF [06:00:38]Write i2c OK [06:00:38]MH_I2C_Read... [06:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:38]Read from MH i2c: E2 [06:00:38]MH_I2C_Read... [06:00:38]Read from MH i2c: E2 17 00 [06:00:38]MH_I2C_Read... [06:00:38]Read from MH i2c: E2 17 00 55 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 27 [06:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:00:38]wFMCommunicate OK [06:00:38]requested_item fd.num is exist - process it [06:00:38]SAM_PROTO_GetFieldsCounters [06:00:38]wFMCommunicate request_size=4 [06:00:38]MH_SAM_APDU [06:00:38]CAPDU: 80 13 00 00 [06:00:38]Write to MH i2c: E2 08 00 56 00 80 13 00 00 00 00 00 00 D2 [06:00:38]Write i2c OK [06:00:38]MH_I2C_Read... [06:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:39]Read from MH i2c: E2 [06:00:39]MH_I2C_Read... [06:00:39]Read from MH i2c: E2 62 00 [06:00:39]MH_I2C_Read... [06:00:39]Read from MH i2c: E2 62 00 56 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [06:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:00:39]wFMCommunicate OK [06:00:39]SAM_PROTO_GetFieldsCounters done [06:00:39]requested_item shift.num is exist - process it [06:00:39]requested_item shift.opened is exist - process it [06:00:39]req_shift_opened [06:00:39]FM_GetShiftState [06:00:39]SAM_PROTO_GetShiftState [06:00:39]wFMCommunicate request_size=4 [06:00:39]MH_SAM_APDU [06:00:39]CAPDU: 80 13 01 00 [06:00:39]Write to MH i2c: E2 08 00 57 00 80 13 01 00 00 00 00 00 D4 [06:00:39]Write i2c OK [06:00:39]MH_I2C_Read... [06:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:39]Read from MH i2c: E2 [06:00:39]MH_I2C_Read... [06:00:39]Read from MH i2c: E2 0E 00 [06:00:39]MH_I2C_Read... [06:00:39]Read from MH i2c: E2 0E 00 57 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 F7 [06:00:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:00:39]wFMCommunicate OK [06:00:39]SAM_PROTO_GetShiftState done [06:00:39]FM_GetShiftState done [06:00:39]req_shift_opened done [06:00:39]requested_item shift.open_date is exist - process it [06:00:39]req_shift_open_date [06:00:39]req_shift_open_date done [06:00:39]produce_requested_data done [06:00:39]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39889,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:00:39]process_action_free close_receipt [06:00:39]json_value_free [06:00:39]json_value_free done [06:00:39]process_json_proto returns [06:00:39]Send response to host [06:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39889,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:00:39]free response buf [06:00:39]execute_script done [06:00:39]execute_script returns [06:00:39]free content buf [06:00:39]Sock 8.Close socket [06:00:39]Sock 8.Thread stoped [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:51]accept exits with 9 [06:05:51]New connection [06:05:51]New thread 3067182436 created [06:05:51]Thread 3067325796 joined [06:05:51]Waiting for new connection... [06:05:51] Sock 9.Parse request [06:05:51]Sock 9.Check first char [06:05:51]Sock 9.First char is OK [06:05:51]request: POST /json_proto HTTP/1.0 [06:05:51]Method: POST [06:05:51]URL: /json_proto [06:05:51]Method is POST - this is cgi request [06:05:51]url: /json_proto [06:05:51]query_string will be loaded in cgi processing [06:05:51]execute_cgi json_proto POST (null) [06:05:51]execute_cgi path=json_proto method=POST [06:05:51]POST find Content-Length [06:05:51]Host: 172.17.36.199:8080 [06:05:51]Content-Length: 620 [06:05:51]Content-Type: application/json [06:05:51] [06:05:51]POST finish read [06:05:51]Found Content-Length = 620 [06:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176449", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:51]execute_script... [06: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 : (3)176449", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:51]POST & json_proto [06:05:51]process_json_proto [06:05:51]json parsed OK: [06:05:51]protocol is kg_v1.0 [06:05:51]action value=close_receipt [06:05:51]process_action close_receipt [06:05:51]cmd_close_receipt [06:05:51]MH_GetDate [06:05:51]Write to MH i2c: F0 00 00 58 00 47 [06:05:51]Write i2c OK [06:05:51]MH_I2C_Read... [06:05:51]Read from MH i2c: F0 [06:05:51]MH_I2C_Read... [06:05:51]Read from MH i2c: F0 09 00 [06:05:51]MH_I2C_Read... [06:05:51]Read from MH i2c: F0 09 00 58 00 00 40 5D 5D 66 91 46 04 65 F0 [06:05:51]GetLastDocTimeStamp 1717394436 [06:05:51]current date 1717394752 [06:05:51]FM_GetShiftState [06:05:51]SAM_PROTO_GetShiftState [06:05:51]wFMCommunicate request_size=4 [06:05:51]MH_SAM_APDU [06:05:51]CAPDU: 80 13 01 00 [06:05:51]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [06:05:51]Write i2c OK [06:05:51]MH_I2C_Read... [06:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:51]Read from MH i2c: E2 [06:05:51]MH_I2C_Read... [06:05:51]Read from MH i2c: E2 0E 00 [06:05:51]MH_I2C_Read... [06:05:51]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 F9 [06:05:51]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:05:51]wFMCommunicate OK [06:05:51]SAM_PROTO_GetShiftState done [06:05:51]FM_GetShiftState done [06:05:51]opened in 1717373769 [06:05:51]opened+sec_in_day 1717460169 [06:05:51]quantity*price = 13500 [06:05:51]sum+1 = 13501 [06:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 8 03.06.2024 06:05 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39890 ФПД: 163908648945479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060552&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39890&fm=163908648945479&tin=02508201610067®Number=0000000000092680&sum=13500 0 [06:05:52]StoreToDocumentArchive [06:05:52]shift 376 fd 39890 [06:05:52]save to /storage/0376/doc_00039890 [06:05:52]save last doc name /storage/0376/doc_00039890 to /storage/kkm_last_doc_name [06:05:52]save OK [06:05:52]Clear old archive folders... [06:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:05:52]tlvbuf is 00E0B770 [06:05:52]SAM_PROTO_ClearQueue [06:05:52]wFMCommunicate request_size=4 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 09 00 00 [06:05:52]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [06:05:52]RAPDU: 90 00 [06:05:52]wFMCommunicate OK [06:05:52]SAM_PROTO_ClearQueue done [06:05:52]KKMCreateOFDPacket [06:05:52]OFDProtocolAddRootSTLVToBuf [06:05:52]FM_MakeSignedData [06:05:52]FM_MakeSignedData [06:05:52]SAM_PROTO_SignData [06:05:52]wFMCommunicate request_size=4 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 0D 01 02 [06:05:52]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [06:05:52]RAPDU: 90 00 [06:05:52]wFMCommunicate OK [06:05:52]wFMCommunicate request_size=255 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 40 5D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [06:05:52]Write to MH i2c: E2 02 01 68 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 40 5D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7C [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [06:05:52]RAPDU: 90 00 [06:05:52]wFMCommunicate OK [06:05:52]wFMCommunicate request_size=31 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 D2 9B 00 00 35 04 06 00 95 12 F4 CB C7 47 [06:05:52]Write to MH i2c: E2 22 00 69 00 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 D2 9B 00 00 35 04 06 00 95 12 F4 CB C7 47 00 00 F4 [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [06:05:52]RAPDU: 90 00 [06:05:52]wFMCommunicate OK [06:05:52]wFMCommunicate request_size=4 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 0D 03 02 [06:05:52]Write to MH i2c: E2 08 00 6A 00 80 0D 03 02 00 00 00 00 E5 [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 0B 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 0B 00 6A 00 00 5B F7 DB 39 C6 0F 5C 50 90 00 CD [06:05:52]RAPDU: 5B F7 DB 39 C6 0F 5C 50 90 00 [06:05:52]wFMCommunicate OK [06:05:52]SAM_PROTO_SignData done [06:05:52]FM_MakeSignedData done [06:05:52]CreateOFDProtocolMessage [06:05:52]wFMCommunicate request_size=4 [06:05:52]MH_SAM_APDU [06:05:52]CAPDU: 80 11 00 00 [06:05:52]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:52]Read from MH i2c: E2 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 17 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 3D [06:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:05:52]wFMCommunicate OK [06:05:52]CreateOFDProtocolMessage done [06:05:52]OFDSenderStorePacket 39890 [06:05:52]StoreOFDPacket docnum=39890 [06:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 37 34 1C 01 06 BF 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 40 5D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D2 9B 00 00 35 04 06 00 95 12 F4 CB C7 47 5B F7 DB 39 C6 0F 5C 50 [06:05:52]CheckFolder [06:05:52]dirname=/storage/ofd_packets [06:05:52]CheckFolder done [06:05:52]ProducePacketName [06:05:52]name=ofd_packets/00039890 [06:05:52]NVStorageSaveData ofd_packets/00039890 [06:05:52]File name is /storage/ofd_packets/00039890 [06:05:52]Write 322 bytes [06:05:52]NVStorageSaveData done [06:05:52]OFDSenderStorePacket done [06:05:52]KKMCreateOFDPacket done [06:05:52]NVStorageSaveData kkm_last_timestamp [06:05:52]File name is /storage/kkm_last_timestamp [06:05:52]Write 4 bytes [06:05:52]NVStorageSaveData done [06:05:52]ExternCall_PrintAddStr [06:05:52]wPrintStart [06:05:52]Write to MH i2c: 01 00 00 6C 00 6C [06:05:52]Write i2c OK [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: 01 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: 01 07 00 [06:05:52]MH_I2C_Read... [06:05:52]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [06:05:52]RasterBufferAndPrint [06:05:52]line Счет N : (3)176449 [06:05:52]line ИНН: 02508201610067 [06:05:52]line Контрольно-Кассовый Чек [06:05:52]line ПРОДАЖА [06:05:52]line Товар: 48745000 [06:05:52]line Сигареты Winston Purple Mix [06:05:52]line 1.000 * 135.00 [06:05:52]line = 135.00 [06:05:52]line НДС 12% НСП 1% [06:05:52]line > о реализуемом товаре [06:05:52]line ИТОГО: 135.00 [06:05:52]line НСП 1% : 1.19 [06:05:52]line НДС 12% : 14.34 [06:05:52]line Наличными: 135.00 [06:05:52]line Безнал.: 0.00 [06:05:52]line Место: АЗС № 63 "Партнер Нефть" [06:05:52]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:05:52]line СНО: Общий режим [06:05:52]line Чек 8 03.06.2024 06:05 [06:05:52]line Смена: 376 ФФД: 1.0 [06:05:52]line ЗНМ: 0300000037 [06:05:52]line РНМ: 0000000000092680 [06:05:52]line Версия ККМ: 001 [06:05:52]line ФМ: 0000000000874882 [06:05:52]line ФД: 39890 [06:05:52]line ФПД: 163908648945479 [06:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060552&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39890&fm=163908648945479&tin=02508201610067®Number=0000000000092680&sum=13500 [06:05:53]line 0 [06:05:53]OFD Sender: Processing packet 39890 [packets to send 5, broken 4] [06:05:53]ProducePacketName [06:05:53]name=ofd_packets/00039890 [06:05:53]OFD Sender: To server: pG, [06:05:53]CommunicateWithHost lk.salyk.kg:30040 [06:05:53]ConnectInit lk.salyk.kg [06:05:53]written 0, free lines is 4095 [06:05:53]Connected sock=10 [06:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 37 34 1C 01 06 BF 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 40 5D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D2 9B 00 00 35 04 06 00 95 12 F4 CB C7 47 5B F7 DB 39 C6 0F 5C 50 [06:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 75 D3 47 00 DE 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D2 9B 00 00 F4 03 04 00 ED 05 5D 66 B6 04 01 00 00 51 64 56 20 8C 89 7C 8E [06:05:53]CommunicateWithHost err = 0 [06:05:53]CheckOFDResponse [06:05:53]1017 (14) - 77093643461234 [06:05:53]1041 (16) - 0000000000874882 [06:05:53]1040 (4) - 39890 [06:05:53]1012 (4) - 02.06.2024 23:53 [06:05:53]1206 (1) - 0 [06:05:53]OFD Sender: Remove packet 39890 [06:05:53]ProducePacketName [06:05:53]name=ofd_packets/00039890 [06:05:53]NVStorageDeleteData [06:05:53]Write to MH i2c: 01 00 00 94 00 94 [06:05:53]Write i2c OK [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: 01 [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: 01 07 00 [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 11 0D B9 [06:05:53]RasterBufferAndPrint [06:05:53]line [06:05:53]line [06:05:53]line [06:05:53]line [06:05:53]line [06:05:53]written 0, free lines is 3351 [06:05:53]MH_Cut [06:05:53]Write to MH i2c: D1 01 00 9B 00 01 6D [06:05:53]Write i2c OK [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: D1 [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: D1 01 00 [06:05:53]MH_I2C_Read... [06:05:53]Read from MH i2c: D1 01 00 9B 00 00 6C [06:05:53]Write to MH i2c: 01 00 00 9C 00 9C [06:05:53]Write i2c OK [06:05:53]MH_I2C_Read... [06:05:54]OFD Sender: No OFD packet to send [06:05:54]*** Cut start [06:05:54]*** Partial cut [06:05:54]*** CUTSNS_PIN = 1 [06:05:54]*** CUTSNS_PIN = 0 [06:05:54]*** Brake cut motor [06:05:54]Read from MH i2c: 01 [06:05:54]MH_I2C_Read... [06:05:54]*** Stop cut motor [06:05:54]*** Cut end [06:05:54]Read from MH i2c: 01 07 00 [06:05:54]MH_I2C_Read... [06:05:54]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 FF 0F B1 [06:05:54]process_action close_receipt done [06:05:54]requested_data is exist [06:05:54]produce_requested_data [06:05:54]requested_item fm.sn is exist - process it [06:05:54]wFMCommunicate request_size=4 [06:05:54]MH_SAM_APDU [06:05:54]CAPDU: 80 11 00 00 [06:05:54]Write to MH i2c: E2 08 00 9D 00 80 11 00 00 00 00 00 00 17 [06:05:54]Write i2c OK [06:05:54]MH_I2C_Read... [06:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:55]Read from MH i2c: E2 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 17 00 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 17 00 9D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 6F [06:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:05:55]wFMCommunicate OK [06:05:55]requested_item fd.num is exist - process it [06:05:55]SAM_PROTO_GetFieldsCounters [06:05:55]wFMCommunicate request_size=4 [06:05:55]MH_SAM_APDU [06:05:55]CAPDU: 80 13 00 00 [06:05:55]Write to MH i2c: E2 08 00 9E 00 80 13 00 00 00 00 00 00 1A [06:05:55]Write i2c OK [06:05:55]MH_I2C_Read... [06:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:55]Read from MH i2c: E2 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 62 00 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 62 00 9E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [06:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:05:55]wFMCommunicate OK [06:05:55]SAM_PROTO_GetFieldsCounters done [06:05:55]requested_item shift.num is exist - process it [06:05:55]requested_item shift.opened is exist - process it [06:05:55]req_shift_opened [06:05:55]FM_GetShiftState [06:05:55]SAM_PROTO_GetShiftState [06:05:55]wFMCommunicate request_size=4 [06:05:55]MH_SAM_APDU [06:05:55]CAPDU: 80 13 01 00 [06:05:55]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [06:05:55]Write i2c OK [06:05:55]MH_I2C_Read... [06:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:55]Read from MH i2c: E2 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 0E 00 [06:05:55]MH_I2C_Read... [06:05:55]Read from MH i2c: E2 0E 00 9F 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 3F [06:05:55]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:05:55]wFMCommunicate OK [06:05:55]SAM_PROTO_GetShiftState done [06:05:55]FM_GetShiftState done [06:05:55]req_shift_opened done [06:05:55]requested_item shift.open_date is exist - process it [06:05:55]req_shift_open_date [06:05:55]req_shift_open_date done [06:05:55]produce_requested_data done [06:05:55]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39890,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:05:55]process_action_free close_receipt [06:05:55]json_value_free [06:05:55]json_value_free done [06:05:55]process_json_proto returns [06:05:55]Send response to host [06:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39890,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:05:55]free response buf [06:05:55]execute_script done [06:05:55]execute_script returns [06:05:55]free content buf [06:05:55]Sock 9.Close socket [06:05:55]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:50]accept exits with 8 [06:21:50]New connection [06:21:50]New thread 3067325796 created [06:21:50]Thread 3067182436 joined [06:21:50]Waiting for new connection... [06:21:50] Sock 8.Parse request [06:21:50]Sock 8.Check first char [06:21:50]Sock 8.First char is OK [06:21:50]request: POST /json_proto HTTP/1.0 [06:21:50]Method: POST [06:21:50]URL: /json_proto [06:21:50]Method is POST - this is cgi request [06:21:50]url: /json_proto [06:21:50]query_string will be loaded in cgi processing [06:21:50]execute_cgi json_proto POST (null) [06:21:50]execute_cgi path=json_proto method=POST [06:21:50]POST find Content-Length [06:21:50]Host: 172.17.36.199:8080 [06:21:50]Content-Length: 952 [06:21:50]Content-Type: application/json [06:21:50] [06:21:50]POST finish read [06:21:50]Found Content-Length = 952 [06:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176450", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:50]execute_script... [06:21:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176450", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:50]POST & json_proto [06:21:50]process_json_proto [06:21:50]json parsed OK: [06:21:50]protocol is kg_v1.0 [06:21:50]action value=close_receipt [06:21:50]process_action close_receipt [06:21:50]cmd_close_receipt [06:21:50]MH_GetDate [06:21:50]Write to MH i2c: F0 00 00 A0 00 8F [06:21:50]Write i2c OK [06:21:50]MH_I2C_Read... [06:21:50]Read from MH i2c: F0 [06:21:50]MH_I2C_Read... [06:21:50]Read from MH i2c: F0 09 00 [06:21:50]MH_I2C_Read... [06:21:50]Read from MH i2c: F0 09 00 A0 00 00 FF 60 5D 66 91 46 04 65 FA [06:21:50]GetLastDocTimeStamp 1717394752 [06:21:50]current date 1717395711 [06:21:50]FM_GetShiftState [06:21:50]SAM_PROTO_GetShiftState [06:21:50]wFMCommunicate request_size=4 [06:21:50]MH_SAM_APDU [06:21:50]CAPDU: 80 13 01 00 [06:21:50]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [06:21:50]Write i2c OK [06:21:50]MH_I2C_Read... [06:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:50]Read from MH i2c: E2 [06:21:50]MH_I2C_Read... [06:21:50]Read from MH i2c: E2 0E 00 [06:21:50]MH_I2C_Read... [06:21:50]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 41 [06:21:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:21:50]wFMCommunicate OK [06:21:50]SAM_PROTO_GetShiftState done [06:21:50]FM_GetShiftState done [06:21:50]opened in 1717373769 [06:21:50]opened+sec_in_day 1717460169 [06:21:50]quantity*price = 15500 [06:21:50]sum+1 = 15501 [06:21:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 176.00 НСП 1% : 1.56 НДС 12% : 18.69 Наличными: 176.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 9 03.06.2024 06:21 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39891 ФПД: 215608461001118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062151&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39891&fm=215608461001118&tin=02508201610067®Number=0000000000092680&sum=17600 0 [06:21:51]StoreToDocumentArchive [06:21:51]shift 376 fd 39891 [06:21:51]save to /storage/0376/doc_00039891 [06:21:51]save last doc name /storage/0376/doc_00039891 to /storage/kkm_last_doc_name [06:21:51]save OK [06:21:51]Clear old archive folders... [06:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=397 [06:21:51]tlvbuf is 00E0ABA0 [06:21:51]SAM_PROTO_ClearQueue [06:21:51]wFMCommunicate request_size=4 [06:21:51]MH_SAM_APDU [06:21:51]CAPDU: 80 09 00 00 [06:21:51]Write to MH i2c: E2 08 00 AE 00 80 09 00 00 00 00 00 00 20 [06:21:51]Write i2c OK [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 [06:21:51]MH_I2C_Read... [06:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:51]Read from MH i2c: E2 03 00 [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [06:21:51]RAPDU: 90 00 [06:21:51]wFMCommunicate OK [06:21:51]SAM_PROTO_ClearQueue done [06:21:51]KKMCreateOFDPacket [06:21:51]OFDProtocolAddRootSTLVToBuf [06:21:51]FM_MakeSignedData [06:21:51]FM_MakeSignedData [06:21:51]SAM_PROTO_SignData [06:21:51]wFMCommunicate request_size=4 [06:21:51]MH_SAM_APDU [06:21:51]CAPDU: 80 0D 01 02 [06:21:51]Write to MH i2c: E2 08 00 AF 00 80 0D 01 02 00 00 00 00 28 [06:21:51]Write i2c OK [06:21:51]MH_I2C_Read... [06:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:51]Read from MH i2c: E2 [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 03 00 [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [06:21:51]RAPDU: 90 00 [06:21:51]wFMCommunicate OK [06:21:51]wFMCommunicate request_size=255 [06:21:51]MH_SAM_APDU [06:21:51]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 [06:21:51]Write to MH i2c: E2 02 01 B0 00 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 00 00 FB [06:21:51]Write i2c OK [06:21:51]MH_I2C_Read... [06:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:51]Read from MH i2c: E2 [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 03 00 [06:21:51]MH_I2C_Read... [06:21:51]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [06:21:51]RAPDU: 90 00 [06:21:51]wFMCommunicate OK [06:21:51]wFMCommunicate request_size=156 [06:21:51]MH_SAM_APDU [06:21:51]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 60 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D3 9B 00 00 35 04 06 00 C4 18 41 BA 81 9E [06:21:51]Write to MH i2c: E2 9F 00 B1 00 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 60 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D3 9B 00 00 35 04 06 00 C4 18 41 BA 81 9E 00 00 83 [06:21:51]Write i2c OK [06:21:51]MH_I2C_Read... [06:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:52]Read from MH i2c: E2 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 03 00 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [06:21:52]RAPDU: 90 00 [06:21:52]wFMCommunicate OK [06:21:52]wFMCommunicate request_size=4 [06:21:52]MH_SAM_APDU [06:21:52]CAPDU: 80 0D 03 02 [06:21:52]Write to MH i2c: E2 08 00 B2 00 80 0D 03 02 00 00 00 00 2D [06:21:52]Write i2c OK [06:21:52]MH_I2C_Read... [06:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:52]Read from MH i2c: E2 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 0B 00 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 0B 00 B2 00 00 7C F3 8B 4C B6 5F 43 93 90 00 5F [06:21:52]RAPDU: 7C F3 8B 4C B6 5F 43 93 90 00 [06:21:52]wFMCommunicate OK [06:21:52]SAM_PROTO_SignData done [06:21:52]FM_MakeSignedData done [06:21:52]CreateOFDProtocolMessage [06:21:52]wFMCommunicate request_size=4 [06:21:52]MH_SAM_APDU [06:21:52]CAPDU: 80 11 00 00 [06:21:52]Write to MH i2c: E2 08 00 B3 00 80 11 00 00 00 00 00 00 2D [06:21:52]Write i2c OK [06:21:52]MH_I2C_Read... [06:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:52]Read from MH i2c: E2 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 17 00 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: E2 17 00 B3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 85 [06:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:21:52]wFMCommunicate OK [06:21:52]CreateOFDProtocolMessage done [06:21:52]OFDSenderStorePacket 39891 [06:21:52]StoreOFDPacket docnum=39891 [06:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 A1 01 00 00 83 F5 99 01 9C 87 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 60 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D3 9B 00 00 35 04 06 00 C4 18 41 BA 81 9E 7C F3 8B 4C B6 5F 43 93 [06:21:52]CheckFolder [06:21:52]dirname=/storage/ofd_packets [06:21:52]CheckFolder done [06:21:52]ProducePacketName [06:21:52]name=ofd_packets/00039891 [06:21:52]NVStorageSaveData ofd_packets/00039891 [06:21:52]File name is /storage/ofd_packets/00039891 [06:21:52]Write 447 bytes [06:21:52]NVStorageSaveData done [06:21:52]OFDSenderStorePacket done [06:21:52]KKMCreateOFDPacket done [06:21:52]NVStorageSaveData kkm_last_timestamp [06:21:52]File name is /storage/kkm_last_timestamp [06:21:52]Write 4 bytes [06:21:52]NVStorageSaveData done [06:21:52]ExternCall_PrintAddStr [06:21:52]wPrintStart [06:21:52]Write to MH i2c: 01 00 00 B4 00 B4 [06:21:52]OFD Sender: Processing packet 39891 [packets to send 5, broken 4] [06:21:52]ProducePacketName [06:21:52]name=ofd_packets/00039891 [06:21:52]OFD Sender: To server: pG, [06:21:52]CommunicateWithHost lk.salyk.kg:30040 [06:21:52]ConnectInit lk.salyk.kg [06:21:52]Write i2c OK [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: 01 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: 01 07 00 [06:21:52]MH_I2C_Read... [06:21:52]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 FF 0F C9 [06:21:52]RasterBufferAndPrint [06:21:52]line Счет N : (3)176450 [06:21:52]line ИНН: 02508201610067 [06:21:52]line Контрольно-Кассовый Чек [06:21:52]line ПРОДАЖА [06:21:52]line Товар: 5449000000439 [06:21:52]line Напиток Кока-Кола 1,5л [06:21:52]line 1.000 * 155.00 [06:21:52]line = 155.00 [06:21:52]line НДС 12% НСП 1% [06:21:52]line > о реализуемом товаре [06:21:52]line Товар: 2000053020015 [06:21:52]line Бумажные стаканы 250мл 1шт [06:21:52]line 3.000 * 7.00 [06:21:52]line = 21.00 [06:21:52]line НДС 12% НСП 1% [06:21:52]line > о реализуемом товаре [06:21:52]line ИТОГО: 176.00 [06:21:52]line НСП 1% : 1.56 [06:21:52]line НДС 12% : 18.69 [06:21:52]line Наличными: 176.00 [06:21:52]line Безнал.: 0.00 [06:21:52]line Место: АЗС № 63 "Партнер Нефть" [06:21:52]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:21:52]line СНО: Общий режим [06:21:52]line Чек 9 03.06.2024 06:21 [06:21:52]line Смена: 376 ФФД: 1.0 [06:21:52]line ЗНМ: 0300000037 [06:21:52]line РНМ: 0000000000092680 [06:21:52]line Версия ККМ: 001 [06:21:52]line ФМ: 0000000000874882 [06:21:52]line ФД: 39891 [06:21:52]line ФПД: 215608461001118 [06:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062151&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39891&fm=215608461001118&tin=02508201610067®Number=0000000000092680&sum=17600 [06:21:52]line 0 [06:21:52]written 0, free lines is 4095 [06:21:52]Connected sock=10 [06:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 A1 01 00 00 83 F5 99 01 9C 87 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 60 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D3 9B 00 00 35 04 06 00 C4 18 41 BA 81 9E 7C F3 8B 4C B6 5F 43 93 [06:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 9D B6 47 00 90 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D3 9B 00 00 F4 03 04 00 AC 09 5D 66 B6 04 01 00 00 86 8D D7 59 08 7D 1F 61 [06:21:52]CommunicateWithHost err = 0 [06:21:52]CheckOFDResponse [06:21:52]1017 (14) - 77093643461234 [06:21:52]1041 (16) - 0000000000874882 [06:21:52]1040 (4) - 39891 [06:21:52]1012 (4) - 03.06.2024 00:09 [06:21:52]1206 (1) - 0 [06:21:52]OFD Sender: Remove packet 39891 [06:21:52]ProducePacketName [06:21:52]name=ofd_packets/00039891 [06:21:52]NVStorageDeleteData [06:21:53]Write to MH i2c: 01 00 00 E3 00 E3 [06:21:53]Write i2c OK [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: 01 [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: 01 07 00 [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 AC 0C A2 [06:21:53]RasterBufferAndPrint [06:21:53]line [06:21:53]line [06:21:53]line [06:21:53]line [06:21:53]line [06:21:53]written 0, free lines is 3250 [06:21:53]MH_Cut [06:21:53]Write to MH i2c: D1 01 00 EA 00 01 BC [06:21:53]Write i2c OK [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: D1 [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: D1 01 00 [06:21:53]MH_I2C_Read... [06:21:53]Read from MH i2c: D1 01 00 EA 00 00 BB [06:21:53]Write to MH i2c: 01 00 00 EB 00 EB [06:21:53]Write i2c OK [06:21:53]MH_I2C_Read... [06:21:53]OFD Sender: No OFD packet to send [06:21:53]*** Cut start [06:21:53]*** Partial cut [06:21:53]*** CUTSNS_PIN = 1 [06:21:53]*** CUTSNS_PIN = 0 [06:21:54]*** Brake cut motor [06:21:54]Read from MH i2c: 01 [06:21:54]MH_I2C_Read... [06:21:54]*** Stop cut motor [06:21:54]*** Cut end [06:21:54]Read from MH i2c: 01 07 00 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [06:21:54]process_action close_receipt done [06:21:54]requested_data is exist [06:21:54]produce_requested_data [06:21:54]requested_item fm.sn is exist - process it [06:21:54]wFMCommunicate request_size=4 [06:21:54]MH_SAM_APDU [06:21:54]CAPDU: 80 11 00 00 [06:21:54]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [06:21:54]Write i2c OK [06:21:54]MH_I2C_Read... [06:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:54]Read from MH i2c: E2 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 17 00 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BE [06:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:21:54]wFMCommunicate OK [06:21:54]requested_item fd.num is exist - process it [06:21:54]SAM_PROTO_GetFieldsCounters [06:21:54]wFMCommunicate request_size=4 [06:21:54]MH_SAM_APDU [06:21:54]CAPDU: 80 13 00 00 [06:21:54]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [06:21:54]Write i2c OK [06:21:54]MH_I2C_Read... [06:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:54]Read from MH i2c: E2 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 62 00 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [06:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:21:54]wFMCommunicate OK [06:21:54]SAM_PROTO_GetFieldsCounters done [06:21:54]requested_item shift.num is exist - process it [06:21:54]requested_item shift.opened is exist - process it [06:21:54]req_shift_opened [06:21:54]FM_GetShiftState [06:21:54]SAM_PROTO_GetShiftState [06:21:54]wFMCommunicate request_size=4 [06:21:54]MH_SAM_APDU [06:21:54]CAPDU: 80 13 01 00 [06:21:54]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [06:21:54]Write i2c OK [06:21:54]MH_I2C_Read... [06:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:54]Read from MH i2c: E2 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 0E 00 [06:21:54]MH_I2C_Read... [06:21:54]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8E [06:21:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:21:54]wFMCommunicate OK [06:21:54]SAM_PROTO_GetShiftState done [06:21:54]FM_GetShiftState done [06:21:54]req_shift_opened done [06:21:54]requested_item shift.open_date is exist - process it [06:21:54]req_shift_open_date [06:21:54]req_shift_open_date done [06:21:54]produce_requested_data done [06:21:54]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39891,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:21:54]process_action_free close_receipt [06:21:54]json_value_free [06:21:54]json_value_free done [06:21:54]process_json_proto returns [06:21:54]Send response to host [06:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39891,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:21:54]free response buf [06:21:54]execute_script done [06:21:54]execute_script returns [06:21:54]free content buf [06:21:54]Sock 8.Close socket [06:21:54]Sock 8.Thread stoped [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:35]accept exits with 9 [06:25:35]New connection [06:25:35]New thread 3067182436 created [06:25:35]Thread 3067325796 joined [06:25:35]Waiting for new connection... [06:25:35] Sock 9.Parse request [06:25:35]Sock 9.Check first char [06:25:35]Sock 9.First char is OK [06:25:35]request: POST /json_proto HTTP/1.0 [06:25:35]Method: POST [06:25:35]URL: /json_proto [06:25:35]Method is POST - this is cgi request [06:25:35]url: /json_proto [06:25:35]query_string will be loaded in cgi processing [06:25:35]execute_cgi json_proto POST (null) [06:25:35]execute_cgi path=json_proto method=POST [06:25:35]POST find Content-Length [06:25:35]Host: 172.17.36.199:8080 [06:25:35]Content-Length: 613 [06:25:35]Content-Type: application/json [06:25:35] [06:25:35]POST finish read [06:25:35]Found Content-Length = 613 [06:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176451", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:35]execute_script... [06:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176451", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:35]POST & json_proto [06:25:35]process_json_proto [06:25:35]json parsed OK: [06:25:35]protocol is kg_v1.0 [06:25:35]action value=close_receipt [06:25:35]process_action close_receipt [06:25:35]cmd_close_receipt [06:25:35]MH_GetDate [06:25:35]Write to MH i2c: F0 00 00 EF 00 DE [06:25:35]Write i2c OK [06:25:35]MH_I2C_Read... [06:25:35]Read from MH i2c: F0 [06:25:35]MH_I2C_Read... [06:25:35]Read from MH i2c: F0 09 00 [06:25:35]MH_I2C_Read... [06:25:35]Read from MH i2c: F0 09 00 EF 00 00 E0 61 5D 66 91 46 04 65 2B [06:25:35]GetLastDocTimeStamp 1717395711 [06:25:35]current date 1717395936 [06:25:35]FM_GetShiftState [06:25:35]SAM_PROTO_GetShiftState [06:25:35]wFMCommunicate request_size=4 [06:25:35]MH_SAM_APDU [06:25:35]CAPDU: 80 13 01 00 [06:25:35]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [06:25:35]Write i2c OK [06:25:35]MH_I2C_Read... [06:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:35]Read from MH i2c: E2 [06:25:35]MH_I2C_Read... [06:25:35]Read from MH i2c: E2 0E 00 [06:25:35]MH_I2C_Read... [06:25:35]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 90 [06:25:35]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:25:35]wFMCommunicate OK [06:25:35]SAM_PROTO_GetShiftState done [06:25:35]FM_GetShiftState done [06:25:35]opened in 1717373769 [06:25:35]opened+sec_in_day 1717460169 [06:25:35]quantity*price = 15500 [06:25:35]sum+1 = 15501 [06:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 10 03.06.2024 06:25 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39892 ФПД: 229360847488127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062536&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39892&fm=229360847488127&tin=02508201610067®Number=0000000000092680&sum=15500 0 [06:25:36]StoreToDocumentArchive [06:25:36]shift 376 fd 39892 [06:25:36]save to /storage/0376/doc_00039892 [06:25:36]save last doc name /storage/0376/doc_00039892 to /storage/kkm_last_doc_name [06:25:36]save OK [06:25:36]Clear old archive folders... [06:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=265 [06:25:36]tlvbuf is 00DF8730 [06:25:36]SAM_PROTO_ClearQueue [06:25:36]wFMCommunicate request_size=4 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 09 00 00 [06:25:36]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [06:25:36]RAPDU: 90 00 [06:25:36]wFMCommunicate OK [06:25:36]SAM_PROTO_ClearQueue done [06:25:36]KKMCreateOFDPacket [06:25:36]OFDProtocolAddRootSTLVToBuf [06:25:36]FM_MakeSignedData [06:25:36]FM_MakeSignedData [06:25:36]SAM_PROTO_SignData [06:25:36]wFMCommunicate request_size=4 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 0D 01 02 [06:25:36]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [06:25:36]RAPDU: 90 00 [06:25:36]wFMCommunicate OK [06:25:36]wFMCommunicate request_size=255 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E0 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 [06:25:36]Write to MH i2c: E2 02 01 FF 00 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E0 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 00 00 BD [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [06:25:36]RAPDU: 90 00 [06:25:36]wFMCommunicate OK [06:25:36]wFMCommunicate request_size=24 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 0D 02 02 13 32 10 04 04 00 D4 9B 00 00 35 04 06 00 D0 9A 3B D7 04 7F [06:25:36]Write to MH i2c: E2 1B 00 00 01 80 0D 02 02 13 00 32 10 04 04 00 D4 9B 00 00 35 04 06 00 D0 9A 3B D7 04 7F 00 00 98 [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [06:25:36]RAPDU: 90 00 [06:25:36]wFMCommunicate OK [06:25:36]wFMCommunicate request_size=4 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 0D 03 02 [06:25:36]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 0B 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 0B 00 01 01 00 00 D7 51 7D 28 59 BF C4 90 00 27 [06:25:36]RAPDU: 00 D7 51 7D 28 59 BF C4 90 00 [06:25:36]wFMCommunicate OK [06:25:36]SAM_PROTO_SignData done [06:25:36]FM_MakeSignedData done [06:25:36]CreateOFDProtocolMessage [06:25:36]wFMCommunicate request_size=4 [06:25:36]MH_SAM_APDU [06:25:36]CAPDU: 80 11 00 00 [06:25:36]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:36]Read from MH i2c: E2 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 17 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D5 [06:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:25:36]wFMCommunicate OK [06:25:36]CreateOFDProtocolMessage done [06:25:36]OFDSenderStorePacket 39892 [06:25:36]StoreOFDPacket docnum=39892 [06:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1D 01 00 00 E3 F4 15 01 94 10 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E0 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D4 9B 00 00 35 04 06 00 D0 9A 3B D7 04 7F 00 D7 51 7D 28 59 BF C4 [06:25:36]CheckFolder [06:25:36]dirname=/storage/ofd_packets [06:25:36]CheckFolder done [06:25:36]ProducePacketName [06:25:36]name=ofd_packets/00039892 [06:25:36]NVStorageSaveData ofd_packets/00039892 [06:25:36]File name is /storage/ofd_packets/00039892 [06:25:36]Write 315 bytes [06:25:36]NVStorageSaveData done [06:25:36]OFDSenderStorePacket done [06:25:36]KKMCreateOFDPacket done [06:25:36]NVStorageSaveData kkm_last_timestamp [06:25:36]File name is /storage/kkm_last_timestamp [06:25:36]Write 4 bytes [06:25:36]NVStorageSaveData done [06:25:36]ExternCall_PrintAddStr [06:25:36]wPrintStart [06:25:36]Write to MH i2c: 01 00 00 03 01 04 [06:25:36]Write i2c OK [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: 01 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: 01 07 00 [06:25:36]MH_I2C_Read... [06:25:36]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [06:25:36]RasterBufferAndPrint [06:25:36]line Счет N : (3)176451 [06:25:36]line ИНН: 02508201610067 [06:25:36]line Контрольно-Кассовый Чек [06:25:36]line ПРОДАЖА [06:25:36]line Товар: 47803152 [06:25:36]line Сигареты Mevius Revo [06:25:36]line 1.000 * 155.00 [06:25:36]line = 155.00 [06:25:36]line НДС 12% НСП 1% [06:25:36]line > о реализуемом товаре [06:25:36]line ИТОГО: 155.00 [06:25:36]line НСП 1% : 1.37 [06:25:36]line НДС 12% : 16.46 [06:25:36]line Наличными: 155.00 [06:25:36]line Безнал.: 0.00 [06:25:36]line Место: АЗС № 63 "Партнер Нефть" [06:25:36]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:25:36]line СНО: Общий режим [06:25:36]line Чек 10 03.06.2024 06:25 [06:25:36]line Смена: 376 ФФД: 1.0 [06:25:36]line ЗНМ: 0300000037 [06:25:36]line РНМ: 0000000000092680 [06:25:36]line Версия ККМ: 001 [06:25:36]line ФМ: 0000000000874882 [06:25:36]line ФД: 39892 [06:25:36]line ФПД: 229360847488127 [06:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062536&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39892&fm=229360847488127&tin=02508201610067®Number=0000000000092680&sum=15500 [06:25:37]line 0 [06:25:37]OFD Sender: Processing packet 39892 [packets to send 5, broken 4] [06:25:37]ProducePacketName [06:25:37]name=ofd_packets/00039892 [06:25:37]OFD Sender: To server: pG, [06:25:37]CommunicateWithHost lk.salyk.kg:30040 [06:25:37]ConnectInit lk.salyk.kg [06:25:37]written 0, free lines is 4095 [06:25:37]Write to MH i2c: 01 00 00 2B 01 2C [06:25:37]Write i2c OK [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: 01 [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: 01 07 00 [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 12 0D 52 [06:25:37]RasterBufferAndPrint [06:25:37]line [06:25:37]line [06:25:37]line [06:25:37]line [06:25:37]line [06:25:37]written 0, free lines is 3349 [06:25:37]MH_Cut [06:25:37]Write to MH i2c: D1 01 00 32 01 01 05 [06:25:37]Write i2c OK [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: D1 [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: D1 01 00 [06:25:37]MH_I2C_Read... [06:25:37]Read from MH i2c: D1 01 00 32 01 00 04 [06:25:37]Write to MH i2c: 01 00 00 33 01 34 [06:25:37]Write i2c OK [06:25:37]MH_I2C_Read... [06:25:38]*** Cut start [06:25:38]*** Partial cut [06:25:38]*** CUTSNS_PIN = 1 [06:25:38]*** CUTSNS_PIN = 0 [06:25:38]*** Brake cut motor [06:25:39]Read from MH i2c: 01 [06:25:39]MH_I2C_Read... [06:25:39]*** Stop cut motor [06:25:39]*** Cut end [06:25:39]Read from MH i2c: 01 07 00 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FF 0F 49 [06:25:39]process_action close_receipt done [06:25:39]requested_data is exist [06:25:39]produce_requested_data [06:25:39]requested_item fm.sn is exist - process it [06:25:39]wFMCommunicate request_size=4 [06:25:39]MH_SAM_APDU [06:25:39]CAPDU: 80 11 00 00 [06:25:39]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [06:25:39]Write i2c OK [06:25:39]MH_I2C_Read... [06:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:39]Read from MH i2c: E2 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 17 00 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 07 [06:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:25:39]wFMCommunicate OK [06:25:39]requested_item fd.num is exist - process it [06:25:39]SAM_PROTO_GetFieldsCounters [06:25:39]wFMCommunicate request_size=4 [06:25:39]MH_SAM_APDU [06:25:39]CAPDU: 80 13 00 00 [06:25:39]Write to MH i2c: E2 08 00 35 01 80 13 00 00 00 00 00 00 B2 [06:25:39]Write i2c OK [06:25:39]MH_I2C_Read... [06:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:39]Read from MH i2c: E2 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 62 00 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 62 00 35 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [06:25:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:25:39]wFMCommunicate OK [06:25:39]SAM_PROTO_GetFieldsCounters done [06:25:39]requested_item shift.num is exist - process it [06:25:39]requested_item shift.opened is exist - process it [06:25:39]req_shift_opened [06:25:39]FM_GetShiftState [06:25:39]SAM_PROTO_GetShiftState [06:25:39]wFMCommunicate request_size=4 [06:25:39]MH_SAM_APDU [06:25:39]CAPDU: 80 13 01 00 [06:25:39]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [06:25:39]Write i2c OK [06:25:39]MH_I2C_Read... [06:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:39]Read from MH i2c: E2 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 0E 00 [06:25:39]MH_I2C_Read... [06:25:39]Read from MH i2c: E2 0E 00 36 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D7 [06:25:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:25:39]wFMCommunicate OK [06:25:39]SAM_PROTO_GetShiftState done [06:25:39]FM_GetShiftState done [06:25:39]req_shift_opened done [06:25:39]requested_item shift.open_date is exist - process it [06:25:39]req_shift_open_date [06:25:39]req_shift_open_date done [06:25:39]produce_requested_data done [06:25:39]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39892,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:25:39]process_action_free close_receipt [06:25:39]json_value_free [06:25:39]json_value_free done [06:25:39]process_json_proto returns [06:25:39]Send response to host [06:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39892,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:25:39]free response buf [06:25:39]execute_script done [06:25:39]execute_script returns [06:25:39]free content buf [06:25:39]Sock 9.Close socket [06:25:39]Sock 9.Thread stoped [06:25:50]accept exits with 8 [06:25:50]New connection [06:25:50]New thread 3067325796 created [06:25:50]Thread 3067182436 joined [06:25:50]Waiting for new connection... [06:25:50] Sock 8.Parse request [06:25:50]Sock 8.Check first char [06:25:50]Sock 8.First char is OK [06:25:50]request: POST /json_proto HTTP/1.0 [06:25:50]Method: POST [06:25:50]URL: /json_proto [06:25:50]Method is POST - this is cgi request [06:25:50]url: /json_proto [06:25:50]query_string will be loaded in cgi processing [06:25:50]execute_cgi json_proto POST (null) [06:25:50]execute_cgi path=json_proto method=POST [06:25:50]POST find Content-Length [06:25:50]Host: 172.17.36.199:8080 [06:25:50]Content-Length: 647 [06:25:50]Content-Type: application/json [06:25:50] [06:25:50]POST finish read [06:25:50]Found Content-Length = 647 [06:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176452", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:50]execute_script... [06:25:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176452", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:50]POST & json_proto [06:25:50]process_json_proto [06:25:50]json parsed OK: [06:25:50]protocol is kg_v1.0 [06:25:50]action value=close_receipt [06:25:50]process_action close_receipt [06:25:50]cmd_close_receipt [06:25:50]MH_GetDate [06:25:50]Write to MH i2c: F0 00 00 37 01 27 [06:25:50]Write i2c OK [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: F0 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: F0 09 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: F0 09 00 37 01 00 EF 61 5D 66 91 46 04 65 83 [06:25:50]GetLastDocTimeStamp 1717395936 [06:25:50]current date 1717395951 [06:25:50]FM_GetShiftState [06:25:50]SAM_PROTO_GetShiftState [06:25:50]wFMCommunicate request_size=4 [06:25:50]MH_SAM_APDU [06:25:50]CAPDU: 80 13 01 00 [06:25:50]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [06:25:50]Write i2c OK [06:25:50]MH_I2C_Read... [06:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:50]Read from MH i2c: E2 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 0E 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D9 [06:25:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:25:50]wFMCommunicate OK [06:25:50]SAM_PROTO_GetShiftState done [06:25:50]FM_GetShiftState done [06:25:50]opened in 1717373769 [06:25:50]opened+sec_in_day 1717460169 [06:25:50]quantity*price = 7500 [06:25:50]sum+1 = 7501 [06:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 11 03.06.2024 06:25 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39893 ФПД: 161752315191198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062551&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39893&fm=161752315191198&tin=02508201610067®Number=0000000000092680&sum=7500 0 [06:25:51]StoreToDocumentArchive [06:25:51]shift 376 fd 39893 [06:25:51]save to /storage/0376/doc_00039893 [06:25:51]save last doc name /storage/0376/doc_00039893 to /storage/kkm_last_doc_name [06:25:51]save OK [06:25:51]Clear old archive folders... [06:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [06:25:51]tlvbuf is 00DE9DD0 [06:25:51]SAM_PROTO_ClearQueue [06:25:51]wFMCommunicate request_size=4 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 09 00 00 [06:25:51]Write to MH i2c: E2 08 00 45 01 80 09 00 00 00 00 00 00 B8 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:25:51]Read from MH i2c: E2 03 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [06:25:51]RAPDU: 90 00 [06:25:51]wFMCommunicate OK [06:25:51]SAM_PROTO_ClearQueue done [06:25:51]KKMCreateOFDPacket [06:25:51]OFDProtocolAddRootSTLVToBuf [06:25:51]FM_MakeSignedData [06:25:51]FM_MakeSignedData [06:25:51]SAM_PROTO_SignData [06:25:51]wFMCommunicate request_size=4 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 0D 01 02 [06:25:51]Write to MH i2c: E2 08 00 46 01 80 0D 01 02 00 00 00 00 C0 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:25:51]Read from MH i2c: E2 03 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [06:25:51]RAPDU: 90 00 [06:25:51]wFMCommunicate OK [06:25:51]wFMCommunicate request_size=255 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 EF 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 [06:25:51]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 EF 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 00 00 B4 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [06:25:51]RAPDU: 90 00 [06:25:51]wFMCommunicate OK [06:25:51]wFMCommunicate request_size=41 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D5 9B 00 00 35 04 06 00 93 1C E5 49 DF 9E [06:25:51]Write to MH i2c: E2 2C 00 48 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D5 9B 00 00 35 04 06 00 93 1C E5 49 DF 9E 00 00 61 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [06:25:51]RAPDU: 90 00 [06:25:51]wFMCommunicate OK [06:25:51]wFMCommunicate request_size=4 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 0D 03 02 [06:25:51]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 0B 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 0B 00 49 01 00 89 3C 63 6A CD B3 0F 07 90 00 EE [06:25:51]RAPDU: 89 3C 63 6A CD B3 0F 07 90 00 [06:25:51]wFMCommunicate OK [06:25:51]SAM_PROTO_SignData done [06:25:51]FM_MakeSignedData done [06:25:51]CreateOFDProtocolMessage [06:25:51]wFMCommunicate request_size=4 [06:25:51]MH_SAM_APDU [06:25:51]CAPDU: 80 11 00 00 [06:25:51]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:51]Read from MH i2c: E2 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 17 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1D [06:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:25:51]wFMCommunicate OK [06:25:51]CreateOFDProtocolMessage done [06:25:51]OFDSenderStorePacket 39893 [06:25:51]StoreOFDPacket docnum=39893 [06:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 66 BB 26 01 44 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 EF 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D5 9B 00 00 35 04 06 00 93 1C E5 49 DF 9E 89 3C 63 6A CD B3 0F 07 [06:25:51]CheckFolder [06:25:51]dirname=/storage/ofd_packets [06:25:51]CheckFolder done [06:25:51]ProducePacketName [06:25:51]name=ofd_packets/00039893 [06:25:51]NVStorageSaveData ofd_packets/00039893 [06:25:51]File name is /storage/ofd_packets/00039893 [06:25:51]Write 332 bytes [06:25:51]NVStorageSaveData done [06:25:51]OFDSenderStorePacket done [06:25:51]KKMCreateOFDPacket done [06:25:51]NVStorageSaveData kkm_last_timestamp [06:25:51]File name is /storage/kkm_last_timestamp [06:25:51]Write 4 bytes [06:25:51]NVStorageSaveData done [06:25:51]ExternCall_PrintAddStr [06:25:51]wPrintStart [06:25:51]Write to MH i2c: 01 00 00 4B 01 4C [06:25:51]Write i2c OK [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: 01 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: 01 07 00 [06:25:51]MH_I2C_Read... [06:25:51]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [06:25:51]RasterBufferAndPrint [06:25:51]line Счет N : (3)176452 [06:25:51]line ИНН: 02508201610067 [06:25:51]line Контрольно-Кассовый Чек [06:25:51]line ПРОДАЖА [06:25:51]line Товар: 2000034730018 [06:25:51]line Кофе Американо (GABB TRADE) [06:25:51]line 1.000 * 75.00 [06:25:51]line = 75.00 [06:25:51]line НДС 12% НСП 1% [06:25:51]line > о реализуемом товаре [06:25:51]line ИТОГО: 75.00 [06:25:51]line НСП 1% : 0.66 [06:25:51]line НДС 12% : 7.96 [06:25:51]line Наличными: 75.00 [06:25:51]line Безнал.: 0.00 [06:25:51]line Место: АЗС № 63 "Партнер Нефть" [06:25:51]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:25:51]line СНО: Общий режим [06:25:51]line Чек 11 03.06.2024 06:25 [06:25:51]line Смена: 376 ФФД: 1.0 [06:25:51]line ЗНМ: 0300000037 [06:25:51]line РНМ: 0000000000092680 [06:25:51]line Версия ККМ: 001 [06:25:51]line ФМ: 0000000000874882 [06:25:51]line ФД: 39893 [06:25:51]line ФПД: 161752315191198 [06:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062551&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39893&fm=161752315191198&tin=02508201610067®Number=0000000000092680&sum=7500 [06:25:52]line 0 [06:25:52]written 0, free lines is 4095 [06:25:52]Write to MH i2c: 01 00 00 74 01 75 [06:25:52]Write i2c OK [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: 01 [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: 01 07 00 [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FE 0C 86 [06:25:52]RasterBufferAndPrint [06:25:52]line [06:25:52]line [06:25:52]line [06:25:52]line [06:25:52]line [06:25:52]written 0, free lines is 3332 [06:25:52]MH_Cut [06:25:52]Write to MH i2c: D1 01 00 7B 01 01 4E [06:25:52]Write i2c OK [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: D1 [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: D1 01 00 [06:25:52]MH_I2C_Read... [06:25:52]Read from MH i2c: D1 01 00 7B 01 00 4D [06:25:52]Write to MH i2c: 01 00 00 7C 01 7D [06:25:52]Write i2c OK [06:25:52]MH_I2C_Read... [06:25:53]*** Cut start [06:25:53]*** Partial cut [06:25:53]*** CUTSNS_PIN = 1 [06:25:53]*** CUTSNS_PIN = 0 [06:25:53]*** Brake cut motor [06:25:54]Read from MH i2c: 01 [06:25:54]MH_I2C_Read... [06:25:54]*** Stop cut motor [06:25:54]*** Cut end [06:25:54]Read from MH i2c: 01 07 00 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [06:25:54]process_action close_receipt done [06:25:54]requested_data is exist [06:25:54]produce_requested_data [06:25:54]requested_item fm.sn is exist - process it [06:25:54]wFMCommunicate request_size=4 [06:25:54]MH_SAM_APDU [06:25:54]CAPDU: 80 11 00 00 [06:25:54]Write to MH i2c: E2 08 00 7D 01 80 11 00 00 00 00 00 00 F8 [06:25:54]Write i2c OK [06:25:54]MH_I2C_Read... [06:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:54]Read from MH i2c: E2 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 17 00 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 17 00 7D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 50 [06:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:25:54]wFMCommunicate OK [06:25:54]requested_item fd.num is exist - process it [06:25:54]SAM_PROTO_GetFieldsCounters [06:25:54]wFMCommunicate request_size=4 [06:25:54]MH_SAM_APDU [06:25:54]CAPDU: 80 13 00 00 [06:25:54]Write to MH i2c: E2 08 00 7E 01 80 13 00 00 00 00 00 00 FB [06:25:54]Write i2c OK [06:25:54]MH_I2C_Read... [06:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:54]Read from MH i2c: E2 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 62 00 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 62 00 7E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [06:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:25:54]wFMCommunicate OK [06:25:54]SAM_PROTO_GetFieldsCounters done [06:25:54]requested_item shift.num is exist - process it [06:25:54]requested_item shift.opened is exist - process it [06:25:54]req_shift_opened [06:25:54]FM_GetShiftState [06:25:54]SAM_PROTO_GetShiftState [06:25:54]wFMCommunicate request_size=4 [06:25:54]MH_SAM_APDU [06:25:54]CAPDU: 80 13 01 00 [06:25:54]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [06:25:54]Write i2c OK [06:25:54]MH_I2C_Read... [06:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:54]Read from MH i2c: E2 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 0E 00 [06:25:54]MH_I2C_Read... [06:25:54]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 20 [06:25:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:25:54]wFMCommunicate OK [06:25:54]SAM_PROTO_GetShiftState done [06:25:54]FM_GetShiftState done [06:25:54]req_shift_opened done [06:25:54]requested_item shift.open_date is exist - process it [06:25:54]req_shift_open_date [06:25:54]req_shift_open_date done [06:25:54]produce_requested_data done [06:25:54]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39893,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:25:54]process_action_free close_receipt [06:25:54]json_value_free [06:25:54]json_value_free done [06:25:54]process_json_proto returns [06:25:54]Send response to host [06:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39893,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:25:54]free response buf [06:25:54]execute_script done [06:25:54]execute_script returns [06:25:54]free content buf [06:25:54]Sock 8.Close socket [06:25:54]Sock 8.Thread stoped [06:27:48]ConnectInit Can't connect to host [06:27:48]CommunicateWithHost connect error [06:27:48]CommunicateWithHost err = -1 [06:27:48]OFD Sender: Server communicate error [06:27:48]OFD Sender: Processing packet 39892 [packets to send 6, broken 4] [06:27:48]ProducePacketName [06:27:48]name=ofd_packets/00039892 [06:27:48]OFD Sender: To server: pG, [06:27:48]CommunicateWithHost lk.salyk.kg:30040 [06:27:48]ConnectInit lk.salyk.kg [06:30:01]ConnectInit Can't connect to host [06:30:01]CommunicateWithHost connect error [06:30:01]CommunicateWithHost err = -1 [06:30:01]OFD Sender: Server communicate error [06:30:06]OFD Sender: Processing packet 39892 [packets to send 6, broken 4] [06:30:06]ProducePacketName [06:30:06]name=ofd_packets/00039892 [06:30:06]OFD Sender: To server: pG, [06:30:06]CommunicateWithHost lk.salyk.kg:30040 [06:30:06]ConnectInit lk.salyk.kg [06:30:06]Connected sock=8 [06:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1D 01 00 00 E3 F4 15 01 94 10 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E0 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D4 9B 00 00 35 04 06 00 D0 9A 3B D7 04 7F 00 D7 51 7D 28 59 BF C4 [06:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 AA 9C 47 00 5E 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D4 9B 00 00 F4 03 04 00 9A 0B 5D 66 B6 04 01 00 00 16 BF F1 22 22 BC EA 78 [06:30:07]CommunicateWithHost err = 0 [06:30:07]CheckOFDResponse [06:30:07]1017 (14) - 77093643461234 [06:30:07]1041 (16) - 0000000000874882 [06:30:07]1040 (4) - 39892 [06:30:07]1012 (4) - 03.06.2024 00:17 [06:30:07]1206 (1) - 0 [06:30:07]OFD Sender: Remove packet 39892 [06:30:07]ProducePacketName [06:30:07]name=ofd_packets/00039892 [06:30:07]NVStorageDeleteData [06:30:07]OFD Sender: Processing packet 39893 [packets to send 5, broken 4] [06:30:07]ProducePacketName [06:30:07]name=ofd_packets/00039893 [06:30:07]OFD Sender: To server: pG, [06:30:07]CommunicateWithHost lk.salyk.kg:30040 [06:30:07]ConnectInit lk.salyk.kg [06:30:07]Connected sock=8 [06:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 66 BB 26 01 44 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 EF 61 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D5 9B 00 00 35 04 06 00 93 1C E5 49 DF 9E 89 3C 63 6A CD B3 0F 07 [06:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 7C 32 47 00 08 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D5 9B 00 00 F4 03 04 00 9B 0B 5D 66 B6 04 01 00 00 C8 48 8A 7D F1 20 6E B2 [06:30:07]CommunicateWithHost err = 0 [06:30:07]CheckOFDResponse [06:30:07]1017 (14) - 77093643461234 [06:30:07]1041 (16) - 0000000000874882 [06:30:07]1040 (4) - 39893 [06:30:07]1012 (4) - 03.06.2024 00:17 [06:30:07]1206 (1) - 0 [06:30:07]OFD Sender: Remove packet 39893 [06:30:07]ProducePacketName [06:30:07]name=ofd_packets/00039893 [06:30:07]NVStorageDeleteData [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [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:24]accept exits with 9 [06:37:24]New connection [06:37:24]New thread 3067182436 created [06:37:24]Thread 3067325796 joined [06:37:24]Waiting for new connection... [06:37:24] Sock 9.Parse request [06:37:24]Sock 9.Check first char [06:37:24]Sock 9.First char is OK [06:37:24]request: POST /json_proto HTTP/1.0 [06:37:24]Method: POST [06:37:24]URL: /json_proto [06:37:24]Method is POST - this is cgi request [06:37:24]url: /json_proto [06:37:24]query_string will be loaded in cgi processing [06:37:24]execute_cgi json_proto POST (null) [06:37:24]execute_cgi path=json_proto method=POST [06:37:24]POST find Content-Length [06:37:24]Host: 172.17.36.199:8080 [06:37:24]Content-Length: 791 [06:37:24]Content-Type: application/json [06:37:24] [06:37:24]POST finish read [06:37:24]Found Content-Length = 791 [06:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176453", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:24]execute_script... [06:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176453", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:24]POST & json_proto [06:37:24]process_json_proto [06:37:24]json parsed OK: [06:37:24]protocol is kg_v1.0 [06:37:24]action value=close_receipt [06:37:24]process_action close_receipt [06:37:24]cmd_close_receipt [06:37:24]MH_GetDate [06:37:24]Write to MH i2c: F0 00 00 80 01 70 [06:37:24]Write i2c OK [06:37:24]MH_I2C_Read... [06:37:24]Read from MH i2c: F0 [06:37:24]MH_I2C_Read... [06:37:24]Read from MH i2c: F0 09 00 [06:37:24]MH_I2C_Read... [06:37:24]Read from MH i2c: F0 09 00 80 01 00 A5 64 5D 66 91 46 04 65 85 [06:37:24]GetLastDocTimeStamp 1717395951 [06:37:24]current date 1717396645 [06:37:24]FM_GetShiftState [06:37:24]SAM_PROTO_GetShiftState [06:37:24]wFMCommunicate request_size=4 [06:37:24]MH_SAM_APDU [06:37:24]CAPDU: 80 13 01 00 [06:37:24]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [06:37:24]Write i2c OK [06:37:24]MH_I2C_Read... [06:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:24]Read from MH i2c: E2 [06:37:24]MH_I2C_Read... [06:37:24]Read from MH i2c: E2 0E 00 [06:37:24]MH_I2C_Read... [06:37:24]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 22 [06:37:24]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:37:24]wFMCommunicate OK [06:37:24]SAM_PROTO_GetShiftState done [06:37:24]FM_GetShiftState done [06:37:24]opened in 1717373769 [06:37:24]opened+sec_in_day 1717460169 [06:37:24]quantity*price = 13000 [06:37:24]sum+1 = 13001 [06:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 12 03.06.2024 06:37 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39894 ФПД: 175462955855687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T063725&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39894&fm=175462955855687&tin=02508201610067®Number=0000000000092680&sum=13000 0 [06:37:25]StoreToDocumentArchive [06:37:25]shift 376 fd 39894 [06:37:25]save to /storage/0376/doc_00039894 [06:37:25]save last doc name /storage/0376/doc_00039894 to /storage/kkm_last_doc_name [06:37:25]save OK [06:37:25]Clear old archive folders... [06:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=266 [06:37:25]tlvbuf is 00DCC9E0 [06:37:25]SAM_PROTO_ClearQueue [06:37:25]wFMCommunicate request_size=4 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 09 00 00 [06:37:25]Write to MH i2c: E2 08 00 8E 01 80 09 00 00 00 00 00 00 01 [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [06:37:25]RAPDU: 90 00 [06:37:25]wFMCommunicate OK [06:37:25]SAM_PROTO_ClearQueue done [06:37:25]KKMCreateOFDPacket [06:37:25]OFDProtocolAddRootSTLVToBuf [06:37:25]FM_MakeSignedData [06:37:25]FM_MakeSignedData [06:37:25]SAM_PROTO_SignData [06:37:25]wFMCommunicate request_size=4 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 0D 01 02 [06:37:25]Write to MH i2c: E2 08 00 8F 01 80 0D 01 02 00 00 00 00 09 [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [06:37:25]RAPDU: 90 00 [06:37:25]wFMCommunicate OK [06:37:25]wFMCommunicate request_size=255 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A5 64 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 [06:37:25]Write to MH i2c: E2 02 01 90 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A5 64 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 00 00 1B [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [06:37:25]RAPDU: 90 00 [06:37:25]wFMCommunicate OK [06:37:25]wFMCommunicate request_size=25 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 0D 02 02 14 38 32 10 04 04 00 D6 9B 00 00 35 04 06 00 9F 95 27 27 AF 47 [06:37:25]Write to MH i2c: E2 1C 00 91 01 80 0D 02 02 14 00 38 32 10 04 04 00 D6 9B 00 00 35 04 06 00 9F 95 27 27 AF 47 00 00 DE [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [06:37:25]RAPDU: 90 00 [06:37:25]wFMCommunicate OK [06:37:25]wFMCommunicate request_size=4 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 0D 03 02 [06:37:25]Write to MH i2c: E2 08 00 92 01 80 0D 03 02 00 00 00 00 0E [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 0B 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 0B 00 92 01 00 5E 3F 93 E0 57 1D 0A AA 90 00 47 [06:37:25]RAPDU: 5E 3F 93 E0 57 1D 0A AA 90 00 [06:37:25]wFMCommunicate OK [06:37:25]SAM_PROTO_SignData done [06:37:25]FM_MakeSignedData done [06:37:25]CreateOFDProtocolMessage [06:37:25]wFMCommunicate request_size=4 [06:37:25]MH_SAM_APDU [06:37:25]CAPDU: 80 11 00 00 [06:37:25]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:25]Read from MH i2c: E2 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 17 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 66 [06:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:37:25]wFMCommunicate OK [06:37:25]CreateOFDProtocolMessage done [06:37:25]OFDSenderStorePacket 39894 [06:37:25]StoreOFDPacket docnum=39894 [06:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 F6 21 16 01 84 AB 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A5 64 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D6 9B 00 00 35 04 06 00 9F 95 27 27 AF 47 5E 3F 93 E0 57 1D 0A AA [06:37:25]CheckFolder [06:37:25]dirname=/storage/ofd_packets [06:37:25]CheckFolder done [06:37:25]ProducePacketName [06:37:25]name=ofd_packets/00039894 [06:37:25]NVStorageSaveData ofd_packets/00039894 [06:37:25]File name is /storage/ofd_packets/00039894 [06:37:25]Write 316 bytes [06:37:25]NVStorageSaveData done [06:37:25]OFDSenderStorePacket done [06:37:25]KKMCreateOFDPacket done [06:37:25]NVStorageSaveData kkm_last_timestamp [06:37:25]File name is /storage/kkm_last_timestamp [06:37:25]Write 4 bytes [06:37:25]NVStorageSaveData done [06:37:25]ExternCall_PrintAddStr [06:37:25]wPrintStart [06:37:25]Write to MH i2c: 01 00 00 94 01 95 [06:37:25]Write i2c OK [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: 01 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: 01 07 00 [06:37:25]MH_I2C_Read... [06:37:25]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 FF 0F AA [06:37:25]RasterBufferAndPrint [06:37:25]line Счет N : (3)176453 [06:37:25]line ИНН: 02508201610067 [06:37:25]line Контрольно-Кассовый Чек [06:37:25]line ПРОДАЖА [06:37:25]line Товар: 4870001570071 [06:37:25]line Напиток Pepsi 1л [06:37:25]line 1.000 * 130.00 [06:37:25]line = 130.00 [06:37:25]line НДС 12% НСП 1% [06:37:25]line > о реализуемом товаре [06:37:25]line ИТОГО: 130.00 [06:37:25]line НСП 1% : 1.15 [06:37:25]line НДС 12% : 13.80 [06:37:25]line Наличными: 0.00 [06:37:25]line Безнал.: 130.00 [06:37:25]line Место: АЗС № 63 "Партнер Нефть" [06:37:25]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:37:25]line СНО: Общий режим [06:37:25]line Чек 12 03.06.2024 06:37 [06:37:25]line Смена: 376 ФФД: 1.0 [06:37:25]line ЗНМ: 0300000037 [06:37:25]line РНМ: 0000000000092680 [06:37:25]line Версия ККМ: 001 [06:37:26]line Платежная система: Бакай Банк [06:37:26]line ФМ: 0000000000874882 [06:37:26]line ФД: 39894 [06:37:26]line ФПД: 175462955855687 [06:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T063725&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39894&fm=175462955855687&tin=02508201610067®Number=0000000000092680&sum=13000 [06:37:26]line 0 [06:37:26]OFD Sender: Processing packet 39894 [packets to send 5, broken 4] [06:37:26]ProducePacketName [06:37:26]name=ofd_packets/00039894 [06:37:26]OFD Sender: To server: pG, [06:37:26]CommunicateWithHost lk.salyk.kg:30040 [06:37:26]ConnectInit lk.salyk.kg [06:37:26]written 0, free lines is 4095 [06:37:26]Connected sock=10 [06:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 F6 21 16 01 84 AB 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A5 64 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D6 9B 00 00 35 04 06 00 9F 95 27 27 AF 47 5E 3F 93 E0 57 1D 0A AA [06:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 4D C3 47 00 DF 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D6 9B 00 00 F4 03 04 00 52 0D 5D 66 B6 04 01 00 00 45 10 58 15 50 93 58 30 [06:37:26]CommunicateWithHost err = 0 [06:37:26]CheckOFDResponse [06:37:26]1017 (14) - 77093643461234 [06:37:26]1041 (16) - 0000000000874882 [06:37:26]1040 (4) - 39894 [06:37:26]1012 (4) - 03.06.2024 00:24 [06:37:26]1206 (1) - 0 [06:37:26]OFD Sender: Remove packet 39894 [06:37:26]ProducePacketName [06:37:26]name=ofd_packets/00039894 [06:37:26]NVStorageDeleteData [06:37:26]Write to MH i2c: 01 00 00 BE 01 BF [06:37:26]Write i2c OK [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: 01 [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: 01 07 00 [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 F7 0C C9 [06:37:26]RasterBufferAndPrint [06:37:26]line [06:37:26]line [06:37:26]line [06:37:26]line [06:37:26]line [06:37:26]written 0, free lines is 3326 [06:37:26]MH_Cut [06:37:26]Write to MH i2c: D1 01 00 C5 01 01 98 [06:37:26]Write i2c OK [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: D1 [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: D1 01 00 [06:37:26]MH_I2C_Read... [06:37:26]Read from MH i2c: D1 01 00 C5 01 00 97 [06:37:26]Write to MH i2c: 01 00 00 C6 01 C7 [06:37:26]Write i2c OK [06:37:26]MH_I2C_Read... [06:37:27]OFD Sender: No OFD packet to send [06:37:27]*** Cut start [06:37:27]*** Partial cut [06:37:27]*** CUTSNS_PIN = 1 [06:37:27]*** CUTSNS_PIN = 0 [06:37:27]*** Brake cut motor [06:37:28]Read from MH i2c: 01 [06:37:28]MH_I2C_Read... [06:37:28]*** Stop cut motor [06:37:28]*** Cut end [06:37:28]Read from MH i2c: 01 07 00 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 FF 0F DC [06:37:28]process_action close_receipt done [06:37:28]requested_data is exist [06:37:28]produce_requested_data [06:37:28]requested_item fm.sn is exist - process it [06:37:28]wFMCommunicate request_size=4 [06:37:28]MH_SAM_APDU [06:37:28]CAPDU: 80 11 00 00 [06:37:28]Write to MH i2c: E2 08 00 C7 01 80 11 00 00 00 00 00 00 42 [06:37:28]Write i2c OK [06:37:28]MH_I2C_Read... [06:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:28]Read from MH i2c: E2 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 17 00 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 17 00 C7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 9A [06:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:37:28]wFMCommunicate OK [06:37:28]requested_item fd.num is exist - process it [06:37:28]SAM_PROTO_GetFieldsCounters [06:37:28]wFMCommunicate request_size=4 [06:37:28]MH_SAM_APDU [06:37:28]CAPDU: 80 13 00 00 [06:37:28]Write to MH i2c: E2 08 00 C8 01 80 13 00 00 00 00 00 00 45 [06:37:28]Write i2c OK [06:37:28]MH_I2C_Read... [06:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:28]Read from MH i2c: E2 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 62 00 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 62 00 C8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [06:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:37:28]wFMCommunicate OK [06:37:28]SAM_PROTO_GetFieldsCounters done [06:37:28]requested_item shift.num is exist - process it [06:37:28]requested_item shift.opened is exist - process it [06:37:28]req_shift_opened [06:37:28]FM_GetShiftState [06:37:28]SAM_PROTO_GetShiftState [06:37:28]wFMCommunicate request_size=4 [06:37:28]MH_SAM_APDU [06:37:28]CAPDU: 80 13 01 00 [06:37:28]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [06:37:28]Write i2c OK [06:37:28]MH_I2C_Read... [06:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:28]Read from MH i2c: E2 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 0E 00 [06:37:28]MH_I2C_Read... [06:37:28]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6A [06:37:28]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:37:28]wFMCommunicate OK [06:37:28]SAM_PROTO_GetShiftState done [06:37:28]FM_GetShiftState done [06:37:28]req_shift_opened done [06:37:28]requested_item shift.open_date is exist - process it [06:37:28]req_shift_open_date [06:37:28]req_shift_open_date done [06:37:28]produce_requested_data done [06:37:28]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39894,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:37:28]process_action_free close_receipt [06:37:28]json_value_free [06:37:28]json_value_free done [06:37:28]process_json_proto returns [06:37:28]Send response to host [06:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39894,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:37:28]free response buf [06:37:28]execute_script done [06:37:28]execute_script returns [06:37:28]free content buf [06:37:28]Sock 9.Close socket [06:37:28]Sock 9.Thread stoped [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57: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]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:39]accept exits with 8 [06:58:39]New connection [06:58:39]New thread 3067325796 created [06:58:39]Thread 3067182436 joined [06:58:39]Waiting for new connection... [06:58:39] Sock 8.Parse request [06:58:39]Sock 8.Check first char [06:58:39]Sock 8.First char is OK [06:58:39]request: POST /json_proto HTTP/1.0 [06:58:39]Method: POST [06:58:39]URL: /json_proto [06:58:39]Method is POST - this is cgi request [06:58:39]url: /json_proto [06:58:39]query_string will be loaded in cgi processing [06:58:39]execute_cgi json_proto POST (null) [06:58:39]execute_cgi path=json_proto method=POST [06:58:39]POST find Content-Length [06:58:39]Host: 172.17.36.199:8080 [06:58:39]Content-Length: 633 [06:58:39]Content-Type: application/json [06:58:39] [06:58:39]POST finish read [06:58:39]Found Content-Length = 633 [06:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176454", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:39]execute_script... [06:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176454", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:39]POST & json_proto [06:58:39]process_json_proto [06:58:39]json parsed OK: [06:58:39]protocol is kg_v1.0 [06:58:39]action value=close_receipt [06:58:39]process_action close_receipt [06:58:39]cmd_close_receipt [06:58:39]MH_GetDate [06:58:39]Write to MH i2c: F0 00 00 CA 01 BA [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: F0 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: F0 09 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: F0 09 00 CA 01 00 A0 69 5D 66 91 46 04 65 CF [06:58:39]GetLastDocTimeStamp 1717396645 [06:58:39]current date 1717397920 [06:58:39]FM_GetShiftState [06:58:39]SAM_PROTO_GetShiftState [06:58:39]wFMCommunicate request_size=4 [06:58:39]MH_SAM_APDU [06:58:39]CAPDU: 80 13 01 00 [06:58:39]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:39]Read from MH i2c: E2 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 0E 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6C [06:58:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:58:39]wFMCommunicate OK [06:58:39]SAM_PROTO_GetShiftState done [06:58:39]FM_GetShiftState done [06:58:39]opened in 1717373769 [06:58:39]opened+sec_in_day 1717460169 [06:58:39]quantity*price = 13000 [06:58:39]sum+1 = 13001 [06:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 13 03.06.2024 06:58 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39895 ФПД: 25038802975405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T065840&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39895&fm=25038802975405&tin=02508201610067®Number=0000000000092680&sum=13000 0 [06:58:40]StoreToDocumentArchive [06:58:40]shift 376 fd 39895 [06:58:40]save to /storage/0376/doc_00039895 [06:58:40]save last doc name /storage/0376/doc_00039895 to /storage/kkm_last_doc_name [06:58:40]save OK [06:58:40]Clear old archive folders... [06:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=285 [06:58:40]tlvbuf is 00DF83A0 [06:58:40]SAM_PROTO_ClearQueue [06:58:40]wFMCommunicate request_size=4 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 09 00 00 [06:58:40]Write to MH i2c: E2 08 00 D8 01 80 09 00 00 00 00 00 00 4B [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [06:58:40]RAPDU: 90 00 [06:58:40]wFMCommunicate OK [06:58:40]SAM_PROTO_ClearQueue done [06:58:40]KKMCreateOFDPacket [06:58:40]OFDProtocolAddRootSTLVToBuf [06:58:40]FM_MakeSignedData [06:58:40]FM_MakeSignedData [06:58:40]SAM_PROTO_SignData [06:58:40]wFMCommunicate request_size=4 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 0D 01 02 [06:58:40]Write to MH i2c: E2 08 00 D9 01 80 0D 01 02 00 00 00 00 53 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [06:58:40]RAPDU: 90 00 [06:58:40]wFMCommunicate OK [06:58:40]wFMCommunicate request_size=255 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A0 69 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 [06:58:40]Write to MH i2c: E2 02 01 DA 01 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A0 69 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 00 00 6E [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [06:58:40]RAPDU: 90 00 [06:58:40]wFMCommunicate OK [06:58:40]wFMCommunicate request_size=44 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 0D 02 02 27 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D7 9B 00 00 35 04 06 00 16 C5 CC F4 FA AD [06:58:40]Write to MH i2c: E2 2F 00 DB 01 80 0D 02 02 27 00 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D7 9B 00 00 35 04 06 00 16 C5 CC F4 FA AD 00 00 29 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [06:58:40]RAPDU: 90 00 [06:58:40]wFMCommunicate OK [06:58:40]wFMCommunicate request_size=4 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 0D 03 02 [06:58:40]Write to MH i2c: E2 08 00 DC 01 80 0D 03 02 00 00 00 00 58 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 0B 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 0B 00 DC 01 00 18 E3 D5 C2 38 1C F5 05 90 00 39 [06:58:40]RAPDU: 18 E3 D5 C2 38 1C F5 05 90 00 [06:58:40]wFMCommunicate OK [06:58:40]SAM_PROTO_SignData done [06:58:40]FM_MakeSignedData done [06:58:40]CreateOFDProtocolMessage [06:58:40]wFMCommunicate request_size=4 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 11 00 00 [06:58:40]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:41]Read from MH i2c: E2 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: E2 17 00 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B0 [06:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:58:41]wFMCommunicate OK [06:58:41]CreateOFDProtocolMessage done [06:58:41]OFDSenderStorePacket 39895 [06:58:41]StoreOFDPacket docnum=39895 [06:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 31 01 00 00 0C 94 29 01 41 EC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A0 69 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D7 9B 00 00 35 04 06 00 16 C5 CC F4 FA AD 18 E3 D5 C2 38 1C F5 05 [06:58:41]CheckFolder [06:58:41]dirname=/storage/ofd_packets [06:58:41]CheckFolder done [06:58:41]ProducePacketName [06:58:41]name=ofd_packets/00039895 [06:58:41]NVStorageSaveData ofd_packets/00039895 [06:58:41]File name is /storage/ofd_packets/00039895 [06:58:41]Write 335 bytes [06:58:41]NVStorageSaveData done [06:58:41]OFDSenderStorePacket done [06:58:41]KKMCreateOFDPacket done [06:58:41]NVStorageSaveData kkm_last_timestamp [06:58:41]File name is /storage/kkm_last_timestamp [06:58:41]Write 4 bytes [06:58:41]NVStorageSaveData done [06:58:41]ExternCall_PrintAddStr [06:58:41]wPrintStart [06:58:41]Write to MH i2c: 01 00 00 DE 01 DF [06:58:41]Write i2c OK [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 07 00 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [06:58:41]RasterBufferAndPrint [06:58:41]line Счет N : (3)176454 [06:58:41]line ИНН: 02508201610067 [06:58:41]line Контрольно-Кассовый Чек [06:58:41]line ПРОДАЖА [06:58:41]line Товар: 48745291 [06:58:41]line Сигареты Parliament SOHO NYC COMPACT BLU [06:58:41]line 1.000 * 130.00 [06:58:41]line = 130.00 [06:58:41]line НДС 12% НСП 1% [06:58:41]line > о реализуемом товаре [06:58:41]line ИТОГО: 130.00 [06:58:41]line НСП 1% : 1.15 [06:58:41]line НДС 12% : 13.80 [06:58:41]line Наличными: 130.00 [06:58:41]line Безнал.: 0.00 [06:58:41]line Место: АЗС № 63 "Партнер Нефть" [06:58:41]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [06:58:41]line СНО: Общий режим [06:58:41]line Чек 13 03.06.2024 06:58 [06:58:41]line Смена: 376 ФФД: 1.0 [06:58:41]line ЗНМ: 0300000037 [06:58:41]line РНМ: 0000000000092680 [06:58:41]line Версия ККМ: 001 [06:58:41]line ФМ: 0000000000874882 [06:58:41]line ФД: 39895 [06:58:41]line ФПД: 25038802975405 [06:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T065840&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39895&fm=25038802975405&tin=02508201610067®Number=0000000000092680&sum=13000 [06:58:41]line 0 [06:58:41]OFD Sender: Processing packet 39895 [packets to send 5, broken 4] [06:58:41]ProducePacketName [06:58:41]name=ofd_packets/00039895 [06:58:41]OFD Sender: To server: pG, [06:58:41]CommunicateWithHost lk.salyk.kg:30040 [06:58:41]ConnectInit lk.salyk.kg [06:58:41]written 0, free lines is 4095 [06:58:41]Connected sock=11 [06:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 31 01 00 00 0C 94 29 01 41 EC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A0 69 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D7 9B 00 00 35 04 06 00 16 C5 CC F4 FA AD 18 E3 D5 C2 38 1C F5 05 [06:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 E4 03 47 00 F7 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D7 9B 00 00 F4 03 04 00 4D 12 5D 66 B6 04 01 00 00 78 7F D3 D8 DD AD 27 DB [06:58:41]CommunicateWithHost err = 0 [06:58:41]CheckOFDResponse [06:58:41]1017 (14) - 77093643461234 [06:58:41]1041 (16) - 0000000000874882 [06:58:41]1040 (4) - 39895 [06:58:41]1012 (4) - 03.06.2024 00:46 [06:58:41]1206 (1) - 0 [06:58:41]OFD Sender: Remove packet 39895 [06:58:41]ProducePacketName [06:58:41]name=ofd_packets/00039895 [06:58:41]NVStorageDeleteData [06:58:41]Write to MH i2c: 01 00 00 07 02 09 [06:58:41]Write i2c OK [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 07 00 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 12 0D 2F [06:58:41]RasterBufferAndPrint [06:58:41]line [06:58:41]line [06:58:41]line [06:58:41]line [06:58:41]line [06:58:41]written 0, free lines is 3353 [06:58:41]MH_Cut [06:58:41]Write to MH i2c: D1 01 00 0E 02 01 E2 [06:58:41]Write i2c OK [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: D1 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: D1 01 00 [06:58:41]MH_I2C_Read... [06:58:41]Read from MH i2c: D1 01 00 0E 02 00 E1 [06:58:41]Write to MH i2c: 01 00 00 0F 02 11 [06:58:41]Write i2c OK [06:58:41]MH_I2C_Read... [06:58:42]OFD Sender: No OFD packet to send [06:58:42]*** Cut start [06:58:42]*** Partial cut [06:58:42]*** CUTSNS_PIN = 1 [06:58:42]*** CUTSNS_PIN = 0 [06:58:42]*** Brake cut motor [06:58:43]Read from MH i2c: 01 [06:58:43]MH_I2C_Read... [06:58:43]*** Stop cut motor [06:58:43]*** Cut end [06:58:43]Read from MH i2c: 01 07 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [06:58:43]process_action close_receipt done [06:58:43]requested_data is exist [06:58:43]produce_requested_data [06:58:43]requested_item fm.sn is exist - process it [06:58:43]wFMCommunicate request_size=4 [06:58:43]MH_SAM_APDU [06:58:43]CAPDU: 80 11 00 00 [06:58:43]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [06:58:43]Write i2c OK [06:58:43]MH_I2C_Read... [06:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:43]Read from MH i2c: E2 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 17 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E4 [06:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [06:58:43]wFMCommunicate OK [06:58:43]requested_item fd.num is exist - process it [06:58:43]SAM_PROTO_GetFieldsCounters [06:58:43]wFMCommunicate request_size=4 [06:58:43]MH_SAM_APDU [06:58:43]CAPDU: 80 13 00 00 [06:58:43]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [06:58:43]Write i2c OK [06:58:43]MH_I2C_Read... [06:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:43]Read from MH i2c: E2 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 62 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [06:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:43]wFMCommunicate OK [06:58:43]SAM_PROTO_GetFieldsCounters done [06:58:43]requested_item shift.num is exist - process it [06:58:43]requested_item shift.opened is exist - process it [06:58:43]req_shift_opened [06:58:43]FM_GetShiftState [06:58:43]SAM_PROTO_GetShiftState [06:58:43]wFMCommunicate request_size=4 [06:58:43]MH_SAM_APDU [06:58:43]CAPDU: 80 13 01 00 [06:58:43]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [06:58:43]Write i2c OK [06:58:43]MH_I2C_Read... [06:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:43]Read from MH i2c: E2 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 0E 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B4 [06:58:43]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [06:58:43]wFMCommunicate OK [06:58:43]SAM_PROTO_GetShiftState done [06:58:43]FM_GetShiftState done [06:58:43]req_shift_opened done [06:58:43]requested_item shift.open_date is exist - process it [06:58:43]req_shift_open_date [06:58:43]req_shift_open_date done [06:58:43]produce_requested_data done [06:58:43]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39895,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [06:58:43]process_action_free close_receipt [06:58:43]json_value_free [06:58:43]json_value_free done [06:58:43]process_json_proto returns [06:58:43]Send response to host [06:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39895,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [06:58:43]free response buf [06:58:43]execute_script done [06:58:43]execute_script returns [06:58:43]free content buf [06:58:43]Sock 8.Close socket [06:58:43]Sock 8.Thread stoped [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:08]accept exits with 9 [07:13:08]New connection [07:13:08]New thread 3067182436 created [07:13:08]Thread 3067325796 joined [07:13:08]Waiting for new connection... [07:13:08] Sock 9.Parse request [07:13:08]Sock 9.Check first char [07:13:08]Sock 9.First char is OK [07:13:08]request: POST /json_proto HTTP/1.0 [07:13:08]Method: POST [07:13:08]URL: /json_proto [07:13:08]Method is POST - this is cgi request [07:13:08]url: /json_proto [07:13:08]query_string will be loaded in cgi processing [07:13:08]execute_cgi json_proto POST (null) [07:13:08]execute_cgi path=json_proto method=POST [07:13:08]POST find Content-Length [07:13:08]Host: 172.17.36.199:8080 [07:13:08]Content-Length: 632 [07:13:08]Content-Type: application/json [07:13:08] [07:13:08]POST finish read [07:13:08]Found Content-Length = 632 [07:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176455", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:08]execute_script... [07:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176455", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:08]POST & json_proto [07:13:08]process_json_proto [07:13:08]json parsed OK: [07:13:08]protocol is kg_v1.0 [07:13:08]action value=close_receipt [07:13:08]process_action close_receipt [07:13:08]cmd_close_receipt [07:13:08]MH_GetDate [07:13:08]Write to MH i2c: F0 00 00 13 02 04 [07:13:08]Write i2c OK [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: F0 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: F0 09 00 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: F0 09 00 13 02 00 05 6D 5D 66 91 46 04 65 82 [07:13:08]GetLastDocTimeStamp 1717397920 [07:13:08]current date 1717398789 [07:13:08]FM_GetShiftState [07:13:08]SAM_PROTO_GetShiftState [07:13:08]wFMCommunicate request_size=4 [07:13:08]MH_SAM_APDU [07:13:08]CAPDU: 80 13 01 00 [07:13:08]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [07:13:08]Write i2c OK [07:13:08]MH_I2C_Read... [07:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:08]Read from MH i2c: E2 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 0E 00 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B6 [07:13:08]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [07:13:08]wFMCommunicate OK [07:13:08]SAM_PROTO_GetShiftState done [07:13:08]FM_GetShiftState done [07:13:08]opened in 1717373769 [07:13:08]opened+sec_in_day 1717460169 [07:13:08]quantity*price = 6000 [07:13:08]sum+1 = 6001 [07:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 14 03.06.2024 07:13 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39896 ФПД: 17000988259815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T071309&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39896&fm=17000988259815&tin=02508201610067®Number=0000000000092680&sum=6000 0 [07:13:09]StoreToDocumentArchive [07:13:09]shift 376 fd 39896 [07:13:09]save to /storage/0376/doc_00039896 [07:13:09]save last doc name /storage/0376/doc_00039896 to /storage/kkm_last_doc_name [07:13:09]save OK [07:13:09]Clear old archive folders... [07:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:13:09]tlvbuf is 00E16C80 [07:13:09]SAM_PROTO_ClearQueue [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 09 00 00 [07:13:09]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]SAM_PROTO_ClearQueue done [07:13:09]KKMCreateOFDPacket [07:13:09]OFDProtocolAddRootSTLVToBuf [07:13:09]FM_MakeSignedData [07:13:09]FM_MakeSignedData [07:13:09]SAM_PROTO_SignData [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 01 02 [07:13:09]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]wFMCommunicate request_size=255 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 05 6D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:13:09]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 05 6D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 9F [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]wFMCommunicate request_size=30 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 D8 9B 00 00 35 04 06 00 0F 76 59 DD B5 E7 [07:13:09]Write to MH i2c: E2 21 00 24 02 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 D8 9B 00 00 35 04 06 00 0F 76 59 DD B5 E7 00 00 68 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 03 02 [07:13:09]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 0B 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 0B 00 25 02 00 19 6B F4 E6 E9 88 84 CE 90 00 C4 [07:13:09]RAPDU: 19 6B F4 E6 E9 88 84 CE 90 00 [07:13:09]wFMCommunicate OK [07:13:09]SAM_PROTO_SignData done [07:13:09]FM_MakeSignedData done [07:13:09]CreateOFDProtocolMessage [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 11 00 00 [07:13:09]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 17 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 FA [07:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [07:13:09]wFMCommunicate OK [07:13:09]CreateOFDProtocolMessage done [07:13:09]OFDSenderStorePacket 39896 [07:13:09]StoreOFDPacket docnum=39896 [07:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 1D C1 1B 01 5C 92 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 05 6D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D8 9B 00 00 35 04 06 00 0F 76 59 DD B5 E7 19 6B F4 E6 E9 88 84 CE [07:13:09]CheckFolder [07:13:09]dirname=/storage/ofd_packets [07:13:09]CheckFolder done [07:13:09]ProducePacketName [07:13:09]name=ofd_packets/00039896 [07:13:09]NVStorageSaveData ofd_packets/00039896 [07:13:09]File name is /storage/ofd_packets/00039896 [07:13:09]Write 321 bytes [07:13:09]NVStorageSaveData done [07:13:09]OFDSenderStorePacket done [07:13:09]KKMCreateOFDPacket done [07:13:09]NVStorageSaveData kkm_last_timestamp [07:13:09]File name is /storage/kkm_last_timestamp [07:13:09]Write 4 bytes [07:13:09]NVStorageSaveData done [07:13:09]ExternCall_PrintAddStr [07:13:09]wPrintStart [07:13:09]Write to MH i2c: 01 00 00 27 02 29 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 07 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [07:13:09]RasterBufferAndPrint [07:13:09]line Счет N : (3)176455 [07:13:09]line ИНН: 02508201610067 [07:13:09]line Контрольно-Кассовый Чек [07:13:09]line ПРОДАЖА [07:13:09]line Товар: 4700025314002 [07:13:09]line ВОДКА МЯГКАЯ 0,1л [07:13:09]line 1.000 * 60.00 [07:13:09]line = 60.00 [07:13:09]line НДС 12% НСП 1% [07:13:09]line > о реализуемом товаре [07:13:09]line ИТОГО: 60.00 [07:13:09]line НСП 1% : 0.53 [07:13:09]line НДС 12% : 6.37 [07:13:09]line Наличными: 60.00 [07:13:09]line Безнал.: 0.00 [07:13:09]line Место: АЗС № 63 "Партнер Нефть" [07:13:09]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [07:13:09]line СНО: Общий режим [07:13:09]line Чек 14 03.06.2024 07:13 [07:13:09]line Смена: 376 ФФД: 1.0 [07:13:09]line ЗНМ: 0300000037 [07:13:09]line РНМ: 0000000000092680 [07:13:09]line Версия ККМ: 001 [07:13:09]line ФМ: 0000000000874882 [07:13:09]line ФД: 39896 [07:13:09]line ФПД: 17000988259815 [07:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T071309&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39896&fm=17000988259815&tin=02508201610067®Number=0000000000092680&sum=6000 [07:13:10]line 0 [07:13:10]OFD Sender: Processing packet 39896 [packets to send 5, broken 4] [07:13:10]ProducePacketName [07:13:10]name=ofd_packets/00039896 [07:13:10]OFD Sender: To server: pG, [07:13:10]CommunicateWithHost lk.salyk.kg:30040 [07:13:10]ConnectInit lk.salyk.kg [07:13:10]written 0, free lines is 4095 [07:13:10]Connected sock=10 [07:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 1D C1 1B 01 5C 92 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 05 6D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D8 9B 00 00 35 04 06 00 0F 76 59 DD B5 E7 19 6B F4 E6 E9 88 84 CE [07:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D7 66 47 00 8F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D8 9B 00 00 F4 03 04 00 B2 15 5D 66 B6 04 01 00 00 1D FC 30 1F 74 B0 63 D0 [07:13:10]CommunicateWithHost err = 0 [07:13:10]CheckOFDResponse [07:13:10]1017 (14) - 77093643461234 [07:13:10]1041 (16) - 0000000000874882 [07:13:10]1040 (4) - 39896 [07:13:10]1012 (4) - 03.06.2024 01:00 [07:13:10]1206 (1) - 0 [07:13:10]OFD Sender: Remove packet 39896 [07:13:10]ProducePacketName [07:13:10]name=ofd_packets/00039896 [07:13:10]NVStorageDeleteData [07:13:10]Write to MH i2c: 01 00 00 4F 02 51 [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 07 00 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 16 0D 7B [07:13:10]RasterBufferAndPrint [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]written 0, free lines is 3359 [07:13:10]MH_Cut [07:13:10]Write to MH i2c: D1 01 00 56 02 01 2A [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 01 00 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 01 00 56 02 00 29 [07:13:10]Write to MH i2c: 01 00 00 57 02 59 [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:11]OFD Sender: No OFD packet to send [07:13:11]*** Cut start [07:13:11]*** Partial cut [07:13:11]*** CUTSNS_PIN = 1 [07:13:11]*** CUTSNS_PIN = 0 [07:13:11]*** Brake cut motor [07:13:11]Read from MH i2c: 01 [07:13:11]MH_I2C_Read... [07:13:11]*** Stop cut motor [07:13:11]*** Cut end [07:13:11]Read from MH i2c: 01 07 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [07:13:11]process_action close_receipt done [07:13:11]requested_data is exist [07:13:11]produce_requested_data [07:13:11]requested_item fm.sn is exist - process it [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 11 00 00 [07:13:11]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 17 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2C [07:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [07:13:12]wFMCommunicate OK [07:13:12]requested_item fd.num is exist - process it [07:13:12]SAM_PROTO_GetFieldsCounters [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 13 00 00 [07:13:12]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 62 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:13:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:12]wFMCommunicate OK [07:13:12]SAM_PROTO_GetFieldsCounters done [07:13:12]requested_item shift.num is exist - process it [07:13:12]requested_item shift.opened is exist - process it [07:13:12]req_shift_opened [07:13:12]FM_GetShiftState [07:13:12]SAM_PROTO_GetShiftState [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 13 01 00 [07:13:12]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 0E 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FC [07:13:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [07:13:12]wFMCommunicate OK [07:13:12]SAM_PROTO_GetShiftState done [07:13:12]FM_GetShiftState done [07:13:12]req_shift_opened done [07:13:12]requested_item shift.open_date is exist - process it [07:13:12]req_shift_open_date [07:13:12]req_shift_open_date done [07:13:12]produce_requested_data done [07:13:12]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39896,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [07:13:12]process_action_free close_receipt [07:13:12]json_value_free [07:13:12]json_value_free done [07:13:12]process_json_proto returns [07:13:12]Send response to host [07:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39896,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [07:13:12]free response buf [07:13:12]execute_script done [07:13:12]execute_script returns [07:13:12]free content buf [07:13:12]Sock 9.Close socket [07:13:12]Sock 9.Thread stoped [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]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:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:06]accept exits with 8 [08:05:06]New connection [08:05:06]New thread 3067325796 created [08:05:06]Thread 3067182436 joined [08:05:06]Waiting for new connection... [08:05:06] Sock 8.Parse request [08:05:06]Sock 8.Check first char [08:05:06]Sock 8.First char is OK [08:05:06]request: POST /json_proto HTTP/1.0 [08:05:06]Method: POST [08:05:06]URL: /json_proto [08:05:06]Method is POST - this is cgi request [08:05:06]url: /json_proto [08:05:06]query_string will be loaded in cgi processing [08:05:06]execute_cgi json_proto POST (null) [08:05:06]execute_cgi path=json_proto method=POST [08:05:06]POST find Content-Length [08:05:06]Host: 172.17.36.199:8080 [08:05:06]Content-Length: 621 [08:05:06]Content-Type: application/json [08:05:06] [08:05:06]POST finish read [08:05:06]Found Content-Length = 621 [08:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176456", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:06]execute_script... [08:05:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176456", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:06]POST & json_proto [08:05:06]process_json_proto [08:05:06]json parsed OK: [08:05:06]protocol is kg_v1.0 [08:05:06]action value=close_receipt [08:05:06]process_action close_receipt [08:05:06]cmd_close_receipt [08:05:06]MH_GetDate [08:05:06]Write to MH i2c: F0 00 00 5B 02 4C [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: F0 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: F0 09 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: F0 09 00 5B 02 00 33 79 5D 66 91 46 04 65 04 [08:05:06]GetLastDocTimeStamp 1717398789 [08:05:06]current date 1717401907 [08:05:06]FM_GetShiftState [08:05:06]SAM_PROTO_GetShiftState [08:05:06]wFMCommunicate request_size=4 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 13 01 00 [08:05:06]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:06]Read from MH i2c: E2 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 0E 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FE [08:05:06]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:05:06]wFMCommunicate OK [08:05:06]SAM_PROTO_GetShiftState done [08:05:06]FM_GetShiftState done [08:05:06]opened in 1717373769 [08:05:06]opened+sec_in_day 1717460169 [08:05:06]quantity*price = 13000 [08:05:06]sum+1 = 13001 [08:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 15 03.06.2024 08:05 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39897 ФПД: 11196526017258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080507&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39897&fm=11196526017258&tin=02508201610067®Number=0000000000092680&sum=13000 0 [08:05:07]StoreToDocumentArchive [08:05:07]shift 376 fd 39897 [08:05:07]save to /storage/0376/doc_00039897 [08:05:07]save last doc name /storage/0376/doc_00039897 to /storage/kkm_last_doc_name [08:05:07]save OK [08:05:07]Clear old archive folders... [08:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:05:07]tlvbuf is 00E12A30 [08:05:07]SAM_PROTO_ClearQueue [08:05:07]wFMCommunicate request_size=4 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 09 00 00 [08:05:07]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [08:05:07]RAPDU: 90 00 [08:05:07]wFMCommunicate OK [08:05:07]SAM_PROTO_ClearQueue done [08:05:07]KKMCreateOFDPacket [08:05:07]OFDProtocolAddRootSTLVToBuf [08:05:07]FM_MakeSignedData [08:05:07]FM_MakeSignedData [08:05:07]SAM_PROTO_SignData [08:05:07]wFMCommunicate request_size=4 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 0D 01 02 [08:05:07]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [08:05:07]RAPDU: 90 00 [08:05:07]wFMCommunicate OK [08:05:07]wFMCommunicate request_size=255 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 33 79 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [08:05:07]Write to MH i2c: E2 02 01 6B 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 33 79 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 D6 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [08:05:07]RAPDU: 90 00 [08:05:07]wFMCommunicate OK [08:05:07]wFMCommunicate request_size=32 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 D9 9B 00 00 35 04 06 00 0A 2E E4 F4 BA EA [08:05:07]Write to MH i2c: E2 23 00 6C 02 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 D9 9B 00 00 35 04 06 00 0A 2E E4 F4 BA EA 00 00 72 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [08:05:07]RAPDU: 90 00 [08:05:07]wFMCommunicate OK [08:05:07]wFMCommunicate request_size=4 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 0D 03 02 [08:05:07]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 0B 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 0B 00 6D 02 00 6E B7 69 E3 89 F8 11 56 90 00 44 [08:05:07]RAPDU: 6E B7 69 E3 89 F8 11 56 90 00 [08:05:07]wFMCommunicate OK [08:05:07]SAM_PROTO_SignData done [08:05:07]FM_MakeSignedData done [08:05:07]CreateOFDProtocolMessage [08:05:07]wFMCommunicate request_size=4 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 11 00 00 [08:05:07]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 17 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 42 [08:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:05:07]wFMCommunicate OK [08:05:07]CreateOFDProtocolMessage done [08:05:07]OFDSenderStorePacket 39897 [08:05:07]StoreOFDPacket docnum=39897 [08:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 F0 70 1D 01 E4 74 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 33 79 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D9 9B 00 00 35 04 06 00 0A 2E E4 F4 BA EA 6E B7 69 E3 89 F8 11 56 [08:05:07]CheckFolder [08:05:07]dirname=/storage/ofd_packets [08:05:07]CheckFolder done [08:05:07]ProducePacketName [08:05:07]name=ofd_packets/00039897 [08:05:07]NVStorageSaveData ofd_packets/00039897 [08:05:07]File name is /storage/ofd_packets/00039897 [08:05:07]Write 323 bytes [08:05:07]NVStorageSaveData done [08:05:07]OFDSenderStorePacket done [08:05:07]KKMCreateOFDPacket done [08:05:07]NVStorageSaveData kkm_last_timestamp [08:05:07]File name is /storage/kkm_last_timestamp [08:05:07]Write 4 bytes [08:05:07]NVStorageSaveData done [08:05:07]ExternCall_PrintAddStr [08:05:07]wPrintStart [08:05:07]Write to MH i2c: 01 00 00 6F 02 71 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [08:05:07]RasterBufferAndPrint [08:05:07]line Счет N : (3)176456 [08:05:07]line ИНН: 02508201610067 [08:05:07]line Контрольно-Кассовый Чек [08:05:07]line ПРОДАЖА [08:05:07]line Товар: 4780014240406 [08:05:07]line Сигареты Sovereign Blue [08:05:07]line 1.000 * 130.00 [08:05:07]line = 130.00 [08:05:07]line НДС 12% НСП 1% [08:05:07]line > о реализуемом товаре [08:05:07]line ИТОГО: 130.00 [08:05:07]line НСП 1% : 1.15 [08:05:07]line НДС 12% : 13.80 [08:05:07]line Наличными: 130.00 [08:05:07]line Безнал.: 0.00 [08:05:07]line Место: АЗС № 63 "Партнер Нефть" [08:05:07]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:05:07]line СНО: Общий режим [08:05:07]line Чек 15 03.06.2024 08:05 [08:05:07]line Смена: 376 ФФД: 1.0 [08:05:07]line ЗНМ: 0300000037 [08:05:07]line РНМ: 0000000000092680 [08:05:08]line Версия ККМ: 001 [08:05:08]line ФМ: 0000000000874882 [08:05:08]line ФД: 39897 [08:05:08]line ФПД: 11196526017258 [08:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080507&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39897&fm=11196526017258&tin=02508201610067®Number=0000000000092680&sum=13000 [08:05:08]line 0 [08:05:08]OFD Sender: Processing packet 39897 [packets to send 5, broken 4] [08:05:08]ProducePacketName [08:05:08]name=ofd_packets/00039897 [08:05:08]OFD Sender: To server: pG, [08:05:08]CommunicateWithHost lk.salyk.kg:30040 [08:05:08]ConnectInit lk.salyk.kg [08:05:08]written 0, free lines is 4095 [08:05:08]Connected sock=10 [08:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 F0 70 1D 01 E4 74 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 33 79 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 D9 9B 00 00 35 04 06 00 0A 2E E4 F4 BA EA 6E B7 69 E3 89 F8 11 56 [08:05:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D5 F1 47 00 D4 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 38 37 34 38 38 32 10 04 04 00 D9 9B 00 00 F4 03 04 00 E0 21 5D 66 B6 04 01 00 00 9C 4A 6D 63 DE FA F6 6F [08:05:08]CommunicateWithHost err = 0 [08:05:08]CheckOFDResponse [08:05:08]1017 (14) - 77093643461234 [08:05:08]1041 (16) - 0000000000874882 [08:05:08]1040 (4) - 39897 [08:05:08]1012 (4) - 03.06.2024 01:52 [08:05:08]1206 (1) - 0 [08:05:08]OFD Sender: Remove packet 39897 [08:05:08]ProducePacketName [08:05:08]name=ofd_packets/00039897 [08:05:08]NVStorageDeleteData [08:05:08]Write to MH i2c: 01 00 00 97 02 99 [08:05:08]Write i2c OK [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: 01 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: 01 07 00 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 23 0D D0 [08:05:08]RasterBufferAndPrint [08:05:08]line [08:05:08]line [08:05:08]line [08:05:08]line [08:05:08]line [08:05:08]written 0, free lines is 3369 [08:05:08]MH_Cut [08:05:08]Write to MH i2c: D1 01 00 9E 02 01 72 [08:05:08]Write i2c OK [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: D1 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: D1 01 00 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: D1 01 00 9E 02 00 71 [08:05:08]Write to MH i2c: 01 00 00 9F 02 A1 [08:05:08]Write i2c OK [08:05:08]MH_I2C_Read... [08:05:09]OFD Sender: No OFD packet to send [08:05:09]*** Cut start [08:05:09]*** Partial cut [08:05:09]*** CUTSNS_PIN = 1 [08:05:09]*** CUTSNS_PIN = 0 [08:05:09]*** Brake cut motor [08:05:10]Read from MH i2c: 01 [08:05:10]MH_I2C_Read... [08:05:10]*** Stop cut motor [08:05:10]*** Cut end [08:05:10]Read from MH i2c: 01 07 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [08:05:10]process_action close_receipt done [08:05:10]requested_data is exist [08:05:10]produce_requested_data [08:05:10]requested_item fm.sn is exist - process it [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 11 00 00 [08:05:10]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 17 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 74 [08:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:05:10]wFMCommunicate OK [08:05:10]requested_item fd.num is exist - process it [08:05:10]SAM_PROTO_GetFieldsCounters [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 13 00 00 [08:05:10]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 62 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [08:05:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 D9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:10]wFMCommunicate OK [08:05:10]SAM_PROTO_GetFieldsCounters done [08:05:10]requested_item shift.num is exist - process it [08:05:10]requested_item shift.opened is exist - process it [08:05:10]req_shift_opened [08:05:10]FM_GetShiftState [08:05:10]SAM_PROTO_GetShiftState [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 13 01 00 [08:05:10]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 0E 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 44 [08:05:10]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:05:10]wFMCommunicate OK [08:05:10]SAM_PROTO_GetShiftState done [08:05:10]FM_GetShiftState done [08:05:10]req_shift_opened done [08:05:10]requested_item shift.open_date is exist - process it [08:05:10]req_shift_open_date [08:05:10]req_shift_open_date done [08:05:10]produce_requested_data done [08:05:10]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39897,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:05:10]process_action_free close_receipt [08:05:10]json_value_free [08:05:10]json_value_free done [08:05:10]process_json_proto returns [08:05:10]Send response to host [08:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39897,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:05:10]free response buf [08:05:10]execute_script done [08:05:10]execute_script returns [08:05:10]free content buf [08:05:10]Sock 8.Close socket [08:05:10]Sock 8.Thread stoped [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18: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:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:43]accept exits with 9 [08:25:43]New connection [08:25:43]New thread 3067182436 created [08:25:43]Thread 3067325796 joined [08:25:43]Waiting for new connection... [08:25:43] Sock 9.Parse request [08:25:43]Sock 9.Check first char [08:25:43]Sock 9.First char is OK [08:25:43]request: POST /json_proto HTTP/1.0 [08:25:43]Method: POST [08:25:43]URL: /json_proto [08:25:43]Method is POST - this is cgi request [08:25:43]url: /json_proto [08:25:43]query_string will be loaded in cgi processing [08:25:43]execute_cgi json_proto POST (null) [08:25:43]execute_cgi path=json_proto method=POST [08:25:43]POST find Content-Length [08:25:43]Host: 172.17.36.199:8080 [08:25:43]Content-Length: 640 [08:25:43]Content-Type: application/json [08:25:43] [08:25:43]POST finish read [08:25:43]Found Content-Length = 640 [08:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176457", "tax_sys" : 0, "items" : [ { "code": "4650243870685", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:43]execute_script... [08:25:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176457", "tax_sys" : 0, "items" : [ { "code": "4650243870685", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:43]POST & json_proto [08:25:43]process_json_proto [08:25:43]json parsed OK: [08:25:43]protocol is kg_v1.0 [08:25:43]action value=close_receipt [08:25:43]process_action close_receipt [08:25:43]cmd_close_receipt [08:25:43]MH_GetDate [08:25:43]Write to MH i2c: F0 00 00 A3 02 94 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 09 00 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 09 00 A3 02 00 08 7E 5D 66 91 46 04 65 26 [08:25:43]GetLastDocTimeStamp 1717401907 [08:25:43]current date 1717403144 [08:25:43]FM_GetShiftState [08:25:43]SAM_PROTO_GetShiftState [08:25:43]wFMCommunicate request_size=4 [08:25:43]MH_SAM_APDU [08:25:43]CAPDU: 80 13 01 00 [08:25:43]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:43]Read from MH i2c: E2 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 0E 00 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 46 [08:25:43]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:25:43]wFMCommunicate OK [08:25:43]SAM_PROTO_GetShiftState done [08:25:43]FM_GetShiftState done [08:25:43]opened in 1717373769 [08:25:43]opened+sec_in_day 1717460169 [08:25:43]quantity*price = 11000 [08:25:43]sum+1 = 11001 [08:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 16 03.06.2024 08:25 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39898 ФПД: 273067751493853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082544&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39898&fm=273067751493853&tin=02508201610067®Number=0000000000092680&sum=11000 0 [08:25:44]StoreToDocumentArchive [08:25:44]shift 376 fd 39898 [08:25:44]save to /storage/0376/doc_00039898 [08:25:44]save last doc name /storage/0376/doc_00039898 to /storage/kkm_last_doc_name [08:25:44]save OK [08:25:44]Clear old archive folders... [08:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:25:44]tlvbuf is 00DF9EB0 [08:25:44]SAM_PROTO_ClearQueue [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 09 00 00 [08:25:44]Write to MH i2c: E2 08 00 B1 02 80 09 00 00 00 00 00 00 25 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]SAM_PROTO_ClearQueue done [08:25:44]KKMCreateOFDPacket [08:25:44]OFDProtocolAddRootSTLVToBuf [08:25:44]FM_MakeSignedData [08:25:44]FM_MakeSignedData [08:25:44]SAM_PROTO_SignData [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 01 02 [08:25:44]Write to MH i2c: E2 08 00 B2 02 80 0D 01 02 00 00 00 00 2D [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=255 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 08 7E 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 [08:25:44]Write to MH i2c: E2 02 01 B3 02 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 08 7E 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 00 00 68 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=43 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DA 9B 00 00 35 04 06 00 F8 5A 8A 53 D0 DD [08:25:44]Write to MH i2c: E2 2E 00 B4 02 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DA 9B 00 00 35 04 06 00 F8 5A 8A 53 D0 DD 00 00 6E [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 03 02 [08:25:44]Write to MH i2c: E2 08 00 B5 02 80 0D 03 02 00 00 00 00 32 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 0B 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 0B 00 B5 02 00 04 3A FC 5E 60 F7 63 EB 90 00 70 [08:25:44]RAPDU: 04 3A FC 5E 60 F7 63 EB 90 00 [08:25:44]wFMCommunicate OK [08:25:44]SAM_PROTO_SignData done [08:25:44]FM_MakeSignedData done [08:25:44]CreateOFDProtocolMessage [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 11 00 00 [08:25:44]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 17 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8A [08:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:25:44]wFMCommunicate OK [08:25:44]CreateOFDProtocolMessage done [08:25:44]OFDSenderStorePacket 39898 [08:25:44]StoreOFDPacket docnum=39898 [08:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 30 01 00 00 88 44 28 01 A2 79 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 08 7E 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DA 9B 00 00 35 04 06 00 F8 5A 8A 53 D0 DD 04 3A FC 5E 60 F7 63 EB [08:25:44]CheckFolder [08:25:44]dirname=/storage/ofd_packets [08:25:44]CheckFolder done [08:25:44]ProducePacketName [08:25:44]name=ofd_packets/00039898 [08:25:44]NVStorageSaveData ofd_packets/00039898 [08:25:44]File name is /storage/ofd_packets/00039898 [08:25:44]Write 334 bytes [08:25:44]NVStorageSaveData done [08:25:44]OFDSenderStorePacket done [08:25:44]KKMCreateOFDPacket done [08:25:44]NVStorageSaveData kkm_last_timestamp [08:25:44]File name is /storage/kkm_last_timestamp [08:25:44]Write 4 bytes [08:25:44]NVStorageSaveData done [08:25:44]ExternCall_PrintAddStr [08:25:44]wPrintStart [08:25:44]Write to MH i2c: 01 00 00 B7 02 B9 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 07 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [08:25:44]RasterBufferAndPrint [08:25:44]line Счет N : (3)176457 [08:25:44]line ИНН: 02508201610067 [08:25:44]line Контрольно-Кассовый Чек [08:25:44]line ПРОДАЖА [08:25:44]line Товар: 4650243870685 [08:25:44]line Напиток Gorilla ж/б 0,450л EXTRA [08:25:44]line 1.000 * 110.00 [08:25:44]line = 110.00 [08:25:44]line НДС 12% НСП 1% [08:25:44]line > о реализуемом товаре [08:25:44]line ИТОГО: 110.00 [08:25:44]line НСП 1% : 0.97 [08:25:44]line НДС 12% : 11.68 [08:25:44]line Наличными: 110.00 [08:25:44]line Безнал.: 0.00 [08:25:44]line Место: АЗС № 63 "Партнер Нефть" [08:25:44]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:25:44]line СНО: Общий режим [08:25:44]line Чек 16 03.06.2024 08:25 [08:25:44]line Смена: 376 ФФД: 1.0 [08:25:44]line ЗНМ: 0300000037 [08:25:44]line РНМ: 0000000000092680 [08:25:44]line Версия ККМ: 001 [08:25:44]line ФМ: 0000000000874882 [08:25:44]line ФД: 39898 [08:25:44]line ФПД: 273067751493853 [08:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082544&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39898&fm=273067751493853&tin=02508201610067®Number=0000000000092680&sum=11000 [08:25:45]line 0 [08:25:45]OFD Sender: Processing packet 39898 [packets to send 5, broken 4] [08:25:45]ProducePacketName [08:25:45]name=ofd_packets/00039898 [08:25:45]OFD Sender: To server: pG, [08:25:45]CommunicateWithHost lk.salyk.kg:30040 [08:25:45]ConnectInit lk.salyk.kg [08:25:45]written 0, free lines is 4095 [08:25:45]Connected sock=10 [08:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 30 01 00 00 88 44 28 01 A2 79 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 08 7E 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DA 9B 00 00 35 04 06 00 F8 5A 8A 53 D0 DD 04 3A FC 5E 60 F7 63 EB [08:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 54 A2 47 00 98 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DA 9B 00 00 F4 03 04 00 B5 26 5D 66 B6 04 01 00 00 10 00 B8 96 B6 90 FC 5C [08:25:45]CommunicateWithHost err = 0 [08:25:45]CheckOFDResponse [08:25:45]1017 (14) - 77093643461234 [08:25:45]1041 (16) - 0000000000874882 [08:25:45]1040 (4) - 39898 [08:25:45]1012 (4) - 03.06.2024 02:13 [08:25:45]1206 (1) - 0 [08:25:45]OFD Sender: Remove packet 39898 [08:25:45]ProducePacketName [08:25:45]name=ofd_packets/00039898 [08:25:45]NVStorageDeleteData [08:25:45]Write to MH i2c: 01 00 00 E0 02 E2 [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 07 00 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 16 0D 0C [08:25:45]RasterBufferAndPrint [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]written 0, free lines is 3357 [08:25:45]MH_Cut [08:25:45]Write to MH i2c: D1 01 00 E7 02 01 BB [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 01 00 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 01 00 E7 02 00 BA [08:25:45]Write to MH i2c: 01 00 00 E8 02 EA [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:46]OFD Sender: No OFD packet to send [08:25:46]*** Cut start [08:25:46]*** Partial cut [08:25:46]*** CUTSNS_PIN = 1 [08:25:46]*** CUTSNS_PIN = 0 [08:25:46]*** Brake cut motor [08:25:46]Read from MH i2c: 01 [08:25:46]MH_I2C_Read... [08:25:46]*** Stop cut motor [08:25:46]*** Cut end [08:25:46]Read from MH i2c: 01 07 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 FF 0F FF [08:25:46]process_action close_receipt done [08:25:46]requested_data is exist [08:25:46]produce_requested_data [08:25:46]requested_item fm.sn is exist - process it [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 11 00 00 [08:25:46]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:47]Read from MH i2c: E2 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 17 00 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BD [08:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:25:47]wFMCommunicate OK [08:25:47]requested_item fd.num is exist - process it [08:25:47]SAM_PROTO_GetFieldsCounters [08:25:47]wFMCommunicate request_size=4 [08:25:47]MH_SAM_APDU [08:25:47]CAPDU: 80 13 00 00 [08:25:47]Write to MH i2c: E2 08 00 EA 02 80 13 00 00 00 00 00 00 68 [08:25:47]Write i2c OK [08:25:47]MH_I2C_Read... [08:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:47]Read from MH i2c: E2 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 62 00 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 62 00 EA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [08:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:47]wFMCommunicate OK [08:25:47]SAM_PROTO_GetFieldsCounters done [08:25:47]requested_item shift.num is exist - process it [08:25:47]requested_item shift.opened is exist - process it [08:25:47]req_shift_opened [08:25:47]FM_GetShiftState [08:25:47]SAM_PROTO_GetShiftState [08:25:47]wFMCommunicate request_size=4 [08:25:47]MH_SAM_APDU [08:25:47]CAPDU: 80 13 01 00 [08:25:47]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [08:25:47]Write i2c OK [08:25:47]MH_I2C_Read... [08:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:47]Read from MH i2c: E2 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 0E 00 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8D [08:25:47]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:25:47]wFMCommunicate OK [08:25:47]SAM_PROTO_GetShiftState done [08:25:47]FM_GetShiftState done [08:25:47]req_shift_opened done [08:25:47]requested_item shift.open_date is exist - process it [08:25:47]req_shift_open_date [08:25:47]req_shift_open_date done [08:25:47]produce_requested_data done [08:25:47]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39898,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:25:47]process_action_free close_receipt [08:25:47]json_value_free [08:25:47]json_value_free done [08:25:47]process_json_proto returns [08:25:47]Send response to host [08:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39898,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:25:47]free response buf [08:25:47]execute_script done [08:25:47]execute_script returns [08:25:47]free content buf [08:25:47]Sock 9.Close socket [08:25:47]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]accept exits with 8 [08:32:31]New connection [08:32:31]New thread 3067325796 created [08:32:31]Thread 3067182436 joined [08:32:31]Waiting for new connection... [08:32:31] Sock 8.Parse request [08:32:31]Sock 8.Check first char [08:32:31]Sock 8.First char is OK [08:32:31]request: POST /json_proto HTTP/1.0 [08:32:31]Method: POST [08:32:31]URL: /json_proto [08:32:31]Method is POST - this is cgi request [08:32:31]url: /json_proto [08:32:31]query_string will be loaded in cgi processing [08:32:31]execute_cgi json_proto POST (null) [08:32:31]execute_cgi path=json_proto method=POST [08:32:31]POST find Content-Length [08:32:31]Host: 172.17.36.199:8080 [08:32:31]Content-Length: 634 [08:32:31]Content-Type: application/json [08:32:31] [08:32:31]POST finish read [08:32:31]Found Content-Length = 634 [08:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176458", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 4.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:31]execute_script... [08:32:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176458", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 4.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:31]POST & json_proto [08:32:31]process_json_proto [08:32:31]json parsed OK: [08:32:31]protocol is kg_v1.0 [08:32:31]action value=close_receipt [08:32:31]process_action close_receipt [08:32:31]cmd_close_receipt [08:32:31]MH_GetDate [08:32:31]Write to MH i2c: F0 00 00 EC 02 DD [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: F0 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: F0 09 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: F0 09 00 EC 02 00 A0 7F 5D 66 91 46 04 65 08 [08:32:31]GetLastDocTimeStamp 1717403144 [08:32:31]current date 1717403552 [08:32:31]FM_GetShiftState [08:32:31]SAM_PROTO_GetShiftState [08:32:31]wFMCommunicate request_size=4 [08:32:31]MH_SAM_APDU [08:32:31]CAPDU: 80 13 01 00 [08:32:31]Write to MH i2c: E2 08 00 ED 02 80 13 01 00 00 00 00 00 6C [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:31]Read from MH i2c: E2 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: E2 0E 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: E2 0E 00 ED 02 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8F [08:32:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:32:31]wFMCommunicate OK [08:32:31]SAM_PROTO_GetShiftState done [08:32:31]FM_GetShiftState done [08:32:31]opened in 1717373769 [08:32:31]opened+sec_in_day 1717460169 [08:32:31]quantity*price = 24000 [08:32:31]sum+1 = 24001 [08:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 17 03.06.2024 08:32 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39899 ФПД: 248596988070295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083232&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39899&fm=248596988070295&tin=02508201610067®Number=0000000000092680&sum=24000 0 [08:32:32]StoreToDocumentArchive [08:32:32]shift 376 fd 39899 [08:32:32]save to /storage/0376/doc_00039899 [08:32:32]save last doc name /storage/0376/doc_00039899 to /storage/kkm_last_doc_name [08:32:32]save OK [08:32:32]Clear old archive folders... [08:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:32:32]tlvbuf is 00DF57B0 [08:32:32]SAM_PROTO_ClearQueue [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 09 00 00 [08:32:32]Write to MH i2c: E2 08 00 FA 02 80 09 00 00 00 00 00 00 6E [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [08:32:32]RAPDU: 90 00 [08:32:32]wFMCommunicate OK [08:32:32]SAM_PROTO_ClearQueue done [08:32:32]KKMCreateOFDPacket [08:32:32]OFDProtocolAddRootSTLVToBuf [08:32:32]FM_MakeSignedData [08:32:32]FM_MakeSignedData [08:32:32]SAM_PROTO_SignData [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 0D 01 02 [08:32:32]Write to MH i2c: E2 08 00 FB 02 80 0D 01 02 00 00 00 00 76 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [08:32:32]RAPDU: 90 00 [08:32:32]wFMCommunicate OK [08:32:32]wFMCommunicate request_size=255 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A0 7F 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:32:32]Write to MH i2c: E2 02 01 FC 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A0 7F 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 CC [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [08:32:32]RAPDU: 90 00 [08:32:32]wFMCommunicate OK [08:32:32]wFMCommunicate request_size=30 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 DB 9B 00 00 35 04 06 00 E2 18 FF 2A 89 97 [08:32:32]Write to MH i2c: E2 21 00 FD 02 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 DB 9B 00 00 35 04 06 00 E2 18 FF 2A 89 97 00 00 30 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [08:32:32]RAPDU: 90 00 [08:32:32]wFMCommunicate OK [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 0D 03 02 [08:32:32]Write to MH i2c: E2 08 00 FE 02 80 0D 03 02 00 00 00 00 7B [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0B 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0B 00 FE 02 00 0B 0F C1 B2 D6 0E F3 D5 90 00 B5 [08:32:32]RAPDU: 0B 0F C1 B2 D6 0E F3 D5 90 00 [08:32:32]wFMCommunicate OK [08:32:32]SAM_PROTO_SignData done [08:32:32]FM_MakeSignedData done [08:32:32]CreateOFDProtocolMessage [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 11 00 00 [08:32:32]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 17 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D3 [08:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:32:32]wFMCommunicate OK [08:32:32]CreateOFDProtocolMessage done [08:32:32]OFDSenderStorePacket 39899 [08:32:32]StoreOFDPacket docnum=39899 [08:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 1D 94 1B 01 4C 81 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A0 7F 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DB 9B 00 00 35 04 06 00 E2 18 FF 2A 89 97 0B 0F C1 B2 D6 0E F3 D5 [08:32:32]CheckFolder [08:32:32]dirname=/storage/ofd_packets [08:32:32]CheckFolder done [08:32:32]ProducePacketName [08:32:32]name=ofd_packets/00039899 [08:32:32]NVStorageSaveData ofd_packets/00039899 [08:32:32]File name is /storage/ofd_packets/00039899 [08:32:32]Write 321 bytes [08:32:32]NVStorageSaveData done [08:32:32]OFDSenderStorePacket done [08:32:32]KKMCreateOFDPacket done [08:32:32]NVStorageSaveData kkm_last_timestamp [08:32:32]File name is /storage/kkm_last_timestamp [08:32:32]Write 4 bytes [08:32:32]NVStorageSaveData done [08:32:32]ExternCall_PrintAddStr [08:32:32]wPrintStart [08:32:32]Write to MH i2c: 01 00 00 00 03 03 [08:32:32]OFD Sender: Processing packet 39899 [packets to send 5, broken 4] [08:32:32]ProducePacketName [08:32:32]name=ofd_packets/00039899 [08:32:32]OFD Sender: To server: pG, [08:32:32]CommunicateWithHost lk.salyk.kg:30040 [08:32:32]ConnectInit lk.salyk.kg [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: 01 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: 01 07 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [08:32:32]RasterBufferAndPrint [08:32:32]line Счет N : (3)176458 [08:32:32]line ИНН: 02508201610067 [08:32:32]line Контрольно-Кассовый Чек [08:32:32]line ПРОДАЖА [08:32:32]line Товар: 4700025314002 [08:32:32]line ВОДКА МЯГКАЯ 0,1л [08:32:32]line 4.000 * 60.00 [08:32:32]line = 240.00 [08:32:32]line НДС 12% НСП 1% [08:32:32]line > о реализуемом товаре [08:32:32]line ИТОГО: 240.00 [08:32:32]line НСП 1% : 2.12 [08:32:32]line НДС 12% : 25.49 [08:32:32]line Наличными: 240.00 [08:32:32]line Безнал.: 0.00 [08:32:32]line Место: АЗС № 63 "Партнер Нефть" [08:32:32]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:32:32]line СНО: Общий режим [08:32:32]line Чек 17 03.06.2024 08:32 [08:32:32]line Смена: 376 ФФД: 1.0 [08:32:32]line ЗНМ: 0300000037 [08:32:32]line РНМ: 0000000000092680 [08:32:32]line Версия ККМ: 001 [08:32:32]line ФМ: 0000000000874882 [08:32:32]line ФД: 39899 [08:32:32]line ФПД: 248596988070295 [08:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083232&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39899&fm=248596988070295&tin=02508201610067®Number=0000000000092680&sum=24000 [08:32:32]line 0 [08:32:32]written 0, free lines is 4095 [08:32:33]Connected sock=10 [08:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 1D 94 1B 01 4C 81 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A0 7F 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DB 9B 00 00 35 04 06 00 E2 18 FF 2A 89 97 0B 0F C1 B2 D6 0E F3 D5 [08:32:33]Write to MH i2c: 01 00 00 28 03 2B [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 23 0D 62 [08:32:33]RasterBufferAndPrint [08:32:33]line [08:32:33]line [08:32:33]line [08:32:33]line [08:32:33]line [08:32:33]written 0, free lines is 3372 [08:32:33]MH_Cut [08:32:33]Write to MH i2c: D1 01 00 2F 03 01 04 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: D1 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: D1 01 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: D1 01 00 2F 03 00 03 [08:32:33]Write to MH i2c: 01 00 00 30 03 33 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 C5 55 47 00 61 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 38 37 34 38 38 32 10 04 04 00 DB 9B 00 00 F4 03 04 00 4D 28 5D 66 B6 04 01 00 00 40 4E 1C 81 DF 61 34 2A [08:32:33]CommunicateWithHost err = 0 [08:32:33]CheckOFDResponse [08:32:33]1017 (14) - 77093643461234 [08:32:33]1041 (16) - 0000000000874882 [08:32:33]1040 (4) - 39899 [08:32:33]1012 (4) - 03.06.2024 02:19 [08:32:33]1206 (1) - 0 [08:32:33]OFD Sender: Remove packet 39899 [08:32:33]ProducePacketName [08:32:33]name=ofd_packets/00039899 [08:32:33]NVStorageDeleteData [08:32:34]*** Cut start [08:32:34]*** Partial cut [08:32:34]*** CUTSNS_PIN = 1 [08:32:34]OFD Sender: No OFD packet to send [08:32:34]*** CUTSNS_PIN = 0 [08:32:34]*** Brake cut motor [08:32:34]Read from MH i2c: 01 [08:32:34]MH_I2C_Read... [08:32:34]*** Stop cut motor [08:32:34]*** Cut end [08:32:34]Read from MH i2c: 01 07 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [08:32:34]process_action close_receipt done [08:32:34]requested_data is exist [08:32:34]produce_requested_data [08:32:34]requested_item fm.sn is exist - process it [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 11 00 00 [08:32:34]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 17 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 06 [08:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:32:34]wFMCommunicate OK [08:32:34]requested_item fd.num is exist - process it [08:32:34]SAM_PROTO_GetFieldsCounters [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 13 00 00 [08:32:34]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 62 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [08:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:34]wFMCommunicate OK [08:32:34]SAM_PROTO_GetFieldsCounters done [08:32:34]requested_item shift.num is exist - process it [08:32:34]requested_item shift.opened is exist - process it [08:32:34]req_shift_opened [08:32:34]FM_GetShiftState [08:32:34]SAM_PROTO_GetShiftState [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 13 01 00 [08:32:34]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:34]Read from MH i2c: E2 0E 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D6 [08:32:34]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:32:34]wFMCommunicate OK [08:32:34]SAM_PROTO_GetShiftState done [08:32:34]FM_GetShiftState done [08:32:34]req_shift_opened done [08:32:34]requested_item shift.open_date is exist - process it [08:32:34]req_shift_open_date [08:32:34]req_shift_open_date done [08:32:34]produce_requested_data done [08:32:34]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39899,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:32:34]process_action_free close_receipt [08:32:34]json_value_free [08:32:34]json_value_free done [08:32:34]process_json_proto returns [08:32:34]Send response to host [08:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39899,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:32:34]free response buf [08:32:34]execute_script done [08:32:34]execute_script returns [08:32:34]free content buf [08:32:34]Sock 8.Close socket [08:32:34]Sock 8.Thread stoped [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:01]accept exits with 9 [08:50:01]New connection [08:50:01]New thread 3067182436 created [08:50:01]Thread 3067325796 joined [08:50:01]Waiting for new connection... [08:50:01] Sock 9.Parse request [08:50:01]Sock 9.Check first char [08:50:01]Sock 9.First char is OK [08:50:01]request: POST /json_proto HTTP/1.0 [08:50:01]Method: POST [08:50:01]URL: /json_proto [08:50:01]Method is POST - this is cgi request [08:50:01]url: /json_proto [08:50:01]query_string will be loaded in cgi processing [08:50:01]execute_cgi json_proto POST (null) [08:50:01]execute_cgi path=json_proto method=POST [08:50:01]POST find Content-Length [08:50:01]Host: 172.17.36.199:8080 [08:50:01]Content-Length: 645 [08:50:01]Content-Type: application/json [08:50:01] [08:50:01]POST finish read [08:50:01]Found Content-Length = 645 [08:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176459", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:01]execute_script... [08:50:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176459", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:01]POST & json_proto [08:50:01]process_json_proto [08:50:01]json parsed OK: [08:50:01]protocol is kg_v1.0 [08:50:01]action value=close_receipt [08:50:01]process_action close_receipt [08:50:01]cmd_close_receipt [08:50:01]MH_GetDate [08:50:01]Write to MH i2c: F0 00 00 34 03 26 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: F0 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: F0 09 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: F0 09 00 34 03 00 BA 83 5D 66 91 46 04 65 6F [08:50:01]GetLastDocTimeStamp 1717403552 [08:50:01]current date 1717404602 [08:50:01]FM_GetShiftState [08:50:01]SAM_PROTO_GetShiftState [08:50:01]wFMCommunicate request_size=4 [08:50:01]MH_SAM_APDU [08:50:01]CAPDU: 80 13 01 00 [08:50:01]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:01]Read from MH i2c: E2 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 0E 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D8 [08:50:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:50:01]wFMCommunicate OK [08:50:01]SAM_PROTO_GetShiftState done [08:50:01]FM_GetShiftState done [08:50:01]opened in 1717373769 [08:50:01]opened+sec_in_day 1717460169 [08:50:01]quantity*price = 6000 [08:50:01]sum+1 = 6001 [08:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 18 03.06.2024 08:50 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39900 ФПД: 26352420979217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085002&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39900&fm=26352420979217&tin=02508201610067®Number=0000000000092680&sum=6000 0 [08:50:02]StoreToDocumentArchive [08:50:02]shift 376 fd 39900 [08:50:02]save to /storage/0376/doc_00039900 [08:50:02]save last doc name /storage/0376/doc_00039900 to /storage/kkm_last_doc_name [08:50:02]save OK [08:50:02]Clear old archive folders... [08:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:50:02]tlvbuf is 00E0D070 [08:50:02]SAM_PROTO_ClearQueue [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 09 00 00 [08:50:02]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:02]Read from MH i2c: E2 03 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [08:50:02]RAPDU: 90 00 [08:50:02]wFMCommunicate OK [08:50:02]SAM_PROTO_ClearQueue done [08:50:02]KKMCreateOFDPacket [08:50:02]OFDProtocolAddRootSTLVToBuf [08:50:02]FM_MakeSignedData [08:50:02]FM_MakeSignedData [08:50:02]SAM_PROTO_SignData [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 0D 01 02 [08:50:02]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [08:50:02]RAPDU: 90 00 [08:50:02]wFMCommunicate OK [08:50:02]wFMCommunicate request_size=255 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BA 83 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 [08:50:02]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BA 83 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 00 00 85 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [08:50:02]RAPDU: 90 00 [08:50:02]wFMCommunicate OK [08:50:02]wFMCommunicate request_size=35 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DC 9B 00 00 35 04 06 00 17 F7 A6 B1 02 11 [08:50:02]Write to MH i2c: E2 26 00 45 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DC 9B 00 00 35 04 06 00 17 F7 A6 B1 02 11 00 00 A9 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [08:50:02]RAPDU: 90 00 [08:50:02]wFMCommunicate OK [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 0D 03 02 [08:50:02]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 0B 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 0B 00 46 03 00 E1 A8 30 47 A4 B8 38 B1 90 00 0A [08:50:02]RAPDU: E1 A8 30 47 A4 B8 38 B1 90 00 [08:50:02]wFMCommunicate OK [08:50:02]SAM_PROTO_SignData done [08:50:02]FM_MakeSignedData done [08:50:02]CreateOFDProtocolMessage [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 11 00 00 [08:50:02]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1C [08:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:50:02]wFMCommunicate OK [08:50:02]CreateOFDProtocolMessage done [08:50:02]OFDSenderStorePacket 39900 [08:50:02]StoreOFDPacket docnum=39900 [08:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 9D 43 20 01 EF BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BA 83 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DC 9B 00 00 35 04 06 00 17 F7 A6 B1 02 11 E1 A8 30 47 A4 B8 38 B1 [08:50:02]CheckFolder [08:50:02]dirname=/storage/ofd_packets [08:50:02]CheckFolder done [08:50:02]ProducePacketName [08:50:02]name=ofd_packets/00039900 [08:50:02]NVStorageSaveData ofd_packets/00039900 [08:50:02]File name is /storage/ofd_packets/00039900 [08:50:02]Write 326 bytes [08:50:02]NVStorageSaveData done [08:50:02]OFDSenderStorePacket done [08:50:02]KKMCreateOFDPacket done [08:50:02]NVStorageSaveData kkm_last_timestamp [08:50:02]File name is /storage/kkm_last_timestamp [08:50:02]Write 4 bytes [08:50:02]NVStorageSaveData done [08:50:02]ExternCall_PrintAddStr [08:50:02]wPrintStart [08:50:02]Write to MH i2c: 01 00 00 48 03 4B [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: 01 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: 01 07 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [08:50:02]RasterBufferAndPrint [08:50:02]line Счет N : (3)176459 [08:50:02]line ИНН: 02508201610067 [08:50:02]line Контрольно-Кассовый Чек [08:50:02]line ПРОДАЖА [08:50:02]line Товар: 4700000310043 [08:50:02]line Вода Жалалабат 27 1л [08:50:02]line 1.000 * 60.00 [08:50:02]line = 60.00 [08:50:02]line НДС 12% НСП 1% [08:50:02]line > о реализуемом товаре [08:50:02]line ИТОГО: 60.00 [08:50:02]line НСП 1% : 0.53 [08:50:02]line НДС 12% : 6.37 [08:50:02]line Наличными: 60.00 [08:50:02]line Безнал.: 0.00 [08:50:02]line Место: АЗС № 63 "Партнер Нефть" [08:50:02]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:50:02]line СНО: Общий режим [08:50:02]line Чек 18 03.06.2024 08:50 [08:50:02]line Смена: 376 ФФД: 1.0 [08:50:02]line ЗНМ: 0300000037 [08:50:02]line РНМ: 0000000000092680 [08:50:02]line Версия ККМ: 001 [08:50:02]line ФМ: 0000000000874882 [08:50:02]line ФД: 39900 [08:50:02]line ФПД: 26352420979217 [08:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085002&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39900&fm=26352420979217&tin=02508201610067®Number=0000000000092680&sum=6000 [08:50:03]line 0 [08:50:03]OFD Sender: Processing packet 39900 [packets to send 5, broken 4] [08:50:03]ProducePacketName [08:50:03]name=ofd_packets/00039900 [08:50:03]OFD Sender: To server: pG, [08:50:03]CommunicateWithHost lk.salyk.kg:30040 [08:50:03]ConnectInit lk.salyk.kg [08:50:03]written 0, free lines is 4095 [08:50:03]Connected sock=8 [08:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 9D 43 20 01 EF BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BA 83 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DC 9B 00 00 35 04 06 00 17 F7 A6 B1 02 11 E1 A8 30 47 A4 B8 38 B1 [08:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 6E 76 47 00 E7 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DC 9B 00 00 F4 03 04 00 67 2C 5D 66 B6 04 01 00 00 6A 12 47 4D 57 92 4C A9 [08:50:03]CommunicateWithHost err = 0 [08:50:03]CheckOFDResponse [08:50:03]1017 (14) - 77093643461234 [08:50:03]1041 (16) - 0000000000874882 [08:50:03]1040 (4) - 39900 [08:50:03]1012 (4) - 03.06.2024 02:37 [08:50:03]1206 (1) - 0 [08:50:03]OFD Sender: Remove packet 39900 [08:50:03]ProducePacketName [08:50:03]name=ofd_packets/00039900 [08:50:03]NVStorageDeleteData [08:50:03]Write to MH i2c: 01 00 00 70 03 73 [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: 01 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: 01 07 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 26 0D AD [08:50:03]RasterBufferAndPrint [08:50:03]line [08:50:03]line [08:50:03]line [08:50:03]line [08:50:03]line [08:50:03]written 0, free lines is 3376 [08:50:03]MH_Cut [08:50:03]Write to MH i2c: D1 01 00 77 03 01 4C [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: D1 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: D1 01 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: D1 01 00 77 03 00 4B [08:50:03]Write to MH i2c: 01 00 00 78 03 7B [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:04]OFD Sender: No OFD packet to send [08:50:04]*** Cut start [08:50:04]*** Partial cut [08:50:04]*** CUTSNS_PIN = 1 [08:50:04]*** CUTSNS_PIN = 0 [08:50:04]*** Brake cut motor [08:50:04]Read from MH i2c: 01 [08:50:04]MH_I2C_Read... [08:50:04]*** Stop cut motor [08:50:04]*** Cut end [08:50:04]Read from MH i2c: 01 07 00 [08:50:04]MH_I2C_Read... [08:50:04]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [08:50:04]process_action close_receipt done [08:50:04]requested_data is exist [08:50:04]produce_requested_data [08:50:04]requested_item fm.sn is exist - process it [08:50:04]wFMCommunicate request_size=4 [08:50:04]MH_SAM_APDU [08:50:04]CAPDU: 80 11 00 00 [08:50:04]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [08:50:04]Write i2c OK [08:50:04]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 17 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 4E [08:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:50:05]wFMCommunicate OK [08:50:05]requested_item fd.num is exist - process it [08:50:05]SAM_PROTO_GetFieldsCounters [08:50:05]wFMCommunicate request_size=4 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 13 00 00 [08:50:05]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 62 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 62 00 7A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [08:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:05]wFMCommunicate OK [08:50:05]SAM_PROTO_GetFieldsCounters done [08:50:05]requested_item shift.num is exist - process it [08:50:05]requested_item shift.opened is exist - process it [08:50:05]req_shift_opened [08:50:05]FM_GetShiftState [08:50:05]SAM_PROTO_GetShiftState [08:50:05]wFMCommunicate request_size=4 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 13 01 00 [08:50:05]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:05]Read from MH i2c: E2 0E 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1E [08:50:05]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:50:05]wFMCommunicate OK [08:50:05]SAM_PROTO_GetShiftState done [08:50:05]FM_GetShiftState done [08:50:05]req_shift_opened done [08:50:05]requested_item shift.open_date is exist - process it [08:50:05]req_shift_open_date [08:50:05]req_shift_open_date done [08:50:05]produce_requested_data done [08:50:05]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39900,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:50:05]process_action_free close_receipt [08:50:05]json_value_free [08:50:05]json_value_free done [08:50:05]process_json_proto returns [08:50:05]Send response to host [08:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39900,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:50:05]free response buf [08:50:05]execute_script done [08:50:05]execute_script returns [08:50:05]free content buf [08:50:05]Sock 9.Close socket [08:50:05]Sock 9.Thread stoped [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:12]accept exits with 10 [08:55:12]New connection [08:55:12]New thread 3067325796 created [08:55:12]Thread 3067182436 joined [08:55:12]Waiting for new connection... [08:55:12] Sock 10.Parse request [08:55:12]Sock 10.Check first char [08:55:12]Sock 10.First char is OK [08:55:12]request: POST /json_proto HTTP/1.0 [08:55:12]Method: POST [08:55:12]URL: /json_proto [08:55:12]Method is POST - this is cgi request [08:55:12]url: /json_proto [08:55:12]query_string will be loaded in cgi processing [08:55:12]execute_cgi json_proto POST (null) [08:55:12]execute_cgi path=json_proto method=POST [08:55:12]POST find Content-Length [08:55:12]Host: 172.17.36.199:8080 [08:55:12]Content-Length: 626 [08:55:12]Content-Type: application/json [08:55:12] [08:55:12]POST finish read [08:55:12]Found Content-Length = 626 [08:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176460", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:12]execute_script... [08:55:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176460", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:12]POST & json_proto [08:55:12]process_json_proto [08:55:12]json parsed OK: [08:55:12]protocol is kg_v1.0 [08:55:12]action value=close_receipt [08:55:12]process_action close_receipt [08:55:12]cmd_close_receipt [08:55:12]MH_GetDate [08:55:12]Write to MH i2c: F0 00 00 7C 03 6E [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: F0 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: F0 09 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: F0 09 00 7C 03 00 F2 84 5D 66 91 46 04 65 F0 [08:55:12]GetLastDocTimeStamp 1717404602 [08:55:12]current date 1717404914 [08:55:12]FM_GetShiftState [08:55:12]SAM_PROTO_GetShiftState [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 13 01 00 [08:55:12]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 20 [08:55:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_GetShiftState done [08:55:12]FM_GetShiftState done [08:55:12]opened in 1717373769 [08:55:12]opened+sec_in_day 1717460169 [08:55:12]quantity*price = 13500 [08:55:12]sum+1 = 13501 [08:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 19 03.06.2024 08:55 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39901 ФПД: 233587393968886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39901&fm=233587393968886&tin=02508201610067®Number=0000000000092680&sum=13500 0 [08:55:14]StoreToDocumentArchive [08:55:14]shift 376 fd 39901 [08:55:14]save to /storage/0376/doc_00039901 [08:55:14]save last doc name /storage/0376/doc_00039901 to /storage/kkm_last_doc_name [08:55:14]save OK [08:55:14]Clear old archive folders... [08:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:55:14]tlvbuf is 00E0CC80 [08:55:14]SAM_PROTO_ClearQueue [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 09 00 00 [08:55:14]Write to MH i2c: E2 08 00 8A 03 80 09 00 00 00 00 00 00 FF [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [08:55:14]RAPDU: 90 00 [08:55:14]wFMCommunicate OK [08:55:14]SAM_PROTO_ClearQueue done [08:55:14]KKMCreateOFDPacket [08:55:14]OFDProtocolAddRootSTLVToBuf [08:55:14]FM_MakeSignedData [08:55:14]FM_MakeSignedData [08:55:14]SAM_PROTO_SignData [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 0D 01 02 [08:55:14]Write to MH i2c: E2 08 00 8B 03 80 0D 01 02 00 00 00 00 07 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [08:55:14]RAPDU: 90 00 [08:55:14]wFMCommunicate OK [08:55:14]wFMCommunicate request_size=255 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F2 84 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 [08:55:14]Write to MH i2c: E2 02 01 8C 03 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F2 84 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 00 00 96 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]OFD Sender: No OFD packet to send [08:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [08:55:14]RAPDU: 90 00 [08:55:14]wFMCommunicate OK [08:55:14]wFMCommunicate request_size=37 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DD 9B 00 00 35 04 06 00 D4 72 4D A4 3A F6 [08:55:14]Write to MH i2c: E2 28 00 8D 03 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DD 9B 00 00 35 04 06 00 D4 72 4D A4 3A F6 00 00 45 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [08:55:14]RAPDU: 90 00 [08:55:14]wFMCommunicate OK [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 0D 03 02 [08:55:14]Write to MH i2c: E2 08 00 8E 03 80 0D 03 02 00 00 00 00 0C [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 0B 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 0B 00 8E 03 00 B2 9F 90 4D 6A 8C 77 7D 90 00 25 [08:55:14]RAPDU: B2 9F 90 4D 6A 8C 77 7D 90 00 [08:55:14]wFMCommunicate OK [08:55:14]SAM_PROTO_SignData done [08:55:14]FM_MakeSignedData done [08:55:14]CreateOFDProtocolMessage [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 11 00 00 [08:55:14]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 17 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 64 [08:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:55:14]wFMCommunicate OK [08:55:14]CreateOFDProtocolMessage done [08:55:14]OFDSenderStorePacket 39901 [08:55:14]StoreOFDPacket docnum=39901 [08:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2A 01 00 00 7C C0 22 01 4F AB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F2 84 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DD 9B 00 00 35 04 06 00 D4 72 4D A4 3A F6 B2 9F 90 4D 6A 8C 77 7D [08:55:14]CheckFolder [08:55:14]dirname=/storage/ofd_packets [08:55:14]CheckFolder done [08:55:14]ProducePacketName [08:55:14]name=ofd_packets/00039901 [08:55:14]NVStorageSaveData ofd_packets/00039901 [08:55:14]File name is /storage/ofd_packets/00039901 [08:55:14]Write 328 bytes [08:55:14]NVStorageSaveData done [08:55:14]OFDSenderStorePacket done [08:55:14]KKMCreateOFDPacket done [08:55:14]NVStorageSaveData kkm_last_timestamp [08:55:14]File name is /storage/kkm_last_timestamp [08:55:14]Write 4 bytes [08:55:14]NVStorageSaveData done [08:55:14]ExternCall_PrintAddStr [08:55:14]wPrintStart [08:55:14]Write to MH i2c: 01 00 00 90 03 93 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: 01 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: 01 07 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [08:55:14]RasterBufferAndPrint [08:55:14]line Счет N : (3)176460 [08:55:14]line ИНН: 02508201610067 [08:55:14]line Контрольно-Кассовый Чек [08:55:14]line ПРОДАЖА [08:55:14]line Товар: 48741224 [08:55:14]line Сигареты Winston Super Slims Blue [08:55:14]line 1.000 * 135.00 [08:55:14]line = 135.00 [08:55:14]line НДС 12% НСП 1% [08:55:14]line > о реализуемом товаре [08:55:14]line ИТОГО: 135.00 [08:55:14]line НСП 1% : 1.19 [08:55:14]line НДС 12% : 14.34 [08:55:14]line Наличными: 135.00 [08:55:14]line Безнал.: 0.00 [08:55:14]line Место: АЗС № 63 "Партнер Нефть" [08:55:14]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:55:14]line СНО: Общий режим [08:55:14]line Чек 19 03.06.2024 08:55 [08:55:14]line Смена: 376 ФФД: 1.0 [08:55:14]line ЗНМ: 0300000037 [08:55:14]line РНМ: 0000000000092680 [08:55:14]line Версия ККМ: 001 [08:55:14]line ФМ: 0000000000874882 [08:55:14]line ФД: 39901 [08:55:14]line ФПД: 233587393968886 [08:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39901&fm=233587393968886&tin=02508201610067®Number=0000000000092680&sum=13500 [08:55:15]line 0 [08:55:15]OFD Sender: Processing packet 39901 [packets to send 5, broken 4] [08:55:15]ProducePacketName [08:55:15]name=ofd_packets/00039901 [08:55:15]OFD Sender: To server: pG, [08:55:15]CommunicateWithHost lk.salyk.kg:30040 [08:55:15]ConnectInit lk.salyk.kg [08:55:15]written 0, free lines is 4095 [08:55:15]Connected sock=9 [08:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2A 01 00 00 7C C0 22 01 4F AB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F2 84 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DD 9B 00 00 35 04 06 00 D4 72 4D A4 3A F6 B2 9F 90 4D 6A 8C 77 7D [08:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 EA EA 47 00 5E 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DD 9B 00 00 F4 03 04 00 9F 2D 5D 66 B6 04 01 00 00 BA 97 A5 2E 22 CC BF FA [08:55:15]CommunicateWithHost err = 0 [08:55:15]CheckOFDResponse [08:55:15]1017 (14) - 77093643461234 [08:55:15]1041 (16) - 0000000000874882 [08:55:15]1040 (4) - 39901 [08:55:15]1012 (4) - 03.06.2024 02:42 [08:55:15]1206 (1) - 0 [08:55:15]OFD Sender: Remove packet 39901 [08:55:15]ProducePacketName [08:55:15]name=ofd_packets/00039901 [08:55:15]NVStorageDeleteData [08:55:15]Write to MH i2c: 01 00 00 B9 03 BC [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: 01 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: 01 07 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FD 0C CC [08:55:15]RasterBufferAndPrint [08:55:15]line [08:55:15]line [08:55:15]line [08:55:15]line [08:55:15]line [08:55:15]written 0, free lines is 3334 [08:55:15]MH_Cut [08:55:15]Write to MH i2c: D1 01 00 C0 03 01 95 [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: D1 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: D1 01 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: D1 01 00 C0 03 00 94 [08:55:15]Write to MH i2c: 01 00 00 C1 03 C4 [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]OFD Sender: No OFD packet to send [08:55:16]*** Cut start [08:55:16]*** Partial cut [08:55:16]*** CUTSNS_PIN = 1 [08:55:16]*** CUTSNS_PIN = 0 [08:55:16]*** Brake cut motor [08:55:16]Read from MH i2c: 01 [08:55:16]MH_I2C_Read... [08:55:16]*** Stop cut motor [08:55:16]*** Cut end [08:55:16]Read from MH i2c: 01 07 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [08:55:16]process_action close_receipt done [08:55:16]requested_data is exist [08:55:16]produce_requested_data [08:55:16]requested_item fm.sn is exist - process it [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 11 00 00 [08:55:16]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:16]Read from MH i2c: E2 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 17 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 97 [08:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:55:16]wFMCommunicate OK [08:55:16]requested_item fd.num is exist - process it [08:55:16]SAM_PROTO_GetFieldsCounters [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 13 00 00 [08:55:16]Write to MH i2c: E2 08 00 C3 03 80 13 00 00 00 00 00 00 42 [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:16]Read from MH i2c: E2 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 62 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 62 00 C3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DD 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [08:55:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DD 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:16]wFMCommunicate OK [08:55:16]SAM_PROTO_GetFieldsCounters done [08:55:16]requested_item shift.num is exist - process it [08:55:16]requested_item shift.opened is exist - process it [08:55:16]req_shift_opened [08:55:16]FM_GetShiftState [08:55:16]SAM_PROTO_GetShiftState [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 13 01 00 [08:55:16]Write to MH i2c: E2 08 00 C4 03 80 13 01 00 00 00 00 00 44 [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:16]Read from MH i2c: E2 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 0E 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 0E 00 C4 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 67 [08:55:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:55:16]wFMCommunicate OK [08:55:16]SAM_PROTO_GetShiftState done [08:55:16]FM_GetShiftState done [08:55:16]req_shift_opened done [08:55:16]requested_item shift.open_date is exist - process it [08:55:16]req_shift_open_date [08:55:16]req_shift_open_date done [08:55:16]produce_requested_data done [08:55:16]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39901,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:55:16]process_action_free close_receipt [08:55:16]json_value_free [08:55:16]json_value_free done [08:55:16]process_json_proto returns [08:55:16]Send response to host [08:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39901,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:55:16]free response buf [08:55:16]execute_script done [08:55:16]execute_script returns [08:55:16]free content buf [08:55:16]Sock 10.Close socket [08:55:16]Sock 10.Thread stoped [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:18]accept exits with 8 [08:57:18]New connection [08:57:18]New thread 3067182436 created [08:57:18]Thread 3067325796 joined [08:57:18]Waiting for new connection... [08:57:18] Sock 8.Parse request [08:57:18]Sock 8.Check first char [08:57:18]Sock 8.First char is OK [08:57:18]request: POST /json_proto HTTP/1.0 [08:57:18]Method: POST [08:57:18]URL: /json_proto [08:57:18]Method is POST - this is cgi request [08:57:18]url: /json_proto [08:57:18]query_string will be loaded in cgi processing [08:57:18]execute_cgi json_proto POST (null) [08:57:18]execute_cgi path=json_proto method=POST [08:57:18]POST find Content-Length [08:57:18]Host: 172.17.36.199:8080 [08:57:18]Content-Length: 805 [08:57:18]Content-Type: application/json [08:57:18] [08:57:18]POST finish read [08:57:18]Found Content-Length = 805 [08:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176461", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:18]execute_script... [08:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176461", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:18]POST & json_proto [08:57:18]process_json_proto [08:57:18]json parsed OK: [08:57:18]protocol is kg_v1.0 [08:57:18]action value=close_receipt [08:57:18]process_action close_receipt [08:57:18]cmd_close_receipt [08:57:18]MH_GetDate [08:57:18]Write to MH i2c: F0 00 00 C5 03 B7 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 09 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 09 00 C5 03 00 6F 85 5D 66 91 46 04 65 B7 [08:57:18]GetLastDocTimeStamp 1717404914 [08:57:18]current date 1717405039 [08:57:18]FM_GetShiftState [08:57:18]SAM_PROTO_GetShiftState [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 13 01 00 [08:57:18]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0E 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 69 [08:57:18]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:57:18]wFMCommunicate OK [08:57:18]SAM_PROTO_GetShiftState done [08:57:18]FM_GetShiftState done [08:57:18]opened in 1717373769 [08:57:18]opened+sec_in_day 1717460169 [08:57:18]quantity*price = 13000 [08:57:18]sum+1 = 13001 [08:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 20 03.06.2024 08:57 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39902 ФПД: 125023511730240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085719&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39902&fm=125023511730240&tin=02508201610067®Number=0000000000092680&sum=13000 0 [08:57:19]StoreToDocumentArchive [08:57:19]shift 376 fd 39902 [08:57:19]save to /storage/0376/doc_00039902 [08:57:19]save last doc name /storage/0376/doc_00039902 to /storage/kkm_last_doc_name [08:57:19]save OK [08:57:19]Clear old archive folders... [08:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:57:19]tlvbuf is 00E18240 [08:57:19]SAM_PROTO_ClearQueue [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 09 00 00 [08:57:19]Write to MH i2c: E2 08 00 D3 03 80 09 00 00 00 00 00 00 48 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [08:57:19]RAPDU: 90 00 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_ClearQueue done [08:57:19]KKMCreateOFDPacket [08:57:19]OFDProtocolAddRootSTLVToBuf [08:57:19]FM_MakeSignedData [08:57:19]FM_MakeSignedData [08:57:19]SAM_PROTO_SignData [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 0D 01 02 [08:57:19]Write to MH i2c: E2 08 00 D4 03 80 0D 01 02 00 00 00 00 50 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [08:57:19]RAPDU: 90 00 [08:57:19]wFMCommunicate OK [08:57:19]wFMCommunicate request_size=255 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 [08:57:19]Write to MH i2c: E2 02 01 D5 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 00 00 AF [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [08:57:19]RAPDU: 90 00 [08:57:19]wFMCommunicate OK [08:57:19]wFMCommunicate request_size=35 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DE 9B 00 00 35 04 06 00 71 B5 4E 01 58 40 [08:57:19]Write to MH i2c: E2 26 00 D6 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DE 9B 00 00 35 04 06 00 71 B5 4E 01 58 40 00 00 D1 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [08:57:19]RAPDU: 90 00 [08:57:19]wFMCommunicate OK [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 0D 03 02 [08:57:19]Write to MH i2c: E2 08 00 D7 03 80 0D 03 02 00 00 00 00 55 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0B 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0B 00 D7 03 00 03 43 1F 1E DA EC 14 16 90 00 C9 [08:57:19]RAPDU: 03 43 1F 1E DA EC 14 16 90 00 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_SignData done [08:57:19]FM_MakeSignedData done [08:57:19]CreateOFDProtocolMessage [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 11 00 00 [08:57:19]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 AD [08:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:57:19]wFMCommunicate OK [08:57:19]CreateOFDProtocolMessage done [08:57:19]OFDSenderStorePacket 39902 [08:57:19]StoreOFDPacket docnum=39902 [08:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 8B 12 20 01 D4 18 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DE 9B 00 00 35 04 06 00 71 B5 4E 01 58 40 03 43 1F 1E DA EC 14 16 [08:57:19]CheckFolder [08:57:19]dirname=/storage/ofd_packets [08:57:19]CheckFolder done [08:57:19]ProducePacketName [08:57:19]name=ofd_packets/00039902 [08:57:19]NVStorageSaveData ofd_packets/00039902 [08:57:19]File name is /storage/ofd_packets/00039902 [08:57:19]Write 326 bytes [08:57:19]NVStorageSaveData done [08:57:19]OFDSenderStorePacket done [08:57:19]KKMCreateOFDPacket done [08:57:19]NVStorageSaveData kkm_last_timestamp [08:57:19]File name is /storage/kkm_last_timestamp [08:57:19]Write 4 bytes [08:57:19]NVStorageSaveData done [08:57:19]ExternCall_PrintAddStr [08:57:19]wPrintStart [08:57:19]Write to MH i2c: 01 00 00 D9 03 DC [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 07 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [08:57:19]RasterBufferAndPrint [08:57:19]line Счет N : (3)176461 [08:57:19]line ИНН: 02508201610067 [08:57:19]line Контрольно-Кассовый Чек [08:57:19]line ПРОДАЖА [08:57:19]line Товар: 2000036230011 [08:57:19]line Кофе Латте XL(GABB TRADE) [08:57:19]line 1.000 * 130.00 [08:57:19]line = 130.00 [08:57:19]line НДС 12% НСП 1% [08:57:19]line > о реализуемом товаре [08:57:19]line ИТОГО: 130.00 [08:57:19]line НСП 1% : 1.15 [08:57:19]line НДС 12% : 13.80 [08:57:19]line Наличными: 0.00 [08:57:19]line Безнал.: 130.00 [08:57:19]line Место: АЗС № 63 "Партнер Нефть" [08:57:19]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [08:57:19]line СНО: Общий режим [08:57:19]line Чек 20 03.06.2024 08:57 [08:57:19]line Смена: 376 ФФД: 1.0 [08:57:19]line ЗНМ: 0300000037 [08:57:19]line РНМ: 0000000000092680 [08:57:19]line Версия ККМ: 001 [08:57:19]line Платежная система: Бакай Банк [08:57:19]line ФМ: 0000000000874882 [08:57:19]line ФД: 39902 [08:57:19]line ФПД: 125023511730240 [08:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085719&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39902&fm=125023511730240&tin=02508201610067®Number=0000000000092680&sum=13000 [08:57:20]line 0 [08:57:20]OFD Sender: Processing packet 39902 [packets to send 5, broken 4] [08:57:20]ProducePacketName [08:57:20]name=ofd_packets/00039902 [08:57:20]OFD Sender: To server: pG, [08:57:20]CommunicateWithHost lk.salyk.kg:30040 [08:57:20]ConnectInit lk.salyk.kg [08:57:20]written 0, free lines is 4095 [08:57:20]Connected sock=10 [08:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 8B 12 20 01 D4 18 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DE 9B 00 00 35 04 06 00 71 B5 4E 01 58 40 03 43 1F 1E DA EC 14 16 [08:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CC E4 47 00 45 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DE 9B 00 00 F4 03 04 00 1C 2E 5D 66 B6 04 01 00 00 B9 F0 DD D2 90 3E 8E 9F [08:57:20]CommunicateWithHost err = 0 [08:57:20]CheckOFDResponse [08:57:20]1017 (14) - 77093643461234 [08:57:20]1041 (16) - 0000000000874882 [08:57:20]1040 (4) - 39902 [08:57:20]1012 (4) - 03.06.2024 02:44 [08:57:20]1206 (1) - 0 [08:57:20]OFD Sender: Remove packet 39902 [08:57:20]ProducePacketName [08:57:20]name=ofd_packets/00039902 [08:57:20]NVStorageDeleteData [08:57:20]Write to MH i2c: 01 00 00 03 04 07 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 03 04 00 00 00 00 00 0B 0D 26 [08:57:20]RasterBufferAndPrint [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]written 0, free lines is 3348 [08:57:20]MH_Cut [08:57:20]Write to MH i2c: D1 01 00 0A 04 01 E0 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 01 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 01 00 0A 04 00 DF [08:57:20]Write to MH i2c: 01 00 00 0B 04 0F [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:21]OFD Sender: No OFD packet to send [08:57:21]*** Cut start [08:57:21]*** Partial cut [08:57:21]*** CUTSNS_PIN = 1 [08:57:21]*** CUTSNS_PIN = 0 [08:57:21]*** Brake cut motor [08:57:21]Read from MH i2c: 01 [08:57:22]MH_I2C_Read... [08:57:22]*** Stop cut motor [08:57:22]*** Cut end [08:57:22]Read from MH i2c: 01 07 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [08:57:22]process_action close_receipt done [08:57:22]requested_data is exist [08:57:22]produce_requested_data [08:57:22]requested_item fm.sn is exist - process it [08:57:22]wFMCommunicate request_size=4 [08:57:22]MH_SAM_APDU [08:57:22]CAPDU: 80 11 00 00 [08:57:22]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [08:57:22]Write i2c OK [08:57:22]MH_I2C_Read... [08:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:22]Read from MH i2c: E2 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 17 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E2 [08:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [08:57:22]wFMCommunicate OK [08:57:22]requested_item fd.num is exist - process it [08:57:22]SAM_PROTO_GetFieldsCounters [08:57:22]wFMCommunicate request_size=4 [08:57:22]MH_SAM_APDU [08:57:22]CAPDU: 80 13 00 00 [08:57:22]Write to MH i2c: E2 08 00 0D 04 80 13 00 00 00 00 00 00 8D [08:57:22]Write i2c OK [08:57:22]MH_I2C_Read... [08:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:22]Read from MH i2c: E2 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 62 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 62 00 0D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [08:57:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:22]wFMCommunicate OK [08:57:22]SAM_PROTO_GetFieldsCounters done [08:57:22]requested_item shift.num is exist - process it [08:57:22]requested_item shift.opened is exist - process it [08:57:22]req_shift_opened [08:57:22]FM_GetShiftState [08:57:22]SAM_PROTO_GetShiftState [08:57:22]wFMCommunicate request_size=4 [08:57:22]MH_SAM_APDU [08:57:22]CAPDU: 80 13 01 00 [08:57:22]Write to MH i2c: E2 08 00 0E 04 80 13 01 00 00 00 00 00 8F [08:57:22]Write i2c OK [08:57:22]MH_I2C_Read... [08:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:22]Read from MH i2c: E2 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 0E 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 0E 00 0E 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B2 [08:57:22]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [08:57:22]wFMCommunicate OK [08:57:22]SAM_PROTO_GetShiftState done [08:57:22]FM_GetShiftState done [08:57:22]req_shift_opened done [08:57:22]requested_item shift.open_date is exist - process it [08:57:22]req_shift_open_date [08:57:22]req_shift_open_date done [08:57:22]produce_requested_data done [08:57:22]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39902,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [08:57:22]process_action_free close_receipt [08:57:22]json_value_free [08:57:22]json_value_free done [08:57:22]process_json_proto returns [08:57:22]Send response to host [08:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39902,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [08:57:22]free response buf [08:57:22]execute_script done [08:57:22]execute_script returns [08:57:22]free content buf [08:57:22]Sock 8.Close socket [08:57:22]Sock 8.Thread stoped [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:23]accept exits with 9 [09:01:23]New connection [09:01:23]New thread 3067325796 created [09:01:23]Thread 3067182436 joined [09:01:23]Waiting for new connection... [09:01:23] Sock 9.Parse request [09:01:23]Sock 9.Check first char [09:01:23]Sock 9.First char is OK [09:01:23]request: POST /json_proto HTTP/1.0 [09:01:23]Method: POST [09:01:23]URL: /json_proto [09:01:23]Method is POST - this is cgi request [09:01:23]url: /json_proto [09:01:23]query_string will be loaded in cgi processing [09:01:23]execute_cgi json_proto POST (null) [09:01:23]execute_cgi path=json_proto method=POST [09:01:23]POST find Content-Length [09:01:23]Host: 172.17.36.199:8080 [09:01:23]Content-Length: 620 [09:01:23]Content-Type: application/json [09:01:23] [09:01:23]POST finish read [09:01:23]Found Content-Length = 620 [09:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176462", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]execute_script... [09:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176462", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]POST & json_proto [09:01:23]process_json_proto [09:01:23]json parsed OK: [09:01:23]protocol is kg_v1.0 [09:01:23]action value=close_receipt [09:01:23]process_action close_receipt [09:01:23]cmd_close_receipt [09:01:23]MH_GetDate [09:01:23]Write to MH i2c: F0 00 00 0F 04 02 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 09 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 09 00 0F 04 00 64 86 5D 66 91 46 04 65 F8 [09:01:23]GetLastDocTimeStamp 1717405039 [09:01:23]current date 1717405284 [09:01:23]FM_GetShiftState [09:01:23]SAM_PROTO_GetShiftState [09:01:23]wFMCommunicate request_size=4 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 13 01 00 [09:01:23]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0E 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B4 [09:01:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:01:23]wFMCommunicate OK [09:01:23]SAM_PROTO_GetShiftState done [09:01:23]FM_GetShiftState done [09:01:23]opened in 1717373769 [09:01:23]opened+sec_in_day 1717460169 [09:01:23]quantity*price = 13500 [09:01:23]sum+1 = 13501 [09:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 21 03.06.2024 09:01 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39903 ФПД: 79110853790694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090124&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39903&fm=79110853790694&tin=02508201610067®Number=0000000000092680&sum=13500 0 [09:01:24]StoreToDocumentArchive [09:01:24]shift 376 fd 39903 [09:01:24]save to /storage/0376/doc_00039903 [09:01:24]save last doc name /storage/0376/doc_00039903 to /storage/kkm_last_doc_name [09:01:24]save OK [09:01:24]Clear old archive folders... [09:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:01:24]tlvbuf is 00DCBF20 [09:01:24]SAM_PROTO_ClearQueue [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 09 00 00 [09:01:24]Write to MH i2c: E2 08 00 1D 04 80 09 00 00 00 00 00 00 93 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_ClearQueue done [09:01:24]KKMCreateOFDPacket [09:01:24]OFDProtocolAddRootSTLVToBuf [09:01:24]FM_MakeSignedData [09:01:24]FM_MakeSignedData [09:01:24]SAM_PROTO_SignData [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 01 02 [09:01:24]Write to MH i2c: E2 08 00 1E 04 80 0D 01 02 00 00 00 00 9B [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=255 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 64 86 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [09:01:24]Write to MH i2c: E2 02 01 1F 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 64 86 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 91 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=31 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 DF 9B 00 00 35 04 06 00 47 F3 6E 56 8B E6 [09:01:24]Write to MH i2c: E2 22 00 20 04 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 DF 9B 00 00 35 04 06 00 47 F3 6E 56 8B E6 00 00 B7 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 03 02 [09:01:24]Write to MH i2c: E2 08 00 21 04 80 0D 03 02 00 00 00 00 A0 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0B 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0B 00 21 04 00 7D A8 88 8C BF 11 DE 1C 90 00 A4 [09:01:24]RAPDU: 7D A8 88 8C BF 11 DE 1C 90 00 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_SignData done [09:01:24]FM_MakeSignedData done [09:01:24]CreateOFDProtocolMessage [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 11 00 00 [09:01:24]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F8 [09:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:01:24]wFMCommunicate OK [09:01:24]CreateOFDProtocolMessage done [09:01:24]OFDSenderStorePacket 39903 [09:01:24]StoreOFDPacket docnum=39903 [09:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 F0 C3 1C 01 7F 5A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 64 86 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DF 9B 00 00 35 04 06 00 47 F3 6E 56 8B E6 7D A8 88 8C BF 11 DE 1C [09:01:24]CheckFolder [09:01:24]dirname=/storage/ofd_packets [09:01:24]CheckFolder done [09:01:24]ProducePacketName [09:01:24]name=ofd_packets/00039903 [09:01:24]NVStorageSaveData ofd_packets/00039903 [09:01:24]File name is /storage/ofd_packets/00039903 [09:01:24]Write 322 bytes [09:01:24]NVStorageSaveData done [09:01:24]OFDSenderStorePacket done [09:01:24]KKMCreateOFDPacket done [09:01:24]NVStorageSaveData kkm_last_timestamp [09:01:24]File name is /storage/kkm_last_timestamp [09:01:24]Write 4 bytes [09:01:24]NVStorageSaveData done [09:01:24]ExternCall_PrintAddStr [09:01:24]wPrintStart [09:01:24]Write to MH i2c: 01 00 00 23 04 27 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 07 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [09:01:24]RasterBufferAndPrint [09:01:24]line Счет N : (3)176462 [09:01:24]line ИНН: 02508201610067 [09:01:24]line Контрольно-Кассовый Чек [09:01:24]line ПРОДАЖА [09:01:24]line Товар: 48745000 [09:01:24]line Сигареты Winston Purple Mix [09:01:24]line 1.000 * 135.00 [09:01:24]line = 135.00 [09:01:24]line НДС 12% НСП 1% [09:01:24]line > о реализуемом товаре [09:01:24]line ИТОГО: 135.00 [09:01:24]line НСП 1% : 1.19 [09:01:24]line НДС 12% : 14.34 [09:01:24]line Наличными: 135.00 [09:01:24]line Безнал.: 0.00 [09:01:24]line Место: АЗС № 63 "Партнер Нефть" [09:01:24]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:01:24]line СНО: Общий режим [09:01:24]line Чек 21 03.06.2024 09:01 [09:01:24]line Смена: 376 ФФД: 1.0 [09:01:24]line ЗНМ: 0300000037 [09:01:24]line РНМ: 0000000000092680 [09:01:24]line Версия ККМ: 001 [09:01:25]line ФМ: 0000000000874882 [09:01:25]line ФД: 39903 [09:01:25]line ФПД: 79110853790694 [09:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090124&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39903&fm=79110853790694&tin=02508201610067®Number=0000000000092680&sum=13500 [09:01:25]line 0 [09:01:25]OFD Sender: Processing packet 39903 [packets to send 5, broken 4] [09:01:25]ProducePacketName [09:01:25]name=ofd_packets/00039903 [09:01:25]OFD Sender: To server: pG, [09:01:25]CommunicateWithHost lk.salyk.kg:30040 [09:01:25]ConnectInit lk.salyk.kg [09:01:25]written 0, free lines is 4095 [09:01:25]Connected sock=10 [09:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 F0 C3 1C 01 7F 5A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 64 86 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DF 9B 00 00 35 04 06 00 47 F3 6E 56 8B E6 7D A8 88 8C BF 11 DE 1C [09:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 ED 00 47 00 38 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 DF 9B 00 00 F4 03 04 00 11 2F 5D 66 B6 04 01 00 00 B0 95 A2 79 66 05 46 84 [09:01:25]CommunicateWithHost err = 0 [09:01:25]CheckOFDResponse [09:01:25]1017 (14) - 77093643461234 [09:01:25]1041 (16) - 0000000000874882 [09:01:25]1040 (4) - 39903 [09:01:25]1012 (4) - 03.06.2024 02:48 [09:01:25]1206 (1) - 0 [09:01:25]OFD Sender: Remove packet 39903 [09:01:25]ProducePacketName [09:01:25]name=ofd_packets/00039903 [09:01:25]NVStorageDeleteData [09:01:25]Write to MH i2c: 01 00 00 4B 04 4F [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 25 0D 88 [09:01:25]RasterBufferAndPrint [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]written 0, free lines is 3371 [09:01:25]MH_Cut [09:01:25]Write to MH i2c: D1 01 00 52 04 01 28 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 01 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 01 00 52 04 00 27 [09:01:25]Write to MH i2c: 01 00 00 53 04 57 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:26]OFD Sender: No OFD packet to send [09:01:26]*** Cut start [09:01:26]*** Partial cut [09:01:26]*** CUTSNS_PIN = 1 [09:01:26]*** CUTSNS_PIN = 0 [09:01:26]*** Brake cut motor [09:01:26]Read from MH i2c: 01 [09:01:26]MH_I2C_Read... [09:01:26]*** Stop cut motor [09:01:27]*** Cut end [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [09:01:27]process_action close_receipt done [09:01:27]requested_data is exist [09:01:27]produce_requested_data [09:01:27]requested_item fm.sn is exist - process it [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 11 00 00 [09:01:27]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2A [09:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:01:27]wFMCommunicate OK [09:01:27]requested_item fd.num is exist - process it [09:01:27]SAM_PROTO_GetFieldsCounters [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 00 00 [09:01:27]Write to MH i2c: E2 08 00 55 04 80 13 00 00 00 00 00 00 D5 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 55 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [09:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 DF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetFieldsCounters done [09:01:27]requested_item shift.num is exist - process it [09:01:27]requested_item shift.opened is exist - process it [09:01:27]req_shift_opened [09:01:27]FM_GetShiftState [09:01:27]SAM_PROTO_GetShiftState [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 01 00 [09:01:27]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FA [09:01:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetShiftState done [09:01:27]FM_GetShiftState done [09:01:27]req_shift_opened done [09:01:27]requested_item shift.open_date is exist - process it [09:01:27]req_shift_open_date [09:01:27]req_shift_open_date done [09:01:27]produce_requested_data done [09:01:27]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39903,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:01:27]process_action_free close_receipt [09:01:27]json_value_free [09:01:27]json_value_free done [09:01:27]process_json_proto returns [09:01:27]Send response to host [09:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39903,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:01:27]free response buf [09:01:27]execute_script done [09:01:27]execute_script returns [09:01:27]free content buf [09:01:27]Sock 9.Close socket [09:01:27]Sock 9.Thread stoped [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [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:44]accept exits with 8 [09:16:44]New connection [09:16:44]New thread 3067182436 created [09:16:44]Thread 3067325796 joined [09:16:44]Waiting for new connection... [09:16:44] Sock 8.Parse request [09:16:44]Sock 8.Check first char [09:16:44]Sock 8.First char is OK [09:16:44]request: POST /json_proto HTTP/1.0 [09:16:44]Method: POST [09:16:44]URL: /json_proto [09:16:44]Method is POST - this is cgi request [09:16:44]url: /json_proto [09:16:44]query_string will be loaded in cgi processing [09:16:44]execute_cgi json_proto POST (null) [09:16:44]execute_cgi path=json_proto method=POST [09:16:44]POST find Content-Length [09:16:44]Host: 172.17.36.199:8080 [09:16:44]Content-Length: 1437 [09:16:44]Content-Type: application/json [09:16:44] [09:16:44]POST finish read [09:16:44]Found Content-Length = 1437 [09:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176463", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]execute_script... [09:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176463", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]POST & json_proto [09:16:44]process_json_proto [09:16:44]json parsed OK: [09:16:44]protocol is kg_v1.0 [09:16:44]action value=close_receipt [09:16:44]process_action close_receipt [09:16:44]cmd_close_receipt [09:16:44]MH_GetDate [09:16:44]Write to MH i2c: F0 00 00 57 04 4A [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 09 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 09 00 57 04 00 FE 89 5D 66 91 46 04 65 DD [09:16:44]GetLastDocTimeStamp 1717405284 [09:16:44]current date 1717406206 [09:16:44]FM_GetShiftState [09:16:44]SAM_PROTO_GetShiftState [09:16:44]wFMCommunicate request_size=4 [09:16:44]MH_SAM_APDU [09:16:44]CAPDU: 80 13 01 00 [09:16:44]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:45]Read from MH i2c: E2 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 0E 00 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FC [09:16:45]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:16:45]wFMCommunicate OK [09:16:45]SAM_PROTO_GetShiftState done [09:16:45]FM_GetShiftState done [09:16:45]opened in 1717373769 [09:16:45]opened+sec_in_day 1717460169 [09:16:45]quantity*price = 12500 [09:16:45]sum+1 = 12501 [09:16:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 0.00 Безнал.: 250.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 22 03.06.2024 09:16 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39904 ФПД: 272155355772338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091646&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39904&fm=272155355772338&tin=02508201610067®Number=0000000000092680&sum=25000 0 [09:16:45]StoreToDocumentArchive [09:16:45]shift 376 fd 39904 [09:16:45]save to /storage/0376/doc_00039904 [09:16:45]save last doc name /storage/0376/doc_00039904 to /storage/kkm_last_doc_name [09:16:45]save OK [09:16:45]Clear old archive folders... [09:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=524 [09:16:45]tlvbuf is 00DCB860 [09:16:45]SAM_PROTO_ClearQueue [09:16:45]wFMCommunicate request_size=4 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 09 00 00 [09:16:45]Write to MH i2c: E2 08 00 65 04 80 09 00 00 00 00 00 00 DB [09:16:45]Write i2c OK [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 [09:16:45]MH_I2C_Read... [09:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:45]Read from MH i2c: E2 03 00 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [09:16:45]RAPDU: 90 00 [09:16:45]wFMCommunicate OK [09:16:45]SAM_PROTO_ClearQueue done [09:16:45]KKMCreateOFDPacket [09:16:45]OFDProtocolAddRootSTLVToBuf [09:16:45]FM_MakeSignedData [09:16:45]FM_MakeSignedData [09:16:45]SAM_PROTO_SignData [09:16:45]wFMCommunicate request_size=4 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 0D 01 02 [09:16:45]Write to MH i2c: E2 08 00 66 04 80 0D 01 02 00 00 00 00 E3 [09:16:45]Write i2c OK [09:16:45]MH_I2C_Read... [09:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:45]Read from MH i2c: E2 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [09:16:45]RAPDU: 90 00 [09:16:45]wFMCommunicate OK [09:16:45]wFMCommunicate request_size=255 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 0D 02 02 FA 03 00 0C 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [09:16:46]Write to MH i2c: E2 02 01 67 04 80 0D 02 02 FA 00 03 00 0C 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 58 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [09:16:46]RAPDU: 90 00 [09:16:46]wFMCommunicate OK [09:16:46]wFMCommunicate request_size=255 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 89 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [09:16:46]Write to MH i2c: E2 02 01 68 04 80 0D 02 02 FA 00 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 89 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 D0 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [09:16:46]RAPDU: 90 00 [09:16:46]wFMCommunicate OK [09:16:46]wFMCommunicate request_size=33 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E0 9B 00 00 35 04 06 00 F7 86 1B 4D F5 B2 [09:16:46]Write to MH i2c: E2 24 00 69 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E0 9B 00 00 35 04 06 00 F7 86 1B 4D F5 B2 00 00 82 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]OFD Sender: No OFD packet to send [09:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [09:16:46]RAPDU: 90 00 [09:16:46]wFMCommunicate OK [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 0D 03 02 [09:16:46]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0B 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0B 00 6A 04 00 46 7C 6A 63 86 8A F7 50 90 00 D0 [09:16:46]RAPDU: 46 7C 6A 63 86 8A F7 50 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_SignData done [09:16:46]FM_MakeSignedData done [09:16:46]CreateOFDProtocolMessage [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 11 00 00 [09:16:46]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 41 [09:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:16:46]wFMCommunicate OK [09:16:46]CreateOFDProtocolMessage done [09:16:46]OFDSenderStorePacket 39904 [09:16:46]StoreOFDPacket docnum=39904 [09:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 02 00 00 B9 E8 18 02 77 FC 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 89 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E0 9B 00 00 35 04 06 00 F7 86 1B 4D F5 B2 46 7C 6A 63 86 8A F7 50 [09:16:46]CheckFolder [09:16:46]dirname=/storage/ofd_packets [09:16:46]CheckFolder done [09:16:46]ProducePacketName [09:16:46]name=ofd_packets/00039904 [09:16:46]NVStorageSaveData ofd_packets/00039904 [09:16:46]File name is /storage/ofd_packets/00039904 [09:16:46]Write 574 bytes [09:16:46]NVStorageSaveData done [09:16:46]OFDSenderStorePacket done [09:16:46]KKMCreateOFDPacket done [09:16:46]NVStorageSaveData kkm_last_timestamp [09:16:46]File name is /storage/kkm_last_timestamp [09:16:46]Write 4 bytes [09:16:46]NVStorageSaveData done [09:16:46]ExternCall_PrintAddStr [09:16:46]wPrintStart [09:16:46]Write to MH i2c: 01 00 00 6C 04 70 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [09:16:46]RasterBufferAndPrint [09:16:46]line Счет N : (3)176463 [09:16:46]line ИНН: 02508201610067 [09:16:46]line Контрольно-Кассовый Чек [09:16:46]line ПРОДАЖА [09:16:46]line Товар: 4870202522015 [09:16:46]line Напиток Maxi Чай Грушевый 1,2л [09:16:46]line 1.000 * 125.00 [09:16:46]line = 125.00 [09:16:46]line НДС 12% НСП 1% [09:16:46]line > о реализуемом товаре [09:16:46]line Товар: 2000032760017 [09:16:46]line Слойка DC треугольная мясо110г [09:16:46]line 1.000 * 65.00 [09:16:46]line = 65.00 [09:16:46]line НДС 12% НСП 1% [09:16:46]line > о реализуемом товаре [09:16:46]line Товар: 2000032780025 [09:16:46]line Сосиска в тесте DC 110г [09:16:46]line 1.000 * 60.00 [09:16:46]line = 60.00 [09:16:46]line НДС 12% НСП 1% [09:16:46]line > о реализуемом товаре [09:16:46]line ИТОГО: 250.00 [09:16:46]line НСП 1% : 2.21 [09:16:46]line НДС 12% : 26.54 [09:16:46]line Наличными: 0.00 [09:16:46]line Безнал.: 250.00 [09:16:46]line Место: АЗС № 63 "Партнер Нефть" [09:16:46]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:16:46]line СНО: Общий режим [09:16:46]line Чек 22 03.06.2024 09:16 [09:16:46]line Смена: 376 ФФД: 1.0 [09:16:46]line ЗНМ: 0300000037 [09:16:46]line РНМ: 0000000000092680 [09:16:46]line Версия ККМ: 001 [09:16:46]line Платежная система: Бакай Банк [09:16:46]line ФМ: 0000000000874882 [09:16:46]line ФД: 39904 [09:16:46]line ФПД: 272155355772338 [09:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091646&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39904&fm=272155355772338&tin=02508201610067®Number=0000000000092680&sum=25000 [09:16:47]line 0 [09:16:47]OFD Sender: Processing packet 39904 [packets to send 5, broken 4] [09:16:47]ProducePacketName [09:16:47]name=ofd_packets/00039904 [09:16:47]OFD Sender: To server: pG, [09:16:47]CommunicateWithHost lk.salyk.kg:30040 [09:16:47]ConnectInit lk.salyk.kg [09:16:47]written 0, free lines is 4095 [09:16:47]Connected sock=10 [09:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 02 00 00 B9 E8 18 02 77 FC 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 89 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E0 9B 00 00 35 04 06 00 F7 86 1B 4D F5 B2 46 7C 6A 63 86 8A F7 50 [09:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 8F 6B 47 00 7C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E0 9B 00 00 F4 03 04 00 AB 32 5D 66 B6 04 01 00 00 3C 5D 7F 1B 05 6D F6 CE [09:16:47]CommunicateWithHost err = 0 [09:16:47]CheckOFDResponse [09:16:47]1017 (14) - 77093643461234 [09:16:47]1041 (16) - 0000000000874882 [09:16:47]1040 (4) - 39904 [09:16:47]1012 (4) - 03.06.2024 03:04 [09:16:47]1206 (1) - 0 [09:16:47]OFD Sender: Remove packet 39904 [09:16:47]ProducePacketName [09:16:47]name=ofd_packets/00039904 [09:16:47]NVStorageDeleteData [09:16:47]Write to MH i2c: 01 00 00 A4 04 A8 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 07 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 47 0C 02 [09:16:47]RasterBufferAndPrint [09:16:47]line [09:16:47]line [09:16:47]line [09:16:47]line [09:16:47]line [09:16:47]written 0, free lines is 3151 [09:16:47]MH_Cut [09:16:47]Write to MH i2c: D1 01 00 AB 04 01 81 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: D1 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: D1 01 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: D1 01 00 AB 04 00 80 [09:16:47]Write to MH i2c: 01 00 00 AC 04 B0 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:48]OFD Sender: No OFD packet to send [09:16:48]*** Cut start [09:16:48]*** Partial cut [09:16:48]*** CUTSNS_PIN = 1 [09:16:48]*** CUTSNS_PIN = 0 [09:16:48]*** Brake cut motor [09:16:49]Read from MH i2c: 01 [09:16:49]MH_I2C_Read... [09:16:49]*** Stop cut motor [09:16:49]*** Cut end [09:16:49]Read from MH i2c: 01 07 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [09:16:49]process_action close_receipt done [09:16:49]requested_data is exist [09:16:49]produce_requested_data [09:16:49]requested_item fm.sn is exist - process it [09:16:49]wFMCommunicate request_size=4 [09:16:49]MH_SAM_APDU [09:16:49]CAPDU: 80 11 00 00 [09:16:49]Write to MH i2c: E2 08 00 AD 04 80 11 00 00 00 00 00 00 2B [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:49]Read from MH i2c: E2 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 17 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 17 00 AD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 83 [09:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:16:49]wFMCommunicate OK [09:16:49]requested_item fd.num is exist - process it [09:16:49]SAM_PROTO_GetFieldsCounters [09:16:49]wFMCommunicate request_size=4 [09:16:49]MH_SAM_APDU [09:16:49]CAPDU: 80 13 00 00 [09:16:49]Write to MH i2c: E2 08 00 AE 04 80 13 00 00 00 00 00 00 2E [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:49]Read from MH i2c: E2 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 62 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 62 00 AE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E0 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [09:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E0 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:49]wFMCommunicate OK [09:16:49]SAM_PROTO_GetFieldsCounters done [09:16:49]requested_item shift.num is exist - process it [09:16:49]requested_item shift.opened is exist - process it [09:16:49]req_shift_opened [09:16:49]FM_GetShiftState [09:16:49]SAM_PROTO_GetShiftState [09:16:49]wFMCommunicate request_size=4 [09:16:49]MH_SAM_APDU [09:16:49]CAPDU: 80 13 01 00 [09:16:49]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:49]Read from MH i2c: E2 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 0E 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 53 [09:16:49]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:16:49]wFMCommunicate OK [09:16:49]SAM_PROTO_GetShiftState done [09:16:49]FM_GetShiftState done [09:16:49]req_shift_opened done [09:16:49]requested_item shift.open_date is exist - process it [09:16:49]req_shift_open_date [09:16:49]req_shift_open_date done [09:16:49]produce_requested_data done [09:16:49]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39904,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:16:49]process_action_free close_receipt [09:16:49]json_value_free [09:16:49]json_value_free done [09:16:49]process_json_proto returns [09:16:49]Send response to host [09:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39904,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:16:49]free response buf [09:16:49]execute_script done [09:16:49]execute_script returns [09:16:49]free content buf [09:16:49]Sock 8.Close socket [09:16:49]Sock 8.Thread stoped [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]accept exits with 9 [09:28:03]New connection [09:28:03]New thread 3067325796 created [09:28:03]Thread 3067182436 joined [09:28:03]Waiting for new connection... [09:28:03] Sock 9.Parse request [09:28:03]Sock 9.Check first char [09:28:03]Sock 9.First char is OK [09:28:03]request: POST /json_proto HTTP/1.0 [09:28:03]Method: POST [09:28:03]URL: /json_proto [09:28:03]Method is POST - this is cgi request [09:28:03]url: /json_proto [09:28:03]query_string will be loaded in cgi processing [09:28:03]execute_cgi json_proto POST (null) [09:28:03]execute_cgi path=json_proto method=POST [09:28:03]POST find Content-Length [09:28:03]Host: 172.17.36.199:8080 [09:28:03]Content-Length: 647 [09:28:03]Content-Type: application/json [09:28:03] [09:28:03]POST finish read [09:28:03]Found Content-Length = 647 [09:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176464", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:03]execute_script... [09:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176464", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:03]POST & json_proto [09:28:03]process_json_proto [09:28:03]json parsed OK: [09:28:03]protocol is kg_v1.0 [09:28:03]action value=close_receipt [09:28:03]process_action close_receipt [09:28:03]cmd_close_receipt [09:28:03]MH_GetDate [09:28:03]Write to MH i2c: F0 00 00 B0 04 A3 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 09 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 09 00 B0 04 00 A5 8C 5D 66 91 46 04 65 E0 [09:28:03]GetLastDocTimeStamp 1717406206 [09:28:03]current date 1717406885 [09:28:03]FM_GetShiftState [09:28:03]SAM_PROTO_GetShiftState [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 13 01 00 [09:28:03]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 55 [09:28:03]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_GetShiftState done [09:28:03]FM_GetShiftState done [09:28:03]opened in 1717373769 [09:28:03]opened+sec_in_day 1717460169 [09:28:03]quantity*price = 13000 [09:28:03]sum+1 = 13001 [09:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 23 03.06.2024 09:28 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39905 ФПД: 13617914671624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092805&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39905&fm=13617914671624&tin=02508201610067®Number=0000000000092680&sum=13000 0 [09:28:04]StoreToDocumentArchive [09:28:04]shift 376 fd 39905 [09:28:04]save to /storage/0376/doc_00039905 [09:28:04]save last doc name /storage/0376/doc_00039905 to /storage/kkm_last_doc_name [09:28:04]save OK [09:28:04]Clear old archive folders... [09:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:28:04]tlvbuf is 00E16930 [09:28:04]SAM_PROTO_ClearQueue [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 09 00 00 [09:28:04]Write to MH i2c: E2 08 00 BE 04 80 09 00 00 00 00 00 00 34 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_ClearQueue done [09:28:04]KKMCreateOFDPacket [09:28:04]OFDProtocolAddRootSTLVToBuf [09:28:04]FM_MakeSignedData [09:28:04]FM_MakeSignedData [09:28:04]SAM_PROTO_SignData [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 01 02 [09:28:04]Write to MH i2c: E2 08 00 BF 04 80 0D 01 02 00 00 00 00 3C [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=255 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A5 8C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [09:28:04]Write to MH i2c: E2 02 01 C0 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A5 8C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5E [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=31 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 E1 9B 00 00 35 04 06 00 0C 62 AA F7 72 08 [09:28:04]Write to MH i2c: E2 22 00 C1 04 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 E1 9B 00 00 35 04 06 00 0C 62 AA F7 72 08 00 00 74 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 03 02 [09:28:04]Write to MH i2c: E2 08 00 C2 04 80 0D 03 02 00 00 00 00 41 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0B 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0B 00 C2 04 00 2C D5 1B 44 94 8D 8E E2 90 00 33 [09:28:04]RAPDU: 2C D5 1B 44 94 8D 8E E2 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_SignData done [09:28:04]FM_MakeSignedData done [09:28:04]CreateOFDProtocolMessage [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 11 00 00 [09:28:04]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 99 [09:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:28:05]wFMCommunicate OK [09:28:05]CreateOFDProtocolMessage done [09:28:05]OFDSenderStorePacket 39905 [09:28:05]StoreOFDPacket docnum=39905 [09:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 FB 3D 1C 01 D5 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A5 8C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E1 9B 00 00 35 04 06 00 0C 62 AA F7 72 08 2C D5 1B 44 94 8D 8E E2 [09:28:05]CheckFolder [09:28:05]dirname=/storage/ofd_packets [09:28:05]CheckFolder done [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00039905 [09:28:05]NVStorageSaveData ofd_packets/00039905 [09:28:05]File name is /storage/ofd_packets/00039905 [09:28:05]Write 322 bytes [09:28:05]NVStorageSaveData done [09:28:05]OFDSenderStorePacket done [09:28:05]KKMCreateOFDPacket done [09:28:05]NVStorageSaveData kkm_last_timestamp [09:28:05]File name is /storage/kkm_last_timestamp [09:28:05]Write 4 bytes [09:28:05]NVStorageSaveData done [09:28:05]ExternCall_PrintAddStr [09:28:05]wPrintStart [09:28:05]Write to MH i2c: 01 00 00 C4 04 C8 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [09:28:05]RasterBufferAndPrint [09:28:05]line Счет N : (3)176464 [09:28:05]line ИНН: 02508201610067 [09:28:05]line Контрольно-Кассовый Чек [09:28:05]line ПРОДАЖА [09:28:05]line Товар: 47011656 [09:28:05]line Водка Пшеничная 0,1л [09:28:05]line 2.000 * 65.00 [09:28:05]line = 130.00 [09:28:05]line НДС 12% НСП 1% [09:28:05]line > о реализуемом товаре [09:28:05]line ИТОГО: 130.00 [09:28:05]line НСП 1% : 1.15 [09:28:05]line НДС 12% : 13.80 [09:28:05]line Наличными: 130.00 [09:28:05]line Безнал.: 0.00 [09:28:05]line Место: АЗС № 63 "Партнер Нефть" [09:28:05]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:28:05]line СНО: Общий режим [09:28:05]line Чек 23 03.06.2024 09:28 [09:28:05]line Смена: 376 ФФД: 1.0 [09:28:05]line ЗНМ: 0300000037 [09:28:05]line РНМ: 0000000000092680 [09:28:05]line Версия ККМ: 001 [09:28:05]line ФМ: 0000000000874882 [09:28:05]line ФД: 39905 [09:28:05]line ФПД: 13617914671624 [09:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092805&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39905&fm=13617914671624&tin=02508201610067®Number=0000000000092680&sum=13000 [09:28:05]line 0 [09:28:05]written 0, free lines is 4095 [09:28:05]OFD Sender: Processing packet 39905 [packets to send 5, broken 4] [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00039905 [09:28:05]OFD Sender: To server: pG, [09:28:05]CommunicateWithHost lk.salyk.kg:30040 [09:28:05]ConnectInit lk.salyk.kg [09:28:05]Connected sock=10 [09:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 FB 3D 1C 01 D5 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A5 8C 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E1 9B 00 00 35 04 06 00 0C 62 AA F7 72 08 2C D5 1B 44 94 8D 8E E2 [09:28:05]Write to MH i2c: 01 00 00 EC 04 F0 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 22 0D 26 [09:28:05]RasterBufferAndPrint [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]written 0, free lines is 3369 [09:28:05]MH_Cut [09:28:05]Write to MH i2c: D1 01 00 F3 04 01 C9 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 01 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 01 00 F3 04 00 C8 [09:28:05]Write to MH i2c: 01 00 00 F4 04 F8 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 4E E8 47 00 F6 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E1 9B 00 00 F4 03 04 00 51 35 5D 66 B6 04 01 00 00 FA 89 18 E4 D9 70 66 51 [09:28:05]CommunicateWithHost err = 0 [09:28:05]CheckOFDResponse [09:28:05]1017 (14) - 77093643461234 [09:28:05]1041 (16) - 0000000000874882 [09:28:05]1040 (4) - 39905 [09:28:05]1012 (4) - 03.06.2024 03:15 [09:28:05]1206 (1) - 0 [09:28:05]OFD Sender: Remove packet 39905 [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00039905 [09:28:05]NVStorageDeleteData [09:28:06]*** Cut start [09:28:06]*** Partial cut [09:28:06]*** CUTSNS_PIN = 1 [09:28:06]OFD Sender: No OFD packet to send [09:28:06]*** CUTSNS_PIN = 0 [09:28:06]*** Brake cut motor [09:28:06]Read from MH i2c: 01 [09:28:06]MH_I2C_Read... [09:28:06]*** Stop cut motor [09:28:06]*** Cut end [09:28:06]Read from MH i2c: 01 07 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 FF 0F 0D [09:28:06]process_action close_receipt done [09:28:06]requested_data is exist [09:28:06]produce_requested_data [09:28:06]requested_item fm.sn is exist - process it [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 11 00 00 [09:28:06]Write to MH i2c: E2 08 00 F5 04 80 11 00 00 00 00 00 00 73 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 F5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 CB [09:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:28:06]wFMCommunicate OK [09:28:06]requested_item fd.num is exist - process it [09:28:06]SAM_PROTO_GetFieldsCounters [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 00 00 [09:28:06]Write to MH i2c: E2 08 00 F6 04 80 13 00 00 00 00 00 00 76 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 62 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 62 00 F6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_GetFieldsCounters done [09:28:06]requested_item shift.num is exist - process it [09:28:06]requested_item shift.opened is exist - process it [09:28:06]req_shift_opened [09:28:06]FM_GetShiftState [09:28:06]SAM_PROTO_GetShiftState [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 01 00 [09:28:06]Write to MH i2c: E2 08 00 F7 04 80 13 01 00 00 00 00 00 78 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 F7 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 9B [09:28:06]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_GetShiftState done [09:28:06]FM_GetShiftState done [09:28:06]req_shift_opened done [09:28:06]requested_item shift.open_date is exist - process it [09:28:06]req_shift_open_date [09:28:06]req_shift_open_date done [09:28:06]produce_requested_data done [09:28:06]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39905,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:28:06]process_action_free close_receipt [09:28:06]json_value_free [09:28:06]json_value_free done [09:28:06]process_json_proto returns [09:28:06]Send response to host [09:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39905,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:28:06]free response buf [09:28:06]execute_script done [09:28:06]execute_script returns [09:28:06]free content buf [09:28:06]Sock 9.Close socket [09:28:06]Sock 9.Thread stoped [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:37]accept exits with 8 [09:29:37]New connection [09:29:37]New thread 3067182436 created [09:29:37]Thread 3067325796 joined [09:29:37]Waiting for new connection... [09:29:37] Sock 8.Parse request [09:29:37]Sock 8.Check first char [09:29:37]Sock 8.First char is OK [09:29:37]request: POST /json_proto HTTP/1.0 [09:29:37]Method: POST [09:29:37]URL: /json_proto [09:29:37]Method is POST - this is cgi request [09:29:37]url: /json_proto [09:29:37]query_string will be loaded in cgi processing [09:29:37]execute_cgi json_proto POST (null) [09:29:37]execute_cgi path=json_proto method=POST [09:29:37]POST find Content-Length [09:29:37]Host: 172.17.36.199:8080 [09:29:37]Content-Length: 671 [09:29:37]Content-Type: application/json [09:29:37] [09:29:37]POST finish read [09:29:37]Found Content-Length = 671 [09:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176465", "tax_sys" : 0, "items" : [ { "code": "4670003190020", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]execute_script... [09:29: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 : (3)176465", "tax_sys" : 0, "items" : [ { "code": "4670003190020", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]POST & json_proto [09:29:37]process_json_proto [09:29:37]json parsed OK: [09:29:37]protocol is kg_v1.0 [09:29:37]action value=close_receipt [09:29:37]process_action close_receipt [09:29:37]cmd_close_receipt [09:29:37]MH_GetDate [09:29:37]Write to MH i2c: F0 00 00 F8 04 EB [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 F8 04 00 02 8D 5D 66 91 46 04 65 86 [09:29:37]GetLastDocTimeStamp 1717406885 [09:29:37]current date 1717406978 [09:29:37]FM_GetShiftState [09:29:37]SAM_PROTO_GetShiftState [09:29:37]wFMCommunicate request_size=4 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 13 01 00 [09:29:37]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:37]Read from MH i2c: E2 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 9D [09:29:37]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:29:37]wFMCommunicate OK [09:29:37]SAM_PROTO_GetShiftState done [09:29:37]FM_GetShiftState done [09:29:37]opened in 1717373769 [09:29:37]opened+sec_in_day 1717460169 [09:29:37]quantity*price = 100000 [09:29:37]sum+1 = 100001 [09:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 24 03.06.2024 09:29 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39906 ФПД: 156817219827970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092938&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39906&fm=156817219827970&tin=02508201610067®Number=0000000000092680&sum=100000 0 [09:29:38]StoreToDocumentArchive [09:29:38]shift 376 fd 39906 [09:29:38]save to /storage/0376/doc_00039906 [09:29:38]save last doc name /storage/0376/doc_00039906 to /storage/kkm_last_doc_name [09:29:38]save OK [09:29:38]Clear old archive folders... [09:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=296 [09:29:38]tlvbuf is B6F1C4F0 [09:29:38]SAM_PROTO_ClearQueue [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 09 00 00 [09:29:38]Write to MH i2c: E2 08 00 06 05 80 09 00 00 00 00 00 00 7D [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_ClearQueue done [09:29:38]KKMCreateOFDPacket [09:29:38]OFDProtocolAddRootSTLVToBuf [09:29:38]FM_MakeSignedData [09:29:38]FM_MakeSignedData [09:29:38]SAM_PROTO_SignData [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 01 02 [09:29:38]Write to MH i2c: E2 08 00 07 05 80 0D 01 02 00 00 00 00 85 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=255 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 02 8D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [09:29:38]Write to MH i2c: E2 02 01 08 05 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 02 8D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 92 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=55 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E2 9B 00 00 35 04 06 00 8E 9F DA AE B9 02 [09:29:38]Write to MH i2c: E2 3A 00 09 05 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E2 9B 00 00 35 04 06 00 8E 9F DA AE B9 02 00 00 D3 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 03 02 [09:29:38]Write to MH i2c: E2 08 00 0A 05 80 0D 03 02 00 00 00 00 8A [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 0A 05 00 84 A3 CE 88 00 8B FE C4 90 00 55 [09:29:38]RAPDU: 84 A3 CE 88 00 8B FE C4 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_SignData done [09:29:38]FM_MakeSignedData done [09:29:38]CreateOFDProtocolMessage [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 0B 05 80 11 00 00 00 00 00 00 8A [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 0B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E2 [09:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:29:38]wFMCommunicate OK [09:29:38]CreateOFDProtocolMessage done [09:29:38]OFDSenderStorePacket 39906 [09:29:38]StoreOFDPacket docnum=39906 [09:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 0E 25 34 01 34 AE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 02 8D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E2 9B 00 00 35 04 06 00 8E 9F DA AE B9 02 84 A3 CE 88 00 8B FE C4 [09:29:38]CheckFolder [09:29:38]dirname=/storage/ofd_packets [09:29:38]CheckFolder done [09:29:38]ProducePacketName [09:29:38]name=ofd_packets/00039906 [09:29:38]NVStorageSaveData ofd_packets/00039906 [09:29:38]File name is /storage/ofd_packets/00039906 [09:29:38]Write 346 bytes [09:29:38]NVStorageSaveData done [09:29:38]OFDSenderStorePacket done [09:29:38]KKMCreateOFDPacket done [09:29:38]NVStorageSaveData kkm_last_timestamp [09:29:38]File name is /storage/kkm_last_timestamp [09:29:38]Write 4 bytes [09:29:38]NVStorageSaveData done [09:29:38]ExternCall_PrintAddStr [09:29:38]wPrintStart [09:29:38]Write to MH i2c: 01 00 00 0C 05 11 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [09:29:38]RasterBufferAndPrint [09:29:38]line Счет N : (3)176465 [09:29:38]line ИНН: 02508201610067 [09:29:38]line Контрольно-Кассовый Чек [09:29:38]line ПРОДАЖА [09:29:38]line Товар: 4670003190020 [09:29:38]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 5л [09:29:38]line 1.000 * 1000.00 [09:29:38]line = 1000.00 [09:29:38]line НДС 12% НСП 1% [09:29:38]line > о реализуемом товаре [09:29:38]line ИТОГО: 1000.00 [09:29:38]line НСП 1% : 8.85 [09:29:38]line НДС 12% : 106.19 [09:29:38]line Наличными: 1000.00 [09:29:38]line Безнал.: 0.00 [09:29:38]line Место: АЗС № 63 "Партнер Нефть" [09:29:38]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:29:38]line СНО: Общий режим [09:29:39]line Чек 24 03.06.2024 09:29 [09:29:39]line Смена: 376 ФФД: 1.0 [09:29:39]line ЗНМ: 0300000037 [09:29:39]line РНМ: 0000000000092680 [09:29:39]line Версия ККМ: 001 [09:29:39]line ФМ: 0000000000874882 [09:29:39]line ФД: 39906 [09:29:39]line ФПД: 156817219827970 [09:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092938&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39906&fm=156817219827970&tin=02508201610067®Number=0000000000092680&sum=100000 [09:29:39]line 0 [09:29:39]OFD Sender: Processing packet 39906 [packets to send 5, broken 4] [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00039906 [09:29:39]OFD Sender: To server: pG, [09:29:39]CommunicateWithHost lk.salyk.kg:30040 [09:29:39]ConnectInit lk.salyk.kg [09:29:39]written 0, free lines is 4095 [09:29:39]Connected sock=10 [09:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 0E 25 34 01 34 AE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 02 8D 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E2 9B 00 00 35 04 06 00 8E 9F DA AE B9 02 84 A3 CE 88 00 8B FE C4 [09:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 40 F7 47 00 0E B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E2 9B 00 00 F4 03 04 00 AF 35 5D 66 B6 04 01 00 00 32 7C F0 BB 43 C5 4B CB [09:29:39]CommunicateWithHost err = 0 [09:29:39]CheckOFDResponse [09:29:39]1017 (14) - 77093643461234 [09:29:39]1041 (16) - 0000000000874882 [09:29:39]1040 (4) - 39906 [09:29:39]1012 (4) - 03.06.2024 03:17 [09:29:39]1206 (1) - 0 [09:29:39]OFD Sender: Remove packet 39906 [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00039906 [09:29:39]NVStorageDeleteData [09:29:39]Write to MH i2c: 01 00 00 35 05 3A [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 1C 0D 6A [09:29:39]RasterBufferAndPrint [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]written 0, free lines is 3362 [09:29:39]MH_Cut [09:29:39]Write to MH i2c: D1 01 00 3C 05 01 13 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 3C 05 00 12 [09:29:39]Write to MH i2c: 01 00 00 3D 05 42 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:40]OFD Sender: No OFD packet to send [09:29:40]*** Cut start [09:29:40]*** Partial cut [09:29:40]*** CUTSNS_PIN = 1 [09:29:40]*** CUTSNS_PIN = 0 [09:29:40]*** Brake cut motor [09:29:40]Read from MH i2c: 01 [09:29:40]MH_I2C_Read... [09:29:40]*** Stop cut motor [09:29:40]*** Cut end [09:29:40]Read from MH i2c: 01 07 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [09:29:40]process_action close_receipt done [09:29:40]requested_data is exist [09:29:40]produce_requested_data [09:29:40]requested_item fm.sn is exist - process it [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 11 00 00 [09:29:40]Write to MH i2c: E2 08 00 3E 05 80 11 00 00 00 00 00 00 BD [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:40]Read from MH i2c: E2 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 17 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 17 00 3E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 15 [09:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:29:40]wFMCommunicate OK [09:29:40]requested_item fd.num is exist - process it [09:29:40]SAM_PROTO_GetFieldsCounters [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 13 00 00 [09:29:40]Write to MH i2c: E2 08 00 3F 05 80 13 00 00 00 00 00 00 C0 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 62 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 62 00 3F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [09:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_GetFieldsCounters done [09:29:41]requested_item shift.num is exist - process it [09:29:41]requested_item shift.opened is exist - process it [09:29:41]req_shift_opened [09:29:41]FM_GetShiftState [09:29:41]SAM_PROTO_GetShiftState [09:29:41]wFMCommunicate request_size=4 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 13 01 00 [09:29:41]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E5 [09:29:41]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_GetShiftState done [09:29:41]FM_GetShiftState done [09:29:41]req_shift_opened done [09:29:41]requested_item shift.open_date is exist - process it [09:29:41]req_shift_open_date [09:29:41]req_shift_open_date done [09:29:41]produce_requested_data done [09:29:41]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39906,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:29:41]process_action_free close_receipt [09:29:41]json_value_free [09:29:41]json_value_free done [09:29:41]process_json_proto returns [09:29:41]Send response to host [09:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39906,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:29:41]free response buf [09:29:41]execute_script done [09:29:41]execute_script returns [09:29:41]free content buf [09:29:41]Sock 8.Close socket [09:29:41]Sock 8.Thread stoped [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:53]accept exits with 9 [09:42:53]New connection [09:42:53]New thread 3067325796 created [09:42:53]Thread 3067182436 joined [09:42:53]Waiting for new connection... [09:42:53] Sock 9.Parse request [09:42:53]Sock 9.Check first char [09:42:53]Sock 9.First char is OK [09:42:53]request: POST /json_proto HTTP/1.0 [09:42:53]Method: POST [09:42:53]URL: /json_proto [09:42:53]Method is POST - this is cgi request [09:42:53]url: /json_proto [09:42:53]query_string will be loaded in cgi processing [09:42:53]execute_cgi json_proto POST (null) [09:42:53]execute_cgi path=json_proto method=POST [09:42:53]POST find Content-Length [09:42:53]Host: 172.17.36.199:8080 [09:42:53]Content-Length: 654 [09:42:53]Content-Type: application/json [09:42:53] [09:42:53]POST finish read [09:42:53]Found Content-Length = 654 [09:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176466", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:53]execute_script... [09:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176466", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:53]POST & json_proto [09:42:53]process_json_proto [09:42:53]json parsed OK: [09:42:53]protocol is kg_v1.0 [09:42:53]action value=close_receipt [09:42:53]process_action close_receipt [09:42:53]cmd_close_receipt [09:42:53]MH_GetDate [09:42:53]Write to MH i2c: F0 00 00 41 05 35 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 09 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 09 00 41 05 00 1E 90 5D 66 91 46 04 65 EF [09:42:53]GetLastDocTimeStamp 1717406978 [09:42:53]current date 1717407774 [09:42:53]FM_GetShiftState [09:42:53]SAM_PROTO_GetShiftState [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 13 01 00 [09:42:53]Write to MH i2c: E2 08 00 42 05 80 13 01 00 00 00 00 00 C4 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0E 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0E 00 42 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E7 [09:42:53]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:42:53]wFMCommunicate OK [09:42:53]SAM_PROTO_GetShiftState done [09:42:53]FM_GetShiftState done [09:42:53]opened in 1717373769 [09:42:53]opened+sec_in_day 1717460169 [09:42:53]quantity*price = 9500 [09:42:53]sum+1 = 9501 [09:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 25 03.06.2024 09:42 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39907 ФПД: 202160953099460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094254&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39907&fm=202160953099460&tin=02508201610067®Number=0000000000092680&sum=9500 0 [09:42:54]StoreToDocumentArchive [09:42:54]shift 376 fd 39907 [09:42:54]save to /storage/0376/doc_00039907 [09:42:54]save last doc name /storage/0376/doc_00039907 to /storage/kkm_last_doc_name [09:42:54]save OK [09:42:54]Clear old archive folders... [09:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:42:54]tlvbuf is 00E06160 [09:42:54]SAM_PROTO_ClearQueue [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 09 00 00 [09:42:54]Write to MH i2c: E2 08 00 4F 05 80 09 00 00 00 00 00 00 C6 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_ClearQueue done [09:42:54]KKMCreateOFDPacket [09:42:54]OFDProtocolAddRootSTLVToBuf [09:42:54]FM_MakeSignedData [09:42:54]FM_MakeSignedData [09:42:54]SAM_PROTO_SignData [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 01 02 [09:42:54]Write to MH i2c: E2 08 00 50 05 80 0D 01 02 00 00 00 00 CE [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=255 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1E 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:42:54]Write to MH i2c: E2 02 01 51 05 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1E 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 71 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=52 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E3 9B 00 00 35 04 06 00 B7 DD 43 CC 04 C4 [09:42:54]Write to MH i2c: E2 37 00 52 05 80 0D 02 02 2F 00 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E3 9B 00 00 35 04 06 00 B7 DD 43 CC 04 C4 00 00 82 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 03 02 [09:42:54]Write to MH i2c: E2 08 00 53 05 80 0D 03 02 00 00 00 00 D3 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 53 05 00 9C 56 65 02 84 0F 14 CE 90 00 A2 [09:42:54]RAPDU: 9C 56 65 02 84 0F 14 CE 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_SignData done [09:42:54]FM_MakeSignedData done [09:42:54]CreateOFDProtocolMessage [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 11 00 00 [09:42:54]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2B [09:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:42:54]wFMCommunicate OK [09:42:54]CreateOFDProtocolMessage done [09:42:54]OFDSenderStorePacket 39907 [09:42:54]StoreOFDPacket docnum=39907 [09:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 CD A2 31 01 36 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1E 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E3 9B 00 00 35 04 06 00 B7 DD 43 CC 04 C4 9C 56 65 02 84 0F 14 CE [09:42:54]CheckFolder [09:42:54]dirname=/storage/ofd_packets [09:42:54]CheckFolder done [09:42:54]ProducePacketName [09:42:54]name=ofd_packets/00039907 [09:42:54]NVStorageSaveData ofd_packets/00039907 [09:42:54]File name is /storage/ofd_packets/00039907 [09:42:54]Write 343 bytes [09:42:54]NVStorageSaveData done [09:42:54]OFDSenderStorePacket done [09:42:54]KKMCreateOFDPacket done [09:42:54]NVStorageSaveData kkm_last_timestamp [09:42:54]File name is /storage/kkm_last_timestamp [09:42:54]Write 4 bytes [09:42:54]NVStorageSaveData done [09:42:54]ExternCall_PrintAddStr [09:42:54]wPrintStart [09:42:54]Write to MH i2c: 01 00 00 55 05 5A [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [09:42:54]RasterBufferAndPrint [09:42:54]line Счет N : (3)176466 [09:42:54]line ИНН: 02508201610067 [09:42:54]line Контрольно-Кассовый Чек [09:42:54]line ПРОДАЖА [09:42:54]line Товар: 4700000480050 [09:42:54]line Напиток Nitro Energy эн green ж/б 0,45л [09:42:54]line 1.000 * 95.00 [09:42:54]line = 95.00 [09:42:54]line НДС 12% НСП 1% [09:42:54]line > о реализуемом товаре [09:42:54]line ИТОГО: 95.00 [09:42:54]line НСП 1% : 0.84 [09:42:54]line НДС 12% : 10.09 [09:42:54]line Наличными: 95.00 [09:42:54]line Безнал.: 0.00 [09:42:54]line Место: АЗС № 63 "Партнер Нефть" [09:42:54]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:42:54]line СНО: Общий режим [09:42:54]line Чек 25 03.06.2024 09:42 [09:42:54]line Смена: 376 ФФД: 1.0 [09:42:54]line ЗНМ: 0300000037 [09:42:54]line РНМ: 0000000000092680 [09:42:54]line Версия ККМ: 001 [09:42:55]line ФМ: 0000000000874882 [09:42:55]line ФД: 39907 [09:42:55]line ФПД: 202160953099460 [09:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094254&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39907&fm=202160953099460&tin=02508201610067®Number=0000000000092680&sum=9500 [09:42:55]line 0 [09:42:55]OFD Sender: Processing packet 39907 [packets to send 5, broken 4] [09:42:55]ProducePacketName [09:42:55]name=ofd_packets/00039907 [09:42:55]OFD Sender: To server: pG, [09:42:55]CommunicateWithHost lk.salyk.kg:30040 [09:42:55]ConnectInit lk.salyk.kg [09:42:55]written 0, free lines is 4095 [09:42:55]Connected sock=10 [09:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 CD A2 31 01 36 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1E 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E3 9B 00 00 35 04 06 00 B7 DD 43 CC 04 C4 9C 56 65 02 84 0F 14 CE [09:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D7 E8 47 00 30 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E3 9B 00 00 F4 03 04 00 CB 38 5D 66 B6 04 01 00 00 76 2C 39 17 69 DF 44 5B [09:42:55]CommunicateWithHost err = 0 [09:42:55]CheckOFDResponse [09:42:55]1017 (14) - 77093643461234 [09:42:55]1041 (16) - 0000000000874882 [09:42:55]1040 (4) - 39907 [09:42:55]1012 (4) - 03.06.2024 03:30 [09:42:55]1206 (1) - 0 [09:42:55]OFD Sender: Remove packet 39907 [09:42:55]ProducePacketName [09:42:55]name=ofd_packets/00039907 [09:42:55]NVStorageDeleteData [09:42:55]Write to MH i2c: 01 00 00 7E 05 83 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 04 0D 9B [09:42:55]RasterBufferAndPrint [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]written 0, free lines is 3338 [09:42:55]MH_Cut [09:42:55]Write to MH i2c: D1 01 00 85 05 01 5C [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 01 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 01 00 85 05 00 5B [09:42:55]Write to MH i2c: 01 00 00 86 05 8B [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]OFD Sender: No OFD packet to send [09:42:56]*** Cut start [09:42:56]*** Partial cut [09:42:56]*** CUTSNS_PIN = 1 [09:42:56]*** CUTSNS_PIN = 0 [09:42:56]*** Brake cut motor [09:42:56]Read from MH i2c: 01 [09:42:56]MH_I2C_Read... [09:42:56]*** Stop cut motor [09:42:56]*** Cut end [09:42:56]Read from MH i2c: 01 07 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [09:42:56]process_action close_receipt done [09:42:56]requested_data is exist [09:42:56]produce_requested_data [09:42:56]requested_item fm.sn is exist - process it [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 11 00 00 [09:42:56]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 17 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 5E [09:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:42:57]wFMCommunicate OK [09:42:57]requested_item fd.num is exist - process it [09:42:57]SAM_PROTO_GetFieldsCounters [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 13 00 00 [09:42:57]Write to MH i2c: E2 08 00 88 05 80 13 00 00 00 00 00 00 09 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 62 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 62 00 88 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:57]wFMCommunicate OK [09:42:57]SAM_PROTO_GetFieldsCounters done [09:42:57]requested_item shift.num is exist - process it [09:42:57]requested_item shift.opened is exist - process it [09:42:57]req_shift_opened [09:42:57]FM_GetShiftState [09:42:57]SAM_PROTO_GetShiftState [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 13 01 00 [09:42:57]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 2E [09:42:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:42:57]wFMCommunicate OK [09:42:57]SAM_PROTO_GetShiftState done [09:42:57]FM_GetShiftState done [09:42:57]req_shift_opened done [09:42:57]requested_item shift.open_date is exist - process it [09:42:57]req_shift_open_date [09:42:57]req_shift_open_date done [09:42:57]produce_requested_data done [09:42:57]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39907,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:42:57]process_action_free close_receipt [09:42:57]json_value_free [09:42:57]json_value_free done [09:42:57]process_json_proto returns [09:42:57]Send response to host [09:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39907,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:42:57]free response buf [09:42:57]execute_script done [09:42:57]execute_script returns [09:42:57]free content buf [09:42:57]Sock 9.Close socket [09:42:57]Sock 9.Thread stoped [09:43:00]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:27]accept exits with 8 [09:45:27]New connection [09:45:27]New thread 3067182436 created [09:45:27]Thread 3067325796 joined [09:45:27]Waiting for new connection... [09:45:27] Sock 8.Parse request [09:45:27]Sock 8.Check first char [09:45:27]Sock 8.First char is OK [09:45:27]request: POST /json_proto HTTP/1.0 [09:45:27]Method: POST [09:45:27]URL: /json_proto [09:45:27]Method is POST - this is cgi request [09:45:27]url: /json_proto [09:45:27]query_string will be loaded in cgi processing [09:45:27]execute_cgi json_proto POST (null) [09:45:27]execute_cgi path=json_proto method=POST [09:45:27]POST find Content-Length [09:45:27]Host: 172.17.36.199:8080 [09:45:27]Content-Length: 805 [09:45:27]Content-Type: application/json [09:45:27] [09:45:27]POST finish read [09:45:27]Found Content-Length = 805 [09:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176467", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:27]execute_script... [09:45:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176467", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:27]POST & json_proto [09:45:27]process_json_proto [09:45:27]json parsed OK: [09:45:27]protocol is kg_v1.0 [09:45:27]action value=close_receipt [09:45:27]process_action close_receipt [09:45:27]cmd_close_receipt [09:45:27]MH_GetDate [09:45:27]Write to MH i2c: F0 00 00 8A 05 7E [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: F0 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: F0 09 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: F0 09 00 8A 05 00 B8 90 5D 66 91 46 04 65 D2 [09:45:27]GetLastDocTimeStamp 1717407774 [09:45:27]current date 1717407928 [09:45:27]FM_GetShiftState [09:45:27]SAM_PROTO_GetShiftState [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 13 01 00 [09:45:27]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0E 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 30 [09:45:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:45:27]wFMCommunicate OK [09:45:27]SAM_PROTO_GetShiftState done [09:45:27]FM_GetShiftState done [09:45:27]opened in 1717373769 [09:45:27]opened+sec_in_day 1717460169 [09:45:27]quantity*price = 11500 [09:45:27]sum+1 = 11501 [09:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 26 03.06.2024 09:45 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874882 ФД: 39908 ФПД: 180607207995815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094528&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39908&fm=180607207995815&tin=02508201610067®Number=0000000000092680&sum=11500 0 [09:45:28]StoreToDocumentArchive [09:45:28]shift 376 fd 39908 [09:45:28]save to /storage/0376/doc_00039908 [09:45:28]save last doc name /storage/0376/doc_00039908 to /storage/kkm_last_doc_name [09:45:28]save OK [09:45:28]Clear old archive folders... [09:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:45:28]tlvbuf is B6F1C3D0 [09:45:28]SAM_PROTO_ClearQueue [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 09 00 00 [09:45:28]Write to MH i2c: E2 08 00 98 05 80 09 00 00 00 00 00 00 0F [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [09:45:28]RAPDU: 90 00 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_ClearQueue done [09:45:28]KKMCreateOFDPacket [09:45:28]OFDProtocolAddRootSTLVToBuf [09:45:28]FM_MakeSignedData [09:45:28]FM_MakeSignedData [09:45:28]SAM_PROTO_SignData [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 0D 01 02 [09:45:28]Write to MH i2c: E2 08 00 99 05 80 0D 01 02 00 00 00 00 17 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [09:45:28]RAPDU: 90 00 [09:45:28]wFMCommunicate OK [09:45:28]wFMCommunicate request_size=255 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B8 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 [09:45:28]Write to MH i2c: E2 02 01 9A 05 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B8 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 00 00 F5 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [09:45:28]RAPDU: 90 00 [09:45:28]wFMCommunicate OK [09:45:28]wFMCommunicate request_size=39 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E4 9B 00 00 35 04 06 00 A4 42 E4 79 F9 A7 [09:45:28]Write to MH i2c: E2 2A 00 9B 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E4 9B 00 00 35 04 06 00 A4 42 E4 79 F9 A7 00 00 3C [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [09:45:28]RAPDU: 90 00 [09:45:28]wFMCommunicate OK [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 0D 03 02 [09:45:28]Write to MH i2c: E2 08 00 9C 05 80 0D 03 02 00 00 00 00 1C [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0B 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0B 00 9C 05 00 F0 A7 A0 67 7D 2C DE 81 90 00 C3 [09:45:28]RAPDU: F0 A7 A0 67 7D 2C DE 81 90 00 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_SignData done [09:45:28]FM_MakeSignedData done [09:45:28]CreateOFDProtocolMessage [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 11 00 00 [09:45:28]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 74 [09:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:45:28]wFMCommunicate OK [09:45:28]CreateOFDProtocolMessage done [09:45:28]OFDSenderStorePacket 39908 [09:45:28]StoreOFDPacket docnum=39908 [09:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2C 01 00 00 9D C3 24 01 5C AE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B8 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E4 9B 00 00 35 04 06 00 A4 42 E4 79 F9 A7 F0 A7 A0 67 7D 2C DE 81 [09:45:28]CheckFolder [09:45:28]dirname=/storage/ofd_packets [09:45:28]CheckFolder done [09:45:28]ProducePacketName [09:45:28]name=ofd_packets/00039908 [09:45:28]NVStorageSaveData ofd_packets/00039908 [09:45:28]File name is /storage/ofd_packets/00039908 [09:45:28]Write 330 bytes [09:45:28]NVStorageSaveData done [09:45:28]OFDSenderStorePacket done [09:45:28]KKMCreateOFDPacket done [09:45:28]NVStorageSaveData kkm_last_timestamp [09:45:28]File name is /storage/kkm_last_timestamp [09:45:28]Write 4 bytes [09:45:28]NVStorageSaveData done [09:45:28]ExternCall_PrintAddStr [09:45:28]wPrintStart [09:45:28]Write to MH i2c: 01 00 00 9E 05 A3 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 FF 0F B8 [09:45:28]RasterBufferAndPrint [09:45:28]line Счет N : (3)176467 [09:45:28]line ИНН: 02508201610067 [09:45:28]line Контрольно-Кассовый Чек [09:45:28]line ПРОДАЖА [09:45:28]line Товар: 2000036210013 [09:45:28]line Кофе Капучино (GABB TRADE) [09:45:28]line 1.000 * 115.00 [09:45:28]line = 115.00 [09:45:28]line НДС 12% НСП 1% [09:45:28]line > о реализуемом товаре [09:45:28]line ИТОГО: 115.00 [09:45:28]line НСП 1% : 1.02 [09:45:28]line НДС 12% : 12.21 [09:45:28]line Наличными: 0.00 [09:45:28]line Безнал.: 115.00 [09:45:28]line Место: АЗС № 63 "Партнер Нефть" [09:45:28]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [09:45:28]line СНО: Общий режим [09:45:28]line Чек 26 03.06.2024 09:45 [09:45:28]line Смена: 376 ФФД: 1.0 [09:45:28]line ЗНМ: 0300000037 [09:45:28]line РНМ: 0000000000092680 [09:45:28]line Версия ККМ: 001 [09:45:29]line Платежная система: O! деньги [09:45:29]line ФМ: 0000000000874882 [09:45:29]line ФД: 39908 [09:45:29]line ФПД: 180607207995815 [09:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094528&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39908&fm=180607207995815&tin=02508201610067®Number=0000000000092680&sum=11500 [09:45:29]line 0 [09:45:29]OFD Sender: Processing packet 39908 [packets to send 5, broken 4] [09:45:29]ProducePacketName [09:45:29]name=ofd_packets/00039908 [09:45:29]OFD Sender: To server: pG, [09:45:29]CommunicateWithHost lk.salyk.kg:30040 [09:45:29]ConnectInit lk.salyk.kg [09:45:29]written 0, free lines is 4095 [09:45:29]Connected sock=10 [09:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2C 01 00 00 9D C3 24 01 5C AE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B8 90 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E4 9B 00 00 35 04 06 00 A4 42 E4 79 F9 A7 F0 A7 A0 67 7D 2C DE 81 [09:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 E4 6C 47 00 A5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E4 9B 00 00 F4 03 04 00 65 39 5D 66 B6 04 01 00 00 96 75 0D 02 87 91 5C DD [09:45:29]CommunicateWithHost err = 0 [09:45:29]CheckOFDResponse [09:45:29]1017 (14) - 77093643461234 [09:45:29]1041 (16) - 0000000000874882 [09:45:29]1040 (4) - 39908 [09:45:29]1012 (4) - 03.06.2024 03:32 [09:45:29]1206 (1) - 0 [09:45:29]OFD Sender: Remove packet 39908 [09:45:29]ProducePacketName [09:45:29]name=ofd_packets/00039908 [09:45:29]NVStorageDeleteData [09:45:29]Write to MH i2c: 01 00 00 C8 05 CD [09:45:29]Write i2c OK [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: 01 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: 01 07 00 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 0D 0D EE [09:45:29]RasterBufferAndPrint [09:45:29]line [09:45:29]line [09:45:29]line [09:45:29]line [09:45:29]line [09:45:29]written 0, free lines is 3350 [09:45:29]MH_Cut [09:45:29]Write to MH i2c: D1 01 00 CF 05 01 A6 [09:45:29]Write i2c OK [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: D1 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: D1 01 00 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: D1 01 00 CF 05 00 A5 [09:45:29]Write to MH i2c: 01 00 00 D0 05 D5 [09:45:29]Write i2c OK [09:45:29]MH_I2C_Read... [09:45:30]OFD Sender: No OFD packet to send [09:45:30]*** Cut start [09:45:30]*** Partial cut [09:45:30]*** CUTSNS_PIN = 1 [09:45:30]*** CUTSNS_PIN = 0 [09:45:30]*** Brake cut motor [09:45:30]Read from MH i2c: 01 [09:45:30]MH_I2C_Read... [09:45:30]*** Stop cut motor [09:45:30]*** Cut end [09:45:30]Read from MH i2c: 01 07 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [09:45:30]process_action close_receipt done [09:45:30]requested_data is exist [09:45:30]produce_requested_data [09:45:30]requested_item fm.sn is exist - process it [09:45:30]wFMCommunicate request_size=4 [09:45:30]MH_SAM_APDU [09:45:30]CAPDU: 80 11 00 00 [09:45:30]Write to MH i2c: E2 08 00 D1 05 80 11 00 00 00 00 00 00 50 [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:31]Read from MH i2c: E2 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 17 00 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 17 00 D1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A8 [09:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [09:45:31]wFMCommunicate OK [09:45:31]requested_item fd.num is exist - process it [09:45:31]SAM_PROTO_GetFieldsCounters [09:45:31]wFMCommunicate request_size=4 [09:45:31]MH_SAM_APDU [09:45:31]CAPDU: 80 13 00 00 [09:45:31]Write to MH i2c: E2 08 00 D2 05 80 13 00 00 00 00 00 00 53 [09:45:31]Write i2c OK [09:45:31]MH_I2C_Read... [09:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:31]Read from MH i2c: E2 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 62 00 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 62 00 D2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [09:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:31]wFMCommunicate OK [09:45:31]SAM_PROTO_GetFieldsCounters done [09:45:31]requested_item shift.num is exist - process it [09:45:31]requested_item shift.opened is exist - process it [09:45:31]req_shift_opened [09:45:31]FM_GetShiftState [09:45:31]SAM_PROTO_GetShiftState [09:45:31]wFMCommunicate request_size=4 [09:45:31]MH_SAM_APDU [09:45:31]CAPDU: 80 13 01 00 [09:45:31]Write to MH i2c: E2 08 00 D3 05 80 13 01 00 00 00 00 00 55 [09:45:31]Write i2c OK [09:45:31]MH_I2C_Read... [09:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:31]Read from MH i2c: E2 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 0E 00 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 0E 00 D3 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 78 [09:45:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [09:45:31]wFMCommunicate OK [09:45:31]SAM_PROTO_GetShiftState done [09:45:31]FM_GetShiftState done [09:45:31]req_shift_opened done [09:45:31]requested_item shift.open_date is exist - process it [09:45:31]req_shift_open_date [09:45:31]req_shift_open_date done [09:45:31]produce_requested_data done [09:45:31]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39908,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [09:45:31]process_action_free close_receipt [09:45:31]json_value_free [09:45:31]json_value_free done [09:45:31]process_json_proto returns [09:45:31]Send response to host [09:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39908,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [09:45:31]free response buf [09:45:31]execute_script done [09:45:31]execute_script returns [09:45:31]free content buf [09:45:31]Sock 8.Close socket [09:45:31]Sock 8.Thread stoped [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:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51: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]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]accept exits with 9 [10:03:25]New connection [10:03:25]New thread 3067325796 created [10:03:25]Thread 3067182436 joined [10:03:25]Waiting for new connection... [10:03:25] Sock 9.Parse request [10:03:25]Sock 9.Check first char [10:03:25]Sock 9.First char is OK [10:03:25]request: POST /json_proto HTTP/1.0 [10:03:25]Method: POST [10:03:25]URL: /json_proto [10:03:25]Method is POST - this is cgi request [10:03:25]url: /json_proto [10:03:25]query_string will be loaded in cgi processing [10:03:25]execute_cgi json_proto POST (null) [10:03:25]execute_cgi path=json_proto method=POST [10:03:25]POST find Content-Length [10:03:25]Host: 172.17.36.199:8080 [10:03:25]Content-Length: 621 [10:03:25]Content-Type: application/json [10:03:25] [10:03:25]POST finish read [10:03:25]Found Content-Length = 621 [10:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176468", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:25]execute_script... [10:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176468", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:25]POST & json_proto [10:03:25]process_json_proto [10:03:25]json parsed OK: [10:03:25]protocol is kg_v1.0 [10:03:25]action value=close_receipt [10:03:25]process_action close_receipt [10:03:25]cmd_close_receipt [10:03:25]MH_GetDate [10:03:25]Write to MH i2c: F0 00 00 D4 05 C8 [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: F0 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: F0 09 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: F0 09 00 D4 05 00 EF 94 5D 66 91 46 04 65 57 [10:03:25]GetLastDocTimeStamp 1717407928 [10:03:25]current date 1717409007 [10:03:25]FM_GetShiftState [10:03:25]SAM_PROTO_GetShiftState [10:03:25]wFMCommunicate request_size=4 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 13 01 00 [10:03:25]Write to MH i2c: E2 08 00 D5 05 80 13 01 00 00 00 00 00 57 [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 0E 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 0E 00 D5 05 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 7A [10:03:25]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:03:25]wFMCommunicate OK [10:03:25]SAM_PROTO_GetShiftState done [10:03:25]FM_GetShiftState done [10:03:25]opened in 1717373769 [10:03:25]opened+sec_in_day 1717460169 [10:03:25]quantity*price = 14000 [10:03:25]sum+1 = 14001 [10:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 27 03.06.2024 10:03 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39909 ФПД: 167309500927555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100327&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39909&fm=167309500927555&tin=02508201610067®Number=0000000000092680&sum=14000 0 [10:03:26]StoreToDocumentArchive [10:03:26]shift 376 fd 39909 [10:03:26]save to /storage/0376/doc_00039909 [10:03:26]save last doc name /storage/0376/doc_00039909 to /storage/kkm_last_doc_name [10:03:26]save OK [10:03:26]Clear old archive folders... [10:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:03:26]tlvbuf is 00E04870 [10:03:26]SAM_PROTO_ClearQueue [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 09 00 00 [10:03:26]Write to MH i2c: E2 08 00 E2 05 80 09 00 00 00 00 00 00 59 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [10:03:26]RAPDU: 90 00 [10:03:26]wFMCommunicate OK [10:03:26]SAM_PROTO_ClearQueue done [10:03:26]KKMCreateOFDPacket [10:03:26]OFDProtocolAddRootSTLVToBuf [10:03:26]FM_MakeSignedData [10:03:26]FM_MakeSignedData [10:03:26]SAM_PROTO_SignData [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 0D 01 02 [10:03:26]Write to MH i2c: E2 08 00 E3 05 80 0D 01 02 00 00 00 00 61 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [10:03:26]RAPDU: 90 00 [10:03:26]wFMCommunicate OK [10:03:26]wFMCommunicate request_size=255 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EF 94 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [10:03:26]Write to MH i2c: E2 02 01 E4 05 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EF 94 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 30 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [10:03:26]RAPDU: 90 00 [10:03:26]wFMCommunicate OK [10:03:26]wFMCommunicate request_size=32 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 E5 9B 00 00 35 04 06 00 98 2A C7 5E CE 43 [10:03:26]Write to MH i2c: E2 23 00 E5 05 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 E5 9B 00 00 35 04 06 00 98 2A C7 5E CE 43 00 00 3E [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [10:03:26]RAPDU: 90 00 [10:03:26]wFMCommunicate OK [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 0D 03 02 [10:03:26]Write to MH i2c: E2 08 00 E6 05 80 0D 03 02 00 00 00 00 66 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0B 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0B 00 E6 05 00 E3 7B 82 89 21 5E BB 49 90 00 53 [10:03:26]RAPDU: E3 7B 82 89 21 5E BB 49 90 00 [10:03:26]wFMCommunicate OK [10:03:26]SAM_PROTO_SignData done [10:03:26]FM_MakeSignedData done [10:03:26]CreateOFDProtocolMessage [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 11 00 00 [10:03:26]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BE [10:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:03:27]wFMCommunicate OK [10:03:27]CreateOFDProtocolMessage done [10:03:27]OFDSenderStorePacket 39909 [10:03:27]StoreOFDPacket docnum=39909 [10:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 A8 D2 1D 01 F9 D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EF 94 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E5 9B 00 00 35 04 06 00 98 2A C7 5E CE 43 E3 7B 82 89 21 5E BB 49 [10:03:27]CheckFolder [10:03:27]dirname=/storage/ofd_packets [10:03:27]CheckFolder done [10:03:27]ProducePacketName [10:03:27]name=ofd_packets/00039909 [10:03:27]NVStorageSaveData ofd_packets/00039909 [10:03:27]File name is /storage/ofd_packets/00039909 [10:03:27]Write 323 bytes [10:03:27]NVStorageSaveData done [10:03:27]OFDSenderStorePacket done [10:03:27]KKMCreateOFDPacket done [10:03:27]NVStorageSaveData kkm_last_timestamp [10:03:27]File name is /storage/kkm_last_timestamp [10:03:27]Write 4 bytes [10:03:27]NVStorageSaveData done [10:03:27]ExternCall_PrintAddStr [10:03:27]wPrintStart [10:03:27]Write to MH i2c: 01 00 00 E8 05 ED [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 FF 0F 02 [10:03:27]RasterBufferAndPrint [10:03:27]line Счет N : (3)176468 [10:03:27]line ИНН: 02508201610067 [10:03:27]line Контрольно-Кассовый Чек [10:03:27]line ПРОДАЖА [10:03:27]line Товар: 48743570 [10:03:27]line Сигареты Winston XStyle Blue [10:03:27]line 1.000 * 140.00 [10:03:27]line = 140.00 [10:03:27]line НДС 12% НСП 1% [10:03:27]line > о реализуемом товаре [10:03:27]line ИТОГО: 140.00 [10:03:27]line НСП 1% : 1.24 [10:03:27]line НДС 12% : 14.87 [10:03:27]line Наличными: 140.00 [10:03:27]line Безнал.: 0.00 [10:03:27]line Место: АЗС № 63 "Партнер Нефть" [10:03:27]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [10:03:27]line СНО: Общий режим [10:03:27]line Чек 27 03.06.2024 10:03 [10:03:27]line Смена: 376 ФФД: 1.0 [10:03:27]line ЗНМ: 0300000037 [10:03:27]line РНМ: 0000000000092680 [10:03:27]line Версия ККМ: 001 [10:03:27]line ФМ: 0000000000874882 [10:03:27]line ФД: 39909 [10:03:27]line ФПД: 167309500927555 [10:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100327&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39909&fm=167309500927555&tin=02508201610067®Number=0000000000092680&sum=14000 [10:03:27]line 0 [10:03:27]OFD Sender: Processing packet 39909 [packets to send 5, broken 4] [10:03:27]ProducePacketName [10:03:27]name=ofd_packets/00039909 [10:03:27]OFD Sender: To server: pG, [10:03:27]CommunicateWithHost lk.salyk.kg:30040 [10:03:27]ConnectInit lk.salyk.kg [10:03:27]written 0, free lines is 4095 [10:03:27]Connected sock=10 [10:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 A8 D2 1D 01 F9 D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EF 94 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E5 9B 00 00 35 04 06 00 98 2A C7 5E CE 43 E3 7B 82 89 21 5E BB 49 [10:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 F8 10 47 00 62 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E5 9B 00 00 F4 03 04 00 9B 3D 5D 66 B6 04 01 00 00 66 6D F4 9D 6C E6 F1 7C [10:03:27]CommunicateWithHost err = 0 [10:03:27]CheckOFDResponse [10:03:27]1017 (14) - 77093643461234 [10:03:27]1041 (16) - 0000000000874882 [10:03:27]1040 (4) - 39909 [10:03:27]1012 (4) - 03.06.2024 03:50 [10:03:27]1206 (1) - 0 [10:03:27]OFD Sender: Remove packet 39909 [10:03:27]ProducePacketName [10:03:27]name=ofd_packets/00039909 [10:03:27]NVStorageDeleteData [10:03:27]Write to MH i2c: 01 00 00 10 06 16 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 14 0D 3E [10:03:27]RasterBufferAndPrint [10:03:27]line [10:03:27]line [10:03:27]line [10:03:27]line [10:03:27]line [10:03:27]written 0, free lines is 3358 [10:03:27]MH_Cut [10:03:27]Write to MH i2c: D1 01 00 17 06 01 EF [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: D1 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: D1 01 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: D1 01 00 17 06 00 EE [10:03:27]Write to MH i2c: 01 00 00 18 06 1E [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:28]OFD Sender: No OFD packet to send [10:03:28]*** Cut start [10:03:28]*** Partial cut [10:03:28]*** CUTSNS_PIN = 1 [10:03:28]*** CUTSNS_PIN = 0 [10:03:28]*** Brake cut motor [10:03:29]Read from MH i2c: 01 [10:03:29]MH_I2C_Read... [10:03:29]*** Stop cut motor [10:03:29]*** Cut end [10:03:29]Read from MH i2c: 01 07 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [10:03:29]process_action close_receipt done [10:03:29]requested_data is exist [10:03:29]produce_requested_data [10:03:29]requested_item fm.sn is exist - process it [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 11 00 00 [10:03:29]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 17 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F1 [10:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:03:29]wFMCommunicate OK [10:03:29]requested_item fd.num is exist - process it [10:03:29]SAM_PROTO_GetFieldsCounters [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 13 00 00 [10:03:29]Write to MH i2c: E2 08 00 1A 06 80 13 00 00 00 00 00 00 9C [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 62 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 62 00 1A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [10:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:29]wFMCommunicate OK [10:03:29]SAM_PROTO_GetFieldsCounters done [10:03:29]requested_item shift.num is exist - process it [10:03:29]requested_item shift.opened is exist - process it [10:03:29]req_shift_opened [10:03:29]FM_GetShiftState [10:03:29]SAM_PROTO_GetShiftState [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 13 01 00 [10:03:29]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 0E 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C1 [10:03:29]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:03:29]wFMCommunicate OK [10:03:29]SAM_PROTO_GetShiftState done [10:03:29]FM_GetShiftState done [10:03:29]req_shift_opened done [10:03:29]requested_item shift.open_date is exist - process it [10:03:29]req_shift_open_date [10:03:29]req_shift_open_date done [10:03:29]produce_requested_data done [10:03:29]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39909,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [10:03:29]process_action_free close_receipt [10:03:29]json_value_free [10:03:29]json_value_free done [10:03:29]process_json_proto returns [10:03:29]Send response to host [10:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39909,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [10:03:29]free response buf [10:03:29]execute_script done [10:03:29]execute_script returns [10:03:29]free content buf [10:03:29]Sock 9.Close socket [10:03:29]Sock 9.Thread stoped [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:12]accept exits with 8 [10:05:12]New connection [10:05:12]New thread 3067182436 created [10:05:12]Thread 3067325796 joined [10:05:12]Waiting for new connection... [10:05:12] Sock 8.Parse request [10:05:12]Sock 8.Check first char [10:05:12]Sock 8.First char is OK [10:05:12]request: POST /json_proto HTTP/1.0 [10:05:12]Method: POST [10:05:12]URL: /json_proto [10:05:12]Method is POST - this is cgi request [10:05:12]url: /json_proto [10:05:12]query_string will be loaded in cgi processing [10:05:12]execute_cgi json_proto POST (null) [10:05:12]execute_cgi path=json_proto method=POST [10:05:12]POST find Content-Length [10:05:12]Host: 172.17.36.199:8080 [10:05:12]Content-Length: 809 [10:05:12]Content-Type: application/json [10:05:12] [10:05:12]POST finish read [10:05:12]Found Content-Length = 809 [10:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176469", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:12]execute_script... [10:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176469", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:12]POST & json_proto [10:05:12]process_json_proto [10:05:12]json parsed OK: [10:05:12]protocol is kg_v1.0 [10:05:12]action value=close_receipt [10:05:12]process_action close_receipt [10:05:12]cmd_close_receipt [10:05:12]MH_GetDate [10:05:12]Write to MH i2c: F0 00 00 1C 06 11 [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: F0 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: F0 09 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: F0 09 00 1C 06 00 5A 95 5D 66 91 46 04 65 0C [10:05:12]GetLastDocTimeStamp 1717409007 [10:05:12]current date 1717409114 [10:05:12]FM_GetShiftState [10:05:12]SAM_PROTO_GetShiftState [10:05:12]wFMCommunicate request_size=4 [10:05:12]MH_SAM_APDU [10:05:12]CAPDU: 80 13 01 00 [10:05:12]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:12]Read from MH i2c: E2 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: E2 0E 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C3 [10:05:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:05:12]wFMCommunicate OK [10:05:12]SAM_PROTO_GetShiftState done [10:05:12]FM_GetShiftState done [10:05:12]opened in 1717373769 [10:05:12]opened+sec_in_day 1717460169 [10:05:12]quantity*price = 4000 [10:05:12]sum+1 = 4001 [10:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 28 03.06.2024 10:05 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39910 ФПД: 33538143019418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39910&fm=33538143019418&tin=02508201610067®Number=0000000000092680&sum=4000 0 [10:05:13]StoreToDocumentArchive [10:05:13]shift 376 fd 39910 [10:05:13]save to /storage/0376/doc_00039910 [10:05:13]save last doc name /storage/0376/doc_00039910 to /storage/kkm_last_doc_name [10:05:13]save OK [10:05:13]Clear old archive folders... [10:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:05:13]tlvbuf is 00DFAB70 [10:05:13]SAM_PROTO_ClearQueue [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 09 00 00 [10:05:13]Write to MH i2c: E2 08 00 2A 06 80 09 00 00 00 00 00 00 A2 [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:13]Read from MH i2c: E2 03 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [10:05:13]RAPDU: 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_ClearQueue done [10:05:13]KKMCreateOFDPacket [10:05:13]OFDProtocolAddRootSTLVToBuf [10:05:13]FM_MakeSignedData [10:05:13]FM_MakeSignedData [10:05:13]SAM_PROTO_SignData [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 0D 01 02 [10:05:13]Write to MH i2c: E2 08 00 2B 06 80 0D 01 02 00 00 00 00 AA [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [10:05:13]RAPDU: 90 00 [10:05:13]wFMCommunicate OK [10:05:13]wFMCommunicate request_size=255 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5A 95 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 [10:05:13]Write to MH i2c: E2 02 01 2C 06 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5A 95 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 00 00 E7 [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [10:05:13]RAPDU: 90 00 [10:05:13]wFMCommunicate OK [10:05:13]wFMCommunicate request_size=34 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E6 9B 00 00 35 04 06 00 1E 80 B5 19 E1 9A [10:05:13]Write to MH i2c: E2 25 00 2D 06 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E6 9B 00 00 35 04 06 00 1E 80 B5 19 E1 9A 00 00 DB [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [10:05:13]RAPDU: 90 00 [10:05:13]wFMCommunicate OK [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 0D 03 02 [10:05:13]Write to MH i2c: E2 08 00 2E 06 80 0D 03 02 00 00 00 00 AF [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0B 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0B 00 2E 06 00 DF CE 5E 13 48 6B 55 03 90 00 D9 [10:05:13]RAPDU: DF CE 5E 13 48 6B 55 03 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_SignData done [10:05:13]FM_MakeSignedData done [10:05:13]CreateOFDProtocolMessage [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 11 00 00 [10:05:13]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 07 [10:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:05:13]wFMCommunicate OK [10:05:13]CreateOFDProtocolMessage done [10:05:13]OFDSenderStorePacket 39910 [10:05:13]StoreOFDPacket docnum=39910 [10:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 27 01 00 00 2C 9D 1F 01 6A 29 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5A 95 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E6 9B 00 00 35 04 06 00 1E 80 B5 19 E1 9A DF CE 5E 13 48 6B 55 03 [10:05:13]CheckFolder [10:05:13]dirname=/storage/ofd_packets [10:05:13]CheckFolder done [10:05:13]ProducePacketName [10:05:13]name=ofd_packets/00039910 [10:05:13]NVStorageSaveData ofd_packets/00039910 [10:05:13]File name is /storage/ofd_packets/00039910 [10:05:13]Write 325 bytes [10:05:13]NVStorageSaveData done [10:05:13]OFDSenderStorePacket done [10:05:13]KKMCreateOFDPacket done [10:05:13]NVStorageSaveData kkm_last_timestamp [10:05:13]File name is /storage/kkm_last_timestamp [10:05:13]Write 4 bytes [10:05:13]NVStorageSaveData done [10:05:13]ExternCall_PrintAddStr [10:05:13]wPrintStart [10:05:13]Write to MH i2c: 01 00 00 30 06 36 [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: 01 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: 01 07 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [10:05:13]RasterBufferAndPrint [10:05:13]line Счет N : (3)176469 [10:05:13]line ИНН: 02508201610067 [10:05:13]line Контрольно-Кассовый Чек [10:05:13]line ПРОДАЖА [10:05:13]line Товар: 50173372 [10:05:13]line Жев Orbit для детей Classic [10:05:13]line 1.000 * 40.00 [10:05:13]line = 40.00 [10:05:13]line НДС 12% НСП 1% [10:05:13]line > о реализуемом товаре [10:05:13]line ИТОГО: 40.00 [10:05:13]line НСП 1% : 0.35 [10:05:13]line НДС 12% : 4.25 [10:05:13]line Наличными: 0.00 [10:05:13]line Безнал.: 40.00 [10:05:13]line Место: АЗС № 63 "Партнер Нефть" [10:05:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [10:05:13]line СНО: Общий режим [10:05:13]line Чек 28 03.06.2024 10:05 [10:05:13]line Смена: 376 ФФД: 1.0 [10:05:13]line ЗНМ: 0300000037 [10:05:13]line РНМ: 0000000000092680 [10:05:13]line Версия ККМ: 001 [10:05:13]line Платежная система: Бакай Банк [10:05:13]line ФМ: 0000000000874882 [10:05:13]line ФД: 39910 [10:05:13]line ФПД: 33538143019418 [10:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39910&fm=33538143019418&tin=02508201610067®Number=0000000000092680&sum=4000 [10:05:14]OFD Sender: Processing packet 39910 [packets to send 5, broken 4] [10:05:14]ProducePacketName [10:05:14]name=ofd_packets/00039910 [10:05:14]OFD Sender: To server: pG, [10:05:14]CommunicateWithHost lk.salyk.kg:30040 [10:05:14]ConnectInit lk.salyk.kg [10:05:14]line 0 [10:05:14]written 0, free lines is 4095 [10:05:14]Connected sock=10 [10:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 27 01 00 00 2C 9D 1F 01 6A 29 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5A 95 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E6 9B 00 00 35 04 06 00 1E 80 B5 19 E1 9A DF CE 5E 13 48 6B 55 03 [10:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 E9 1C 47 00 ED 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E6 9B 00 00 F4 03 04 00 06 3E 5D 66 B6 04 01 00 00 CC B5 1D D8 C2 F1 BC C6 [10:05:14]CommunicateWithHost err = 0 [10:05:14]CheckOFDResponse [10:05:14]1017 (14) - 77093643461234 [10:05:14]1041 (16) - 0000000000874882 [10:05:14]1040 (4) - 39910 [10:05:14]1012 (4) - 03.06.2024 03:52 [10:05:14]1206 (1) - 0 [10:05:14]OFD Sender: Remove packet 39910 [10:05:14]ProducePacketName [10:05:14]name=ofd_packets/00039910 [10:05:14]NVStorageDeleteData [10:05:14]Write to MH i2c: 01 00 00 5A 06 60 [10:05:14]Write i2c OK [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: 01 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: 01 07 00 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FB 0C 6E [10:05:14]RasterBufferAndPrint [10:05:14]line [10:05:14]line [10:05:14]line [10:05:14]line [10:05:14]line [10:05:14]written 0, free lines is 3332 [10:05:14]MH_Cut [10:05:14]Write to MH i2c: D1 01 00 61 06 01 39 [10:05:14]Write i2c OK [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: D1 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: D1 01 00 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: D1 01 00 61 06 00 38 [10:05:14]Write to MH i2c: 01 00 00 62 06 68 [10:05:14]Write i2c OK [10:05:14]MH_I2C_Read... [10:05:15]OFD Sender: No OFD packet to send [10:05:15]*** Cut start [10:05:15]*** Partial cut [10:05:15]*** CUTSNS_PIN = 1 [10:05:15]*** CUTSNS_PIN = 0 [10:05:15]*** Brake cut motor [10:05:16]Read from MH i2c: 01 [10:05:16]MH_I2C_Read... [10:05:16]*** Stop cut motor [10:05:16]*** Cut end [10:05:16]Read from MH i2c: 01 07 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [10:05:16]process_action close_receipt done [10:05:16]requested_data is exist [10:05:16]produce_requested_data [10:05:16]requested_item fm.sn is exist - process it [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 11 00 00 [10:05:16]Write to MH i2c: E2 08 00 63 06 80 11 00 00 00 00 00 00 E3 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 63 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 3B [10:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:05:16]wFMCommunicate OK [10:05:16]requested_item fd.num is exist - process it [10:05:16]SAM_PROTO_GetFieldsCounters [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 13 00 00 [10:05:16]Write to MH i2c: E2 08 00 64 06 80 13 00 00 00 00 00 00 E6 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 62 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 62 00 64 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:16]wFMCommunicate OK [10:05:16]SAM_PROTO_GetFieldsCounters done [10:05:16]requested_item shift.num is exist - process it [10:05:16]requested_item shift.opened is exist - process it [10:05:16]req_shift_opened [10:05:16]FM_GetShiftState [10:05:16]SAM_PROTO_GetShiftState [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 13 01 00 [10:05:16]Write to MH i2c: E2 08 00 65 06 80 13 01 00 00 00 00 00 E8 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 0E 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 0E 00 65 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 0B [10:05:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:05:16]wFMCommunicate OK [10:05:16]SAM_PROTO_GetShiftState done [10:05:16]FM_GetShiftState done [10:05:16]req_shift_opened done [10:05:16]requested_item shift.open_date is exist - process it [10:05:16]req_shift_open_date [10:05:16]req_shift_open_date done [10:05:16]produce_requested_data done [10:05:16]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39910,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [10:05:16]process_action_free close_receipt [10:05:16]json_value_free [10:05:16]json_value_free done [10:05:16]process_json_proto returns [10:05:16]Send response to host [10:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39910,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [10:05:16]free response buf [10:05:16]execute_script done [10:05:16]execute_script returns [10:05:16]free content buf [10:05:16]Sock 8.Close socket [10:05:16]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:16]accept exits with 9 [10:22:16]New connection [10:22:16]New thread 3067325796 created [10:22:16]Thread 3067182436 joined [10:22:16]Waiting for new connection... [10:22:16] Sock 9.Parse request [10:22:16]Sock 9.Check first char [10:22:16]Sock 9.First char is OK [10:22:16]request: POST /json_proto HTTP/1.0 [10:22:16]Method: POST [10:22:16]URL: /json_proto [10:22:16]Method is POST - this is cgi request [10:22:16]url: /json_proto [10:22:16]query_string will be loaded in cgi processing [10:22:16]execute_cgi json_proto POST (null) [10:22:16]execute_cgi path=json_proto method=POST [10:22:16]POST find Content-Length [10:22:16]Host: 172.17.36.199:8080 [10:22:16]Content-Length: 894 [10:22:16]Content-Type: application/json [10:22:16] [10:22:16]POST finish read [10:22:16]Found Content-Length = 894 [10:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176470", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:16]execute_script... [10:22:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176470", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:16]POST & json_proto [10:22:16]process_json_proto [10:22:16]json parsed OK: [10:22:16]protocol is kg_v1.0 [10:22:16]action value=close_receipt [10:22:16]process_action close_receipt [10:22:16]cmd_close_receipt [10:22:16]MH_GetDate [10:22:16]Write to MH i2c: F0 00 00 66 06 5B [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: F0 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: F0 09 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: F0 09 00 66 06 00 5A 99 5D 66 91 46 04 65 5A [10:22:16]GetLastDocTimeStamp 1717409114 [10:22:16]current date 1717410138 [10:22:16]FM_GetShiftState [10:22:16]SAM_PROTO_GetShiftState [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 13 01 00 [10:22:16]Write to MH i2c: E2 08 00 67 06 80 13 01 00 00 00 00 00 EA [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0E 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0E 00 67 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 0D [10:22:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:22:16]wFMCommunicate OK [10:22:16]SAM_PROTO_GetShiftState done [10:22:16]FM_GetShiftState done [10:22:16]opened in 1717373769 [10:22:16]opened+sec_in_day 1717460169 [10:22:16]quantity*price = 8200 [10:22:16]sum+1 = 8201 [10:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 0.00 Безнал.: 82.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 29 03.06.2024 10:22 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39911 ФПД: 70902414125795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102218&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39911&fm=70902414125795&tin=02508201610067®Number=0000000000092680&sum=8200 0 [10:22:17]StoreToDocumentArchive [10:22:17]shift 376 fd 39911 [10:22:17]save to /storage/0376/doc_00039911 [10:22:17]save last doc name /storage/0376/doc_00039911 to /storage/kkm_last_doc_name [10:22:17]save OK [10:22:17]Clear old archive folders... [10:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=304 [10:22:17]tlvbuf is 00E064A0 [10:22:17]SAM_PROTO_ClearQueue [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 09 00 00 [10:22:17]Write to MH i2c: E2 08 00 74 06 80 09 00 00 00 00 00 00 EC [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_ClearQueue done [10:22:17]KKMCreateOFDPacket [10:22:17]OFDProtocolAddRootSTLVToBuf [10:22:17]FM_MakeSignedData [10:22:17]FM_MakeSignedData [10:22:17]SAM_PROTO_SignData [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 01 02 [10:22:17]Write to MH i2c: E2 08 00 75 06 80 0D 01 02 00 00 00 00 F4 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]wFMCommunicate request_size=255 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5A 99 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 [10:22:17]Write to MH i2c: E2 02 01 76 06 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5A 99 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 00 00 E1 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]wFMCommunicate request_size=63 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E7 9B 00 00 35 04 06 00 40 7C 41 35 2A E3 [10:22:17]Write to MH i2c: E2 42 00 77 06 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E7 9B 00 00 35 04 06 00 40 7C 41 35 2A E3 00 00 07 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 03 02 [10:22:17]Write to MH i2c: E2 08 00 78 06 80 0D 03 02 00 00 00 00 F9 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0B 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0B 00 78 06 00 0A 97 34 B0 59 36 AD 4E 90 00 09 [10:22:17]RAPDU: 0A 97 34 B0 59 36 AD 4E 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_SignData done [10:22:17]FM_MakeSignedData done [10:22:17]CreateOFDProtocolMessage [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 11 00 00 [10:22:17]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 51 [10:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:22:17]wFMCommunicate OK [10:22:17]CreateOFDProtocolMessage done [10:22:17]OFDSenderStorePacket 39911 [10:22:17]StoreOFDPacket docnum=39911 [10:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 44 01 00 00 6A BE 3C 01 56 AD 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5A 99 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E7 9B 00 00 35 04 06 00 40 7C 41 35 2A E3 0A 97 34 B0 59 36 AD 4E [10:22:17]CheckFolder [10:22:17]dirname=/storage/ofd_packets [10:22:17]CheckFolder done [10:22:17]ProducePacketName [10:22:17]name=ofd_packets/00039911 [10:22:17]NVStorageSaveData ofd_packets/00039911 [10:22:17]File name is /storage/ofd_packets/00039911 [10:22:17]Write 354 bytes [10:22:17]NVStorageSaveData done [10:22:17]OFDSenderStorePacket done [10:22:17]KKMCreateOFDPacket done [10:22:17]NVStorageSaveData kkm_last_timestamp [10:22:17]File name is /storage/kkm_last_timestamp [10:22:17]Write 4 bytes [10:22:17]NVStorageSaveData done [10:22:17]ExternCall_PrintAddStr [10:22:17]wPrintStart [10:22:17]Write to MH i2c: 01 00 00 7A 06 80 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [10:22:17]RasterBufferAndPrint [10:22:17]line Счет N : (3)176470 [10:22:17]line ИНН: 02508201610067 [10:22:17]line Контрольно-Кассовый Чек [10:22:17]line ПРОДАЖА [10:22:17]line Товар: 6921211114420 [10:22:17]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [10:22:17]line 2.000 * 41.00 [10:22:17]line = 82.00 [10:22:17]line НДС 12% НСП 1% [10:22:17]line > о реализуемом товаре [10:22:17]line ИТОГО: 82.00 [10:22:17]line НСП 1% : 0.73 [10:22:17]line НДС 12% : 8.71 [10:22:17]line Наличными: 0.00 [10:22:17]line Безнал.: 82.00 [10:22:17]line Место: АЗС № 63 "Партнер Нефть" [10:22:17]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [10:22:17]line СНО: Общий режим [10:22:17]line Чек 29 03.06.2024 10:22 [10:22:17]line Смена: 376 ФФД: 1.0 [10:22:17]line ЗНМ: 0300000037 [10:22:17]line РНМ: 0000000000092680 [10:22:17]line Версия ККМ: 001 [10:22:17]line Платежная система: Бакай Банк [10:22:17]line ФМ: 0000000000874882 [10:22:17]line ФД: 39911 [10:22:17]line ФПД: 70902414125795 [10:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102218&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39911&fm=70902414125795&tin=02508201610067®Number=0000000000092680&sum=8200 [10:22:18]line 0 [10:22:18]OFD Sender: Processing packet 39911 [packets to send 5, broken 4] [10:22:18]ProducePacketName [10:22:18]name=ofd_packets/00039911 [10:22:18]OFD Sender: To server: pG, [10:22:18]CommunicateWithHost lk.salyk.kg:30040 [10:22:18]ConnectInit lk.salyk.kg [10:22:18]written 0, free lines is 4095 [10:22:18]Connected sock=10 [10:22:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 44 01 00 00 6A BE 3C 01 56 AD 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5A 99 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E7 9B 00 00 35 04 06 00 40 7C 41 35 2A E3 0A 97 34 B0 59 36 AD 4E [10:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 79 A1 47 00 52 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E7 9B 00 00 F4 03 04 00 06 42 5D 66 B6 04 01 00 00 CA 7E 7D 22 60 E4 70 EB [10:22:18]CommunicateWithHost err = 0 [10:22:18]CheckOFDResponse [10:22:18]1017 (14) - 77093643461234 [10:22:18]1041 (16) - 0000000000874882 [10:22:18]1040 (4) - 39911 [10:22:18]1012 (4) - 03.06.2024 04:09 [10:22:18]1206 (1) - 0 [10:22:18]OFD Sender: Remove packet 39911 [10:22:18]ProducePacketName [10:22:18]name=ofd_packets/00039911 [10:22:18]NVStorageDeleteData [10:22:18]Write to MH i2c: 01 00 00 A5 06 AB [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 00 0D BF [10:22:18]RasterBufferAndPrint [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]written 0, free lines is 3337 [10:22:18]MH_Cut [10:22:18]Write to MH i2c: D1 01 00 AC 06 01 84 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: D1 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: D1 01 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: D1 01 00 AC 06 00 83 [10:22:18]Write to MH i2c: 01 00 00 AD 06 B3 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:19]OFD Sender: No OFD packet to send [10:22:19]*** Cut start [10:22:19]*** Partial cut [10:22:19]*** CUTSNS_PIN = 1 [10:22:19]*** CUTSNS_PIN = 0 [10:22:19]*** Brake cut motor [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]*** Stop cut motor [10:22:20]*** Cut end [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 AD 06 00 00 00 00 00 FF 0F C8 [10:22:20]process_action close_receipt done [10:22:20]requested_data is exist [10:22:20]produce_requested_data [10:22:20]requested_item fm.sn is exist - process it [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 11 00 00 [10:22:20]Write to MH i2c: E2 08 00 AE 06 80 11 00 00 00 00 00 00 2E [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 AE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 86 [10:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [10:22:20]wFMCommunicate OK [10:22:20]requested_item fd.num is exist - process it [10:22:20]SAM_PROTO_GetFieldsCounters [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 13 00 00 [10:22:20]Write to MH i2c: E2 08 00 AF 06 80 13 00 00 00 00 00 00 31 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 62 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 62 00 AF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10:22:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:20]wFMCommunicate OK [10:22:20]SAM_PROTO_GetFieldsCounters done [10:22:20]requested_item shift.num is exist - process it [10:22:20]requested_item shift.opened is exist - process it [10:22:20]req_shift_opened [10:22:20]FM_GetShiftState [10:22:20]SAM_PROTO_GetShiftState [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 13 01 00 [10:22:20]Write to MH i2c: E2 08 00 B0 06 80 13 01 00 00 00 00 00 33 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 0E 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 0E 00 B0 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 56 [10:22:20]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [10:22:20]wFMCommunicate OK [10:22:20]SAM_PROTO_GetShiftState done [10:22:20]FM_GetShiftState done [10:22:20]req_shift_opened done [10:22:20]requested_item shift.open_date is exist - process it [10:22:20]req_shift_open_date [10:22:20]req_shift_open_date done [10:22:20]produce_requested_data done [10:22:20]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39911,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [10:22:20]process_action_free close_receipt [10:22:20]json_value_free [10:22:20]json_value_free done [10:22:20]process_json_proto returns [10:22:20]Send response to host [10:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39911,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [10:22:20]free response buf [10:22:20]execute_script done [10:22:20]execute_script returns [10:22:20]free content buf [10:22:20]Sock 9.Close socket [10:22:20]Sock 9.Thread stoped [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37: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]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:04]accept exits with 8 [11:23:04]New connection [11:23:04]New thread 3067182436 created [11:23:04]Thread 3067325796 joined [11:23:04]Waiting for new connection... [11:23:04] Sock 8.Parse request [11:23:04]Sock 8.Check first char [11:23:04]Sock 8.First char is OK [11:23:04]request: POST /json_proto HTTP/1.0 [11:23:04]Method: POST [11:23:04]URL: /json_proto [11:23:04]Method is POST - this is cgi request [11:23:04]url: /json_proto [11:23:04]query_string will be loaded in cgi processing [11:23:04]execute_cgi json_proto POST (null) [11:23:04]execute_cgi path=json_proto method=POST [11:23:04]POST find Content-Length [11:23:04]Host: 172.17.36.199:8080 [11:23:04]Content-Length: 887 [11:23:04]Content-Type: application/json [11:23:04] [11:23:04]POST finish read [11:23:04]Found Content-Length = 887 [11:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176471", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 582.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:04]execute_script... [11:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176471", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 582.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:04]POST & json_proto [11:23:04]process_json_proto [11:23:04]json parsed OK: [11:23:04]protocol is kg_v1.0 [11:23:04]action value=close_receipt [11:23:04]process_action close_receipt [11:23:04]cmd_close_receipt [11:23:04]MH_GetDate [11:23:04]Write to MH i2c: F0 00 00 B1 06 A6 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 09 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 09 00 B1 06 00 9A A7 5D 66 91 46 04 65 F3 [11:23:04]GetLastDocTimeStamp 1717410138 [11:23:04]current date 1717413786 [11:23:04]FM_GetShiftState [11:23:04]SAM_PROTO_GetShiftState [11:23:04]wFMCommunicate request_size=4 [11:23:04]MH_SAM_APDU [11:23:04]CAPDU: 80 13 01 00 [11:23:04]Write to MH i2c: E2 08 00 B2 06 80 13 01 00 00 00 00 00 35 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:04]Read from MH i2c: E2 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: E2 0E 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: E2 0E 00 B2 06 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 58 [11:23:04]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:23:04]wFMCommunicate OK [11:23:04]SAM_PROTO_GetShiftState done [11:23:04]FM_GetShiftState done [11:23:04]opened in 1717373769 [11:23:04]opened+sec_in_day 1717460169 [11:23:04]quantity*price = 30000 [11:23:04]sum+1 = 30001 [11:23:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870216767921 Нагр.Таб.Палоч. HEETS Ruby Fuse 2.000 * 141.00 = 282.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 582.00 НСП 1% : 5.15 НДС 12% : 61.81 Наличными: 582.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 30 03.06.2024 11:23 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39912 ФПД: 276795131298575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112306&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39912&fm=276795131298575&tin=02508201610067®Number=0000000000092680&sum=58200 0 [11:23:05]StoreToDocumentArchive [11:23:05]shift 376 fd 39912 [11:23:05]save to /storage/0376/doc_00039912 [11:23:05]save last doc name /storage/0376/doc_00039912 to /storage/kkm_last_doc_name [11:23:05]save OK [11:23:05]Clear old archive folders... [11:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=389 [11:23:05]tlvbuf is 00E1B700 [11:23:05]SAM_PROTO_ClearQueue [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 09 00 00 [11:23:05]Write to MH i2c: E2 08 00 BF 06 80 09 00 00 00 00 00 00 37 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_ClearQueue done [11:23:05]KKMCreateOFDPacket [11:23:05]OFDProtocolAddRootSTLVToBuf [11:23:05]FM_MakeSignedData [11:23:05]FM_MakeSignedData [11:23:05]SAM_PROTO_SignData [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 01 02 [11:23:05]Write to MH i2c: E2 08 00 C0 06 80 0D 01 02 00 00 00 00 3F [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]wFMCommunicate request_size=255 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [11:23:05]Write to MH i2c: E2 02 01 C1 06 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 9A [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]wFMCommunicate request_size=148 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 03 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 18 00 00 00 00 07 04 06 00 58 E3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A A7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E8 9B 00 00 35 04 06 00 FB BE 63 7A 03 0F [11:23:05]Write to MH i2c: E2 97 00 C2 06 80 0D 02 02 8F 00 01 F7 03 06 00 03 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 18 00 00 00 00 07 04 06 00 58 E3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A A7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E8 9B 00 00 35 04 06 00 FB BE 63 7A 03 0F 00 00 D6 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 C2 06 00 90 00 3C [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 03 02 [11:23:06]Write to MH i2c: E2 08 00 C3 06 80 0D 03 02 00 00 00 00 44 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 C3 06 00 F7 BD 9C BD F1 16 8C A5 90 00 8A [11:23:06]RAPDU: F7 BD 9C BD F1 16 8C A5 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_SignData done [11:23:06]FM_MakeSignedData done [11:23:06]CreateOFDProtocolMessage [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 11 00 00 [11:23:06]Write to MH i2c: E2 08 00 C4 06 80 11 00 00 00 00 00 00 44 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 C4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 9C [11:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:23:06]wFMCommunicate OK [11:23:06]CreateOFDProtocolMessage done [11:23:06]OFDSenderStorePacket 39912 [11:23:06]StoreOFDPacket docnum=39912 [11:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 99 01 00 00 EA EF 91 01 E6 0F 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 18 00 00 00 00 07 04 06 00 58 E3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A A7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E8 9B 00 00 35 04 06 00 FB BE 63 7A 03 0F F7 BD 9C BD F1 16 8C A5 [11:23:06]CheckFolder [11:23:06]dirname=/storage/ofd_packets [11:23:06]CheckFolder done [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00039912 [11:23:06]NVStorageSaveData ofd_packets/00039912 [11:23:06]File name is /storage/ofd_packets/00039912 [11:23:06]Write 439 bytes [11:23:06]NVStorageSaveData done [11:23:06]OFDSenderStorePacket done [11:23:06]KKMCreateOFDPacket done [11:23:06]NVStorageSaveData kkm_last_timestamp [11:23:06]File name is /storage/kkm_last_timestamp [11:23:06]Write 4 bytes [11:23:06]NVStorageSaveData done [11:23:06]ExternCall_PrintAddStr [11:23:06]wPrintStart [11:23:06]Write to MH i2c: 01 00 00 C5 06 CB [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 FF 0F E0 [11:23:06]RasterBufferAndPrint [11:23:06]line Счет N : (3)176471 [11:23:06]line ИНН: 02508201610067 [11:23:06]line Контрольно-Кассовый Чек [11:23:06]line ПРОДАЖА [11:23:06]line Товар: 46230614 [11:23:06]line Сигареты Richmond Red Edition [11:23:06]line 2.000 * 150.00 [11:23:06]line = 300.00 [11:23:06]line НДС 12% НСП 1% [11:23:06]line > о реализуемом товаре [11:23:06]line Товар: 4870216767921 [11:23:06]line Нагр.Таб.Палоч. HEETS Ruby Fuse [11:23:06]line 2.000 * 141.00 [11:23:06]line = 282.00 [11:23:06]line НДС 12% НСП 1% [11:23:06]line > о реализуемом товаре [11:23:06]line ИТОГО: 582.00 [11:23:06]line НСП 1% : 5.15 [11:23:06]line НДС 12% : 61.81 [11:23:06]line Наличными: 582.00 [11:23:06]line Безнал.: 0.00 [11:23:06]line Место: АЗС № 63 "Партнер Нефть" [11:23:06]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [11:23:06]line СНО: Общий режим [11:23:06]line Чек 30 03.06.2024 11:23 [11:23:06]line Смена: 376 ФФД: 1.0 [11:23:06]line ЗНМ: 0300000037 [11:23:06]line РНМ: 0000000000092680 [11:23:06]line Версия ККМ: 001 [11:23:06]line ФМ: 0000000000874882 [11:23:06]line ФД: 39912 [11:23:06]line ФПД: 276795131298575 [11:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112306&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39912&fm=276795131298575&tin=02508201610067®Number=0000000000092680&sum=58200 [11:23:06]line 0 [11:23:06]OFD Sender: Processing packet 39912 [packets to send 5, broken 4] [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00039912 [11:23:06]OFD Sender: To server: pG, [11:23:06]CommunicateWithHost lk.salyk.kg:30040 [11:23:06]ConnectInit lk.salyk.kg [11:23:06]written 0, free lines is 4095 [11:23:06]Connected sock=10 [11:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 99 01 00 00 EA EF 91 01 E6 0F 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 18 00 00 00 00 07 04 06 00 58 E3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A A7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E8 9B 00 00 35 04 06 00 FB BE 63 7A 03 0F F7 BD 9C BD F1 16 8C A5 [11:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 0D 08 47 00 DB 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E8 9B 00 00 F4 03 04 00 46 50 5D 66 B6 04 01 00 00 3C B0 62 EB D3 F3 CD 30 [11:23:06]CommunicateWithHost err = 0 [11:23:06]CheckOFDResponse [11:23:06]1017 (14) - 77093643461234 [11:23:06]1041 (16) - 0000000000874882 [11:23:06]1040 (4) - 39912 [11:23:06]1012 (4) - 03.06.2024 05:10 [11:23:06]1206 (1) - 0 [11:23:06]OFD Sender: Remove packet 39912 [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00039912 [11:23:06]NVStorageDeleteData [11:23:07]Write to MH i2c: 01 00 00 F5 06 FB [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 9E 0C AC [11:23:07]RasterBufferAndPrint [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]written 0, free lines is 3237 [11:23:07]MH_Cut [11:23:07]Write to MH i2c: D1 01 00 FC 06 01 D4 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 FC 06 00 D3 [11:23:07]Write to MH i2c: 01 00 00 FD 06 03 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]OFD Sender: No OFD packet to send [11:23:07]*** Cut start [11:23:07]*** Partial cut [11:23:07]*** CUTSNS_PIN = 1 [11:23:07]*** CUTSNS_PIN = 0 [11:23:08]*** Brake cut motor [11:23:08]Read from MH i2c: 01 [11:23:08]MH_I2C_Read... [11:23:08]*** Stop cut motor [11:23:08]*** Cut end [11:23:08]Read from MH i2c: 01 07 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [11:23:08]process_action close_receipt done [11:23:08]requested_data is exist [11:23:08]produce_requested_data [11:23:08]requested_item fm.sn is exist - process it [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 11 00 00 [11:23:08]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 17 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D6 [11:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:23:08]wFMCommunicate OK [11:23:08]requested_item fd.num is exist - process it [11:23:08]SAM_PROTO_GetFieldsCounters [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 13 00 00 [11:23:08]Write to MH i2c: E2 08 00 FF 06 80 13 00 00 00 00 00 00 81 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 62 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 62 00 FF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [11:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_GetFieldsCounters done [11:23:08]requested_item shift.num is exist - process it [11:23:08]requested_item shift.opened is exist - process it [11:23:08]req_shift_opened [11:23:08]FM_GetShiftState [11:23:08]SAM_PROTO_GetShiftState [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 13 01 00 [11:23:08]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A7 [11:23:08]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_GetShiftState done [11:23:08]FM_GetShiftState done [11:23:08]req_shift_opened done [11:23:08]requested_item shift.open_date is exist - process it [11:23:08]req_shift_open_date [11:23:08]req_shift_open_date done [11:23:08]produce_requested_data done [11:23:08]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39912,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [11:23:08]process_action_free close_receipt [11:23:08]json_value_free [11:23:08]json_value_free done [11:23:08]process_json_proto returns [11:23:08]Send response to host [11:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39912,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [11:23:08]free response buf [11:23:08]execute_script done [11:23:08]execute_script returns [11:23:08]free content buf [11:23:08]Sock 8.Close socket [11:23:08]Sock 8.Thread stoped [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:01]accept exits with 9 [11:29:01]New connection [11:29:01]New thread 3067325796 created [11:29:01]Thread 3067182436 joined [11:29:01]Waiting for new connection... [11:29:01] Sock 9.Parse request [11:29:01]Sock 9.Check first char [11:29:01]Sock 9.First char is OK [11:29:01]request: POST /json_proto HTTP/1.0 [11:29:01]Method: POST [11:29:01]URL: /json_proto [11:29:01]Method is POST - this is cgi request [11:29:01]url: /json_proto [11:29:01]query_string will be loaded in cgi processing [11:29:01]execute_cgi json_proto POST (null) [11:29:01]execute_cgi path=json_proto method=POST [11:29:01]POST find Content-Length [11:29:01]Host: 172.17.36.199:8080 [11:29:01]Content-Length: 1115 [11:29:01]Content-Type: application/json [11:29:01] [11:29:01]POST finish read [11:29:01]Found Content-Length = 1115 [11:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176472", "tax_sys" : 0, "items" : [ { "code": "8683130038406", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 double sunlover ", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:01]execute_script... [11:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176472", "tax_sys" : 0, "items" : [ { "code": "8683130038406", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 double sunlover ", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:01]POST & json_proto [11:29:01]process_json_proto [11:29:01]json parsed OK: [11:29:01]protocol is kg_v1.0 [11:29:01]action value=close_receipt [11:29:01]process_action close_receipt [11:29:01]cmd_close_receipt [11:29:01]MH_GetDate [11:29:01]Write to MH i2c: F0 00 00 01 07 F7 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: F0 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: F0 09 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: F0 09 00 01 07 00 FF A8 5D 66 91 46 04 65 AA [11:29:01]GetLastDocTimeStamp 1717413786 [11:29:01]current date 1717414143 [11:29:01]FM_GetShiftState [11:29:01]SAM_PROTO_GetShiftState [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 13 01 00 [11:29:01]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0E 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A9 [11:29:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_GetShiftState done [11:29:01]FM_GetShiftState done [11:29:01]opened in 1717373769 [11:29:01]opened+sec_in_day 1717460169 [11:29:01]quantity*price = 13500 [11:29:01]sum+1 = 13501 [11:29:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 0.00 Безнал.: 285.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 31 03.06.2024 11:29 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39913 ФПД: 175492490781704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112903&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39913&fm=175492490781704&tin=02508201610067®Number=0000000000092680&sum=28500 0 [11:29:02]StoreToDocumentArchive [11:29:02]shift 376 fd 39913 [11:29:02]save to /storage/0376/doc_00039913 [11:29:02]save last doc name /storage/0376/doc_00039913 to /storage/kkm_last_doc_name [11:29:02]save OK [11:29:02]Clear old archive folders... [11:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=409 [11:29:02]tlvbuf is 00E04DE0 [11:29:02]SAM_PROTO_ClearQueue [11:29:02]wFMCommunicate request_size=4 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 09 00 00 [11:29:02]Write to MH i2c: E2 08 00 0F 07 80 09 00 00 00 00 00 00 88 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:02]Read from MH i2c: E2 03 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [11:29:02]RAPDU: 90 00 [11:29:02]wFMCommunicate OK [11:29:02]SAM_PROTO_ClearQueue done [11:29:02]KKMCreateOFDPacket [11:29:02]OFDProtocolAddRootSTLVToBuf [11:29:02]FM_MakeSignedData [11:29:02]FM_MakeSignedData [11:29:02]SAM_PROTO_SignData [11:29:02]wFMCommunicate request_size=4 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 0D 01 02 [11:29:02]Write to MH i2c: E2 08 00 10 07 80 0D 01 02 00 00 00 00 90 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 03 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [11:29:02]RAPDU: 90 00 [11:29:02]wFMCommunicate OK [11:29:02]wFMCommunicate request_size=255 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 34 30 36 06 04 37 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 73 75 6E 6C 6F 76 65 72 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [11:29:02]Write to MH i2c: E2 02 01 11 07 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 34 30 36 06 04 37 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 73 75 6E 6C 6F 76 65 72 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 0A [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 03 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [11:29:02]RAPDU: 90 00 [11:29:02]wFMCommunicate OK [11:29:02]wFMCommunicate request_size=168 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 0D 02 02 A3 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FF A8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E9 9B 00 00 35 04 06 00 9F 9C 07 92 E4 08 [11:29:02]Write to MH i2c: E2 AB 00 12 07 80 0D 02 02 A3 00 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FF A8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E9 9B 00 00 35 04 06 00 9F 9C 07 92 E4 08 00 00 C7 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [11:29:03]RAPDU: 90 00 [11:29:03]wFMCommunicate OK [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 0D 03 02 [11:29:03]Write to MH i2c: E2 08 00 13 07 80 0D 03 02 00 00 00 00 95 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0B 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0B 00 13 07 00 BA 60 1B D3 28 EC 8A 6F 90 00 AB [11:29:03]RAPDU: BA 60 1B D3 28 EC 8A 6F 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_SignData done [11:29:03]FM_MakeSignedData done [11:29:03]CreateOFDProtocolMessage [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 11 00 00 [11:29:03]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 17 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 ED [11:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:29:03]wFMCommunicate OK [11:29:03]CreateOFDProtocolMessage done [11:29:03]OFDSenderStorePacket 39913 [11:29:03]StoreOFDPacket docnum=39913 [11:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 AD 01 00 00 38 8B A5 01 83 FB 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 34 30 36 06 04 37 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 73 75 6E 6C 6F 76 65 72 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FF A8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E9 9B 00 00 35 04 06 00 9F 9C 07 92 E4 08 BA 60 1B D3 28 EC 8A 6F [11:29:03]CheckFolder [11:29:03]dirname=/storage/ofd_packets [11:29:03]CheckFolder done [11:29:03]ProducePacketName [11:29:03]name=ofd_packets/00039913 [11:29:03]NVStorageSaveData ofd_packets/00039913 [11:29:03]File name is /storage/ofd_packets/00039913 [11:29:03]Write 459 bytes [11:29:03]NVStorageSaveData done [11:29:03]OFDSenderStorePacket done [11:29:03]KKMCreateOFDPacket done [11:29:03]NVStorageSaveData kkm_last_timestamp [11:29:03]File name is /storage/kkm_last_timestamp [11:29:03]Write 4 bytes [11:29:03]NVStorageSaveData done [11:29:03]ExternCall_PrintAddStr [11:29:03]wPrintStart [11:29:03]Write to MH i2c: 01 00 00 15 07 1C [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: 01 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: 01 07 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [11:29:03]RasterBufferAndPrint [11:29:03]line Счет N : (3)176472 [11:29:03]line ИНН: 02508201610067 [11:29:03]line Контрольно-Кассовый Чек [11:29:03]line ПРОДАЖА [11:29:03]line Товар: 8683130038406 [11:29:03]line Мороженое Algida Магнат double sunlover [11:29:03]line 1.000 * 135.00 [11:29:03]line = 135.00 [11:29:03]line НДС 12% НСП 1% [11:29:03]line > о реализуемом товаре [11:29:03]line Товар: 2000034730018 [11:29:03]line Кофе Американо (GABB TRADE) [11:29:03]line 2.000 * 75.00 [11:29:03]line = 150.00 [11:29:03]line НДС 12% НСП 1% [11:29:03]line > о реализуемом товаре [11:29:03]line ИТОГО: 285.00 [11:29:03]line НСП 1% : 2.52 [11:29:03]line НДС 12% : 30.27 [11:29:03]line Наличными: 0.00 [11:29:03]line Безнал.: 285.00 [11:29:03]line Место: АЗС № 63 "Партнер Нефть" [11:29:03]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [11:29:03]line СНО: Общий режим [11:29:03]line Чек 31 03.06.2024 11:29 [11:29:03]line Смена: 376 ФФД: 1.0 [11:29:03]line ЗНМ: 0300000037 [11:29:03]line РНМ: 0000000000092680 [11:29:03]line Версия ККМ: 001 [11:29:03]line Платежная система: Бакай Банк [11:29:03]line ФМ: 0000000000874882 [11:29:03]line ФД: 39913 [11:29:03]line ФПД: 175492490781704 [11:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112903&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39913&fm=175492490781704&tin=02508201610067®Number=0000000000092680&sum=28500 [11:29:03]line 0 [11:29:03]written 0, free lines is 4095 [11:29:03]OFD Sender: Processing packet 39913 [packets to send 5, broken 4] [11:29:03]ProducePacketName [11:29:03]name=ofd_packets/00039913 [11:29:03]OFD Sender: To server: pG, [11:29:03]CommunicateWithHost lk.salyk.kg:30040 [11:29:03]ConnectInit lk.salyk.kg [11:29:03]Connected sock=10 [11:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 AD 01 00 00 38 8B A5 01 83 FB 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 34 30 36 06 04 37 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 73 75 6E 6C 6F 76 65 72 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FF A8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E9 9B 00 00 35 04 06 00 9F 9C 07 92 E4 08 BA 60 1B D3 28 EC 8A 6F [11:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D5 58 47 00 DE 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 E9 9B 00 00 F4 03 04 00 AC 51 5D 66 B6 04 01 00 00 E1 F1 4D 47 FA 2B 62 19 [11:29:03]CommunicateWithHost err = 0 [11:29:03]CheckOFDResponse [11:29:03]1017 (14) - 77093643461234 [11:29:03]1041 (16) - 0000000000874882 [11:29:03]1040 (4) - 39913 [11:29:03]1012 (4) - 03.06.2024 05:16 [11:29:03]1206 (1) - 0 [11:29:03]OFD Sender: Remove packet 39913 [11:29:03]ProducePacketName [11:29:03]name=ofd_packets/00039913 [11:29:03]NVStorageDeleteData [11:29:04]Write to MH i2c: 01 00 00 47 07 4E [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 96 0C F7 [11:29:04]RasterBufferAndPrint [11:29:04]line [11:29:04]line [11:29:04]line [11:29:04]line [11:29:04]line [11:29:04]written 0, free lines is 3228 [11:29:04]MH_Cut [11:29:04]Write to MH i2c: D1 01 00 4E 07 01 27 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: D1 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: D1 01 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: D1 01 00 4E 07 00 26 [11:29:04]Write to MH i2c: 01 00 00 4F 07 56 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]OFD Sender: No OFD packet to send [11:29:04]*** Cut start [11:29:04]*** Partial cut [11:29:04]*** CUTSNS_PIN = 1 [11:29:04]*** CUTSNS_PIN = 0 [11:29:05]*** Brake cut motor [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]*** Stop cut motor [11:29:05]*** Cut end [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 FF 0F 6B [11:29:05]process_action close_receipt done [11:29:05]requested_data is exist [11:29:05]produce_requested_data [11:29:05]requested_item fm.sn is exist - process it [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 11 00 00 [11:29:05]Write to MH i2c: E2 08 00 50 07 80 11 00 00 00 00 00 00 D1 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 50 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 29 [11:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:29:05]wFMCommunicate OK [11:29:05]requested_item fd.num is exist - process it [11:29:05]SAM_PROTO_GetFieldsCounters [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 13 00 00 [11:29:05]Write to MH i2c: E2 08 00 51 07 80 13 00 00 00 00 00 00 D4 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 62 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 62 00 51 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [11:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 E9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:05]wFMCommunicate OK [11:29:05]SAM_PROTO_GetFieldsCounters done [11:29:05]requested_item shift.num is exist - process it [11:29:05]requested_item shift.opened is exist - process it [11:29:05]req_shift_opened [11:29:05]FM_GetShiftState [11:29:05]SAM_PROTO_GetShiftState [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 13 01 00 [11:29:05]Write to MH i2c: E2 08 00 52 07 80 13 01 00 00 00 00 00 D6 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0E 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0E 00 52 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 F9 [11:29:05]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:29:05]wFMCommunicate OK [11:29:05]SAM_PROTO_GetShiftState done [11:29:05]FM_GetShiftState done [11:29:05]req_shift_opened done [11:29:05]requested_item shift.open_date is exist - process it [11:29:05]req_shift_open_date [11:29:05]req_shift_open_date done [11:29:05]produce_requested_data done [11:29:05]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39913,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [11:29:05]process_action_free close_receipt [11:29:05]json_value_free [11:29:05]json_value_free done [11:29:05]process_json_proto returns [11:29:05]Send response to host [11:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39913,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [11:29:05]free response buf [11:29:05]execute_script done [11:29:05]execute_script returns [11:29:05]free content buf [11:29:05]Sock 9.Close socket [11:29:05]Sock 9.Thread stoped [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:55]accept exits with 8 [11:29:55]New connection [11:29:55]New thread 3067182436 created [11:29:55]Thread 3067325796 joined [11:29:55]Waiting for new connection... [11:29:55] Sock 8.Parse request [11:29:55]Sock 8.Check first char [11:29:55]Sock 8.First char is OK [11:29:55]request: POST /json_proto HTTP/1.0 [11:29:55]Method: POST [11:29:55]URL: /json_proto [11:29:55]Method is POST - this is cgi request [11:29:55]url: /json_proto [11:29:55]query_string will be loaded in cgi processing [11:29:55]execute_cgi json_proto POST (null) [11:29:55]execute_cgi path=json_proto method=POST [11:29:55]POST find Content-Length [11:29:55]Host: 172.17.36.199:8080 [11:29:55]Content-Length: 634 [11:29:55]Content-Type: application/json [11:29:55] [11:29:55]POST finish read [11:29:55]Found Content-Length = 634 [11:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176473", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:55]execute_script... [11:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176473", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:55]POST & json_proto [11:29:55]process_json_proto [11:29:55]json parsed OK: [11:29:55]protocol is kg_v1.0 [11:29:55]action value=close_receipt [11:29:55]process_action close_receipt [11:29:55]cmd_close_receipt [11:29:55]MH_GetDate [11:29:55]Write to MH i2c: F0 00 00 53 07 49 [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 09 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 09 00 53 07 00 35 A9 5D 66 91 46 04 65 33 [11:29:55]GetLastDocTimeStamp 1717414143 [11:29:55]current date 1717414197 [11:29:55]FM_GetShiftState [11:29:55]SAM_PROTO_GetShiftState [11:29:55]wFMCommunicate request_size=4 [11:29:55]MH_SAM_APDU [11:29:55]CAPDU: 80 13 01 00 [11:29:55]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:55]Read from MH i2c: E2 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FB [11:29:55]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:29:55]wFMCommunicate OK [11:29:55]SAM_PROTO_GetShiftState done [11:29:55]FM_GetShiftState done [11:29:55]opened in 1717373769 [11:29:55]opened+sec_in_day 1717460169 [11:29:55]quantity*price = 12000 [11:29:55]sum+1 = 12001 [11:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 32 03.06.2024 11:29 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39914 ФПД: 212879471511780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112957&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39914&fm=212879471511780&tin=02508201610067®Number=0000000000092680&sum=12000 0 [11:29:56]StoreToDocumentArchive [11:29:56]shift 376 fd 39914 [11:29:56]save to /storage/0376/doc_00039914 [11:29:56]save last doc name /storage/0376/doc_00039914 to /storage/kkm_last_doc_name [11:29:56]save OK [11:29:56]Clear old archive folders... [11:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:29:56]tlvbuf is 00DFA4C0 [11:29:56]SAM_PROTO_ClearQueue [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 09 00 00 [11:29:56]Write to MH i2c: E2 08 00 61 07 80 09 00 00 00 00 00 00 DA [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_ClearQueue done [11:29:56]KKMCreateOFDPacket [11:29:56]OFDProtocolAddRootSTLVToBuf [11:29:56]FM_MakeSignedData [11:29:56]FM_MakeSignedData [11:29:56]SAM_PROTO_SignData [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 01 02 [11:29:56]Write to MH i2c: E2 08 00 62 07 80 0D 01 02 00 00 00 00 E2 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=255 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 35 A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:29:56]Write to MH i2c: E2 02 01 63 07 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 35 A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 97 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=30 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 EA 9B 00 00 35 04 06 00 C1 9C DD 47 88 E4 [11:29:56]Write to MH i2c: E2 21 00 64 07 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 EA 9B 00 00 35 04 06 00 C1 9C DD 47 88 E4 00 00 55 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 03 02 [11:29:56]Write to MH i2c: E2 08 00 65 07 80 0D 03 02 00 00 00 00 E7 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0B 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0B 00 65 07 00 54 AC 9F C3 7F 56 8F 3D 90 00 EB [11:29:56]RAPDU: 54 AC 9F C3 7F 56 8F 3D 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_SignData done [11:29:56]FM_MakeSignedData done [11:29:56]CreateOFDProtocolMessage [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 11 00 00 [11:29:56]Write to MH i2c: E2 08 00 66 07 80 11 00 00 00 00 00 00 E7 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 66 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 3F [11:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:29:56]wFMCommunicate OK [11:29:56]CreateOFDProtocolMessage done [11:29:56]OFDSenderStorePacket 39914 [11:29:56]StoreOFDPacket docnum=39914 [11:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 4F C6 1B 01 29 49 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 35 A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EA 9B 00 00 35 04 06 00 C1 9C DD 47 88 E4 54 AC 9F C3 7F 56 8F 3D [11:29:56]CheckFolder [11:29:56]dirname=/storage/ofd_packets [11:29:56]CheckFolder done [11:29:56]ProducePacketName [11:29:56]name=ofd_packets/00039914 [11:29:56]NVStorageSaveData ofd_packets/00039914 [11:29:56]File name is /storage/ofd_packets/00039914 [11:29:56]Write 321 bytes [11:29:56]NVStorageSaveData done [11:29:56]OFDSenderStorePacket done [11:29:56]KKMCreateOFDPacket done [11:29:56]NVStorageSaveData kkm_last_timestamp [11:29:56]File name is /storage/kkm_last_timestamp [11:29:56]Write 4 bytes [11:29:56]NVStorageSaveData done [11:29:56]ExternCall_PrintAddStr [11:29:56]wPrintStart [11:29:56]Write to MH i2c: 01 00 00 67 07 6E [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [11:29:56]RasterBufferAndPrint [11:29:56]line Счет N : (3)176473 [11:29:56]line ИНН: 02508201610067 [11:29:56]line Контрольно-Кассовый Чек [11:29:56]line ПРОДАЖА [11:29:56]line Товар: 4700025314002 [11:29:56]line ВОДКА МЯГКАЯ 0,1л [11:29:56]line 2.000 * 60.00 [11:29:56]line = 120.00 [11:29:56]line НДС 12% НСП 1% [11:29:56]line > о реализуемом товаре [11:29:56]line ИТОГО: 120.00 [11:29:56]line НСП 1% : 1.06 [11:29:56]line НДС 12% : 12.74 [11:29:56]line Наличными: 120.00 [11:29:56]line Безнал.: 0.00 [11:29:56]line Место: АЗС № 63 "Партнер Нефть" [11:29:56]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [11:29:56]line СНО: Общий режим [11:29:56]line Чек 32 03.06.2024 11:29 [11:29:56]line Смена: 376 ФФД: 1.0 [11:29:56]line ЗНМ: 0300000037 [11:29:56]line РНМ: 0000000000092680 [11:29:56]line Версия ККМ: 001 [11:29:56]line ФМ: 0000000000874882 [11:29:56]line ФД: 39914 [11:29:56]line ФПД: 212879471511780 [11:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112957&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39914&fm=212879471511780&tin=02508201610067®Number=0000000000092680&sum=12000 [11:29:57]OFD Sender: Processing packet 39914 [packets to send 5, broken 4] [11:29:57]ProducePacketName [11:29:57]name=ofd_packets/00039914 [11:29:57]OFD Sender: To server: pG, [11:29:57]CommunicateWithHost lk.salyk.kg:30040 [11:29:57]ConnectInit lk.salyk.kg [11:29:57]line 0 [11:29:57]written 0, free lines is 4095 [11:29:57]Connected sock=9 [11:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 4F C6 1B 01 29 49 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 35 A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EA 9B 00 00 35 04 06 00 C1 9C DD 47 88 E4 54 AC 9F C3 7F 56 8F 3D [11:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 40 FB 47 00 36 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EA 9B 00 00 F4 03 04 00 E1 51 5D 66 B6 04 01 00 00 60 BA 76 74 7B 9E F1 A0 [11:29:57]CommunicateWithHost err = 0 [11:29:57]CheckOFDResponse [11:29:57]1017 (14) - 77093643461234 [11:29:57]1041 (16) - 0000000000874882 [11:29:57]1040 (4) - 39914 [11:29:57]1012 (4) - 03.06.2024 05:17 [11:29:57]1206 (1) - 0 [11:29:57]OFD Sender: Remove packet 39914 [11:29:57]ProducePacketName [11:29:57]name=ofd_packets/00039914 [11:29:57]NVStorageDeleteData [11:29:57]Write to MH i2c: 01 00 00 8F 07 96 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 07 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 1D 0D C7 [11:29:57]RasterBufferAndPrint [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]written 0, free lines is 3363 [11:29:57]MH_Cut [11:29:57]Write to MH i2c: D1 01 00 96 07 01 6F [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 01 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 01 00 96 07 00 6E [11:29:57]Write to MH i2c: 01 00 00 97 07 9E [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:58]OFD Sender: No OFD packet to send [11:29:58]*** Cut start [11:29:58]*** Partial cut [11:29:58]*** CUTSNS_PIN = 1 [11:29:58]*** CUTSNS_PIN = 0 [11:29:58]*** Brake cut motor [11:29:58]Read from MH i2c: 01 [11:29:58]MH_I2C_Read... [11:29:58]*** Stop cut motor [11:29:58]*** Cut end [11:29:58]Read from MH i2c: 01 07 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [11:29:58]process_action close_receipt done [11:29:58]requested_data is exist [11:29:58]produce_requested_data [11:29:58]requested_item fm.sn is exist - process it [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 11 00 00 [11:29:58]Write to MH i2c: E2 08 00 98 07 80 11 00 00 00 00 00 00 19 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 98 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 71 [11:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:29:58]wFMCommunicate OK [11:29:58]requested_item fd.num is exist - process it [11:29:58]SAM_PROTO_GetFieldsCounters [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 13 00 00 [11:29:58]Write to MH i2c: E2 08 00 99 07 80 13 00 00 00 00 00 00 1C [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 62 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 62 00 99 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [11:29:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:59]wFMCommunicate OK [11:29:59]SAM_PROTO_GetFieldsCounters done [11:29:59]requested_item shift.num is exist - process it [11:29:59]requested_item shift.opened is exist - process it [11:29:59]req_shift_opened [11:29:59]FM_GetShiftState [11:29:59]SAM_PROTO_GetShiftState [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 13 01 00 [11:29:59]Write to MH i2c: E2 08 00 9A 07 80 13 01 00 00 00 00 00 1E [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 9A 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 41 [11:29:59]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:29:59]wFMCommunicate OK [11:29:59]SAM_PROTO_GetShiftState done [11:29:59]FM_GetShiftState done [11:29:59]req_shift_opened done [11:29:59]requested_item shift.open_date is exist - process it [11:29:59]req_shift_open_date [11:29:59]req_shift_open_date done [11:29:59]produce_requested_data done [11:29:59]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39914,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [11:29:59]process_action_free close_receipt [11:29:59]json_value_free [11:29:59]json_value_free done [11:29:59]process_json_proto returns [11:29:59]Send response to host [11:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39914,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [11:29:59]free response buf [11:29:59]execute_script done [11:29:59]execute_script returns [11:29:59]free content buf [11:29:59]Sock 8.Close socket [11:29:59]Sock 8.Thread stoped [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:01]accept exits with 10 [11:33:01]New connection [11:33:01]New thread 3067325796 created [11:33:01]Thread 3067182436 joined [11:33:01]Waiting for new connection... [11:33:01] Sock 10.Parse request [11:33:01]Sock 10.Check first char [11:33:01]Sock 10.First char is OK [11:33:01]request: POST /json_proto HTTP/1.0 [11:33:01]Method: POST [11:33:01]URL: /json_proto [11:33:01]Method is POST - this is cgi request [11:33:01]url: /json_proto [11:33:01]query_string will be loaded in cgi processing [11:33:01]execute_cgi json_proto POST (null) [11:33:01]execute_cgi path=json_proto method=POST [11:33:01]POST find Content-Length [11:33:01]Host: 172.17.36.199:8080 [11:33:01]Content-Length: 622 [11:33:01]Content-Type: application/json [11:33:01] [11:33:01]POST finish read [11:33:01]Found Content-Length = 622 [11:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176474", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:01]execute_script... [11:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176474", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:01]POST & json_proto [11:33:01]process_json_proto [11:33:01]json parsed OK: [11:33:01]protocol is kg_v1.0 [11:33:01]action value=close_receipt [11:33:01]process_action close_receipt [11:33:01]cmd_close_receipt [11:33:01]MH_GetDate [11:33:01]Write to MH i2c: F0 00 00 9B 07 91 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: F0 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: F0 09 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: F0 09 00 9B 07 00 EF A9 5D 66 91 46 04 65 35 [11:33:01]GetLastDocTimeStamp 1717414197 [11:33:01]current date 1717414383 [11:33:01]FM_GetShiftState [11:33:01]SAM_PROTO_GetShiftState [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 13 01 00 [11:33:01]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0E 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 43 [11:33:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_GetShiftState done [11:33:01]FM_GetShiftState done [11:33:01]opened in 1717373769 [11:33:01]opened+sec_in_day 1717460169 [11:33:01]quantity*price = 15100 [11:33:01]sum+1 = 15101 [11:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 33 03.06.2024 11:33 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39915 ФПД: 256758536268727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113303&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39915&fm=256758536268727&tin=02508201610067®Number=0000000000092680&sum=15100 0 [11:33:02]StoreToDocumentArchive [11:33:02]shift 376 fd 39915 [11:33:02]save to /storage/0376/doc_00039915 [11:33:02]save last doc name /storage/0376/doc_00039915 to /storage/kkm_last_doc_name [11:33:02]save OK [11:33:02]Clear old archive folders... [11:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:33:02]tlvbuf is B6E03970 [11:33:02]SAM_PROTO_ClearQueue [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 09 00 00 [11:33:02]Write to MH i2c: E2 08 00 A9 07 80 09 00 00 00 00 00 00 22 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:02]Read from MH i2c: E2 03 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [11:33:02]RAPDU: 90 00 [11:33:02]wFMCommunicate OK [11:33:02]SAM_PROTO_ClearQueue done [11:33:02]KKMCreateOFDPacket [11:33:02]OFDProtocolAddRootSTLVToBuf [11:33:02]FM_MakeSignedData [11:33:02]FM_MakeSignedData [11:33:02]SAM_PROTO_SignData [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 0D 01 02 [11:33:02]Write to MH i2c: E2 08 00 AA 07 80 0D 01 02 00 00 00 00 2A [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [11:33:02]RAPDU: 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=255 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [11:33:02]Write to MH i2c: E2 02 01 AB 07 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 E8 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [11:33:02]RAPDU: 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=33 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EB 9B 00 00 35 04 06 00 E9 85 41 58 EB B7 [11:33:02]Write to MH i2c: E2 24 00 AC 07 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EB 9B 00 00 35 04 06 00 E9 85 41 58 EB B7 00 00 F0 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [11:33:02]RAPDU: 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 0D 03 02 [11:33:02]Write to MH i2c: E2 08 00 AD 07 80 0D 03 02 00 00 00 00 2F [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0B 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0B 00 AD 07 00 05 E6 76 7E 12 FC 4E 6B 90 00 D6 [11:33:02]RAPDU: 05 E6 76 7E 12 FC 4E 6B 90 00 [11:33:02]wFMCommunicate OK [11:33:02]SAM_PROTO_SignData done [11:33:02]FM_MakeSignedData done [11:33:02]CreateOFDProtocolMessage [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 11 00 00 [11:33:02]Write to MH i2c: E2 08 00 AE 07 80 11 00 00 00 00 00 00 2F [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 17 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 17 00 AE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 87 [11:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:33:02]wFMCommunicate OK [11:33:02]CreateOFDProtocolMessage done [11:33:02]OFDSenderStorePacket 39915 [11:33:02]StoreOFDPacket docnum=39915 [11:33:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 7E B6 1E 01 F7 CC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EB 9B 00 00 35 04 06 00 E9 85 41 58 EB B7 05 E6 76 7E 12 FC 4E 6B [11:33:02]CheckFolder [11:33:02]dirname=/storage/ofd_packets [11:33:02]CheckFolder done [11:33:02]ProducePacketName [11:33:02]name=ofd_packets/00039915 [11:33:02]NVStorageSaveData ofd_packets/00039915 [11:33:02]File name is /storage/ofd_packets/00039915 [11:33:02]Write 324 bytes [11:33:02]NVStorageSaveData done [11:33:02]OFDSenderStorePacket done [11:33:02]KKMCreateOFDPacket done [11:33:02]NVStorageSaveData kkm_last_timestamp [11:33:02]File name is /storage/kkm_last_timestamp [11:33:02]Write 4 bytes [11:33:02]NVStorageSaveData done [11:33:02]ExternCall_PrintAddStr [11:33:02]wPrintStart [11:33:02]Write to MH i2c: 01 00 00 AF 07 B6 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [11:33:02]RasterBufferAndPrint [11:33:02]line Счет N : (3)176474 [11:33:02]line ИНН: 02508201610067 [11:33:02]line Контрольно-Кассовый Чек [11:33:02]line ПРОДАЖА [11:33:02]line Товар: 48741958 [11:33:02]line Сигареты Parliament Aqua Blue [11:33:02]line 1.000 * 151.00 [11:33:02]line = 151.00 [11:33:02]line НДС 12% НСП 1% [11:33:02]line > о реализуемом товаре [11:33:02]line ИТОГО: 151.00 [11:33:02]line НСП 1% : 1.34 [11:33:02]line НДС 12% : 16.03 [11:33:02]line Наличными: 151.00 [11:33:02]line Безнал.: 0.00 [11:33:02]line Место: АЗС № 63 "Партнер Нефть" [11:33:02]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [11:33:02]line СНО: Общий режим [11:33:02]line Чек 33 03.06.2024 11:33 [11:33:02]line Смена: 376 ФФД: 1.0 [11:33:02]line ЗНМ: 0300000037 [11:33:02]line РНМ: 0000000000092680 [11:33:02]line Версия ККМ: 001 [11:33:02]line ФМ: 0000000000874882 [11:33:02]line ФД: 39915 [11:33:02]line ФПД: 256758536268727 [11:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113303&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39915&fm=256758536268727&tin=02508201610067®Number=0000000000092680&sum=15100 [11:33:03]line 0 [11:33:03]OFD Sender: Processing packet 39915 [packets to send 5, broken 4] [11:33:03]ProducePacketName [11:33:03]name=ofd_packets/00039915 [11:33:03]OFD Sender: To server: pG, [11:33:03]CommunicateWithHost lk.salyk.kg:30040 [11:33:03]ConnectInit lk.salyk.kg [11:33:03]written 0, free lines is 4095 [11:33:03]Connected sock=9 [11:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 7E B6 1E 01 F7 CC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF A9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EB 9B 00 00 35 04 06 00 E9 85 41 58 EB B7 05 E6 76 7E 12 FC 4E 6B [11:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 B5 6D 47 00 55 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 38 37 34 38 38 32 10 04 04 00 EB 9B 00 00 F4 03 04 00 9B 52 5D 66 B6 04 01 00 00 C4 BA F5 78 00 F1 78 7B [11:33:03]CommunicateWithHost err = 0 [11:33:03]CheckOFDResponse [11:33:03]1017 (14) - 77093643461234 [11:33:03]1041 (16) - 0000000000874882 [11:33:03]1040 (4) - 39915 [11:33:03]1012 (4) - 03.06.2024 05:20 [11:33:03]1206 (1) - 0 [11:33:03]OFD Sender: Remove packet 39915 [11:33:03]ProducePacketName [11:33:03]name=ofd_packets/00039915 [11:33:03]NVStorageDeleteData [11:33:03]Write to MH i2c: 01 00 00 D8 07 DF [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: 01 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: 01 07 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: 01 07 00 D8 07 00 00 00 00 00 0B 0D FE [11:33:03]RasterBufferAndPrint [11:33:03]line [11:33:03]line [11:33:03]line [11:33:03]line [11:33:03]line [11:33:03]written 0, free lines is 3348 [11:33:03]MH_Cut [11:33:03]Write to MH i2c: D1 01 00 DF 07 01 B8 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: D1 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: D1 01 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: D1 01 00 DF 07 00 B7 [11:33:03]Write to MH i2c: 01 00 00 E0 07 E7 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:04]OFD Sender: No OFD packet to send [11:33:04]*** Cut start [11:33:04]*** Partial cut [11:33:04]*** CUTSNS_PIN = 1 [11:33:04]*** CUTSNS_PIN = 0 [11:33:04]*** Brake cut motor [11:33:04]Read from MH i2c: 01 [11:33:04]MH_I2C_Read... [11:33:04]*** Stop cut motor [11:33:04]*** Cut end [11:33:04]Read from MH i2c: 01 07 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 FF 0F FC [11:33:04]process_action close_receipt done [11:33:04]requested_data is exist [11:33:04]produce_requested_data [11:33:04]requested_item fm.sn is exist - process it [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 11 00 00 [11:33:04]Write to MH i2c: E2 08 00 E1 07 80 11 00 00 00 00 00 00 62 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 17 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 17 00 E1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BA [11:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [11:33:05]wFMCommunicate OK [11:33:05]requested_item fd.num is exist - process it [11:33:05]SAM_PROTO_GetFieldsCounters [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 00 00 [11:33:05]Write to MH i2c: E2 08 00 E2 07 80 13 00 00 00 00 00 00 65 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 62 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 62 00 E2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [11:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetFieldsCounters done [11:33:05]requested_item shift.num is exist - process it [11:33:05]requested_item shift.opened is exist - process it [11:33:05]req_shift_opened [11:33:05]FM_GetShiftState [11:33:05]SAM_PROTO_GetShiftState [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 01 00 [11:33:05]Write to MH i2c: E2 08 00 E3 07 80 13 01 00 00 00 00 00 67 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 E3 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8A [11:33:05]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetShiftState done [11:33:05]FM_GetShiftState done [11:33:05]req_shift_opened done [11:33:05]requested_item shift.open_date is exist - process it [11:33:05]req_shift_open_date [11:33:05]req_shift_open_date done [11:33:05]produce_requested_data done [11:33:05]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39915,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [11:33:05]process_action_free close_receipt [11:33:05]json_value_free [11:33:05]json_value_free done [11:33:05]process_json_proto returns [11:33:05]Send response to host [11:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39915,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [11:33:05]free response buf [11:33:05]execute_script done [11:33:05]execute_script returns [11:33:05]free content buf [11:33:05]Sock 10.Close socket [11:33:05]Sock 10.Thread stoped [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06: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:55]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27: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:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:17]accept exits with 8 [12:34:17]New connection [12:34:17]New thread 3067182436 created [12:34:17]Thread 3067325796 joined [12:34:17]Waiting for new connection... [12:34:17] Sock 8.Parse request [12:34:17]Sock 8.Check first char [12:34:17]Sock 8.First char is OK [12:34:17]request: POST /json_proto HTTP/1.0 [12:34:17]Method: POST [12:34:17]URL: /json_proto [12:34:17]Method is POST - this is cgi request [12:34:17]url: /json_proto [12:34:17]query_string will be loaded in cgi processing [12:34:17]execute_cgi json_proto POST (null) [12:34:17]execute_cgi path=json_proto method=POST [12:34:17]POST find Content-Length [12:34:17]Host: 172.17.36.199:8080 [12:34:17]Content-Length: 654 [12:34:17]Content-Type: application/json [12:34:17] [12:34:17]POST finish read [12:34:17]Found Content-Length = 654 [12:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176475", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:17]execute_script... [12:34:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176475", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:17]POST & json_proto [12:34:17]process_json_proto [12:34:17]json parsed OK: [12:34:17]protocol is kg_v1.0 [12:34:17]action value=close_receipt [12:34:17]process_action close_receipt [12:34:17]cmd_close_receipt [12:34:17]MH_GetDate [12:34:17]Write to MH i2c: F0 00 00 E4 07 DA [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 09 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 09 00 E4 07 00 4B B8 5D 66 91 46 04 65 E9 [12:34:17]GetLastDocTimeStamp 1717414383 [12:34:17]current date 1717418059 [12:34:17]FM_GetShiftState [12:34:17]SAM_PROTO_GetShiftState [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 01 00 [12:34:17]Write to MH i2c: E2 08 00 E5 07 80 13 01 00 00 00 00 00 69 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 E5 07 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8C [12:34:17]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetShiftState done [12:34:17]FM_GetShiftState done [12:34:17]opened in 1717373769 [12:34:17]opened+sec_in_day 1717460169 [12:34:17]quantity*price = 9500 [12:34:17]sum+1 = 9501 [12:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 34 03.06.2024 12:34 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39916 ФПД: 236773245300897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123419&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39916&fm=236773245300897&tin=02508201610067®Number=0000000000092680&sum=9500 0 [12:34:18]StoreToDocumentArchive [12:34:18]shift 376 fd 39916 [12:34:18]save to /storage/0376/doc_00039916 [12:34:18]save last doc name /storage/0376/doc_00039916 to /storage/kkm_last_doc_name [12:34:18]save OK [12:34:18]Clear old archive folders... [12:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:34:18]tlvbuf is 00DFA6C0 [12:34:18]SAM_PROTO_ClearQueue [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 09 00 00 [12:34:18]Write to MH i2c: E2 08 00 F2 07 80 09 00 00 00 00 00 00 6B [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]SAM_PROTO_ClearQueue done [12:34:18]KKMCreateOFDPacket [12:34:18]OFDProtocolAddRootSTLVToBuf [12:34:18]FM_MakeSignedData [12:34:18]FM_MakeSignedData [12:34:18]SAM_PROTO_SignData [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 01 02 [12:34:18]Write to MH i2c: E2 08 00 F3 07 80 0D 01 02 00 00 00 00 73 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=255 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B B8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:34:18]Write to MH i2c: E2 02 01 F4 07 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B B8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 74 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=52 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EC 9B 00 00 35 04 06 00 D7 58 11 2D B0 A1 [12:34:18]Write to MH i2c: E2 37 00 F5 07 80 0D 02 02 2F 00 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EC 9B 00 00 35 04 06 00 D7 58 11 2D B0 A1 00 00 83 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 03 02 [12:34:18]Write to MH i2c: E2 08 00 F6 07 80 0D 03 02 00 00 00 00 78 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0B 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0B 00 F6 07 00 80 AA E8 12 42 6C 8E 0B 90 00 E4 [12:34:18]RAPDU: 80 AA E8 12 42 6C 8E 0B 90 00 [12:34:18]wFMCommunicate OK [12:34:18]SAM_PROTO_SignData done [12:34:18]FM_MakeSignedData done [12:34:18]CreateOFDProtocolMessage [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 11 00 00 [12:34:18]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 17 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D0 [12:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:34:18]wFMCommunicate OK [12:34:18]CreateOFDProtocolMessage done [12:34:18]OFDSenderStorePacket 39916 [12:34:18]StoreOFDPacket docnum=39916 [12:34:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 90 5F 31 01 74 35 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B B8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EC 9B 00 00 35 04 06 00 D7 58 11 2D B0 A1 80 AA E8 12 42 6C 8E 0B [12:34:18]CheckFolder [12:34:18]dirname=/storage/ofd_packets [12:34:18]CheckFolder done [12:34:18]ProducePacketName [12:34:18]name=ofd_packets/00039916 [12:34:18]NVStorageSaveData ofd_packets/00039916 [12:34:18]File name is /storage/ofd_packets/00039916 [12:34:18]Write 343 bytes [12:34:18]NVStorageSaveData done [12:34:18]OFDSenderStorePacket done [12:34:18]KKMCreateOFDPacket done [12:34:18]NVStorageSaveData kkm_last_timestamp [12:34:18]File name is /storage/kkm_last_timestamp [12:34:18]Write 4 bytes [12:34:18]NVStorageSaveData done [12:34:18]ExternCall_PrintAddStr [12:34:18]wPrintStart [12:34:18]Write to MH i2c: 01 00 00 F8 07 FF [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 07 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 07 00 F8 07 00 00 00 00 00 FF 0F 14 [12:34:18]RasterBufferAndPrint [12:34:18]line Счет N : (3)176475 [12:34:18]line ИНН: 02508201610067 [12:34:18]line Контрольно-Кассовый Чек [12:34:18]line ПРОДАЖА [12:34:18]line Товар: 4700000480050 [12:34:18]line Напиток Nitro Energy эн green ж/б 0,45л [12:34:18]line 1.000 * 95.00 [12:34:18]line = 95.00 [12:34:18]line НДС 12% НСП 1% [12:34:18]line > о реализуемом товаре [12:34:18]line ИТОГО: 95.00 [12:34:18]line НСП 1% : 0.84 [12:34:18]line НДС 12% : 10.09 [12:34:18]line Наличными: 95.00 [12:34:18]line Безнал.: 0.00 [12:34:18]line Место: АЗС № 63 "Партнер Нефть" [12:34:18]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [12:34:18]line СНО: Общий режим [12:34:18]line Чек 34 03.06.2024 12:34 [12:34:18]line Смена: 376 ФФД: 1.0 [12:34:18]line ЗНМ: 0300000037 [12:34:18]line РНМ: 0000000000092680 [12:34:18]line Версия ККМ: 001 [12:34:18]line ФМ: 0000000000874882 [12:34:18]line ФД: 39916 [12:34:18]line ФПД: 236773245300897 [12:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123419&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39916&fm=236773245300897&tin=02508201610067®Number=0000000000092680&sum=9500 [12:34:19]line 0 [12:34:19]OFD Sender: Processing packet 39916 [packets to send 5, broken 4] [12:34:19]ProducePacketName [12:34:19]name=ofd_packets/00039916 [12:34:19]OFD Sender: To server: pG, [12:34:19]CommunicateWithHost lk.salyk.kg:30040 [12:34:19]ConnectInit lk.salyk.kg [12:34:19]written 0, free lines is 4095 [12:34:19]Connected sock=10 [12:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 90 5F 31 01 74 35 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B B8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EC 9B 00 00 35 04 06 00 D7 58 11 2D B0 A1 80 AA E8 12 42 6C 8E 0B [12:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 01 98 47 00 4E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EC 9B 00 00 F4 03 04 00 F7 60 5D 66 B6 04 01 00 00 71 CC 40 2D 52 E1 BF 5A [12:34:19]CommunicateWithHost err = 0 [12:34:19]CheckOFDResponse [12:34:19]1017 (14) - 77093643461234 [12:34:19]1041 (16) - 0000000000874882 [12:34:19]1040 (4) - 39916 [12:34:19]1012 (4) - 03.06.2024 06:21 [12:34:19]1206 (1) - 0 [12:34:19]OFD Sender: Remove packet 39916 [12:34:19]ProducePacketName [12:34:19]name=ofd_packets/00039916 [12:34:19]NVStorageDeleteData [12:34:19]Write to MH i2c: 01 00 00 21 08 29 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 09 0D 46 [12:34:19]RasterBufferAndPrint [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]written 0, free lines is 3343 [12:34:19]MH_Cut [12:34:19]Write to MH i2c: D1 01 00 28 08 01 02 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 28 08 00 01 [12:34:19]Write to MH i2c: 01 00 00 29 08 31 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]OFD Sender: No OFD packet to send [12:34:20]*** Cut start [12:34:20]*** Partial cut [12:34:20]*** CUTSNS_PIN = 1 [12:34:20]*** CUTSNS_PIN = 0 [12:34:20]*** Brake cut motor [12:34:20]Read from MH i2c: 01 [12:34:20]MH_I2C_Read... [12:34:20]*** Stop cut motor [12:34:20]*** Cut end [12:34:20]Read from MH i2c: 01 07 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [12:34:20]process_action close_receipt done [12:34:20]requested_data is exist [12:34:20]produce_requested_data [12:34:20]requested_item fm.sn is exist - process it [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 11 00 00 [12:34:20]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 17 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 04 [12:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:34:21]wFMCommunicate OK [12:34:21]requested_item fd.num is exist - process it [12:34:21]SAM_PROTO_GetFieldsCounters [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 13 00 00 [12:34:21]Write to MH i2c: E2 08 00 2B 08 80 13 00 00 00 00 00 00 AF [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 62 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 62 00 2B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [12:34:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_GetFieldsCounters done [12:34:21]requested_item shift.num is exist - process it [12:34:21]requested_item shift.opened is exist - process it [12:34:21]req_shift_opened [12:34:21]FM_GetShiftState [12:34:21]SAM_PROTO_GetShiftState [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 13 01 00 [12:34:21]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0E 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D4 [12:34:21]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_GetShiftState done [12:34:21]FM_GetShiftState done [12:34:21]req_shift_opened done [12:34:21]requested_item shift.open_date is exist - process it [12:34:21]req_shift_open_date [12:34:21]req_shift_open_date done [12:34:21]produce_requested_data done [12:34:21]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39916,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [12:34:21]process_action_free close_receipt [12:34:21]json_value_free [12:34:21]json_value_free done [12:34:21]process_json_proto returns [12:34:21]Send response to host [12:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39916,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [12:34:21]free response buf [12:34:21]execute_script done [12:34:21]execute_script returns [12:34:21]free content buf [12:34:21]Sock 8.Close socket [12:34:21]Sock 8.Thread stoped [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:16]accept exits with 9 [12:38:16]New connection [12:38:16]New thread 3067325796 created [12:38:16]Thread 3067182436 joined [12:38:16]Waiting for new connection... [12:38:16] Sock 9.Parse request [12:38:16]Sock 9.Check first char [12:38:16]Sock 9.First char is OK [12:38:16]request: POST /json_proto HTTP/1.0 [12:38:16]Method: POST [12:38:16]URL: /json_proto [12:38:16]Method is POST - this is cgi request [12:38:16]url: /json_proto [12:38:16]query_string will be loaded in cgi processing [12:38:16]execute_cgi json_proto POST (null) [12:38:16]execute_cgi path=json_proto method=POST [12:38:16]POST find Content-Length [12:38:16]Host: 172.17.36.199:8080 [12:38:16]Content-Length: 620 [12:38:16]Content-Type: application/json [12:38:16] [12:38:16]POST finish read [12:38:16]Found Content-Length = 620 [12:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176476", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:16]execute_script... [12: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 : (3)176476", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:16]POST & json_proto [12:38:16]process_json_proto [12:38:16]json parsed OK: [12:38:16]protocol is kg_v1.0 [12:38:16]action value=close_receipt [12:38:16]process_action close_receipt [12:38:16]cmd_close_receipt [12:38:16]MH_GetDate [12:38:16]Write to MH i2c: F0 00 00 2D 08 24 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: F0 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: F0 09 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: F0 09 00 2D 08 00 3A B9 5D 66 91 46 04 65 23 [12:38:16]GetLastDocTimeStamp 1717418059 [12:38:16]current date 1717418298 [12:38:16]FM_GetShiftState [12:38:16]SAM_PROTO_GetShiftState [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 13 01 00 [12:38:16]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 0E 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D6 [12:38:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:38:16]wFMCommunicate OK [12:38:16]SAM_PROTO_GetShiftState done [12:38:16]FM_GetShiftState done [12:38:16]opened in 1717373769 [12:38:16]opened+sec_in_day 1717460169 [12:38:16]quantity*price = 13500 [12:38:16]sum+1 = 13501 [12:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 35 03.06.2024 12:38 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39917 ФПД: 67088039161825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123818&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39917&fm=67088039161825&tin=02508201610067®Number=0000000000092680&sum=13500 0 [12:38:17]StoreToDocumentArchive [12:38:17]shift 376 fd 39917 [12:38:17]save to /storage/0376/doc_00039917 [12:38:17]save last doc name /storage/0376/doc_00039917 to /storage/kkm_last_doc_name [12:38:17]save OK [12:38:17]Clear old archive folders... [12:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:38:17]tlvbuf is 00DF9C80 [12:38:17]SAM_PROTO_ClearQueue [12:38:17]wFMCommunicate request_size=4 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 09 00 00 [12:38:17]Write to MH i2c: E2 08 00 3B 08 80 09 00 00 00 00 00 00 B5 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:17]Read from MH i2c: E2 03 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [12:38:17]RAPDU: 90 00 [12:38:17]wFMCommunicate OK [12:38:17]SAM_PROTO_ClearQueue done [12:38:17]KKMCreateOFDPacket [12:38:17]OFDProtocolAddRootSTLVToBuf [12:38:17]FM_MakeSignedData [12:38:17]FM_MakeSignedData [12:38:17]SAM_PROTO_SignData [12:38:17]wFMCommunicate request_size=4 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 0D 01 02 [12:38:17]Write to MH i2c: E2 08 00 3C 08 80 0D 01 02 00 00 00 00 BD [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [12:38:17]RAPDU: 90 00 [12:38:17]wFMCommunicate OK [12:38:17]wFMCommunicate request_size=255 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3A B9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [12:38:17]Write to MH i2c: E2 02 01 3D 08 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3A B9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 CA [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [12:38:17]RAPDU: 90 00 [12:38:17]wFMCommunicate OK [12:38:17]wFMCommunicate request_size=31 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 ED 9B 00 00 35 04 06 00 3D 04 26 BE 2F E1 [12:38:17]Write to MH i2c: E2 22 00 3E 08 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 ED 9B 00 00 35 04 06 00 3D 04 26 BE 2F E1 00 00 AD [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [12:38:17]RAPDU: 90 00 [12:38:17]wFMCommunicate OK [12:38:17]wFMCommunicate request_size=4 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 0D 03 02 [12:38:17]Write to MH i2c: E2 08 00 3F 08 80 0D 03 02 00 00 00 00 C2 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 0B 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 0B 00 3F 08 00 5F 2D EE 01 C3 F2 79 59 90 00 C5 [12:38:17]RAPDU: 5F 2D EE 01 C3 F2 79 59 90 00 [12:38:17]wFMCommunicate OK [12:38:17]SAM_PROTO_SignData done [12:38:17]FM_MakeSignedData done [12:38:17]CreateOFDProtocolMessage [12:38:17]wFMCommunicate request_size=4 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 11 00 00 [12:38:17]Write to MH i2c: E2 08 00 40 08 80 11 00 00 00 00 00 00 C2 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 17 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 17 00 40 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1A [12:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:38:17]wFMCommunicate OK [12:38:17]CreateOFDProtocolMessage done [12:38:17]OFDSenderStorePacket 39917 [12:38:17]StoreOFDPacket docnum=39917 [12:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 7D 27 1C 01 C7 57 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3A B9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 ED 9B 00 00 35 04 06 00 3D 04 26 BE 2F E1 5F 2D EE 01 C3 F2 79 59 [12:38:17]CheckFolder [12:38:17]dirname=/storage/ofd_packets [12:38:17]CheckFolder done [12:38:17]ProducePacketName [12:38:17]name=ofd_packets/00039917 [12:38:17]NVStorageSaveData ofd_packets/00039917 [12:38:17]File name is /storage/ofd_packets/00039917 [12:38:17]Write 322 bytes [12:38:17]NVStorageSaveData done [12:38:17]OFDSenderStorePacket done [12:38:17]KKMCreateOFDPacket done [12:38:17]NVStorageSaveData kkm_last_timestamp [12:38:17]File name is /storage/kkm_last_timestamp [12:38:17]Write 4 bytes [12:38:17]NVStorageSaveData done [12:38:17]ExternCall_PrintAddStr [12:38:17]wPrintStart [12:38:17]Write to MH i2c: 01 00 00 41 08 49 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 07 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [12:38:17]RasterBufferAndPrint [12:38:17]line Счет N : (3)176476 [12:38:17]line ИНН: 02508201610067 [12:38:17]line Контрольно-Кассовый Чек [12:38:17]line ПРОДАЖА [12:38:17]line Товар: 48745000 [12:38:17]line Сигареты Winston Purple Mix [12:38:17]line 1.000 * 135.00 [12:38:17]line = 135.00 [12:38:17]line НДС 12% НСП 1% [12:38:17]line > о реализуемом товаре [12:38:17]line ИТОГО: 135.00 [12:38:17]line НСП 1% : 1.19 [12:38:17]line НДС 12% : 14.34 [12:38:17]line Наличными: 135.00 [12:38:17]line Безнал.: 0.00 [12:38:17]line Место: АЗС № 63 "Партнер Нефть" [12:38:17]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [12:38:17]line СНО: Общий режим [12:38:17]line Чек 35 03.06.2024 12:38 [12:38:17]line Смена: 376 ФФД: 1.0 [12:38:17]line ЗНМ: 0300000037 [12:38:17]line РНМ: 0000000000092680 [12:38:17]line Версия ККМ: 001 [12:38:17]line ФМ: 0000000000874882 [12:38:17]line ФД: 39917 [12:38:17]line ФПД: 67088039161825 [12:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123818&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39917&fm=67088039161825&tin=02508201610067®Number=0000000000092680&sum=13500 [12:38:18]OFD Sender: Processing packet 39917 [packets to send 5, broken 4] [12:38:18]ProducePacketName [12:38:18]name=ofd_packets/00039917 [12:38:18]OFD Sender: To server: pG, [12:38:18]CommunicateWithHost lk.salyk.kg:30040 [12:38:18]ConnectInit lk.salyk.kg [12:38:18]line 0 [12:38:18]written 0, free lines is 4095 [12:38:18]Connected sock=10 [12:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 7D 27 1C 01 C7 57 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3A B9 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 ED 9B 00 00 35 04 06 00 3D 04 26 BE 2F E1 5F 2D EE 01 C3 F2 79 59 [12:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 DF EA 47 00 EC 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 ED 9B 00 00 F4 03 04 00 E6 61 5D 66 B6 04 01 00 00 85 6E C3 60 7D 9D FC 24 [12:38:18]CommunicateWithHost err = 0 [12:38:18]CheckOFDResponse [12:38:18]1017 (14) - 77093643461234 [12:38:18]1041 (16) - 0000000000874882 [12:38:18]1040 (4) - 39917 [12:38:18]1012 (4) - 03.06.2024 06:25 [12:38:18]1206 (1) - 0 [12:38:18]OFD Sender: Remove packet 39917 [12:38:18]ProducePacketName [12:38:18]name=ofd_packets/00039917 [12:38:18]NVStorageDeleteData [12:38:18]Write to MH i2c: 01 00 00 69 08 71 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: 01 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: 01 07 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 05 0D 8A [12:38:18]RasterBufferAndPrint [12:38:18]line [12:38:18]line [12:38:18]line [12:38:18]line [12:38:18]line [12:38:18]written 0, free lines is 3342 [12:38:18]MH_Cut [12:38:18]Write to MH i2c: D1 01 00 70 08 01 4A [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: D1 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: D1 01 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: D1 01 00 70 08 00 49 [12:38:18]Write to MH i2c: 01 00 00 71 08 79 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:19]OFD Sender: No OFD packet to send [12:38:19]*** Cut start [12:38:19]*** Partial cut [12:38:19]*** CUTSNS_PIN = 1 [12:38:19]*** CUTSNS_PIN = 0 [12:38:19]*** Brake cut motor [12:38:19]Read from MH i2c: 01 [12:38:19]MH_I2C_Read... [12:38:19]*** Stop cut motor [12:38:19]*** Cut end [12:38:19]Read from MH i2c: 01 07 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [12:38:19]process_action close_receipt done [12:38:19]requested_data is exist [12:38:19]produce_requested_data [12:38:19]requested_item fm.sn is exist - process it [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 11 00 00 [12:38:19]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 17 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 4C [12:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:38:20]wFMCommunicate OK [12:38:20]requested_item fd.num is exist - process it [12:38:20]SAM_PROTO_GetFieldsCounters [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 13 00 00 [12:38:20]Write to MH i2c: E2 08 00 73 08 80 13 00 00 00 00 00 00 F7 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 62 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 62 00 73 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 ED 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 ED 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:20]wFMCommunicate OK [12:38:20]SAM_PROTO_GetFieldsCounters done [12:38:20]requested_item shift.num is exist - process it [12:38:20]requested_item shift.opened is exist - process it [12:38:20]req_shift_opened [12:38:20]FM_GetShiftState [12:38:20]SAM_PROTO_GetShiftState [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 13 01 00 [12:38:20]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 0E 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1C [12:38:20]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:38:20]wFMCommunicate OK [12:38:20]SAM_PROTO_GetShiftState done [12:38:20]FM_GetShiftState done [12:38:20]req_shift_opened done [12:38:20]requested_item shift.open_date is exist - process it [12:38:20]req_shift_open_date [12:38:20]req_shift_open_date done [12:38:20]produce_requested_data done [12:38:20]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39917,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [12:38:20]process_action_free close_receipt [12:38:20]json_value_free [12:38:20]json_value_free done [12:38:20]process_json_proto returns [12:38:20]Send response to host [12:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39917,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [12:38:20]free response buf [12:38:20]execute_script done [12:38:20]execute_script returns [12:38:20]free content buf [12:38:20]Sock 9.Close socket [12:38:20]Sock 9.Thread stoped [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:12]accept exits with 8 [12:58:12]New connection [12:58:12]New thread 3067182436 created [12:58:12]Thread 3067325796 joined [12:58:12]Waiting for new connection... [12:58:12] Sock 8.Parse request [12:58:12]Sock 8.Check first char [12:58:12]Sock 8.First char is OK [12:58:12]request: POST /json_proto HTTP/1.0 [12:58:12]Method: POST [12:58:12]URL: /json_proto [12:58:12]Method is POST - this is cgi request [12:58:12]url: /json_proto [12:58:12]query_string will be loaded in cgi processing [12:58:12]execute_cgi json_proto POST (null) [12:58:12]execute_cgi path=json_proto method=POST [12:58:12]POST find Content-Length [12:58:12]Host: 172.17.36.199:8080 [12:58:12]Content-Length: 845 [12:58:12]Content-Type: application/json [12:58:12] [12:58:12]POST finish read [12:58:12]Found Content-Length = 845 [12:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176477", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:12]execute_script... [12:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176477", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:12]POST & json_proto [12:58:12]process_json_proto [12:58:12]json parsed OK: [12:58:12]protocol is kg_v1.0 [12:58:12]action value=close_receipt [12:58:12]process_action close_receipt [12:58:12]cmd_close_receipt [12:58:12]MH_GetDate [12:58:12]Write to MH i2c: F0 00 00 75 08 6C [12:58:12]Write i2c OK [12:58:12]MH_I2C_Read... [12:58:12]Read from MH i2c: F0 [12:58:12]MH_I2C_Read... [12:58:12]Read from MH i2c: F0 09 00 [12:58:12]MH_I2C_Read... [12:58:12]Read from MH i2c: F0 09 00 75 08 00 E6 BD 5D 66 91 46 04 65 1B [12:58:12]GetLastDocTimeStamp 1717418298 [12:58:12]current date 1717419494 [12:58:12]FM_GetShiftState [12:58:12]SAM_PROTO_GetShiftState [12:58:12]wFMCommunicate request_size=4 [12:58:12]MH_SAM_APDU [12:58:12]CAPDU: 80 13 01 00 [12:58:12]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [12:58:12]Write i2c OK [12:58:12]MH_I2C_Read... [12:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:12]Read from MH i2c: E2 [12:58:12]MH_I2C_Read... [12:58:12]Read from MH i2c: E2 0E 00 [12:58:12]MH_I2C_Read... [12:58:12]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1E [12:58:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:58:12]wFMCommunicate OK [12:58:12]SAM_PROTO_GetShiftState done [12:58:12]FM_GetShiftState done [12:58:12]opened in 1717373769 [12:58:12]opened+sec_in_day 1717460169 [12:58:12]quantity*price = 18000 [12:58:12]sum+1 = 18001 [12:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 36 03.06.2024 12:58 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39918 ФПД: 234014244840800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125814&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39918&fm=234014244840800&tin=02508201610067®Number=0000000000092680&sum=18000 0 [12:58:13]StoreToDocumentArchive [12:58:13]shift 376 fd 39918 [12:58:13]save to /storage/0376/doc_00039918 [12:58:13]save last doc name /storage/0376/doc_00039918 to /storage/kkm_last_doc_name [12:58:13]save OK [12:58:13]Clear old archive folders... [12:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:58:13]tlvbuf is 00DF1050 [12:58:13]SAM_PROTO_ClearQueue [12:58:13]wFMCommunicate request_size=4 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 09 00 00 [12:58:13]Write to MH i2c: E2 08 00 83 08 80 09 00 00 00 00 00 00 FD [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:13]Read from MH i2c: E2 03 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [12:58:13]RAPDU: 90 00 [12:58:13]wFMCommunicate OK [12:58:13]SAM_PROTO_ClearQueue done [12:58:13]KKMCreateOFDPacket [12:58:13]OFDProtocolAddRootSTLVToBuf [12:58:13]FM_MakeSignedData [12:58:13]FM_MakeSignedData [12:58:13]SAM_PROTO_SignData [12:58:13]wFMCommunicate request_size=4 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 0D 01 02 [12:58:13]Write to MH i2c: E2 08 00 84 08 80 0D 01 02 00 00 00 00 05 [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:13]Read from MH i2c: E2 03 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [12:58:13]RAPDU: 90 00 [12:58:13]wFMCommunicate OK [12:58:13]wFMCommunicate request_size=255 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E6 BD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:58:13]Write to MH i2c: E2 02 01 85 08 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E6 BD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 ED [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [12:58:13]RAPDU: 90 00 [12:58:13]wFMCommunicate OK [12:58:13]wFMCommunicate request_size=55 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EE 9B 00 00 35 04 06 00 D4 D5 AF EF A5 60 [12:58:13]Write to MH i2c: E2 3A 00 86 08 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EE 9B 00 00 35 04 06 00 D4 D5 AF EF A5 60 00 00 3B [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [12:58:13]RAPDU: 90 00 [12:58:13]wFMCommunicate OK [12:58:13]wFMCommunicate request_size=4 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 0D 03 02 [12:58:13]Write to MH i2c: E2 08 00 87 08 80 0D 03 02 00 00 00 00 0A [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 0B 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 0B 00 87 08 00 A8 8A AB 84 90 3A 56 47 90 00 D3 [12:58:13]RAPDU: A8 8A AB 84 90 3A 56 47 90 00 [12:58:13]wFMCommunicate OK [12:58:13]SAM_PROTO_SignData done [12:58:13]FM_MakeSignedData done [12:58:13]CreateOFDProtocolMessage [12:58:13]wFMCommunicate request_size=4 [12:58:13]MH_SAM_APDU [12:58:13]CAPDU: 80 11 00 00 [12:58:13]Write to MH i2c: E2 08 00 88 08 80 11 00 00 00 00 00 00 0A [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:13]Read from MH i2c: E2 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 17 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: E2 17 00 88 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 62 [12:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:58:13]wFMCommunicate OK [12:58:13]CreateOFDProtocolMessage done [12:58:13]OFDSenderStorePacket 39918 [12:58:13]StoreOFDPacket docnum=39918 [12:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 A9 C9 34 01 16 B3 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E6 BD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EE 9B 00 00 35 04 06 00 D4 D5 AF EF A5 60 A8 8A AB 84 90 3A 56 47 [12:58:13]CheckFolder [12:58:13]dirname=/storage/ofd_packets [12:58:13]CheckFolder done [12:58:13]ProducePacketName [12:58:13]name=ofd_packets/00039918 [12:58:13]NVStorageSaveData ofd_packets/00039918 [12:58:13]File name is /storage/ofd_packets/00039918 [12:58:13]Write 346 bytes [12:58:13]NVStorageSaveData done [12:58:13]OFDSenderStorePacket done [12:58:13]KKMCreateOFDPacket done [12:58:13]NVStorageSaveData kkm_last_timestamp [12:58:13]File name is /storage/kkm_last_timestamp [12:58:13]Write 4 bytes [12:58:13]NVStorageSaveData done [12:58:13]ExternCall_PrintAddStr [12:58:13]wPrintStart [12:58:13]Write to MH i2c: 01 00 00 89 08 91 [12:58:13]Write i2c OK [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: 01 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: 01 07 00 [12:58:13]MH_I2C_Read... [12:58:13]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [12:58:13]RasterBufferAndPrint [12:58:13]line Счет N : (3)176477 [12:58:13]line ИНН: 02508201610067 [12:58:13]line Контрольно-Кассовый Чек [12:58:13]line ПРОДАЖА [12:58:13]line Товар: 4670003190013 [12:58:13]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [12:58:13]line 1.000 * 180.00 [12:58:13]line = 180.00 [12:58:13]line НДС 12% НСП 1% [12:58:13]line > о реализуемом товаре [12:58:13]line ИТОГО: 180.00 [12:58:13]line НСП 1% : 1.59 [12:58:13]line НДС 12% : 19.11 [12:58:13]line Наличными: 0.00 [12:58:13]line Безнал.: 180.00 [12:58:13]line Место: АЗС № 63 "Партнер Нефть" [12:58:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [12:58:13]line СНО: Общий режим [12:58:13]line Чек 36 03.06.2024 12:58 [12:58:13]line Смена: 376 ФФД: 1.0 [12:58:13]line ЗНМ: 0300000037 [12:58:13]line РНМ: 0000000000092680 [12:58:13]line Версия ККМ: 001 [12:58:13]line Платежная система: Бакай Банк [12:58:13]line ФМ: 0000000000874882 [12:58:13]line ФД: 39918 [12:58:13]line ФПД: 234014244840800 [12:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125814&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39918&fm=234014244840800&tin=02508201610067®Number=0000000000092680&sum=18000 [12:58:14]line 0 [12:58:14]OFD Sender: Processing packet 39918 [packets to send 5, broken 4] [12:58:14]ProducePacketName [12:58:14]name=ofd_packets/00039918 [12:58:14]OFD Sender: To server: pG, [12:58:14]CommunicateWithHost lk.salyk.kg:30040 [12:58:14]ConnectInit lk.salyk.kg [12:58:14]written 0, free lines is 4095 [12:58:14]Connected sock=10 [12:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 A9 C9 34 01 16 B3 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E6 BD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EE 9B 00 00 35 04 06 00 D4 D5 AF EF A5 60 A8 8A AB 84 90 3A 56 47 [12:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 11 DD 47 00 16 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 38 37 34 38 38 32 10 04 04 00 EE 9B 00 00 F4 03 04 00 92 66 5D 66 B6 04 01 00 00 07 EB 1F 01 1A 93 22 05 [12:58:14]CommunicateWithHost err = 0 [12:58:14]CheckOFDResponse [12:58:14]1017 (14) - 77093643461234 [12:58:14]1041 (16) - 0000000000874882 [12:58:14]1040 (4) - 39918 [12:58:14]1012 (4) - 03.06.2024 06:45 [12:58:14]1206 (1) - 0 [12:58:14]OFD Sender: Remove packet 39918 [12:58:14]ProducePacketName [12:58:14]name=ofd_packets/00039918 [12:58:14]NVStorageDeleteData [12:58:14]Write to MH i2c: 01 00 00 B4 08 BC [12:58:14]Write i2c OK [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: 01 [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: 01 07 00 [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: 01 07 00 B4 08 00 00 00 00 00 EB 0C BA [12:58:14]RasterBufferAndPrint [12:58:14]line [12:58:14]line [12:58:14]line [12:58:14]line [12:58:14]line [12:58:14]written 0, free lines is 3313 [12:58:14]MH_Cut [12:58:14]Write to MH i2c: D1 01 00 BB 08 01 95 [12:58:14]Write i2c OK [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: D1 [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: D1 01 00 [12:58:14]MH_I2C_Read... [12:58:14]Read from MH i2c: D1 01 00 BB 08 00 94 [12:58:14]Write to MH i2c: 01 00 00 BC 08 C4 [12:58:14]Write i2c OK [12:58:14]MH_I2C_Read... [12:58:14]OFD Sender: No OFD packet to send [12:58:15]*** Cut start [12:58:15]*** Partial cut [12:58:15]*** CUTSNS_PIN = 1 [12:58:15]*** CUTSNS_PIN = 0 [12:58:15]*** Brake cut motor [12:58:15]Read from MH i2c: 01 [12:58:15]MH_I2C_Read... [12:58:15]*** Stop cut motor [12:58:15]*** Cut end [12:58:15]Read from MH i2c: 01 07 00 [12:58:15]MH_I2C_Read... [12:58:15]Read from MH i2c: 01 07 00 BC 08 00 00 00 00 00 FF 0F D9 [12:58:15]process_action close_receipt done [12:58:15]requested_data is exist [12:58:15]produce_requested_data [12:58:15]requested_item fm.sn is exist - process it [12:58:15]wFMCommunicate request_size=4 [12:58:15]MH_SAM_APDU [12:58:15]CAPDU: 80 11 00 00 [12:58:15]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [12:58:15]Write i2c OK [12:58:15]MH_I2C_Read... [12:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:16]Read from MH i2c: E2 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 17 00 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 97 [12:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [12:58:16]wFMCommunicate OK [12:58:16]requested_item fd.num is exist - process it [12:58:16]SAM_PROTO_GetFieldsCounters [12:58:16]wFMCommunicate request_size=4 [12:58:16]MH_SAM_APDU [12:58:16]CAPDU: 80 13 00 00 [12:58:16]Write to MH i2c: E2 08 00 BE 08 80 13 00 00 00 00 00 00 42 [12:58:16]Write i2c OK [12:58:16]MH_I2C_Read... [12:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:16]Read from MH i2c: E2 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 62 00 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 62 00 BE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:16]wFMCommunicate OK [12:58:16]SAM_PROTO_GetFieldsCounters done [12:58:16]requested_item shift.num is exist - process it [12:58:16]requested_item shift.opened is exist - process it [12:58:16]req_shift_opened [12:58:16]FM_GetShiftState [12:58:16]SAM_PROTO_GetShiftState [12:58:16]wFMCommunicate request_size=4 [12:58:16]MH_SAM_APDU [12:58:16]CAPDU: 80 13 01 00 [12:58:16]Write to MH i2c: E2 08 00 BF 08 80 13 01 00 00 00 00 00 44 [12:58:16]Write i2c OK [12:58:16]MH_I2C_Read... [12:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:16]Read from MH i2c: E2 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 0E 00 [12:58:16]MH_I2C_Read... [12:58:16]Read from MH i2c: E2 0E 00 BF 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 67 [12:58:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [12:58:16]wFMCommunicate OK [12:58:16]SAM_PROTO_GetShiftState done [12:58:16]FM_GetShiftState done [12:58:16]req_shift_opened done [12:58:16]requested_item shift.open_date is exist - process it [12:58:16]req_shift_open_date [12:58:16]req_shift_open_date done [12:58:16]produce_requested_data done [12:58:16]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39918,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [12:58:16]process_action_free close_receipt [12:58:16]json_value_free [12:58:16]json_value_free done [12:58:16]process_json_proto returns [12:58:16]Send response to host [12:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39918,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [12:58:16]free response buf [12:58:16]execute_script done [12:58:16]execute_script returns [12:58:16]free content buf [12:58:16]Sock 8.Close socket [12:58:16]Sock 8.Thread stoped [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]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:23]accept exits with 9 [13:05:23]New connection [13:05:23]New thread 3067325796 created [13:05:23]Thread 3067182436 joined [13:05:23]Waiting for new connection... [13:05:23] Sock 9.Parse request [13:05:23]Sock 9.Check first char [13:05:23]Sock 9.First char is OK [13:05:23]request: POST /json_proto HTTP/1.0 [13:05:23]Method: POST [13:05:23]URL: /json_proto [13:05:23]Method is POST - this is cgi request [13:05:23]url: /json_proto [13:05:23]query_string will be loaded in cgi processing [13:05:23]execute_cgi json_proto POST (null) [13:05:23]execute_cgi path=json_proto method=POST [13:05:23]POST find Content-Length [13:05:23]Host: 172.17.36.199:8080 [13:05:23]Content-Length: 2509 [13:05:23]Content-Type: application/json [13:05:23] [13:05:23]POST finish read [13:05:23]Found Content-Length = 2509 [13:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176478", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 486.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:23]execute_script... [13:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176478", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 486.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:23]POST & json_proto [13:05:23]process_json_proto [13:05:23]json parsed OK: [13:05:23]protocol is kg_v1.0 [13:05:23]action value=close_receipt [13:05:23]process_action close_receipt [13:05:23]cmd_close_receipt [13:05:23]MH_GetDate [13:05:23]Write to MH i2c: F0 00 00 C0 08 B7 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 09 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 09 00 C0 08 00 96 BF 5D 66 91 46 04 65 18 [13:05:23]GetLastDocTimeStamp 1717419494 [13:05:23]current date 1717419926 [13:05:23]FM_GetShiftState [13:05:23]SAM_PROTO_GetShiftState [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 01 00 [13:05:23]Write to MH i2c: E2 08 00 C1 08 80 13 01 00 00 00 00 00 46 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 C1 08 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 69 [13:05:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetShiftState done [13:05:23]FM_GetShiftState done [13:05:23]opened in 1717373769 [13:05:23]opened+sec_in_day 1717460169 [13:05:23]quantity*price = 11500 [13:05:23]sum+1 = 11501 [13:05:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003730039 Снек Возд пшеница Бадырак сладкая 30гр 1.000 * 20.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680021880490 Печ.сд.С каплями 200г/12 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6921211114420 Карамель ЧЧ 3D В-РОР Тропический 8*45 1.000 * 41.00 = 41.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338000183 Сок Фруто НЯНЯ яблоко освет 0,2л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46034595 Карамель Chupa н/пал фр.микс,сок колы 12 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 486.00 НСП 1% : 4.30 НДС 12% : 51.59 Наличными: 486.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 37 03.06.2024 13:05 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39919 ФПД: 4591578329810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T130526&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39919&fm=4591578329810&tin=02508201610067®Number=0000000000092680&sum=48600 0 [13:05:25]StoreToDocumentArchive [13:05:25]shift 376 fd 39919 [13:05:25]save to /storage/0376/doc_00039919 [13:05:25]save last doc name /storage/0376/doc_00039919 to /storage/kkm_last_doc_name [13:05:25]save OK [13:05:25]Clear old archive folders... [13:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=1031 [13:05:25]tlvbuf is 00E043E0 [13:05:25]SAM_PROTO_ClearQueue [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 09 00 00 [13:05:25]Write to MH i2c: E2 08 00 CE 08 80 09 00 00 00 00 00 00 48 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]OFD Sender: No OFD packet to send [13:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_ClearQueue done [13:05:25]KKMCreateOFDPacket [13:05:25]OFDProtocolAddRootSTLVToBuf [13:05:25]FM_MakeSignedData [13:05:25]FM_MakeSignedData [13:05:25]SAM_PROTO_SignData [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 01 02 [13:05:25]Write to MH i2c: E2 08 00 CF 08 80 0D 01 02 00 00 00 00 50 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=255 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 FA 03 00 07 04 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [13:05:25]Write to MH i2c: E2 02 01 D0 08 80 0D 02 02 FA 00 03 00 07 04 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 19 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=255 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [13:05:25]Write to MH i2c: E2 02 01 D1 08 80 0D 02 02 FA 00 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 50 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=255 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 FA 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 [13:05:25]Write to MH i2c: E2 02 01 D2 08 80 0D 02 02 FA 00 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 00 00 03 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=255 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 FA 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 14 00 00 00 00 07 04 06 00 D8 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 96 BF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 [13:05:26]Write to MH i2c: E2 02 01 D3 08 80 0D 02 02 FA 00 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 14 00 00 00 00 07 04 06 00 D8 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 96 BF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 00 FC [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=40 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EF 9B 00 00 35 04 06 00 04 2D 0F 65 32 D2 [13:05:26]Write to MH i2c: E2 2B 00 D4 08 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EF 9B 00 00 35 04 06 00 04 2D 0F 65 32 D2 00 00 4B [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 03 02 [13:05:26]Write to MH i2c: E2 08 00 D5 08 80 0D 03 02 00 00 00 00 58 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 D5 08 00 6F 4A BD 86 F7 4B E0 A6 90 00 1D [13:05:26]RAPDU: 6F 4A BD 86 F7 4B E0 A6 90 00 [13:05:26]wFMCommunicate OK [13:05:26]SAM_PROTO_SignData done [13:05:26]FM_MakeSignedData done [13:05:26]CreateOFDProtocolMessage [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 11 00 00 [13:05:26]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B0 [13:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:05:26]wFMCommunicate OK [13:05:26]CreateOFDProtocolMessage done [13:05:26]OFDSenderStorePacket 39919 [13:05:26]StoreOFDPacket docnum=39919 [13:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1B 04 00 00 85 89 13 04 8F 1D 5A 03 01 00 03 00 07 04 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 14 00 00 00 00 07 04 06 00 D8 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 96 BF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EF 9B 00 00 35 04 06 00 04 2D 0F 65 32 D2 6F 4A BD 86 F7 4B E0 A6 [13:05:27]CheckFolder [13:05:27]dirname=/storage/ofd_packets [13:05:27]CheckFolder done [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00039919 [13:05:27]NVStorageSaveData ofd_packets/00039919 [13:05:27]File name is /storage/ofd_packets/00039919 [13:05:27]Write 1081 bytes [13:05:27]NVStorageSaveData done [13:05:27]OFDSenderStorePacket done [13:05:27]KKMCreateOFDPacket done [13:05:27]NVStorageSaveData kkm_last_timestamp [13:05:27]File name is /storage/kkm_last_timestamp [13:05:27]Write 4 bytes [13:05:27]NVStorageSaveData done [13:05:27]ExternCall_PrintAddStr [13:05:27]wPrintStart [13:05:27]Write to MH i2c: 01 00 00 D7 08 DF [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [13:05:27]RasterBufferAndPrint [13:05:27]line Счет N : (3)176478 [13:05:27]line ИНН: 02508201610067 [13:05:27]line Контрольно-Кассовый Чек [13:05:27]line ПРОДАЖА [13:05:27]line Товар: 2000036240010 [13:05:27]line Кофе Латте (GABB TRADE) [13:05:27]line 1.000 * 115.00 [13:05:27]line = 115.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 4700003730039 [13:05:27]line Снек Возд пшеница Бадырак сладкая 30гр [13:05:27]line 1.000 * 20.00 [13:05:27]line = 20.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 4680021880490 [13:05:27]line Печ.сд.С каплями 200г/12 [13:05:27]line 1.000 * 95.00 [13:05:27]line = 95.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 6921211114420 [13:05:27]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [13:05:27]line 1.000 * 41.00 [13:05:27]line = 41.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 4600338000183 [13:05:27]line Сок Фруто НЯНЯ яблоко освет 0,2л [13:05:27]line 1.000 * 65.00 [13:05:27]line = 65.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 2000036220012 [13:05:27]line Кофе Капучино XL(GABB TRADE) [13:05:27]line 1.000 * 125.00 [13:05:27]line = 125.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line Товар: 46034595 [13:05:27]line Карамель Chupa н/пал фр.микс,сок колы 12 [13:05:27]line 1.000 * 25.00 [13:05:27]line = 25.00 [13:05:27]line НДС 12% НСП 1% [13:05:27]line > о реализуемом товаре [13:05:27]line ИТОГО: 486.00 [13:05:27]line НСП 1% : 4.30 [13:05:27]line НДС 12% : 51.59 [13:05:27]line Наличными: 486.00 [13:05:27]line Безнал.: 0.00 [13:05:27]line Место: АЗС № 63 "Партнер Нефть" [13:05:27]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:05:27]line СНО: Общий режим [13:05:27]line Чек 37 03.06.2024 13:05 [13:05:27]line Смена: 376 ФФД: 1.0 [13:05:27]line ЗНМ: 0300000037 [13:05:27]line РНМ: 0000000000092680 [13:05:27]line Версия ККМ: 001 [13:05:27]line ФМ: 0000000000874882 [13:05:27]line ФД: 39919 [13:05:27]line ФПД: 4591578329810 [13:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T130526&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39919&fm=4591578329810&tin=02508201610067®Number=0000000000092680&sum=48600 [13:05:27]line 0 [13:05:27]OFD Sender: Processing packet 39919 [packets to send 5, broken 4] [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00039919 [13:05:27]OFD Sender: To server: pG, [13:05:27]CommunicateWithHost lk.salyk.kg:30040 [13:05:27]ConnectInit lk.salyk.kg [13:05:27]written 0, free lines is 4095 [13:05:27]Connected sock=10 [13:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1B 04 00 00 85 89 13 04 8F 1D 5A 03 01 00 03 00 07 04 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 14 00 00 00 00 07 04 06 00 D8 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 96 BF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 EF 9B 00 00 35 04 06 00 04 2D 0F 65 32 D2 6F 4A BD 86 F7 4B E0 A6 [13:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 43 79 47 00 53 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 38 37 34 38 38 32 10 04 04 00 EF 9B 00 00 F4 03 04 00 44 68 5D 66 B6 04 01 00 00 18 E3 CD 65 75 2B BC 5D [13:05:27]CommunicateWithHost err = 0 [13:05:27]CheckOFDResponse [13:05:27]1017 (14) - 77093643461234 [13:05:27]1041 (16) - 0000000000874882 [13:05:27]1040 (4) - 39919 [13:05:27]1012 (4) - 03.06.2024 06:52 [13:05:27]1206 (1) - 0 [13:05:27]OFD Sender: Remove packet 39919 [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00039919 [13:05:27]NVStorageDeleteData [13:05:27]Write to MH i2c: 01 00 00 28 09 31 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 28 09 00 00 00 00 00 2A 0B 6D [13:05:27]RasterBufferAndPrint [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]written 0, free lines is 2872 [13:05:28]MH_Cut [13:05:28]Write to MH i2c: D1 01 00 2F 09 01 0A [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: D1 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: D1 01 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: D1 01 00 2F 09 00 09 [13:05:28]Write to MH i2c: 01 00 00 30 09 39 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]OFD Sender: No OFD packet to send [13:05:28]*** Cut start [13:05:28]*** Partial cut [13:05:28]*** CUTSNS_PIN = 1 [13:05:28]*** CUTSNS_PIN = 0 [13:05:29]*** Brake cut motor [13:05:29]Read from MH i2c: 01 [13:05:29]MH_I2C_Read... [13:05:29]*** Stop cut motor [13:05:29]*** Cut end [13:05:29]Read from MH i2c: 01 07 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 FF 0F 4E [13:05:29]process_action close_receipt done [13:05:29]requested_data is exist [13:05:29]produce_requested_data [13:05:29]requested_item fm.sn is exist - process it [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 11 00 00 [13:05:29]Write to MH i2c: E2 08 00 31 09 80 11 00 00 00 00 00 00 B4 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 17 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 17 00 31 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 0C [13:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:05:29]wFMCommunicate OK [13:05:29]requested_item fd.num is exist - process it [13:05:29]SAM_PROTO_GetFieldsCounters [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 13 00 00 [13:05:29]Write to MH i2c: E2 08 00 32 09 80 13 00 00 00 00 00 00 B7 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 62 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 62 00 32 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 EF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:29]wFMCommunicate OK [13:05:29]SAM_PROTO_GetFieldsCounters done [13:05:29]requested_item shift.num is exist - process it [13:05:29]requested_item shift.opened is exist - process it [13:05:29]req_shift_opened [13:05:29]FM_GetShiftState [13:05:29]SAM_PROTO_GetShiftState [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 13 01 00 [13:05:29]Write to MH i2c: E2 08 00 33 09 80 13 01 00 00 00 00 00 B9 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:29]Read from MH i2c: E2 0E 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 0E 00 33 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DC [13:05:29]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:05:29]wFMCommunicate OK [13:05:29]SAM_PROTO_GetShiftState done [13:05:29]FM_GetShiftState done [13:05:29]req_shift_opened done [13:05:29]requested_item shift.open_date is exist - process it [13:05:29]req_shift_open_date [13:05:29]req_shift_open_date done [13:05:29]produce_requested_data done [13:05:29]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39919,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:05:29]process_action_free close_receipt [13:05:29]json_value_free [13:05:29]json_value_free done [13:05:29]process_json_proto returns [13:05:29]Send response to host [13:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39919,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:05:29]free response buf [13:05:29]execute_script done [13:05:29]execute_script returns [13:05:29]free content buf [13:05:29]Sock 9.Close socket [13:05:29]Sock 9.Thread stoped [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11: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:54]accept exits with 8 [13:13:54]New connection [13:13:54]New thread 3067182436 created [13:13:54]Thread 3067325796 joined [13:13:54]Waiting for new connection... [13:13:54] Sock 8.Parse request [13:13:54]Sock 8.Check first char [13:13:54]Sock 8.First char is OK [13:13:54]request: POST /json_proto HTTP/1.0 [13:13:54]Method: POST [13:13:54]URL: /json_proto [13:13:54]Method is POST - this is cgi request [13:13:54]url: /json_proto [13:13:54]query_string will be loaded in cgi processing [13:13:54]execute_cgi json_proto POST (null) [13:13:54]execute_cgi path=json_proto method=POST [13:13:54]POST find Content-Length [13:13:54]Host: 172.17.36.199:8080 [13:13:54]Content-Length: 634 [13:13:54]Content-Type: application/json [13:13:54] [13:13:54]POST finish read [13:13:54]Found Content-Length = 634 [13:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176479", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:54]execute_script... [13:13:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176479", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:54]POST & json_proto [13:13:54]process_json_proto [13:13:54]json parsed OK: [13:13:54]protocol is kg_v1.0 [13:13:54]action value=close_receipt [13:13:54]process_action close_receipt [13:13:54]cmd_close_receipt [13:13:54]MH_GetDate [13:13:54]Write to MH i2c: F0 00 00 34 09 2C [13:13:54]Write i2c OK [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: F0 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: F0 09 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: F0 09 00 34 09 00 94 C1 5D 66 91 46 04 65 8D [13:13:54]GetLastDocTimeStamp 1717419926 [13:13:54]current date 1717420436 [13:13:54]FM_GetShiftState [13:13:54]SAM_PROTO_GetShiftState [13:13:54]wFMCommunicate request_size=4 [13:13:54]MH_SAM_APDU [13:13:54]CAPDU: 80 13 01 00 [13:13:54]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [13:13:54]Write i2c OK [13:13:54]MH_I2C_Read... [13:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:54]Read from MH i2c: E2 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 0E 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DE [13:13:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:13:54]wFMCommunicate OK [13:13:54]SAM_PROTO_GetShiftState done [13:13:54]FM_GetShiftState done [13:13:54]opened in 1717373769 [13:13:54]opened+sec_in_day 1717460169 [13:13:54]quantity*price = 12000 [13:13:54]sum+1 = 12001 [13:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 38 03.06.2024 13:13 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39920 ФПД: 184074383210175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131356&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39920&fm=184074383210175&tin=02508201610067®Number=0000000000092680&sum=12000 0 [13:13:55]StoreToDocumentArchive [13:13:55]shift 376 fd 39920 [13:13:55]save to /storage/0376/doc_00039920 [13:13:55]save last doc name /storage/0376/doc_00039920 to /storage/kkm_last_doc_name [13:13:55]save OK [13:13:55]Clear old archive folders... [13:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:13:55]tlvbuf is 00DE60A0 [13:13:55]SAM_PROTO_ClearQueue [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 09 00 00 [13:13:55]Write to MH i2c: E2 08 00 42 09 80 09 00 00 00 00 00 00 BD [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [13:13:55]RAPDU: 90 00 [13:13:55]wFMCommunicate OK [13:13:55]SAM_PROTO_ClearQueue done [13:13:55]KKMCreateOFDPacket [13:13:55]OFDProtocolAddRootSTLVToBuf [13:13:55]FM_MakeSignedData [13:13:55]FM_MakeSignedData [13:13:55]SAM_PROTO_SignData [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 0D 01 02 [13:13:55]Write to MH i2c: E2 08 00 43 09 80 0D 01 02 00 00 00 00 C5 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [13:13:55]RAPDU: 90 00 [13:13:55]wFMCommunicate OK [13:13:55]wFMCommunicate request_size=255 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 94 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:13:55]Write to MH i2c: E2 02 01 44 09 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 94 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F7 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [13:13:55]RAPDU: 90 00 [13:13:55]wFMCommunicate OK [13:13:55]wFMCommunicate request_size=30 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 F0 9B 00 00 35 04 06 00 A7 6A 28 39 36 BF [13:13:55]Write to MH i2c: E2 21 00 45 09 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 F0 9B 00 00 35 04 06 00 A7 6A 28 39 36 BF 00 00 B8 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [13:13:55]RAPDU: 90 00 [13:13:55]wFMCommunicate OK [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 0D 03 02 [13:13:55]Write to MH i2c: E2 08 00 46 09 80 0D 03 02 00 00 00 00 CA [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0B 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0B 00 46 09 00 FC CB A0 05 3C 10 05 DE 90 00 66 [13:13:55]RAPDU: FC CB A0 05 3C 10 05 DE 90 00 [13:13:55]wFMCommunicate OK [13:13:55]SAM_PROTO_SignData done [13:13:55]FM_MakeSignedData done [13:13:55]CreateOFDProtocolMessage [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 11 00 00 [13:13:55]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 17 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 22 [13:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:13:56]wFMCommunicate OK [13:13:56]CreateOFDProtocolMessage done [13:13:56]OFDSenderStorePacket 39920 [13:13:56]StoreOFDPacket docnum=39920 [13:13:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 2D 9D 1B 01 84 30 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 94 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F0 9B 00 00 35 04 06 00 A7 6A 28 39 36 BF FC CB A0 05 3C 10 05 DE [13:13:56]CheckFolder [13:13:56]dirname=/storage/ofd_packets [13:13:56]CheckFolder done [13:13:56]ProducePacketName [13:13:56]name=ofd_packets/00039920 [13:13:56]NVStorageSaveData ofd_packets/00039920 [13:13:56]File name is /storage/ofd_packets/00039920 [13:13:56]Write 321 bytes [13:13:56]NVStorageSaveData done [13:13:56]OFDSenderStorePacket done [13:13:56]KKMCreateOFDPacket done [13:13:56]NVStorageSaveData kkm_last_timestamp [13:13:56]File name is /storage/kkm_last_timestamp [13:13:56]Write 4 bytes [13:13:56]NVStorageSaveData done [13:13:56]ExternCall_PrintAddStr [13:13:56]wPrintStart [13:13:56]Write to MH i2c: 01 00 00 48 09 51 [13:13:56]OFD Sender: Processing packet 39920 [packets to send 5, broken 4] [13:13:56]ProducePacketName [13:13:56]name=ofd_packets/00039920 [13:13:56]OFD Sender: To server: pG, [13:13:56]CommunicateWithHost lk.salyk.kg:30040 [13:13:56]ConnectInit lk.salyk.kg [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 07 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 FF 0F 66 [13:13:56]RasterBufferAndPrint [13:13:56]line Счет N : (3)176479 [13:13:56]line ИНН: 02508201610067 [13:13:56]line Контрольно-Кассовый Чек [13:13:56]line ПРОДАЖА [13:13:56]line Товар: 4700025314002 [13:13:56]line ВОДКА МЯГКАЯ 0,1л [13:13:56]line 2.000 * 60.00 [13:13:56]line = 120.00 [13:13:56]line НДС 12% НСП 1% [13:13:56]line > о реализуемом товаре [13:13:56]line ИТОГО: 120.00 [13:13:56]line НСП 1% : 1.06 [13:13:56]line НДС 12% : 12.74 [13:13:56]line Наличными: 120.00 [13:13:56]line Безнал.: 0.00 [13:13:56]line Место: АЗС № 63 "Партнер Нефть" [13:13:56]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:13:56]line СНО: Общий режим [13:13:56]line Чек 38 03.06.2024 13:13 [13:13:56]line Смена: 376 ФФД: 1.0 [13:13:56]line ЗНМ: 0300000037 [13:13:56]line РНМ: 0000000000092680 [13:13:56]line Версия ККМ: 001 [13:13:56]line ФМ: 0000000000874882 [13:13:56]line ФД: 39920 [13:13:56]line ФПД: 184074383210175 [13:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131356&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39920&fm=184074383210175&tin=02508201610067®Number=0000000000092680&sum=12000 [13:13:56]line 0 [13:13:56]written 0, free lines is 4095 [13:13:56]Connected sock=10 [13:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 2D 9D 1B 01 84 30 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 94 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F0 9B 00 00 35 04 06 00 A7 6A 28 39 36 BF FC CB A0 05 3C 10 05 DE [13:13:56]Write to MH i2c: 01 00 00 70 09 79 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 07 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 13 0D A0 [13:13:56]RasterBufferAndPrint [13:13:56]line [13:13:56]line [13:13:56]line [13:13:56]line [13:13:56]line [13:13:56]written 0, free lines is 3353 [13:13:56]MH_Cut [13:13:56]Write to MH i2c: D1 01 00 77 09 01 52 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: D1 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: D1 01 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: D1 01 00 77 09 00 51 [13:13:56]Write to MH i2c: 01 00 00 78 09 81 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 EB 9C 47 00 4C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F0 9B 00 00 F4 03 04 00 40 6A 5D 66 B6 04 01 00 00 9D 88 F0 A8 28 65 83 11 [13:13:56]CommunicateWithHost err = 0 [13:13:56]CheckOFDResponse [13:13:56]1017 (14) - 77093643461234 [13:13:56]1041 (16) - 0000000000874882 [13:13:56]1040 (4) - 39920 [13:13:56]1012 (4) - 03.06.2024 07:01 [13:13:56]1206 (1) - 0 [13:13:56]OFD Sender: Remove packet 39920 [13:13:56]ProducePacketName [13:13:56]name=ofd_packets/00039920 [13:13:56]NVStorageDeleteData [13:13:57]OFD Sender: No OFD packet to send [13:13:57]*** Cut start [13:13:57]*** Partial cut [13:13:57]*** CUTSNS_PIN = 1 [13:13:57]*** CUTSNS_PIN = 0 [13:13:57]*** Brake cut motor [13:13:57]Read from MH i2c: 01 [13:13:57]MH_I2C_Read... [13:13:57]*** Stop cut motor [13:13:57]*** Cut end [13:13:57]Read from MH i2c: 01 07 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [13:13:57]process_action close_receipt done [13:13:57]requested_data is exist [13:13:57]produce_requested_data [13:13:57]requested_item fm.sn is exist - process it [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 11 00 00 [13:13:57]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 54 [13:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:13:57]wFMCommunicate OK [13:13:57]requested_item fd.num is exist - process it [13:13:57]SAM_PROTO_GetFieldsCounters [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 13 00 00 [13:13:57]Write to MH i2c: E2 08 00 7A 09 80 13 00 00 00 00 00 00 FF [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 62 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 62 00 7A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F0 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F0 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_GetFieldsCounters done [13:13:57]requested_item shift.num is exist - process it [13:13:57]requested_item shift.opened is exist - process it [13:13:57]req_shift_opened [13:13:57]FM_GetShiftState [13:13:57]SAM_PROTO_GetShiftState [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 13 01 00 [13:13:57]Write to MH i2c: E2 08 00 7B 09 80 13 01 00 00 00 00 00 01 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0E 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0E 00 7B 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 24 [13:13:58]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:13:58]wFMCommunicate OK [13:13:58]SAM_PROTO_GetShiftState done [13:13:58]FM_GetShiftState done [13:13:58]req_shift_opened done [13:13:58]requested_item shift.open_date is exist - process it [13:13:58]req_shift_open_date [13:13:58]req_shift_open_date done [13:13:58]produce_requested_data done [13:13:58]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39920,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:13:58]process_action_free close_receipt [13:13:58]json_value_free [13:13:58]json_value_free done [13:13:58]process_json_proto returns [13:13:58]Send response to host [13:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39920,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:13:58]free response buf [13:13:58]execute_script done [13:13:58]execute_script returns [13:13:58]free content buf [13:13:58]Sock 8.Close socket [13:13:58]Sock 8.Thread stoped [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:14]accept exits with 9 [13:15:14]New connection [13:15:14]New thread 3067325796 created [13:15:14]Thread 3067182436 joined [13:15:14]Waiting for new connection... [13:15:14] Sock 9.Parse request [13:15:14]Sock 9.Check first char [13:15:14]Sock 9.First char is OK [13:15:14]request: POST /json_proto HTTP/1.0 [13:15:14]Method: POST [13:15:14]URL: /json_proto [13:15:14]Method is POST - this is cgi request [13:15:14]url: /json_proto [13:15:14]query_string will be loaded in cgi processing [13:15:14]execute_cgi json_proto POST (null) [13:15:14]execute_cgi path=json_proto method=POST [13:15:14]POST find Content-Length [13:15:14]Host: 172.17.36.199:8080 [13:15:14]Content-Length: 619 [13:15:14]Content-Type: application/json [13:15:14] [13:15:14]POST finish read [13:15:14]Found Content-Length = 619 [13:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176480", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:14]execute_script... [13: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 : (3)176480", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:14]POST & json_proto [13:15:14]process_json_proto [13:15:14]json parsed OK: [13:15:14]protocol is kg_v1.0 [13:15:14]action value=close_receipt [13:15:14]process_action close_receipt [13:15:14]cmd_close_receipt [13:15:14]MH_GetDate [13:15:14]Write to MH i2c: F0 00 00 7C 09 74 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: F0 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: F0 09 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: F0 09 00 7C 09 00 E4 C1 5D 66 91 46 04 65 25 [13:15:14]GetLastDocTimeStamp 1717420436 [13:15:14]current date 1717420516 [13:15:14]FM_GetShiftState [13:15:14]SAM_PROTO_GetShiftState [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 13 01 00 [13:15:14]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0E 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 26 [13:15:14]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_GetShiftState done [13:15:14]FM_GetShiftState done [13:15:14]opened in 1717373769 [13:15:14]opened+sec_in_day 1717460169 [13:15:14]quantity*price = 14000 [13:15:14]sum+1 = 14001 [13:15:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 39 03.06.2024 13:15 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39921 ФПД: 72043205233877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131516&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39921&fm=72043205233877&tin=02508201610067®Number=0000000000092680&sum=14000 0 [13:15:15]StoreToDocumentArchive [13:15:15]shift 376 fd 39921 [13:15:15]save to /storage/0376/doc_00039921 [13:15:15]save last doc name /storage/0376/doc_00039921 to /storage/kkm_last_doc_name [13:15:15]save OK [13:15:15]Clear old archive folders... [13:15:15]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:15:15]tlvbuf is 00E1D190 [13:15:15]SAM_PROTO_ClearQueue [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 09 00 00 [13:15:15]Write to MH i2c: E2 08 00 8A 09 80 09 00 00 00 00 00 00 05 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [13:15:15]RAPDU: 90 00 [13:15:15]wFMCommunicate OK [13:15:15]SAM_PROTO_ClearQueue done [13:15:15]KKMCreateOFDPacket [13:15:15]OFDProtocolAddRootSTLVToBuf [13:15:15]FM_MakeSignedData [13:15:15]FM_MakeSignedData [13:15:15]SAM_PROTO_SignData [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 0D 01 02 [13:15:15]Write to MH i2c: E2 08 00 8B 09 80 0D 01 02 00 00 00 00 0D [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [13:15:15]RAPDU: 90 00 [13:15:15]wFMCommunicate OK [13:15:15]wFMCommunicate request_size=255 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E4 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:15:15]Write to MH i2c: E2 02 01 8C 09 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E4 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 99 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [13:15:15]RAPDU: 90 00 [13:15:15]wFMCommunicate OK [13:15:15]wFMCommunicate request_size=30 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 F1 9B 00 00 35 04 06 00 41 85 DD A8 0C D5 [13:15:15]Write to MH i2c: E2 21 00 8D 09 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 F1 9B 00 00 35 04 06 00 41 85 DD A8 0C D5 00 00 C6 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [13:15:15]RAPDU: 90 00 [13:15:15]wFMCommunicate OK [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 0D 03 02 [13:15:15]Write to MH i2c: E2 08 00 8E 09 80 0D 03 02 00 00 00 00 12 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0B 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0B 00 8E 09 00 C7 7D 9D 8D B6 3F AA 4E 90 00 6E [13:15:15]RAPDU: C7 7D 9D 8D B6 3F AA 4E 90 00 [13:15:15]wFMCommunicate OK [13:15:15]SAM_PROTO_SignData done [13:15:15]FM_MakeSignedData done [13:15:15]CreateOFDProtocolMessage [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 11 00 00 [13:15:15]Write to MH i2c: E2 08 00 8F 09 80 11 00 00 00 00 00 00 12 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 17 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 17 00 8F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 6A [13:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:15:15]wFMCommunicate OK [13:15:15]CreateOFDProtocolMessage done [13:15:15]OFDSenderStorePacket 39921 [13:15:15]StoreOFDPacket docnum=39921 [13:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 E3 F0 1B 01 D0 D7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E4 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F1 9B 00 00 35 04 06 00 41 85 DD A8 0C D5 C7 7D 9D 8D B6 3F AA 4E [13:15:15]CheckFolder [13:15:15]dirname=/storage/ofd_packets [13:15:15]CheckFolder done [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00039921 [13:15:15]NVStorageSaveData ofd_packets/00039921 [13:15:15]File name is /storage/ofd_packets/00039921 [13:15:15]Write 321 bytes [13:15:15]NVStorageSaveData done [13:15:15]OFDSenderStorePacket done [13:15:15]KKMCreateOFDPacket done [13:15:15]NVStorageSaveData kkm_last_timestamp [13:15:15]File name is /storage/kkm_last_timestamp [13:15:15]Write 4 bytes [13:15:15]NVStorageSaveData done [13:15:15]ExternCall_PrintAddStr [13:15:15]wPrintStart [13:15:15]Write to MH i2c: 01 00 00 90 09 99 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 FF 0F AE [13:15:15]RasterBufferAndPrint [13:15:15]line Счет N : (3)176480 [13:15:15]line ИНН: 02508201610067 [13:15:15]line Контрольно-Кассовый Чек [13:15:15]line ПРОДАЖА [13:15:15]line Товар: 47802995 [13:15:15]line Сигареты Winston XS Silver [13:15:15]line 1.000 * 140.00 [13:15:15]line = 140.00 [13:15:15]line НДС 12% НСП 1% [13:15:15]line > о реализуемом товаре [13:15:15]line ИТОГО: 140.00 [13:15:15]line НСП 1% : 1.24 [13:15:15]line НДС 12% : 14.87 [13:15:15]line Наличными: 140.00 [13:15:15]line Безнал.: 0.00 [13:15:15]line Место: АЗС № 63 "Партнер Нефть" [13:15:15]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:15:15]line СНО: Общий режим [13:15:15]line Чек 39 03.06.2024 13:15 [13:15:15]line Смена: 376 ФФД: 1.0 [13:15:15]line ЗНМ: 0300000037 [13:15:15]line РНМ: 0000000000092680 [13:15:15]line Версия ККМ: 001 [13:15:15]line ФМ: 0000000000874882 [13:15:15]line ФД: 39921 [13:15:15]line ФПД: 72043205233877 [13:15:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131516&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39921&fm=72043205233877&tin=02508201610067®Number=0000000000092680&sum=14000 [13:15:16]line 0 [13:15:16]OFD Sender: Processing packet 39921 [packets to send 5, broken 4] [13:15:16]ProducePacketName [13:15:16]name=ofd_packets/00039921 [13:15:16]OFD Sender: To server: pG, [13:15:16]CommunicateWithHost lk.salyk.kg:30040 [13:15:16]ConnectInit lk.salyk.kg [13:15:16]written 0, free lines is 4095 [13:15:16]Connected sock=10 [13:15:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 E3 F0 1B 01 D0 D7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E4 C1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F1 9B 00 00 35 04 06 00 41 85 DD A8 0C D5 C7 7D 9D 8D B6 3F AA 4E [13:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 98 C4 47 00 04 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F1 9B 00 00 F4 03 04 00 90 6A 5D 66 B6 04 01 00 00 8A 05 81 17 E9 44 ED 42 [13:15:16]CommunicateWithHost err = 0 [13:15:16]CheckOFDResponse [13:15:16]1017 (14) - 77093643461234 [13:15:16]1041 (16) - 0000000000874882 [13:15:16]1040 (4) - 39921 [13:15:16]1012 (4) - 03.06.2024 07:02 [13:15:16]1206 (1) - 0 [13:15:16]OFD Sender: Remove packet 39921 [13:15:16]ProducePacketName [13:15:16]name=ofd_packets/00039921 [13:15:16]NVStorageDeleteData [13:15:16]Write to MH i2c: 01 00 00 B8 09 C1 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: 01 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: 01 07 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 17 0D EC [13:15:16]RasterBufferAndPrint [13:15:16]line [13:15:16]line [13:15:16]line [13:15:16]line [13:15:16]line [13:15:16]written 0, free lines is 3357 [13:15:16]MH_Cut [13:15:16]Write to MH i2c: D1 01 00 BF 09 01 9A [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: D1 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: D1 01 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: D1 01 00 BF 09 00 99 [13:15:16]Write to MH i2c: 01 00 00 C0 09 C9 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]OFD Sender: No OFD packet to send [13:15:17]*** Cut start [13:15:17]*** Partial cut [13:15:17]*** CUTSNS_PIN = 1 [13:15:17]*** CUTSNS_PIN = 0 [13:15:17]*** Brake cut motor [13:15:17]Read from MH i2c: 01 [13:15:17]MH_I2C_Read... [13:15:17]*** Stop cut motor [13:15:17]*** Cut end [13:15:17]Read from MH i2c: 01 07 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [13:15:17]process_action close_receipt done [13:15:17]requested_data is exist [13:15:17]produce_requested_data [13:15:17]requested_item fm.sn is exist - process it [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 11 00 00 [13:15:17]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 9C [13:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:15:17]wFMCommunicate OK [13:15:17]requested_item fd.num is exist - process it [13:15:17]SAM_PROTO_GetFieldsCounters [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 00 00 [13:15:17]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 62 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 62 00 C2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [13:15:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F1 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:18]wFMCommunicate OK [13:15:18]SAM_PROTO_GetFieldsCounters done [13:15:18]requested_item shift.num is exist - process it [13:15:18]requested_item shift.opened is exist - process it [13:15:18]req_shift_opened [13:15:18]FM_GetShiftState [13:15:18]SAM_PROTO_GetShiftState [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 13 01 00 [13:15:18]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0E 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6C [13:15:18]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:15:18]wFMCommunicate OK [13:15:18]SAM_PROTO_GetShiftState done [13:15:18]FM_GetShiftState done [13:15:18]req_shift_opened done [13:15:18]requested_item shift.open_date is exist - process it [13:15:18]req_shift_open_date [13:15:18]req_shift_open_date done [13:15:18]produce_requested_data done [13:15:18]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39921,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:15:18]process_action_free close_receipt [13:15:18]json_value_free [13:15:18]json_value_free done [13:15:18]process_json_proto returns [13:15:18]Send response to host [13:15:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39921,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:15:18]free response buf [13:15:18]execute_script done [13:15:18]execute_script returns [13:15:18]free content buf [13:15:18]Sock 9.Close socket [13:15:18]Sock 9.Thread stoped [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:11]accept exits with 8 [13:29:11]New connection [13:29:11]New thread 3067182436 created [13:29:11]Thread 3067325796 joined [13:29:11]Waiting for new connection... [13:29:11] Sock 8.Parse request [13:29:11]Sock 8.Check first char [13:29:11]Sock 8.First char is OK [13:29:11]request: POST /json_proto HTTP/1.0 [13:29:11]Method: POST [13:29:11]URL: /json_proto [13:29:11]Method is POST - this is cgi request [13:29:11]url: /json_proto [13:29:11]query_string will be loaded in cgi processing [13:29:11]execute_cgi json_proto POST (null) [13:29:11]execute_cgi path=json_proto method=POST [13:29:11]POST find Content-Length [13:29:11]Host: 172.17.36.199:8080 [13:29:11]Content-Length: 1241 [13:29:11]Content-Type: application/json [13:29:11] [13:29:11]POST finish read [13:29:11]Found Content-Length = 1241 [13:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176481", "tax_sys" : 0, "items" : [ { "code": "4690329004566", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 2.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:11]execute_script... [13:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176481", "tax_sys" : 0, "items" : [ { "code": "4690329004566", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 2.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:11]POST & json_proto [13:29:11]process_json_proto [13:29:11]json parsed OK: [13:29:11]protocol is kg_v1.0 [13:29:11]action value=close_receipt [13:29:11]process_action close_receipt [13:29:11]cmd_close_receipt [13:29:11]MH_GetDate [13:29:11]Write to MH i2c: F0 00 00 C4 09 BC [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: F0 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: F0 09 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: F0 09 00 C4 09 00 29 C5 5D 66 91 46 04 65 B6 [13:29:11]GetLastDocTimeStamp 1717420516 [13:29:11]current date 1717421353 [13:29:11]FM_GetShiftState [13:29:11]SAM_PROTO_GetShiftState [13:29:11]wFMCommunicate request_size=4 [13:29:11]MH_SAM_APDU [13:29:11]CAPDU: 80 13 01 00 [13:29:11]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:11]Read from MH i2c: E2 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 0E 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6E [13:29:11]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:29:11]wFMCommunicate OK [13:29:11]SAM_PROTO_GetShiftState done [13:29:11]FM_GetShiftState done [13:29:11]opened in 1717373769 [13:29:11]opened+sec_in_day 1717460169 [13:29:11]quantity*price = 8600 [13:29:11]sum+1 = 8601 [13:29:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.87 НДС 12% : 22.40 Наличными: 0.00 Безнал.: 211.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 40 03.06.2024 13:29 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39922 ФПД: 29559207995547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132914&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39922&fm=29559207995547&tin=02508201610067®Number=0000000000092680&sum=21100 0 [13:29:12]StoreToDocumentArchive [13:29:12]shift 376 fd 39922 [13:29:12]save to /storage/0376/doc_00039922 [13:29:12]save last doc name /storage/0376/doc_00039922 to /storage/kkm_last_doc_name [13:29:12]save OK [13:29:12]Clear old archive folders... [13:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=436 [13:29:12]tlvbuf is 00E04610 [13:29:12]SAM_PROTO_ClearQueue [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 09 00 00 [13:29:12]Write to MH i2c: E2 08 00 D2 09 80 09 00 00 00 00 00 00 4D [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:12]Read from MH i2c: E2 03 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [13:29:12]RAPDU: 90 00 [13:29:12]wFMCommunicate OK [13:29:12]SAM_PROTO_ClearQueue done [13:29:12]KKMCreateOFDPacket [13:29:12]OFDProtocolAddRootSTLVToBuf [13:29:12]FM_MakeSignedData [13:29:12]FM_MakeSignedData [13:29:12]SAM_PROTO_SignData [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 0D 01 02 [13:29:12]Write to MH i2c: E2 08 00 D3 09 80 0D 01 02 00 00 00 00 55 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]OFD Sender: No OFD packet to send [13:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [13:29:12]RAPDU: 90 00 [13:29:12]wFMCommunicate OK [13:29:12]wFMCommunicate request_size=255 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 36 36 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 [13:29:12]Write to MH i2c: E2 02 01 D4 09 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 36 36 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 00 00 27 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]wFMCommunicate request_size=195 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 0D 02 02 BE 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2A C5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F2 9B 00 00 35 04 06 00 1A E2 4A 17 A8 9B [13:29:13]Write to MH i2c: E2 C6 00 D5 09 80 0D 02 02 BE 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2A C5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F2 9B 00 00 35 04 06 00 1A E2 4A 17 A8 9B 00 00 6F [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 0D 03 02 [13:29:13]Write to MH i2c: E2 08 00 D6 09 80 0D 03 02 00 00 00 00 5A [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0B 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0B 00 D6 09 00 AA 82 D1 93 A0 1F F5 06 90 00 A5 [13:29:13]RAPDU: AA 82 D1 93 A0 1F F5 06 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_SignData done [13:29:13]FM_MakeSignedData done [13:29:13]CreateOFDProtocolMessage [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 11 00 00 [13:29:13]Write to MH i2c: E2 08 00 D7 09 80 11 00 00 00 00 00 00 5A [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 D7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B2 [13:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:29:13]wFMCommunicate OK [13:29:13]CreateOFDProtocolMessage done [13:29:13]OFDSenderStorePacket 39922 [13:29:13]StoreOFDPacket docnum=39922 [13:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 C8 01 00 00 1F 03 C0 01 4F 07 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 36 36 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2A C5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F2 9B 00 00 35 04 06 00 1A E2 4A 17 A8 9B AA 82 D1 93 A0 1F F5 06 [13:29:13]CheckFolder [13:29:13]dirname=/storage/ofd_packets [13:29:13]CheckFolder done [13:29:13]ProducePacketName [13:29:13]name=ofd_packets/00039922 [13:29:13]NVStorageSaveData ofd_packets/00039922 [13:29:13]File name is /storage/ofd_packets/00039922 [13:29:13]Write 486 bytes [13:29:13]NVStorageSaveData done [13:29:13]OFDSenderStorePacket done [13:29:13]KKMCreateOFDPacket done [13:29:13]NVStorageSaveData kkm_last_timestamp [13:29:13]File name is /storage/kkm_last_timestamp [13:29:13]Write 4 bytes [13:29:13]NVStorageSaveData done [13:29:13]ExternCall_PrintAddStr [13:29:13]wPrintStart [13:29:13]Write to MH i2c: 01 00 00 D8 09 E1 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [13:29:13]RasterBufferAndPrint [13:29:13]line Счет N : (3)176481 [13:29:13]line ИНН: 02508201610067 [13:29:13]line Контрольно-Кассовый Чек [13:29:13]line ПРОДАЖА [13:29:13]line Товар: 4690329004566 [13:29:13]line Мармелад Бонди ассорт пак 70г [13:29:13]line 2.000 * 43.00 [13:29:13]line = 86.00 [13:29:13]line НДС 12% НСП 1% [13:29:13]line > о реализуемом товаре [13:29:13]line Товар: 4870202521254 [13:29:13]line Чай холодный MAXI черный со вкусом клубн [13:29:13]line 1.000 * 125.00 [13:29:13]line = 125.00 [13:29:13]line НДС 12% НСП 1% [13:29:13]line > о реализуемом товаре [13:29:13]line ИТОГО: 211.00 [13:29:13]line НСП 1% : 1.87 [13:29:13]line НДС 12% : 22.40 [13:29:13]line Наличными: 0.00 [13:29:13]line Безнал.: 211.00 [13:29:13]line Место: АЗС № 63 "Партнер Нефть" [13:29:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:29:13]line СНО: Общий режим [13:29:13]line Чек 40 03.06.2024 13:29 [13:29:13]line Смена: 376 ФФД: 1.0 [13:29:13]line ЗНМ: 0300000037 [13:29:13]line РНМ: 0000000000092680 [13:29:13]line Версия ККМ: 001 [13:29:13]line Платежная система: Бакай Банк [13:29:13]line ФМ: 0000000000874882 [13:29:13]line ФД: 39922 [13:29:13]line ФПД: 29559207995547 [13:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132914&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39922&fm=29559207995547&tin=02508201610067®Number=0000000000092680&sum=21100 [13:29:13]line 0 [13:29:13]written 0, free lines is 4095 [13:29:13]OFD Sender: Processing packet 39922 [packets to send 5, broken 4] [13:29:13]ProducePacketName [13:29:13]name=ofd_packets/00039922 [13:29:13]OFD Sender: To server: pG, [13:29:13]CommunicateWithHost lk.salyk.kg:30040 [13:29:13]ConnectInit lk.salyk.kg [13:29:13]Connected sock=10 [13:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 C8 01 00 00 1F 03 C0 01 4F 07 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 36 36 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2A C5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F2 9B 00 00 35 04 06 00 1A E2 4A 17 A8 9B AA 82 D1 93 A0 1F F5 06 [13:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 36 B1 47 00 74 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F2 9B 00 00 F4 03 04 00 D6 6D 5D 66 B6 04 01 00 00 46 D1 BA 05 D8 11 19 64 [13:29:13]CommunicateWithHost err = 0 [13:29:13]CheckOFDResponse [13:29:13]1017 (14) - 77093643461234 [13:29:13]1041 (16) - 0000000000874882 [13:29:13]1040 (4) - 39922 [13:29:13]1012 (4) - 03.06.2024 07:16 [13:29:13]1206 (1) - 0 [13:29:13]OFD Sender: Remove packet 39922 [13:29:13]ProducePacketName [13:29:13]name=ofd_packets/00039922 [13:29:13]NVStorageDeleteData [13:29:14]Write to MH i2c: 01 00 00 0A 0A 14 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 0A 0A 00 00 00 00 00 8A 0C B1 [13:29:14]RasterBufferAndPrint [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]written 0, free lines is 3220 [13:29:14]MH_Cut [13:29:14]Write to MH i2c: D1 01 00 11 0A 01 ED [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 01 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 01 00 11 0A 00 EC [13:29:14]Write to MH i2c: 01 00 00 12 0A 1C [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]OFD Sender: No OFD packet to send [13:29:14]*** Cut start [13:29:14]*** Partial cut [13:29:14]*** CUTSNS_PIN = 1 [13:29:14]*** CUTSNS_PIN = 0 [13:29:15]*** Brake cut motor [13:29:15]Read from MH i2c: 01 [13:29:15]MH_I2C_Read... [13:29:15]*** Stop cut motor [13:29:15]*** Cut end [13:29:15]Read from MH i2c: 01 07 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [13:29:15]process_action close_receipt done [13:29:15]requested_data is exist [13:29:15]produce_requested_data [13:29:15]requested_item fm.sn is exist - process it [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 11 00 00 [13:29:15]Write to MH i2c: E2 08 00 13 0A 80 11 00 00 00 00 00 00 97 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 17 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 17 00 13 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 EF [13:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:29:15]wFMCommunicate OK [13:29:15]requested_item fd.num is exist - process it [13:29:15]SAM_PROTO_GetFieldsCounters [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 13 00 00 [13:29:15]Write to MH i2c: E2 08 00 14 0A 80 13 00 00 00 00 00 00 9A [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 62 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 62 00 14 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [13:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F2 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_GetFieldsCounters done [13:29:15]requested_item shift.num is exist - process it [13:29:15]requested_item shift.opened is exist - process it [13:29:15]req_shift_opened [13:29:15]FM_GetShiftState [13:29:15]SAM_PROTO_GetShiftState [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 13 01 00 [13:29:15]Write to MH i2c: E2 08 00 15 0A 80 13 01 00 00 00 00 00 9C [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0E 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0E 00 15 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 BF [13:29:15]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_GetShiftState done [13:29:15]FM_GetShiftState done [13:29:15]req_shift_opened done [13:29:15]requested_item shift.open_date is exist - process it [13:29:15]req_shift_open_date [13:29:15]req_shift_open_date done [13:29:15]produce_requested_data done [13:29:15]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39922,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:29:15]process_action_free close_receipt [13:29:15]json_value_free [13:29:15]json_value_free done [13:29:15]process_json_proto returns [13:29:15]Send response to host [13:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39922,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:29:15]free response buf [13:29:15]execute_script done [13:29:15]execute_script returns [13:29:15]free content buf [13:29:15]Sock 8.Close socket [13:29:15]Sock 8.Thread stoped [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]accept exits with 9 [13:37:14]New connection [13:37:14]New thread 3067325796 created [13:37:14]Thread 3067182436 joined [13:37:14]Waiting for new connection... [13:37:14] Sock 9.Parse request [13:37:14]Sock 9.Check first char [13:37:14]Sock 9.First char is OK [13:37:14]request: POST /json_proto HTTP/1.0 [13:37:14]Method: POST [13:37:14]URL: /json_proto [13:37:14]Method is POST - this is cgi request [13:37:14]url: /json_proto [13:37:14]query_string will be loaded in cgi processing [13:37:14]execute_cgi json_proto POST (null) [13:37:14]execute_cgi path=json_proto method=POST [13:37:14]POST find Content-Length [13:37:14]Host: 172.17.36.199:8080 [13:37:14]Content-Length: 1057 [13:37:14]Content-Type: application/json [13:37:14] [13:37:14]POST finish read [13:37:14]Found Content-Length = 1057 [13:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176482", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5908241631036", "name": "Aroma Intenso Red Fruits", "price" : 210.00, "quantity" : 1.000, "sum" : 210.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" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:14]execute_script... [13:37:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176482", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5908241631036", "name": "Aroma Intenso Red Fruits", "price" : 210.00, "quantity" : 1.000, "sum" : 210.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" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:14]POST & json_proto [13:37:14]process_json_proto [13:37:14]json parsed OK: [13:37:14]protocol is kg_v1.0 [13:37:14]action value=close_receipt [13:37:14]process_action close_receipt [13:37:14]cmd_close_receipt [13:37:14]MH_GetDate [13:37:14]Write to MH i2c: F0 00 00 16 0A 0F [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 09 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 09 00 16 0A 00 0D C7 5D 66 91 46 04 65 EF [13:37:14]GetLastDocTimeStamp 1717421354 [13:37:14]current date 1717421837 [13:37:14]FM_GetShiftState [13:37:14]SAM_PROTO_GetShiftState [13:37:14]wFMCommunicate request_size=4 [13:37:14]MH_SAM_APDU [13:37:14]CAPDU: 80 13 01 00 [13:37:14]Write to MH i2c: E2 08 00 17 0A 80 13 01 00 00 00 00 00 9E [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:14]Read from MH i2c: E2 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 0E 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 0E 00 17 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C1 [13:37:14]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:37:14]wFMCommunicate OK [13:37:14]SAM_PROTO_GetShiftState done [13:37:14]FM_GetShiftState done [13:37:14]opened in 1717373769 [13:37:14]opened+sec_in_day 1717460169 [13:37:14]quantity*price = 9500 [13:37:14]sum+1 = 9501 [13:37:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5908241631036 Aroma Intenso Red Fruits 1.000 * 210.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.39 Наличными: 0.00 Безнал.: 305.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 41 03.06.2024 13:37 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39923 ФПД: 141665517340182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133717&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39923&fm=141665517340182&tin=02508201610067®Number=0000000000092680&sum=30500 0 [13:37:15]StoreToDocumentArchive [13:37:15]shift 376 fd 39923 [13:37:15]save to /storage/0376/doc_00039923 [13:37:15]save last doc name /storage/0376/doc_00039923 to /storage/kkm_last_doc_name [13:37:15]save OK [13:37:15]Clear old archive folders... [13:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=384 [13:37:15]tlvbuf is 00E1C160 [13:37:15]SAM_PROTO_ClearQueue [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 09 00 00 [13:37:15]Write to MH i2c: E2 08 00 24 0A 80 09 00 00 00 00 00 00 A0 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]SAM_PROTO_ClearQueue done [13:37:15]KKMCreateOFDPacket [13:37:15]OFDProtocolAddRootSTLVToBuf [13:37:15]FM_MakeSignedData [13:37:15]FM_MakeSignedData [13:37:15]SAM_PROTO_SignData [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 01 02 [13:37:15]Write to MH i2c: E2 08 00 25 0A 80 0D 01 02 00 00 00 00 A8 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]wFMCommunicate request_size=255 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 35 39 30 38 32 34 31 36 33 31 30 33 36 06 04 18 00 41 72 6F 6D 61 20 49 6E 74 65 6E 73 6F 20 52 65 64 20 46 72 75 69 74 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [13:37:15]Write to MH i2c: E2 02 01 26 0A 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 35 39 30 38 32 34 31 36 33 31 30 33 36 06 04 18 00 41 72 6F 6D 61 20 49 6E 74 65 6E 73 6F 20 52 65 64 20 46 72 75 69 74 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 69 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [13:37:16]RAPDU: 90 00 [13:37:16]wFMCommunicate OK [13:37:16]wFMCommunicate request_size=143 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 0D 02 02 8A 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0D C7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F3 9B 00 00 35 04 06 00 80 D8 12 D6 86 16 [13:37:16]Write to MH i2c: E2 92 00 27 0A 80 0D 02 02 8A 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0D C7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F3 9B 00 00 35 04 06 00 80 D8 12 D6 86 16 00 00 F1 [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 27 0A 00 90 00 A5 [13:37:16]RAPDU: 90 00 [13:37:16]wFMCommunicate OK [13:37:16]wFMCommunicate request_size=4 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 0D 03 02 [13:37:16]Write to MH i2c: E2 08 00 28 0A 80 0D 03 02 00 00 00 00 AD [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 0B 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 0B 00 28 0A 00 3F 6F 16 98 43 A1 3B 01 90 00 2A [13:37:16]RAPDU: 3F 6F 16 98 43 A1 3B 01 90 00 [13:37:16]wFMCommunicate OK [13:37:16]SAM_PROTO_SignData done [13:37:16]FM_MakeSignedData done [13:37:16]CreateOFDProtocolMessage [13:37:16]wFMCommunicate request_size=4 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 11 00 00 [13:37:16]Write to MH i2c: E2 08 00 29 0A 80 11 00 00 00 00 00 00 AD [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 17 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 17 00 29 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 05 [13:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:37:16]wFMCommunicate OK [13:37:16]CreateOFDProtocolMessage done [13:37:16]OFDSenderStorePacket 39923 [13:37:16]StoreOFDPacket docnum=39923 [13:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 94 01 00 00 0A 67 8C 01 35 5B 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 35 39 30 38 32 34 31 36 33 31 30 33 36 06 04 18 00 41 72 6F 6D 61 20 49 6E 74 65 6E 73 6F 20 52 65 64 20 46 72 75 69 74 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0D C7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F3 9B 00 00 35 04 06 00 80 D8 12 D6 86 16 3F 6F 16 98 43 A1 3B 01 [13:37:16]CheckFolder [13:37:16]dirname=/storage/ofd_packets [13:37:16]CheckFolder done [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00039923 [13:37:16]NVStorageSaveData ofd_packets/00039923 [13:37:16]File name is /storage/ofd_packets/00039923 [13:37:16]Write 434 bytes [13:37:16]NVStorageSaveData done [13:37:16]OFDSenderStorePacket done [13:37:16]KKMCreateOFDPacket done [13:37:16]NVStorageSaveData kkm_last_timestamp [13:37:16]File name is /storage/kkm_last_timestamp [13:37:16]Write 4 bytes [13:37:16]NVStorageSaveData done [13:37:16]ExternCall_PrintAddStr [13:37:16]wPrintStart [13:37:16]Write to MH i2c: 01 00 00 2A 0A 34 [13:37:16]OFD Sender: Processing packet 39923 [packets to send 5, broken 4] [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00039923 [13:37:16]OFD Sender: To server: pG, [13:37:16]CommunicateWithHost lk.salyk.kg:30040 [13:37:16]ConnectInit lk.salyk.kg [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 FF 0F 49 [13:37:16]RasterBufferAndPrint [13:37:16]line Счет N : (3)176482 [13:37:16]line ИНН: 02508201610067 [13:37:16]line Контрольно-Кассовый Чек [13:37:16]line ПРОДАЖА [13:37:16]line Товар: 4700000481453 [13:37:16]line Напиток энерг Nitro Max 0,45 ж/б [13:37:16]line 1.000 * 95.00 [13:37:16]line = 95.00 [13:37:16]line НДС 12% НСП 1% [13:37:16]line > о реализуемом товаре [13:37:16]line Товар: 5908241631036 [13:37:16]line Aroma Intenso Red Fruits [13:37:16]line 1.000 * 210.00 [13:37:16]line = 210.00 [13:37:16]line НДС 12% НСП 1% [13:37:16]line > о реализуемом товаре [13:37:16]line ИТОГО: 305.00 [13:37:16]line НСП 1% : 2.70 [13:37:16]line НДС 12% : 32.39 [13:37:16]line Наличными: 0.00 [13:37:16]line Безнал.: 305.00 [13:37:16]line Место: АЗС № 63 "Партнер Нефть" [13:37:16]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:37:16]line СНО: Общий режим [13:37:16]line Чек 41 03.06.2024 13:37 [13:37:16]line Смена: 376 ФФД: 1.0 [13:37:16]line ЗНМ: 0300000037 [13:37:16]line РНМ: 0000000000092680 [13:37:16]line Версия ККМ: 001 [13:37:16]line Платежная система: АКБ Кыргызстан [13:37:16]line ФМ: 0000000000874882 [13:37:16]line ФД: 39923 [13:37:16]line ФПД: 141665517340182 [13:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133717&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39923&fm=141665517340182&tin=02508201610067®Number=0000000000092680&sum=30500 [13:37:16]line 0 [13:37:16]written 0, free lines is 4095 [13:37:16]Connected sock=10 [13:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 94 01 00 00 0A 67 8C 01 35 5B 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 35 39 30 38 32 34 31 36 33 31 30 33 36 06 04 18 00 41 72 6F 6D 61 20 49 6E 74 65 6E 73 6F 20 52 65 64 20 46 72 75 69 74 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0D C7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F3 9B 00 00 35 04 06 00 80 D8 12 D6 86 16 3F 6F 16 98 43 A1 3B 01 [13:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 EE C6 47 00 82 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F3 9B 00 00 F4 03 04 00 B9 6F 5D 66 B6 04 01 00 00 0A D2 76 7E 44 A2 4F 41 [13:37:16]CommunicateWithHost err = 0 [13:37:16]CheckOFDResponse [13:37:16]1017 (14) - 77093643461234 [13:37:16]1041 (16) - 0000000000874882 [13:37:16]1040 (4) - 39923 [13:37:16]1012 (4) - 03.06.2024 07:24 [13:37:16]1206 (1) - 0 [13:37:16]OFD Sender: Remove packet 39923 [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00039923 [13:37:16]NVStorageDeleteData [13:37:17]Write to MH i2c: 01 00 00 5B 0A 65 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 9B 0C 13 [13:37:17]RasterBufferAndPrint [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]written 0, free lines is 3237 [13:37:17]MH_Cut [13:37:17]Write to MH i2c: D1 01 00 62 0A 01 3E [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 01 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 01 00 62 0A 00 3D [13:37:17]Write to MH i2c: 01 00 00 63 0A 6D [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]OFD Sender: No OFD packet to send [13:37:17]*** Cut start [13:37:17]*** Partial cut [13:37:17]*** CUTSNS_PIN = 1 [13:37:17]*** CUTSNS_PIN = 0 [13:37:18]*** Brake cut motor [13:37:18]Read from MH i2c: 01 [13:37:18]MH_I2C_Read... [13:37:18]*** Stop cut motor [13:37:18]*** Cut end [13:37:18]Read from MH i2c: 01 07 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 FF 0F 82 [13:37:18]process_action close_receipt done [13:37:18]requested_data is exist [13:37:18]produce_requested_data [13:37:18]requested_item fm.sn is exist - process it [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 11 00 00 [13:37:18]Write to MH i2c: E2 08 00 64 0A 80 11 00 00 00 00 00 00 E8 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 17 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 17 00 64 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 40 [13:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:37:18]wFMCommunicate OK [13:37:18]requested_item fd.num is exist - process it [13:37:18]SAM_PROTO_GetFieldsCounters [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 13 00 00 [13:37:18]Write to MH i2c: E2 08 00 65 0A 80 13 00 00 00 00 00 00 EB [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 62 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 62 00 65 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [13:37:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F3 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:18]wFMCommunicate OK [13:37:18]SAM_PROTO_GetFieldsCounters done [13:37:18]requested_item shift.num is exist - process it [13:37:18]requested_item shift.opened is exist - process it [13:37:18]req_shift_opened [13:37:18]FM_GetShiftState [13:37:18]SAM_PROTO_GetShiftState [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 13 01 00 [13:37:18]Write to MH i2c: E2 08 00 66 0A 80 13 01 00 00 00 00 00 ED [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:18]Read from MH i2c: E2 0E 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 0E 00 66 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 10 [13:37:18]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:37:18]wFMCommunicate OK [13:37:18]SAM_PROTO_GetShiftState done [13:37:18]FM_GetShiftState done [13:37:18]req_shift_opened done [13:37:18]requested_item shift.open_date is exist - process it [13:37:18]req_shift_open_date [13:37:18]req_shift_open_date done [13:37:18]produce_requested_data done [13:37:18]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39923,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:37:18]process_action_free close_receipt [13:37:18]json_value_free [13:37:18]json_value_free done [13:37:18]process_json_proto returns [13:37:18]Send response to host [13:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39923,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:37:18]free response buf [13:37:18]execute_script done [13:37:18]execute_script returns [13:37:18]free content buf [13:37:18]Sock 9.Close socket [13:37:18]Sock 9.Thread stoped [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:23]accept exits with 8 [13:45:23]New connection [13:45:23]New thread 3067182436 created [13:45:23]Thread 3067325796 joined [13:45:23]Waiting for new connection... [13:45:23] Sock 8.Parse request [13:45:23]Sock 8.Check first char [13:45:23]Sock 8.First char is OK [13:45:23]request: POST /json_proto HTTP/1.0 [13:45:23]Method: POST [13:45:23]URL: /json_proto [13:45:23]Method is POST - this is cgi request [13:45:23]url: /json_proto [13:45:23]query_string will be loaded in cgi processing [13:45:23]execute_cgi json_proto POST (null) [13:45:23]execute_cgi path=json_proto method=POST [13:45:23]POST find Content-Length [13:45:23]Host: 172.17.36.199:8080 [13:45:23]Content-Length: 622 [13:45:23]Content-Type: application/json [13:45:23] [13:45:23]POST finish read [13:45:23]Found Content-Length = 622 [13:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176483", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:23]execute_script... [13:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176483", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:23]POST & json_proto [13:45:23]process_json_proto [13:45:23]json parsed OK: [13:45:23]protocol is kg_v1.0 [13:45:23]action value=close_receipt [13:45:23]process_action close_receipt [13:45:23]cmd_close_receipt [13:45:23]MH_GetDate [13:45:23]Write to MH i2c: F0 00 00 67 0A 60 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 67 0A 00 F5 C8 5D 66 91 46 04 65 29 [13:45:23]GetLastDocTimeStamp 1717421837 [13:45:23]current date 1717422325 [13:45:23]FM_GetShiftState [13:45:23]SAM_PROTO_GetShiftState [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 13 01 00 [13:45:23]Write to MH i2c: E2 08 00 68 0A 80 13 01 00 00 00 00 00 EF [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 68 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 12 [13:45:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:45:23]wFMCommunicate OK [13:45:23]SAM_PROTO_GetShiftState done [13:45:23]FM_GetShiftState done [13:45:23]opened in 1717373769 [13:45:23]opened+sec_in_day 1717460169 [13:45:23]quantity*price = 15100 [13:45:23]sum+1 = 15101 [13:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 42 03.06.2024 13:45 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39924 ФПД: 33120676635863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134525&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39924&fm=33120676635863&tin=02508201610067®Number=0000000000092680&sum=15100 0 [13:45:24]StoreToDocumentArchive [13:45:24]shift 376 fd 39924 [13:45:24]save to /storage/0376/doc_00039924 [13:45:24]save last doc name /storage/0376/doc_00039924 to /storage/kkm_last_doc_name [13:45:24]save OK [13:45:24]Clear old archive folders... [13:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:45:24]tlvbuf is 00DEF710 [13:45:24]SAM_PROTO_ClearQueue [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 09 00 00 [13:45:24]Write to MH i2c: E2 08 00 75 0A 80 09 00 00 00 00 00 00 F1 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_ClearQueue done [13:45:24]KKMCreateOFDPacket [13:45:24]OFDProtocolAddRootSTLVToBuf [13:45:24]FM_MakeSignedData [13:45:24]FM_MakeSignedData [13:45:24]SAM_PROTO_SignData [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 01 02 [13:45:24]Write to MH i2c: E2 08 00 76 0A 80 0D 01 02 00 00 00 00 F9 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]wFMCommunicate request_size=255 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 C8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [13:45:24]Write to MH i2c: E2 02 01 77 0A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 C8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 E5 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]wFMCommunicate request_size=33 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F4 9B 00 00 35 04 06 00 1E 1F 82 2A 64 D7 [13:45:24]Write to MH i2c: E2 24 00 78 0A 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F4 9B 00 00 35 04 06 00 1E 1F 82 2A 64 D7 00 00 43 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 03 02 [13:45:24]Write to MH i2c: E2 08 00 79 0A 80 0D 03 02 00 00 00 00 FE [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 0B 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 0B 00 79 0A 00 A8 42 43 7B D8 58 AA 29 90 00 AA [13:45:24]RAPDU: A8 42 43 7B D8 58 AA 29 90 00 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_SignData done [13:45:24]FM_MakeSignedData done [13:45:24]CreateOFDProtocolMessage [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 11 00 00 [13:45:24]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 17 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 56 [13:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:45:24]wFMCommunicate OK [13:45:24]CreateOFDProtocolMessage done [13:45:24]OFDSenderStorePacket 39924 [13:45:24]StoreOFDPacket docnum=39924 [13:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 15 3A 1E 01 32 98 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 C8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F4 9B 00 00 35 04 06 00 1E 1F 82 2A 64 D7 A8 42 43 7B D8 58 AA 29 [13:45:24]CheckFolder [13:45:24]dirname=/storage/ofd_packets [13:45:24]CheckFolder done [13:45:24]ProducePacketName [13:45:24]name=ofd_packets/00039924 [13:45:24]NVStorageSaveData ofd_packets/00039924 [13:45:24]File name is /storage/ofd_packets/00039924 [13:45:24]Write 324 bytes [13:45:24]NVStorageSaveData done [13:45:24]OFDSenderStorePacket done [13:45:24]KKMCreateOFDPacket done [13:45:24]NVStorageSaveData kkm_last_timestamp [13:45:24]File name is /storage/kkm_last_timestamp [13:45:24]Write 4 bytes [13:45:24]NVStorageSaveData done [13:45:24]ExternCall_PrintAddStr [13:45:24]wPrintStart [13:45:24]Write to MH i2c: 01 00 00 7B 0A 85 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: 01 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: 01 07 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [13:45:24]RasterBufferAndPrint [13:45:24]line Счет N : (3)176483 [13:45:24]line ИНН: 02508201610067 [13:45:24]line Контрольно-Кассовый Чек [13:45:24]line ПРОДАЖА [13:45:24]line Товар: 48741958 [13:45:24]line Сигареты Parliament Aqua Blue [13:45:24]line 1.000 * 151.00 [13:45:24]line = 151.00 [13:45:24]line НДС 12% НСП 1% [13:45:24]line > о реализуемом товаре [13:45:24]line ИТОГО: 151.00 [13:45:24]line НСП 1% : 1.34 [13:45:24]line НДС 12% : 16.03 [13:45:24]line Наличными: 151.00 [13:45:24]line Безнал.: 0.00 [13:45:24]line Место: АЗС № 63 "Партнер Нефть" [13:45:24]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:45:24]line СНО: Общий режим [13:45:24]line Чек 42 03.06.2024 13:45 [13:45:24]line Смена: 376 ФФД: 1.0 [13:45:24]line ЗНМ: 0300000037 [13:45:24]line РНМ: 0000000000092680 [13:45:24]line Версия ККМ: 001 [13:45:24]line ФМ: 0000000000874882 [13:45:24]line ФД: 39924 [13:45:24]line ФПД: 33120676635863 [13:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134525&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39924&fm=33120676635863&tin=02508201610067®Number=0000000000092680&sum=15100 [13:45:25]line 0 [13:45:25]OFD Sender: Processing packet 39924 [packets to send 5, broken 4] [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00039924 [13:45:25]OFD Sender: To server: pG, [13:45:25]CommunicateWithHost lk.salyk.kg:30040 [13:45:25]ConnectInit lk.salyk.kg [13:45:25]written 0, free lines is 4095 [13:45:25]Connected sock=10 [13:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 15 3A 1E 01 32 98 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 C8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F4 9B 00 00 35 04 06 00 1E 1F 82 2A 64 D7 A8 42 43 7B D8 58 AA 29 [13:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 9C 7D 47 00 E3 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F4 9B 00 00 F4 03 04 00 A1 71 5D 66 B6 04 01 00 00 DD 5B 32 22 80 A8 86 37 [13:45:25]CommunicateWithHost err = 0 [13:45:25]CheckOFDResponse [13:45:25]1017 (14) - 77093643461234 [13:45:25]1041 (16) - 0000000000874882 [13:45:25]1040 (4) - 39924 [13:45:25]1012 (4) - 03.06.2024 07:32 [13:45:25]1206 (1) - 0 [13:45:25]OFD Sender: Remove packet 39924 [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00039924 [13:45:25]NVStorageDeleteData [13:45:25]Write to MH i2c: 01 00 00 A4 0A AE [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 A4 0A 00 00 00 00 00 F2 0C B3 [13:45:25]RasterBufferAndPrint [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]written 0, free lines is 3321 [13:45:25]MH_Cut [13:45:25]Write to MH i2c: D1 01 00 AB 0A 01 87 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: D1 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: D1 01 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: D1 01 00 AB 0A 00 86 [13:45:25]Write to MH i2c: 01 00 00 AC 0A B6 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:26]OFD Sender: No OFD packet to send [13:45:26]*** Cut start [13:45:26]*** Partial cut [13:45:26]*** CUTSNS_PIN = 1 [13:45:26]*** CUTSNS_PIN = 0 [13:45:26]*** Brake cut motor [13:45:26]Read from MH i2c: 01 [13:45:26]MH_I2C_Read... [13:45:26]*** Stop cut motor [13:45:26]*** Cut end [13:45:26]Read from MH i2c: 01 07 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: 01 07 00 AC 0A 00 00 00 00 00 FF 0F CB [13:45:26]process_action close_receipt done [13:45:26]requested_data is exist [13:45:26]produce_requested_data [13:45:26]requested_item fm.sn is exist - process it [13:45:26]wFMCommunicate request_size=4 [13:45:26]MH_SAM_APDU [13:45:26]CAPDU: 80 11 00 00 [13:45:26]Write to MH i2c: E2 08 00 AD 0A 80 11 00 00 00 00 00 00 31 [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 17 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 17 00 AD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 89 [13:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:45:27]wFMCommunicate OK [13:45:27]requested_item fd.num is exist - process it [13:45:27]SAM_PROTO_GetFieldsCounters [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 00 00 [13:45:27]Write to MH i2c: E2 08 00 AE 0A 80 13 00 00 00 00 00 00 34 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 62 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 62 00 AE 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [13:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F4 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetFieldsCounters done [13:45:27]requested_item shift.num is exist - process it [13:45:27]requested_item shift.opened is exist - process it [13:45:27]req_shift_opened [13:45:27]FM_GetShiftState [13:45:27]SAM_PROTO_GetShiftState [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 01 00 [13:45:27]Write to MH i2c: E2 08 00 AF 0A 80 13 01 00 00 00 00 00 36 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 AF 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 59 [13:45:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetShiftState done [13:45:27]FM_GetShiftState done [13:45:27]req_shift_opened done [13:45:27]requested_item shift.open_date is exist - process it [13:45:27]req_shift_open_date [13:45:27]req_shift_open_date done [13:45:27]produce_requested_data done [13:45:27]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39924,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:45:27]process_action_free close_receipt [13:45:27]json_value_free [13:45:27]json_value_free done [13:45:27]process_json_proto returns [13:45:27]Send response to host [13:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39924,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:45:27]free response buf [13:45:27]execute_script done [13:45:27]execute_script returns [13:45:27]free content buf [13:45:27]Sock 8.Close socket [13:45:27]Sock 8.Thread stoped [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]accept exits with 9 [13:56:06]New connection [13:56:06]New thread 3067325796 created [13:56:06]Thread 3067182436 joined [13:56:06]Waiting for new connection... [13:56:06] Sock 9.Parse request [13:56:06]Sock 9.Check first char [13:56:06]Sock 9.First char is OK [13:56:06]request: POST /json_proto HTTP/1.0 [13:56:06]Method: POST [13:56:06]URL: /json_proto [13:56:06]Method is POST - this is cgi request [13:56:06]url: /json_proto [13:56:06]query_string will be loaded in cgi processing [13:56:06]execute_cgi json_proto POST (null) [13:56:06]execute_cgi path=json_proto method=POST [13:56:06]POST find Content-Length [13:56:06]Host: 172.17.36.199:8080 [13:56:06]Content-Length: 673 [13:56:06]Content-Type: application/json [13:56:06] [13:56:06]POST finish read [13:56:06]Found Content-Length = 673 [13:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176484", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]execute_script... [13:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176484", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]POST & json_proto [13:56:06]process_json_proto [13:56:06]json parsed OK: [13:56:06]protocol is kg_v1.0 [13:56:06]action value=close_receipt [13:56:06]process_action close_receipt [13:56:06]cmd_close_receipt [13:56:06]MH_GetDate [13:56:06]Write to MH i2c: F0 00 00 B0 0A A9 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 B0 0A 00 78 CB 5D 66 91 46 04 65 F8 [13:56:06]GetLastDocTimeStamp 1717422325 [13:56:06]current date 1717422968 [13:56:06]FM_GetShiftState [13:56:06]SAM_PROTO_GetShiftState [13:56:06]wFMCommunicate request_size=4 [13:56:06]MH_SAM_APDU [13:56:06]CAPDU: 80 13 01 00 [13:56:06]Write to MH i2c: E2 08 00 B1 0A 80 13 01 00 00 00 00 00 38 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:06]Read from MH i2c: E2 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 B1 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5B [13:56:06]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:56:06]wFMCommunicate OK [13:56:06]SAM_PROTO_GetShiftState done [13:56:06]FM_GetShiftState done [13:56:06]opened in 1717373769 [13:56:06]opened+sec_in_day 1717460169 [13:56:06]quantity*price = 18000 [13:56:06]sum+1 = 18001 [13:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 43 03.06.2024 13:56 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39925 ФПД: 74704384652811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T135608&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39925&fm=74704384652811&tin=02508201610067®Number=0000000000092680&sum=18000 0 [13:56:07]StoreToDocumentArchive [13:56:07]shift 376 fd 39925 [13:56:07]save to /storage/0376/doc_00039925 [13:56:07]save last doc name /storage/0376/doc_00039925 to /storage/kkm_last_doc_name [13:56:07]save OK [13:56:07]Clear old archive folders... [13:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=297 [13:56:07]tlvbuf is 00E1C670 [13:56:07]SAM_PROTO_ClearQueue [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 09 00 00 [13:56:07]Write to MH i2c: E2 08 00 BE 0A 80 09 00 00 00 00 00 00 3A [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_ClearQueue done [13:56:07]KKMCreateOFDPacket [13:56:07]OFDProtocolAddRootSTLVToBuf [13:56:07]FM_MakeSignedData [13:56:07]FM_MakeSignedData [13:56:07]SAM_PROTO_SignData [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 01 02 [13:56:07]Write to MH i2c: E2 08 00 BF 0A 80 0D 01 02 00 00 00 00 42 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]wFMCommunicate request_size=255 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 78 CB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [13:56:07]Write to MH i2c: E2 02 01 C0 0A 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 78 CB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 90 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]wFMCommunicate request_size=56 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F5 9B 00 00 35 04 06 00 43 F1 78 4F 76 0B [13:56:07]Write to MH i2c: E2 3B 00 C1 0A 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F5 9B 00 00 35 04 06 00 43 F1 78 4F 76 0B 00 00 E1 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 03 02 [13:56:07]Write to MH i2c: E2 08 00 C2 0A 80 0D 03 02 00 00 00 00 47 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0B 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0B 00 C2 0A 00 84 F9 8F A0 1C BF 4E 16 90 00 33 [13:56:07]RAPDU: 84 F9 8F A0 1C BF 4E 16 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_SignData done [13:56:07]FM_MakeSignedData done [13:56:07]CreateOFDProtocolMessage [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 11 00 00 [13:56:07]Write to MH i2c: E2 08 00 C3 0A 80 11 00 00 00 00 00 00 47 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 17 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 17 00 C3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 9F [13:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:56:07]wFMCommunicate OK [13:56:07]CreateOFDProtocolMessage done [13:56:07]OFDSenderStorePacket 39925 [13:56:07]StoreOFDPacket docnum=39925 [13:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3D 01 00 00 A0 8A 35 01 8B 50 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 78 CB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F5 9B 00 00 35 04 06 00 43 F1 78 4F 76 0B 84 F9 8F A0 1C BF 4E 16 [13:56:07]CheckFolder [13:56:07]dirname=/storage/ofd_packets [13:56:07]CheckFolder done [13:56:07]ProducePacketName [13:56:07]name=ofd_packets/00039925 [13:56:07]NVStorageSaveData ofd_packets/00039925 [13:56:07]File name is /storage/ofd_packets/00039925 [13:56:07]Write 347 bytes [13:56:07]NVStorageSaveData done [13:56:07]OFDSenderStorePacket done [13:56:07]KKMCreateOFDPacket done [13:56:07]NVStorageSaveData kkm_last_timestamp [13:56:07]File name is /storage/kkm_last_timestamp [13:56:07]Write 4 bytes [13:56:07]NVStorageSaveData done [13:56:07]ExternCall_PrintAddStr [13:56:07]wPrintStart [13:56:07]Write to MH i2c: 01 00 00 C4 0A CE [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: 01 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: 01 07 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: 01 07 00 C4 0A 00 00 00 00 00 FF 0F E3 [13:56:07]RasterBufferAndPrint [13:56:07]line Счет N : (3)176484 [13:56:07]line ИНН: 02508201610067 [13:56:07]line Контрольно-Кассовый Чек [13:56:07]line ПРОДАЖА [13:56:07]line Товар: 4670003190051 [13:56:07]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [13:56:07]line 1.000 * 180.00 [13:56:07]line = 180.00 [13:56:07]line НДС 12% НСП 1% [13:56:07]line > о реализуемом товаре [13:56:07]line ИТОГО: 180.00 [13:56:07]line НСП 1% : 1.59 [13:56:07]line НДС 12% : 19.11 [13:56:07]line Наличными: 180.00 [13:56:07]line Безнал.: 0.00 [13:56:07]line Место: АЗС № 63 "Партнер Нефть" [13:56:07]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [13:56:07]line СНО: Общий режим [13:56:07]line Чек 43 03.06.2024 13:56 [13:56:07]line Смена: 376 ФФД: 1.0 [13:56:07]line ЗНМ: 0300000037 [13:56:07]line РНМ: 0000000000092680 [13:56:07]line Версия ККМ: 001 [13:56:07]line ФМ: 0000000000874882 [13:56:07]line ФД: 39925 [13:56:07]line ФПД: 74704384652811 [13:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T135608&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39925&fm=74704384652811&tin=02508201610067®Number=0000000000092680&sum=18000 [13:56:08]line 0 [13:56:08]OFD Sender: Processing packet 39925 [packets to send 5, broken 4] [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00039925 [13:56:08]OFD Sender: To server: pG, [13:56:08]CommunicateWithHost lk.salyk.kg:30040 [13:56:08]ConnectInit lk.salyk.kg [13:56:08]written 0, free lines is 4095 [13:56:08]Connected sock=10 [13:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3D 01 00 00 A0 8A 35 01 8B 50 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 78 CB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F5 9B 00 00 35 04 06 00 43 F1 78 4F 76 0B 84 F9 8F A0 1C BF 4E 16 [13:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D4 BB 47 00 B1 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F5 9B 00 00 F4 03 04 00 24 74 5D 66 B6 04 01 00 00 D9 2E DB 45 E3 82 A0 35 [13:56:08]CommunicateWithHost err = 0 [13:56:08]CheckOFDResponse [13:56:08]1017 (14) - 77093643461234 [13:56:08]1041 (16) - 0000000000874882 [13:56:08]1040 (4) - 39925 [13:56:08]1012 (4) - 03.06.2024 07:43 [13:56:08]1206 (1) - 0 [13:56:08]OFD Sender: Remove packet 39925 [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00039925 [13:56:08]NVStorageDeleteData [13:56:08]Write to MH i2c: 01 00 00 ED 0A F7 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 08 0D 13 [13:56:08]RasterBufferAndPrint [13:56:08]line [13:56:08]line [13:56:08]line [13:56:08]line [13:56:08]line [13:56:08]written 0, free lines is 3345 [13:56:08]MH_Cut [13:56:08]Write to MH i2c: D1 01 00 F4 0A 01 D0 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: D1 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: D1 01 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: D1 01 00 F4 0A 00 CF [13:56:08]Write to MH i2c: 01 00 00 F5 0A FF [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:09]OFD Sender: No OFD packet to send [13:56:09]*** Cut start [13:56:09]*** Partial cut [13:56:09]*** CUTSNS_PIN = 1 [13:56:09]*** CUTSNS_PIN = 0 [13:56:09]*** Brake cut motor [13:56:09]Read from MH i2c: 01 [13:56:09]MH_I2C_Read... [13:56:09]*** Stop cut motor [13:56:09]*** Cut end [13:56:09]Read from MH i2c: 01 07 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [13:56:09]process_action close_receipt done [13:56:09]requested_data is exist [13:56:09]produce_requested_data [13:56:09]requested_item fm.sn is exist - process it [13:56:09]wFMCommunicate request_size=4 [13:56:09]MH_SAM_APDU [13:56:09]CAPDU: 80 11 00 00 [13:56:09]Write to MH i2c: E2 08 00 F6 0A 80 11 00 00 00 00 00 00 7A [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 F6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D2 [13:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [13:56:10]wFMCommunicate OK [13:56:10]requested_item fd.num is exist - process it [13:56:10]SAM_PROTO_GetFieldsCounters [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 13 00 00 [13:56:10]Write to MH i2c: E2 08 00 F7 0A 80 13 00 00 00 00 00 00 7D [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 62 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 62 00 F7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [13:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F5 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:10]wFMCommunicate OK [13:56:10]SAM_PROTO_GetFieldsCounters done [13:56:10]requested_item shift.num is exist - process it [13:56:10]requested_item shift.opened is exist - process it [13:56:10]req_shift_opened [13:56:10]FM_GetShiftState [13:56:10]SAM_PROTO_GetShiftState [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 13 01 00 [13:56:10]Write to MH i2c: E2 08 00 F8 0A 80 13 01 00 00 00 00 00 7F [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0E 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0E 00 F8 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A2 [13:56:10]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [13:56:10]wFMCommunicate OK [13:56:10]SAM_PROTO_GetShiftState done [13:56:10]FM_GetShiftState done [13:56:10]req_shift_opened done [13:56:10]requested_item shift.open_date is exist - process it [13:56:10]req_shift_open_date [13:56:10]req_shift_open_date done [13:56:10]produce_requested_data done [13:56:10]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39925,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [13:56:10]process_action_free close_receipt [13:56:10]json_value_free [13:56:10]json_value_free done [13:56:10]process_json_proto returns [13:56:10]Send response to host [13:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39925,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [13:56:10]free response buf [13:56:10]execute_script done [13:56:10]execute_script returns [13:56:10]free content buf [13:56:10]Sock 9.Close socket [13:56:10]Sock 9.Thread stoped [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15: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:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:16]accept exits with 8 [14:18:16]New connection [14:18:16]New thread 3067182436 created [14:18:16]Thread 3067325796 joined [14:18:16]Waiting for new connection... [14:18:16] Sock 8.Parse request [14:18:16]Sock 8.Check first char [14:18:16]Sock 8.First char is OK [14:18:16]request: POST /json_proto HTTP/1.0 [14:18:16]Method: POST [14:18:16]URL: /json_proto [14:18:16]Method is POST - this is cgi request [14:18:16]url: /json_proto [14:18:16]query_string will be loaded in cgi processing [14:18:16]execute_cgi json_proto POST (null) [14:18:16]execute_cgi path=json_proto method=POST [14:18:16]POST find Content-Length [14:18:16]Host: 172.17.36.199:8080 [14:18:16]Content-Length: 633 [14:18:16]Content-Type: application/json [14:18:16] [14:18:16]POST finish read [14:18:16]Found Content-Length = 633 [14:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176485", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:16]execute_script... [14:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176485", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:16]POST & json_proto [14:18:16]process_json_proto [14:18:16]json parsed OK: [14:18:16]protocol is kg_v1.0 [14:18:16]action value=close_receipt [14:18:16]process_action close_receipt [14:18:16]cmd_close_receipt [14:18:16]MH_GetDate [14:18:16]Write to MH i2c: F0 00 00 F9 0A F2 [14:18:16]Write i2c OK [14:18:16]MH_I2C_Read... [14:18:16]Read from MH i2c: F0 [14:18:16]MH_I2C_Read... [14:18:16]Read from MH i2c: F0 09 00 [14:18:16]MH_I2C_Read... [14:18:16]Read from MH i2c: F0 09 00 F9 0A 00 AA D0 5D 66 91 46 04 65 78 [14:18:16]GetLastDocTimeStamp 1717422968 [14:18:16]current date 1717424298 [14:18:16]FM_GetShiftState [14:18:16]SAM_PROTO_GetShiftState [14:18:16]wFMCommunicate request_size=4 [14:18:16]MH_SAM_APDU [14:18:16]CAPDU: 80 13 01 00 [14:18:16]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [14:18:16]Write i2c OK [14:18:16]MH_I2C_Read... [14:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:16]Read from MH i2c: E2 [14:18:16]MH_I2C_Read... [14:18:16]Read from MH i2c: E2 0E 00 [14:18:16]MH_I2C_Read... [14:18:16]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A4 [14:18:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:18:16]wFMCommunicate OK [14:18:16]SAM_PROTO_GetShiftState done [14:18:16]FM_GetShiftState done [14:18:16]opened in 1717373769 [14:18:16]opened+sec_in_day 1717460169 [14:18:16]quantity*price = 6500 [14:18:16]sum+1 = 6501 [14:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 44 03.06.2024 14:18 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39926 ФПД: 197170863233188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141818&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39926&fm=197170863233188&tin=02508201610067®Number=0000000000092680&sum=6500 0 [14:18:17]StoreToDocumentArchive [14:18:17]shift 376 fd 39926 [14:18:17]save to /storage/0376/doc_00039926 [14:18:17]save last doc name /storage/0376/doc_00039926 to /storage/kkm_last_doc_name [14:18:17]save OK [14:18:17]Clear old archive folders... [14:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:18:17]tlvbuf is 00E1C540 [14:18:17]SAM_PROTO_ClearQueue [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 09 00 00 [14:18:17]Write to MH i2c: E2 08 00 07 0B 80 09 00 00 00 00 00 00 84 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]SAM_PROTO_ClearQueue done [14:18:17]KKMCreateOFDPacket [14:18:17]OFDProtocolAddRootSTLVToBuf [14:18:17]FM_MakeSignedData [14:18:17]FM_MakeSignedData [14:18:17]SAM_PROTO_SignData [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 01 02 [14:18:17]Write to MH i2c: E2 08 00 08 0B 80 0D 01 02 00 00 00 00 8C [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 08 0B 00 90 00 87 [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=255 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA D0 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [14:18:17]Write to MH i2c: E2 02 01 09 0B 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA D0 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 A5 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=27 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 02 02 16 34 38 38 32 10 04 04 00 F6 9B 00 00 35 04 06 00 B3 53 6B 43 58 A4 [14:18:17]Write to MH i2c: E2 1E 00 0A 0B 80 0D 02 02 16 00 34 38 38 32 10 04 04 00 F6 9B 00 00 35 04 06 00 B3 53 6B 43 58 A4 00 00 29 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 03 02 [14:18:17]Write to MH i2c: E2 08 00 0B 0B 80 0D 03 02 00 00 00 00 91 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0B 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0B 00 0B 0B 00 8C 2C 9A 31 8F 82 97 84 90 00 41 [14:18:17]RAPDU: 8C 2C 9A 31 8F 82 97 84 90 00 [14:18:17]wFMCommunicate OK [14:18:17]SAM_PROTO_SignData done [14:18:17]FM_MakeSignedData done [14:18:17]CreateOFDProtocolMessage [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 11 00 00 [14:18:17]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 17 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E9 [14:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:18:17]wFMCommunicate OK [14:18:17]CreateOFDProtocolMessage done [14:18:17]OFDSenderStorePacket 39926 [14:18:17]StoreOFDPacket docnum=39926 [14:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 C3 64 18 01 FD 28 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA D0 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F6 9B 00 00 35 04 06 00 B3 53 6B 43 58 A4 8C 2C 9A 31 8F 82 97 84 [14:18:17]CheckFolder [14:18:17]dirname=/storage/ofd_packets [14:18:17]CheckFolder done [14:18:17]ProducePacketName [14:18:17]name=ofd_packets/00039926 [14:18:17]NVStorageSaveData ofd_packets/00039926 [14:18:17]File name is /storage/ofd_packets/00039926 [14:18:17]Write 318 bytes [14:18:17]NVStorageSaveData done [14:18:17]OFDSenderStorePacket done [14:18:17]KKMCreateOFDPacket done [14:18:17]NVStorageSaveData kkm_last_timestamp [14:18:17]File name is /storage/kkm_last_timestamp [14:18:17]Write 4 bytes [14:18:17]NVStorageSaveData done [14:18:17]ExternCall_PrintAddStr [14:18:17]wPrintStart [14:18:17]Write to MH i2c: 01 00 00 0D 0B 18 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 07 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [14:18:17]RasterBufferAndPrint [14:18:17]line Счет N : (3)176485 [14:18:17]line ИНН: 02508201610067 [14:18:17]line Контрольно-Кассовый Чек [14:18:17]line ПРОДАЖА [14:18:17]line Товар: 40822938 [14:18:17]line Напиток Фанта 0,5л [14:18:17]line 1.000 * 65.00 [14:18:17]line = 65.00 [14:18:17]line НДС 12% НСП 1% [14:18:17]line > о реализуемом товаре [14:18:17]line ИТОГО: 65.00 [14:18:17]line НСП 1% : 0.57 [14:18:17]line НДС 12% : 6.90 [14:18:17]line Наличными: 65.00 [14:18:17]line Безнал.: 0.00 [14:18:17]line Место: АЗС № 63 "Партнер Нефть" [14:18:17]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:18:17]line СНО: Общий режим [14:18:17]line Чек 44 03.06.2024 14:18 [14:18:17]line Смена: 376 ФФД: 1.0 [14:18:17]line ЗНМ: 0300000037 [14:18:17]line РНМ: 0000000000092680 [14:18:17]line Версия ККМ: 001 [14:18:17]line ФМ: 0000000000874882 [14:18:17]line ФД: 39926 [14:18:17]line ФПД: 197170863233188 [14:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141818&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39926&fm=197170863233188&tin=02508201610067®Number=0000000000092680&sum=6500 [14:18:18]line 0 [14:18:18]OFD Sender: Processing packet 39926 [packets to send 5, broken 4] [14:18:18]ProducePacketName [14:18:18]name=ofd_packets/00039926 [14:18:18]OFD Sender: To server: pG, [14:18:18]CommunicateWithHost lk.salyk.kg:30040 [14:18:18]ConnectInit lk.salyk.kg [14:18:18]written 0, free lines is 4095 [14:18:18]Connected sock=10 [14:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 C3 64 18 01 FD 28 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA D0 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F6 9B 00 00 35 04 06 00 B3 53 6B 43 58 A4 8C 2C 9A 31 8F 82 97 84 [14:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 03 2B 47 00 31 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F6 9B 00 00 F4 03 04 00 56 79 5D 66 B6 04 01 00 00 E5 9D 10 59 D7 C6 E2 5A [14:18:18]CommunicateWithHost err = 0 [14:18:18]CheckOFDResponse [14:18:18]1017 (14) - 77093643461234 [14:18:18]1041 (16) - 0000000000874882 [14:18:18]1040 (4) - 39926 [14:18:18]1012 (4) - 03.06.2024 08:05 [14:18:18]1206 (1) - 0 [14:18:18]OFD Sender: Remove packet 39926 [14:18:18]ProducePacketName [14:18:18]name=ofd_packets/00039926 [14:18:18]NVStorageDeleteData [14:18:18]Write to MH i2c: 01 00 00 35 0B 40 [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 07 00 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 10 0D 64 [14:18:18]RasterBufferAndPrint [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]written 0, free lines is 3350 [14:18:18]MH_Cut [14:18:18]Write to MH i2c: D1 01 00 3C 0B 01 19 [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 01 00 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 01 00 3C 0B 00 18 [14:18:18]Write to MH i2c: 01 00 00 3D 0B 48 [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]OFD Sender: No OFD packet to send [14:18:19]*** Cut start [14:18:19]*** Partial cut [14:18:19]*** CUTSNS_PIN = 1 [14:18:19]*** CUTSNS_PIN = 0 [14:18:19]*** Brake cut motor [14:18:19]Read from MH i2c: 01 [14:18:19]MH_I2C_Read... [14:18:19]*** Stop cut motor [14:18:19]*** Cut end [14:18:19]Read from MH i2c: 01 07 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: 01 07 00 3D 0B 00 00 00 00 00 FF 0F 5D [14:18:19]process_action close_receipt done [14:18:19]requested_data is exist [14:18:19]produce_requested_data [14:18:19]requested_item fm.sn is exist - process it [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 11 00 00 [14:18:19]Write to MH i2c: E2 08 00 3E 0B 80 11 00 00 00 00 00 00 C3 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 3E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1B [14:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:18:19]wFMCommunicate OK [14:18:19]requested_item fd.num is exist - process it [14:18:19]SAM_PROTO_GetFieldsCounters [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 13 00 00 [14:18:19]Write to MH i2c: E2 08 00 3F 0B 80 13 00 00 00 00 00 00 C6 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:20]Read from MH i2c: E2 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 62 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 62 00 3F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F6 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:20]wFMCommunicate OK [14:18:20]SAM_PROTO_GetFieldsCounters done [14:18:20]requested_item shift.num is exist - process it [14:18:20]requested_item shift.opened is exist - process it [14:18:20]req_shift_opened [14:18:20]FM_GetShiftState [14:18:20]SAM_PROTO_GetShiftState [14:18:20]wFMCommunicate request_size=4 [14:18:20]MH_SAM_APDU [14:18:20]CAPDU: 80 13 01 00 [14:18:20]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:20]Read from MH i2c: E2 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 EB [14:18:20]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:18:20]wFMCommunicate OK [14:18:20]SAM_PROTO_GetShiftState done [14:18:20]FM_GetShiftState done [14:18:20]req_shift_opened done [14:18:20]requested_item shift.open_date is exist - process it [14:18:20]req_shift_open_date [14:18:20]req_shift_open_date done [14:18:20]produce_requested_data done [14:18:20]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39926,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:18:20]process_action_free close_receipt [14:18:20]json_value_free [14:18:20]json_value_free done [14:18:20]process_json_proto returns [14:18:20]Send response to host [14:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39926,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:18:20]free response buf [14:18:20]execute_script done [14:18:20]execute_script returns [14:18:20]free content buf [14:18:20]Sock 8.Close socket [14:18:20]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]accept exits with 9 [14:23:44]New connection [14:23:44]New thread 3067325796 created [14:23:44]Thread 3067182436 joined [14:23:44]Waiting for new connection... [14:23:44] Sock 9.Parse request [14:23:44]Sock 9.Check first char [14:23:44]Sock 9.First char is OK [14:23:44]request: POST /json_proto HTTP/1.0 [14:23:44]Method: POST [14:23:44]URL: /json_proto [14:23:44]Method is POST - this is cgi request [14:23:44]url: /json_proto [14:23:44]query_string will be loaded in cgi processing [14:23:44]execute_cgi json_proto POST (null) [14:23:44]execute_cgi path=json_proto method=POST [14:23:44]POST find Content-Length [14:23:44]Host: 172.17.36.199:8080 [14:23:44]Content-Length: 823 [14:23:44]Content-Type: application/json [14:23:44] [14:23:44]POST finish read [14:23:44]Found Content-Length = 823 [14:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176486", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:44]execute_script... [14:23:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176486", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:44]POST & json_proto [14:23:44]process_json_proto [14:23:44]json parsed OK: [14:23:44]protocol is kg_v1.0 [14:23:44]action value=close_receipt [14:23:44]process_action close_receipt [14:23:44]cmd_close_receipt [14:23:44]MH_GetDate [14:23:44]Write to MH i2c: F0 00 00 41 0B 3B [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: F0 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: F0 09 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: F0 09 00 41 0B 00 F2 D1 5D 66 91 46 04 65 0A [14:23:44]GetLastDocTimeStamp 1717424298 [14:23:44]current date 1717424626 [14:23:44]FM_GetShiftState [14:23:44]SAM_PROTO_GetShiftState [14:23:44]wFMCommunicate request_size=4 [14:23:44]MH_SAM_APDU [14:23:44]CAPDU: 80 13 01 00 [14:23:44]Write to MH i2c: E2 08 00 42 0B 80 13 01 00 00 00 00 00 CA [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 42 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 ED [14:23:44]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:23:44]wFMCommunicate OK [14:23:44]SAM_PROTO_GetShiftState done [14:23:44]FM_GetShiftState done [14:23:44]opened in 1717373769 [14:23:44]opened+sec_in_day 1717460169 [14:23:44]quantity*price = 15100 [14:23:44]sum+1 = 15101 [14:23:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 45 03.06.2024 14:23 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39927 ФПД: 145922596038808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142347&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39927&fm=145922596038808&tin=02508201610067®Number=0000000000092680&sum=15100 0 [14:23:45]StoreToDocumentArchive [14:23:45]shift 376 fd 39927 [14:23:45]save to /storage/0376/doc_00039927 [14:23:45]save last doc name /storage/0376/doc_00039927 to /storage/kkm_last_doc_name [14:23:45]save OK [14:23:45]Clear old archive folders... [14:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:23:45]tlvbuf is B6F1C130 [14:23:45]SAM_PROTO_ClearQueue [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 09 00 00 [14:23:45]Write to MH i2c: E2 08 00 4F 0B 80 09 00 00 00 00 00 00 CC [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [14:23:45]RAPDU: 90 00 [14:23:45]wFMCommunicate OK [14:23:45]SAM_PROTO_ClearQueue done [14:23:45]KKMCreateOFDPacket [14:23:45]OFDProtocolAddRootSTLVToBuf [14:23:45]FM_MakeSignedData [14:23:45]FM_MakeSignedData [14:23:45]SAM_PROTO_SignData [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 0D 01 02 [14:23:45]Write to MH i2c: E2 08 00 50 0B 80 0D 01 02 00 00 00 00 D4 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [14:23:45]RAPDU: 90 00 [14:23:45]wFMCommunicate OK [14:23:45]wFMCommunicate request_size=255 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F3 D1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [14:23:45]Write to MH i2c: E2 02 01 51 0B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F3 D1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 CA [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [14:23:45]RAPDU: 90 00 [14:23:45]wFMCommunicate OK [14:23:45]wFMCommunicate request_size=33 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F7 9B 00 00 35 04 06 00 84 B7 40 80 68 98 [14:23:45]Write to MH i2c: E2 24 00 52 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F7 9B 00 00 35 04 06 00 84 B7 40 80 68 98 00 00 F8 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [14:23:45]RAPDU: 90 00 [14:23:45]wFMCommunicate OK [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 0D 03 02 [14:23:45]Write to MH i2c: E2 08 00 53 0B 80 0D 03 02 00 00 00 00 D9 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 0B 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 0B 00 53 0B 00 6B 8F 14 71 8B 7C 26 91 90 00 17 [14:23:45]RAPDU: 6B 8F 14 71 8B 7C 26 91 90 00 [14:23:45]wFMCommunicate OK [14:23:45]SAM_PROTO_SignData done [14:23:45]FM_MakeSignedData done [14:23:45]CreateOFDProtocolMessage [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 11 00 00 [14:23:45]Write to MH i2c: E2 08 00 54 0B 80 11 00 00 00 00 00 00 D9 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 17 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 17 00 54 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 31 [14:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:23:45]wFMCommunicate OK [14:23:45]CreateOFDProtocolMessage done [14:23:45]OFDSenderStorePacket 39927 [14:23:45]StoreOFDPacket docnum=39927 [14:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 8F F9 1E 01 2E 3C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F3 D1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F7 9B 00 00 35 04 06 00 84 B7 40 80 68 98 6B 8F 14 71 8B 7C 26 91 [14:23:45]CheckFolder [14:23:45]dirname=/storage/ofd_packets [14:23:45]CheckFolder done [14:23:45]ProducePacketName [14:23:45]name=ofd_packets/00039927 [14:23:45]NVStorageSaveData ofd_packets/00039927 [14:23:45]File name is /storage/ofd_packets/00039927 [14:23:45]Write 324 bytes [14:23:45]NVStorageSaveData done [14:23:45]OFDSenderStorePacket done [14:23:45]KKMCreateOFDPacket done [14:23:45]NVStorageSaveData kkm_last_timestamp [14:23:45]File name is /storage/kkm_last_timestamp [14:23:45]Write 4 bytes [14:23:45]NVStorageSaveData done [14:23:45]ExternCall_PrintAddStr [14:23:45]wPrintStart [14:23:45]Write to MH i2c: 01 00 00 55 0B 60 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: 01 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: 01 07 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: 01 07 00 55 0B 00 00 00 00 00 FF 0F 75 [14:23:45]RasterBufferAndPrint [14:23:45]line Счет N : (3)176486 [14:23:45]line ИНН: 02508201610067 [14:23:45]line Контрольно-Кассовый Чек [14:23:45]line ПРОДАЖА [14:23:45]line Товар: 48741958 [14:23:45]line Сигареты Parliament Aqua Blue [14:23:45]line 1.000 * 151.00 [14:23:45]line = 151.00 [14:23:45]line НДС 12% НСП 1% [14:23:45]line > о реализуемом товаре [14:23:45]line ИТОГО: 151.00 [14:23:45]line НСП 1% : 1.34 [14:23:45]line НДС 12% : 16.03 [14:23:45]line Наличными: 0.00 [14:23:45]line Безнал.: 151.00 [14:23:45]line Место: АЗС № 63 "Партнер Нефть" [14:23:45]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:23:45]line СНО: Общий режим [14:23:45]line Чек 45 03.06.2024 14:23 [14:23:45]line Смена: 376 ФФД: 1.0 [14:23:45]line ЗНМ: 0300000037 [14:23:45]line РНМ: 0000000000092680 [14:23:45]line Версия ККМ: 001 [14:23:45]line Платежная система: АКБ Кыргызстан [14:23:45]line ФМ: 0000000000874882 [14:23:45]line ФД: 39927 [14:23:45]line ФПД: 145922596038808 [14:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142347&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39927&fm=145922596038808&tin=02508201610067®Number=0000000000092680&sum=15100 [14:23:46]line 0 [14:23:46]OFD Sender: Processing packet 39927 [packets to send 5, broken 4] [14:23:46]ProducePacketName [14:23:46]name=ofd_packets/00039927 [14:23:46]OFD Sender: To server: pG, [14:23:46]CommunicateWithHost lk.salyk.kg:30040 [14:23:46]ConnectInit lk.salyk.kg [14:23:46]written 0, free lines is 4095 [14:23:46]Connected sock=10 [14:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 8F F9 1E 01 2E 3C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F3 D1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F7 9B 00 00 35 04 06 00 84 B7 40 80 68 98 6B 8F 14 71 8B 7C 26 91 [14:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 46 64 47 00 B6 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F7 9B 00 00 F4 03 04 00 9E 7A 5D 66 B6 04 01 00 00 1C C3 C0 AD C3 EB 01 CE [14:23:46]CommunicateWithHost err = 0 [14:23:46]CheckOFDResponse [14:23:46]1017 (14) - 77093643461234 [14:23:46]1041 (16) - 0000000000874882 [14:23:46]1040 (4) - 39927 [14:23:46]1012 (4) - 03.06.2024 08:11 [14:23:46]1206 (1) - 0 [14:23:46]OFD Sender: Remove packet 39927 [14:23:46]ProducePacketName [14:23:46]name=ofd_packets/00039927 [14:23:46]NVStorageDeleteData [14:23:46]Write to MH i2c: 01 00 00 80 0B 8B [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: 01 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: 01 07 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 E2 0C 80 [14:23:46]RasterBufferAndPrint [14:23:46]line [14:23:46]line [14:23:46]line [14:23:46]line [14:23:46]line [14:23:46]written 0, free lines is 3304 [14:23:46]MH_Cut [14:23:46]Write to MH i2c: D1 01 00 87 0B 01 64 [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: D1 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: D1 01 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: D1 01 00 87 0B 00 63 [14:23:46]Write to MH i2c: 01 00 00 88 0B 93 [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:47]OFD Sender: No OFD packet to send [14:23:47]*** Cut start [14:23:47]*** Partial cut [14:23:47]*** CUTSNS_PIN = 1 [14:23:47]*** CUTSNS_PIN = 0 [14:23:47]*** Brake cut motor [14:23:47]Read from MH i2c: 01 [14:23:47]MH_I2C_Read... [14:23:47]*** Stop cut motor [14:23:48]*** Cut end [14:23:48]Read from MH i2c: 01 07 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 FF 0F A8 [14:23:48]process_action close_receipt done [14:23:48]requested_data is exist [14:23:48]produce_requested_data [14:23:48]requested_item fm.sn is exist - process it [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 11 00 00 [14:23:48]Write to MH i2c: E2 08 00 89 0B 80 11 00 00 00 00 00 00 0E [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 17 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 17 00 89 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 66 [14:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:23:48]wFMCommunicate OK [14:23:48]requested_item fd.num is exist - process it [14:23:48]SAM_PROTO_GetFieldsCounters [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 13 00 00 [14:23:48]Write to MH i2c: E2 08 00 8A 0B 80 13 00 00 00 00 00 00 11 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 62 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 62 00 8A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F7 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:48]wFMCommunicate OK [14:23:48]SAM_PROTO_GetFieldsCounters done [14:23:48]requested_item shift.num is exist - process it [14:23:48]requested_item shift.opened is exist - process it [14:23:48]req_shift_opened [14:23:48]FM_GetShiftState [14:23:48]SAM_PROTO_GetShiftState [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 13 01 00 [14:23:48]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 0E 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 36 [14:23:48]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:23:48]wFMCommunicate OK [14:23:48]SAM_PROTO_GetShiftState done [14:23:48]FM_GetShiftState done [14:23:48]req_shift_opened done [14:23:48]requested_item shift.open_date is exist - process it [14:23:48]req_shift_open_date [14:23:48]req_shift_open_date done [14:23:48]produce_requested_data done [14:23:48]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39927,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:23:48]process_action_free close_receipt [14:23:48]json_value_free [14:23:48]json_value_free done [14:23:48]process_json_proto returns [14:23:48]Send response to host [14:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39927,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:23:48]free response buf [14:23:48]execute_script done [14:23:48]execute_script returns [14:23:48]free content buf [14:23:48]Sock 9.Close socket [14:23:48]Sock 9.Thread stoped [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:17]accept exits with 8 [14:24:17]New connection [14:24:17]New thread 3067182436 created [14:24:17]Thread 3067325796 joined [14:24:17]Waiting for new connection... [14:24:17] Sock 8.Parse request [14:24:17]Sock 8.Check first char [14:24:17]Sock 8.First char is OK [14:24:17]request: POST /json_proto HTTP/1.0 [14:24:17]Method: POST [14:24:17]URL: /json_proto [14:24:17]Method is POST - this is cgi request [14:24:17]url: /json_proto [14:24:17]query_string will be loaded in cgi processing [14:24:17]execute_cgi json_proto POST (null) [14:24:17]execute_cgi path=json_proto method=POST [14:24:17]POST find Content-Length [14:24:17]Host: 172.17.36.199:8080 [14:24:17]Content-Length: 862 [14:24:17]Content-Type: application/json [14:24:17] [14:24:17]POST finish read [14:24:17]Found Content-Length = 862 [14:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176487", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:17]execute_script... [14:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176487", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:17]POST & json_proto [14:24:17]process_json_proto [14:24:17]json parsed OK: [14:24:17]protocol is kg_v1.0 [14:24:17]action value=close_receipt [14:24:17]process_action close_receipt [14:24:17]cmd_close_receipt [14:24:17]MH_GetDate [14:24:17]Write to MH i2c: F0 00 00 8C 0B 86 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: F0 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: F0 09 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: F0 09 00 8C 0B 00 13 D2 5D 66 91 46 04 65 77 [14:24:17]GetLastDocTimeStamp 1717424627 [14:24:17]current date 1717424659 [14:24:17]FM_GetShiftState [14:24:17]SAM_PROTO_GetShiftState [14:24:17]wFMCommunicate request_size=4 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 13 01 00 [14:24:17]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 0E 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 38 [14:24:17]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:24:17]wFMCommunicate OK [14:24:17]SAM_PROTO_GetShiftState done [14:24:17]FM_GetShiftState done [14:24:17]opened in 1717373769 [14:24:17]opened+sec_in_day 1717460169 [14:24:17]quantity*price = 6700 [14:24:17]sum+1 = 6701 [14:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 46 03.06.2024 14:24 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39928 ФПД: 170350144477924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142419&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39928&fm=170350144477924&tin=02508201610067®Number=0000000000092680&sum=6700 0 [14:24:18]StoreToDocumentArchive [14:24:18]shift 376 fd 39928 [14:24:18]save to /storage/0376/doc_00039928 [14:24:18]save last doc name /storage/0376/doc_00039928 to /storage/kkm_last_doc_name [14:24:18]save OK [14:24:18]Clear old archive folders... [14:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:24:18]tlvbuf is 00DCCDC0 [14:24:18]SAM_PROTO_ClearQueue [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 09 00 00 [14:24:18]Write to MH i2c: E2 08 00 9A 0B 80 09 00 00 00 00 00 00 17 [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:18]Read from MH i2c: E2 03 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [14:24:18]RAPDU: 90 00 [14:24:18]wFMCommunicate OK [14:24:18]SAM_PROTO_ClearQueue done [14:24:18]KKMCreateOFDPacket [14:24:18]OFDProtocolAddRootSTLVToBuf [14:24:18]FM_MakeSignedData [14:24:18]FM_MakeSignedData [14:24:18]SAM_PROTO_SignData [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 0D 01 02 [14:24:18]Write to MH i2c: E2 08 00 9B 0B 80 0D 01 02 00 00 00 00 1F [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [14:24:18]RAPDU: 90 00 [14:24:18]wFMCommunicate OK [14:24:18]wFMCommunicate request_size=255 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 [14:24:18]Write to MH i2c: E2 02 01 9C 0B 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 00 00 8F [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [14:24:18]RAPDU: 90 00 [14:24:18]wFMCommunicate OK [14:24:18]wFMCommunicate request_size=43 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F8 9B 00 00 35 04 06 00 9A EE BB D9 5A E4 [14:24:18]Write to MH i2c: E2 2E 00 9D 0B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F8 9B 00 00 35 04 06 00 9A EE BB D9 5A E4 00 00 FC [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [14:24:18]RAPDU: 90 00 [14:24:18]wFMCommunicate OK [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 0D 03 02 [14:24:18]Write to MH i2c: E2 08 00 9E 0B 80 0D 03 02 00 00 00 00 24 [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 0B 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 0B 00 9E 0B 00 5E 99 39 BE 1B 96 CD 40 90 00 D1 [14:24:18]RAPDU: 5E 99 39 BE 1B 96 CD 40 90 00 [14:24:18]wFMCommunicate OK [14:24:18]SAM_PROTO_SignData done [14:24:18]FM_MakeSignedData done [14:24:18]CreateOFDProtocolMessage [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 11 00 00 [14:24:18]Write to MH i2c: E2 08 00 9F 0B 80 11 00 00 00 00 00 00 24 [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 17 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 17 00 9F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 7C [14:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:24:18]wFMCommunicate OK [14:24:18]CreateOFDProtocolMessage done [14:24:18]OFDSenderStorePacket 39928 [14:24:18]StoreOFDPacket docnum=39928 [14:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 30 01 00 00 64 26 28 01 E5 95 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F8 9B 00 00 35 04 06 00 9A EE BB D9 5A E4 5E 99 39 BE 1B 96 CD 40 [14:24:18]CheckFolder [14:24:18]dirname=/storage/ofd_packets [14:24:18]CheckFolder done [14:24:18]ProducePacketName [14:24:18]name=ofd_packets/00039928 [14:24:18]NVStorageSaveData ofd_packets/00039928 [14:24:18]File name is /storage/ofd_packets/00039928 [14:24:18]Write 334 bytes [14:24:18]NVStorageSaveData done [14:24:18]OFDSenderStorePacket done [14:24:18]KKMCreateOFDPacket done [14:24:18]NVStorageSaveData kkm_last_timestamp [14:24:18]File name is /storage/kkm_last_timestamp [14:24:18]Write 4 bytes [14:24:18]NVStorageSaveData done [14:24:18]ExternCall_PrintAddStr [14:24:18]wPrintStart [14:24:18]Write to MH i2c: 01 00 00 A0 0B AB [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 07 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [14:24:18]RasterBufferAndPrint [14:24:18]line Счет N : (3)176487 [14:24:18]line ИНН: 02508201610067 [14:24:18]line Контрольно-Кассовый Чек [14:24:18]line ПРОДАЖА [14:24:18]line Товар: 6931280300549 [14:24:18]line Зажигалка Cricket ПН пьезо [14:24:18]line 1.000 * 67.00 [14:24:18]line = 67.00 [14:24:18]line НДС 12% НСП 1% [14:24:18]line > о реализуемом товаре [14:24:18]line ИТОГО: 67.00 [14:24:18]line НСП 1% : 0.59 [14:24:18]line НДС 12% : 7.11 [14:24:18]line Наличными: 0.00 [14:24:18]line Безнал.: 67.00 [14:24:18]line Место: АЗС № 63 "Партнер Нефть" [14:24:18]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:24:18]line СНО: Общий режим [14:24:18]line Чек 46 03.06.2024 14:24 [14:24:18]line Смена: 376 ФФД: 1.0 [14:24:18]line ЗНМ: 0300000037 [14:24:18]line РНМ: 0000000000092680 [14:24:18]line Версия ККМ: 001 [14:24:18]line Платежная система: АКБ Кыргызстан [14:24:18]line ФМ: 0000000000874882 [14:24:18]line ФД: 39928 [14:24:18]line ФПД: 170350144477924 [14:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142419&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39928&fm=170350144477924&tin=02508201610067®Number=0000000000092680&sum=6700 [14:24:19]line 0 [14:24:19]OFD Sender: Processing packet 39928 [packets to send 5, broken 4] [14:24:19]ProducePacketName [14:24:19]name=ofd_packets/00039928 [14:24:19]OFD Sender: To server: pG, [14:24:19]CommunicateWithHost lk.salyk.kg:30040 [14:24:19]ConnectInit lk.salyk.kg [14:24:19]written 0, free lines is 4095 [14:24:19]Connected sock=10 [14:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 30 01 00 00 64 26 28 01 E5 95 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F8 9B 00 00 35 04 06 00 9A EE BB D9 5A E4 5E 99 39 BE 1B 96 CD 40 [14:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 62 2F 47 00 E6 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F8 9B 00 00 F4 03 04 00 BF 7A 5D 66 B6 04 01 00 00 6F 0E 18 01 61 CA 67 8E [14:24:19]CommunicateWithHost err = 0 [14:24:19]CheckOFDResponse [14:24:19]1017 (14) - 77093643461234 [14:24:19]1041 (16) - 0000000000874882 [14:24:19]1040 (4) - 39928 [14:24:19]1012 (4) - 03.06.2024 08:11 [14:24:19]1206 (1) - 0 [14:24:19]OFD Sender: Remove packet 39928 [14:24:19]ProducePacketName [14:24:19]name=ofd_packets/00039928 [14:24:19]NVStorageDeleteData [14:24:19]Write to MH i2c: 01 00 00 CA 0B D5 [14:24:19]Write i2c OK [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: 01 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: 01 07 00 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 00 0D E9 [14:24:19]RasterBufferAndPrint [14:24:19]line [14:24:19]line [14:24:19]line [14:24:19]line [14:24:19]line [14:24:19]written 0, free lines is 3334 [14:24:19]MH_Cut [14:24:19]Write to MH i2c: D1 01 00 D1 0B 01 AE [14:24:19]Write i2c OK [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: D1 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: D1 01 00 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: D1 01 00 D1 0B 00 AD [14:24:19]Write to MH i2c: 01 00 00 D2 0B DD [14:24:19]Write i2c OK [14:24:19]MH_I2C_Read... [14:24:20]OFD Sender: No OFD packet to send [14:24:20]*** Cut start [14:24:20]*** Partial cut [14:24:20]*** CUTSNS_PIN = 1 [14:24:20]*** CUTSNS_PIN = 0 [14:24:20]*** Brake cut motor [14:24:20]Read from MH i2c: 01 [14:24:20]MH_I2C_Read... [14:24:20]*** Stop cut motor [14:24:20]*** Cut end [14:24:20]Read from MH i2c: 01 07 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 FF 0F F2 [14:24:20]process_action close_receipt done [14:24:20]requested_data is exist [14:24:20]produce_requested_data [14:24:20]requested_item fm.sn is exist - process it [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 11 00 00 [14:24:20]Write to MH i2c: E2 08 00 D3 0B 80 11 00 00 00 00 00 00 58 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 [14:24:21]MH_I2C_Read... [14:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:21]Read from MH i2c: E2 17 00 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 17 00 D3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B0 [14:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:24:21]wFMCommunicate OK [14:24:21]requested_item fd.num is exist - process it [14:24:21]SAM_PROTO_GetFieldsCounters [14:24:21]wFMCommunicate request_size=4 [14:24:21]MH_SAM_APDU [14:24:21]CAPDU: 80 13 00 00 [14:24:21]Write to MH i2c: E2 08 00 D4 0B 80 13 00 00 00 00 00 00 5B [14:24:21]Write i2c OK [14:24:21]MH_I2C_Read... [14:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:21]Read from MH i2c: E2 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 62 00 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 62 00 D4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F8 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:21]wFMCommunicate OK [14:24:21]SAM_PROTO_GetFieldsCounters done [14:24:21]requested_item shift.num is exist - process it [14:24:21]requested_item shift.opened is exist - process it [14:24:21]req_shift_opened [14:24:21]FM_GetShiftState [14:24:21]SAM_PROTO_GetShiftState [14:24:21]wFMCommunicate request_size=4 [14:24:21]MH_SAM_APDU [14:24:21]CAPDU: 80 13 01 00 [14:24:21]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [14:24:21]Write i2c OK [14:24:21]MH_I2C_Read... [14:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:21]Read from MH i2c: E2 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 0E 00 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 80 [14:24:21]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:24:21]wFMCommunicate OK [14:24:21]SAM_PROTO_GetShiftState done [14:24:21]FM_GetShiftState done [14:24:21]req_shift_opened done [14:24:21]requested_item shift.open_date is exist - process it [14:24:21]req_shift_open_date [14:24:21]req_shift_open_date done [14:24:21]produce_requested_data done [14:24:21]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39928,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:24:21]process_action_free close_receipt [14:24:21]json_value_free [14:24:21]json_value_free done [14:24:21]process_json_proto returns [14:24:21]Send response to host [14:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39928,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:24:21]free response buf [14:24:21]execute_script done [14:24:21]execute_script returns [14:24:21]free content buf [14:24:21]Sock 8.Close socket [14:24:21]Sock 8.Thread stoped [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:16]accept exits with 9 [14:25:16]New connection [14:25:16]New thread 3067325796 created [14:25:16]Thread 3067182436 joined [14:25:16]Waiting for new connection... [14:25:16] Sock 9.Parse request [14:25:16]Sock 9.Check first char [14:25:16]Sock 9.First char is OK [14:25:16]request: POST /json_proto HTTP/1.0 [14:25:16]Method: POST [14:25:16]URL: /json_proto [14:25:16]Method is POST - this is cgi request [14:25:16]url: /json_proto [14:25:16]query_string will be loaded in cgi processing [14:25:16]execute_cgi json_proto POST (null) [14:25:16]execute_cgi path=json_proto method=POST [14:25:16]POST find Content-Length [14:25:16]Host: 172.17.36.199:8080 [14:25:16]Content-Length: 954 [14:25:16]Content-Type: application/json [14:25:16] [14:25:16]POST finish read [14:25:16]Found Content-Length = 954 [14:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176488", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:16]execute_script... [14:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176488", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:16]POST & json_proto [14:25:16]process_json_proto [14:25:16]json parsed OK: [14:25:16]protocol is kg_v1.0 [14:25:16]action value=close_receipt [14:25:16]process_action close_receipt [14:25:16]cmd_close_receipt [14:25:16]MH_GetDate [14:25:16]Write to MH i2c: F0 00 00 D6 0B D0 [14:25:16]Write i2c OK [14:25:16]MH_I2C_Read... [14:25:16]Read from MH i2c: F0 [14:25:16]MH_I2C_Read... [14:25:16]Read from MH i2c: F0 09 00 [14:25:16]MH_I2C_Read... [14:25:16]Read from MH i2c: F0 09 00 D6 0B 00 4F D2 5D 66 91 46 04 65 FD [14:25:16]GetLastDocTimeStamp 1717424659 [14:25:16]current date 1717424719 [14:25:16]FM_GetShiftState [14:25:16]SAM_PROTO_GetShiftState [14:25:16]wFMCommunicate request_size=4 [14:25:16]MH_SAM_APDU [14:25:16]CAPDU: 80 13 01 00 [14:25:16]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [14:25:16]Write i2c OK [14:25:16]MH_I2C_Read... [14:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:16]Read from MH i2c: E2 [14:25:16]MH_I2C_Read... [14:25:16]Read from MH i2c: E2 0E 00 [14:25:16]MH_I2C_Read... [14:25:16]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 82 [14:25:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:25:16]wFMCommunicate OK [14:25:16]SAM_PROTO_GetShiftState done [14:25:16]FM_GetShiftState done [14:25:16]opened in 1717373769 [14:25:16]opened+sec_in_day 1717460169 [14:25:16]quantity*price = 12500 [14:25:16]sum+1 = 12501 [14:25:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 47 03.06.2024 14:25 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39929 ФПД: 29436583049191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142519&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39929&fm=29436583049191&tin=02508201610067®Number=0000000000092680&sum=22000 0 [14:25:17]StoreToDocumentArchive [14:25:17]shift 376 fd 39929 [14:25:17]save to /storage/0376/doc_00039929 [14:25:17]save last doc name /storage/0376/doc_00039929 to /storage/kkm_last_doc_name [14:25:17]save OK [14:25:17]Clear old archive folders... [14:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=414 [14:25:17]tlvbuf is 00E1D8D0 [14:25:17]SAM_PROTO_ClearQueue [14:25:17]wFMCommunicate request_size=4 [14:25:17]MH_SAM_APDU [14:25:17]CAPDU: 80 09 00 00 [14:25:17]Write to MH i2c: E2 08 00 E4 0B 80 09 00 00 00 00 00 00 61 [14:25:17]Write i2c OK [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 [14:25:17]MH_I2C_Read... [14:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:17]Read from MH i2c: E2 03 00 [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [14:25:17]RAPDU: 90 00 [14:25:17]wFMCommunicate OK [14:25:17]SAM_PROTO_ClearQueue done [14:25:17]KKMCreateOFDPacket [14:25:17]OFDProtocolAddRootSTLVToBuf [14:25:17]FM_MakeSignedData [14:25:17]FM_MakeSignedData [14:25:17]SAM_PROTO_SignData [14:25:17]wFMCommunicate request_size=4 [14:25:17]MH_SAM_APDU [14:25:17]CAPDU: 80 0D 01 02 [14:25:17]Write to MH i2c: E2 08 00 E5 0B 80 0D 01 02 00 00 00 00 69 [14:25:17]Write i2c OK [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 [14:25:17]MH_I2C_Read... [14:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:17]Read from MH i2c: E2 03 00 [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [14:25:17]RAPDU: 90 00 [14:25:17]wFMCommunicate OK [14:25:17]wFMCommunicate request_size=255 [14:25:17]MH_SAM_APDU [14:25:17]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [14:25:17]Write to MH i2c: E2 02 01 E6 0B 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 58 [14:25:17]Write i2c OK [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 [14:25:17]MH_I2C_Read... [14:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:17]Read from MH i2c: E2 03 00 [14:25:17]MH_I2C_Read... [14:25:17]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [14:25:17]RAPDU: 90 00 [14:25:17]wFMCommunicate OK [14:25:17]wFMCommunicate request_size=173 [14:25:17]MH_SAM_APDU [14:25:17]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4F D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F9 9B 00 00 35 04 06 00 1A C5 BD 13 77 E7 [14:25:17]Write to MH i2c: E2 B0 00 E7 0B 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4F D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F9 9B 00 00 35 04 06 00 1A C5 BD 13 77 E7 00 00 A8 [14:25:17]Write i2c OK [14:25:17]MH_I2C_Read... [14:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:18]Read from MH i2c: E2 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 03 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [14:25:18]RAPDU: 90 00 [14:25:18]wFMCommunicate OK [14:25:18]wFMCommunicate request_size=4 [14:25:18]MH_SAM_APDU [14:25:18]CAPDU: 80 0D 03 02 [14:25:18]Write to MH i2c: E2 08 00 E8 0B 80 0D 03 02 00 00 00 00 6E [14:25:18]Write i2c OK [14:25:18]MH_I2C_Read... [14:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:18]Read from MH i2c: E2 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 0B 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 0B 00 E8 0B 00 87 6F 1E 18 1F 0B DE 41 90 00 E4 [14:25:18]RAPDU: 87 6F 1E 18 1F 0B DE 41 90 00 [14:25:18]wFMCommunicate OK [14:25:18]SAM_PROTO_SignData done [14:25:18]FM_MakeSignedData done [14:25:18]CreateOFDProtocolMessage [14:25:18]wFMCommunicate request_size=4 [14:25:18]MH_SAM_APDU [14:25:18]CAPDU: 80 11 00 00 [14:25:18]Write to MH i2c: E2 08 00 E9 0B 80 11 00 00 00 00 00 00 6E [14:25:18]Write i2c OK [14:25:18]MH_I2C_Read... [14:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:18]Read from MH i2c: E2 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 17 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 17 00 E9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C6 [14:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:25:18]wFMCommunicate OK [14:25:18]CreateOFDProtocolMessage done [14:25:18]OFDSenderStorePacket 39929 [14:25:18]StoreOFDPacket docnum=39929 [14:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 C8 45 AA 01 DC DD 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4F D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F9 9B 00 00 35 04 06 00 1A C5 BD 13 77 E7 87 6F 1E 18 1F 0B DE 41 [14:25:18]CheckFolder [14:25:18]dirname=/storage/ofd_packets [14:25:18]CheckFolder done [14:25:18]ProducePacketName [14:25:18]name=ofd_packets/00039929 [14:25:18]NVStorageSaveData ofd_packets/00039929 [14:25:18]File name is /storage/ofd_packets/00039929 [14:25:18]Write 464 bytes [14:25:18]NVStorageSaveData done [14:25:18]OFDSenderStorePacket done [14:25:18]KKMCreateOFDPacket done [14:25:18]NVStorageSaveData kkm_last_timestamp [14:25:18]File name is /storage/kkm_last_timestamp [14:25:18]Write 4 bytes [14:25:18]NVStorageSaveData done [14:25:18]ExternCall_PrintAddStr [14:25:18]wPrintStart [14:25:18]Write to MH i2c: 01 00 00 EA 0B F5 [14:25:18]Write i2c OK [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: 01 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: 01 07 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [14:25:18]RasterBufferAndPrint [14:25:18]line Счет N : (3)176488 [14:25:18]line ИНН: 02508201610067 [14:25:18]line Контрольно-Кассовый Чек [14:25:18]line ПРОДАЖА [14:25:18]line Товар: 4870202522015 [14:25:18]line Напиток Maxi Чай Грушевый 1,2л [14:25:18]line 1.000 * 125.00 [14:25:18]line = 125.00 [14:25:18]line НДС 12% НСП 1% [14:25:18]line > о реализуемом товаре [14:25:18]line Товар: 4700000480050 [14:25:18]line Напиток Nitro Energy эн green ж/б 0,45л [14:25:18]line 1.000 * 95.00 [14:25:18]line = 95.00 [14:25:18]line НДС 12% НСП 1% [14:25:18]line > о реализуемом товаре [14:25:18]line ИТОГО: 220.00 [14:25:18]line НСП 1% : 1.95 [14:25:18]line НДС 12% : 23.36 [14:25:18]line Наличными: 220.00 [14:25:18]line Безнал.: 0.00 [14:25:18]line Место: АЗС № 63 "Партнер Нефть" [14:25:18]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:25:18]line СНО: Общий режим [14:25:18]line Чек 47 03.06.2024 14:25 [14:25:18]line Смена: 376 ФФД: 1.0 [14:25:18]line ЗНМ: 0300000037 [14:25:18]line РНМ: 0000000000092680 [14:25:18]line Версия ККМ: 001 [14:25:18]line ФМ: 0000000000874882 [14:25:18]line ФД: 39929 [14:25:18]line ФПД: 29436583049191 [14:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142519&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39929&fm=29436583049191&tin=02508201610067®Number=0000000000092680&sum=22000 [14:25:18]line 0 [14:25:18]OFD Sender: Processing packet 39929 [packets to send 5, broken 4] [14:25:18]ProducePacketName [14:25:18]name=ofd_packets/00039929 [14:25:18]OFD Sender: To server: pG, [14:25:18]CommunicateWithHost lk.salyk.kg:30040 [14:25:18]ConnectInit lk.salyk.kg [14:25:18]written 0, free lines is 4095 [14:25:18]Connected sock=10 [14:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 C8 45 AA 01 DC DD 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4F D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F9 9B 00 00 35 04 06 00 1A C5 BD 13 77 E7 87 6F 1E 18 1F 0B DE 41 [14:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 25 FB 47 00 44 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 F9 9B 00 00 F4 03 04 00 FB 7A 5D 66 B6 04 01 00 00 7A 9D 14 95 20 45 FA E3 [14:25:18]CommunicateWithHost err = 0 [14:25:18]CheckOFDResponse [14:25:18]1017 (14) - 77093643461234 [14:25:18]1041 (16) - 0000000000874882 [14:25:18]1040 (4) - 39929 [14:25:18]1012 (4) - 03.06.2024 08:12 [14:25:18]1206 (1) - 0 [14:25:18]OFD Sender: Remove packet 39929 [14:25:18]ProducePacketName [14:25:18]name=ofd_packets/00039929 [14:25:18]NVStorageDeleteData [14:25:19]Write to MH i2c: 01 00 00 1A 0C 26 [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 07 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 B0 0C E9 [14:25:19]RasterBufferAndPrint [14:25:19]line [14:25:19]line [14:25:19]line [14:25:19]line [14:25:19]line [14:25:19]written 0, free lines is 3255 [14:25:19]MH_Cut [14:25:19]Write to MH i2c: D1 01 00 21 0C 01 FF [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: D1 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: D1 01 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: D1 01 00 21 0C 00 FE [14:25:19]Write to MH i2c: 01 00 00 22 0C 2E [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]OFD Sender: No OFD packet to send [14:25:19]*** Cut start [14:25:19]*** Partial cut [14:25:19]*** CUTSNS_PIN = 1 [14:25:19]*** CUTSNS_PIN = 0 [14:25:20]*** Brake cut motor [14:25:20]Read from MH i2c: 01 [14:25:20]MH_I2C_Read... [14:25:20]*** Stop cut motor [14:25:20]*** Cut end [14:25:20]Read from MH i2c: 01 07 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 FF 0F 43 [14:25:20]process_action close_receipt done [14:25:20]requested_data is exist [14:25:20]produce_requested_data [14:25:20]requested_item fm.sn is exist - process it [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 11 00 00 [14:25:20]Write to MH i2c: E2 08 00 23 0C 80 11 00 00 00 00 00 00 A9 [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:20]Read from MH i2c: E2 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 17 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 17 00 23 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 01 [14:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:25:20]wFMCommunicate OK [14:25:20]requested_item fd.num is exist - process it [14:25:20]SAM_PROTO_GetFieldsCounters [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 13 00 00 [14:25:20]Write to MH i2c: E2 08 00 24 0C 80 13 00 00 00 00 00 00 AC [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:20]Read from MH i2c: E2 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 62 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 62 00 24 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 F9 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:20]wFMCommunicate OK [14:25:20]SAM_PROTO_GetFieldsCounters done [14:25:20]requested_item shift.num is exist - process it [14:25:20]requested_item shift.opened is exist - process it [14:25:20]req_shift_opened [14:25:20]FM_GetShiftState [14:25:20]SAM_PROTO_GetShiftState [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 13 01 00 [14:25:20]Write to MH i2c: E2 08 00 25 0C 80 13 01 00 00 00 00 00 AE [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:20]Read from MH i2c: E2 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 0E 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 0E 00 25 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D1 [14:25:20]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:25:20]wFMCommunicate OK [14:25:20]SAM_PROTO_GetShiftState done [14:25:20]FM_GetShiftState done [14:25:20]req_shift_opened done [14:25:20]requested_item shift.open_date is exist - process it [14:25:20]req_shift_open_date [14:25:20]req_shift_open_date done [14:25:20]produce_requested_data done [14:25:20]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39929,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:25:20]process_action_free close_receipt [14:25:20]json_value_free [14:25:20]json_value_free done [14:25:20]process_json_proto returns [14:25:20]Send response to host [14:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39929,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:25:20]free response buf [14:25:20]execute_script done [14:25:20]execute_script returns [14:25:20]free content buf [14:25:20]Sock 9.Close socket [14:25:20]Sock 9.Thread stoped [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:06]accept exits with 8 [14:28:06]New connection [14:28:06]New thread 3067182436 created [14:28:06]Thread 3067325796 joined [14:28:06]Waiting for new connection... [14:28:06] Sock 8.Parse request [14:28:06]Sock 8.Check first char [14:28:06]Sock 8.First char is OK [14:28:06]request: POST /json_proto HTTP/1.0 [14:28:06]Method: POST [14:28:06]URL: /json_proto [14:28:06]Method is POST - this is cgi request [14:28:06]url: /json_proto [14:28:06]query_string will be loaded in cgi processing [14:28:06]execute_cgi json_proto POST (null) [14:28:06]execute_cgi path=json_proto method=POST [14:28:06]POST find Content-Length [14:28:06]Host: 172.17.36.199:8080 [14:28:06]Content-Length: 675 [14:28:06]Content-Type: application/json [14:28:06] [14:28:06]POST finish read [14:28:06]Found Content-Length = 675 [14:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176489", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:06]execute_script... [14:28:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176489", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:06]POST & json_proto [14:28:06]process_json_proto [14:28:06]json parsed OK: [14:28:06]protocol is kg_v1.0 [14:28:06]action value=close_receipt [14:28:06]process_action close_receipt [14:28:06]cmd_close_receipt [14:28:06]MH_GetDate [14:28:06]Write to MH i2c: F0 00 00 26 0C 21 [14:28:06]Write i2c OK [14:28:06]MH_I2C_Read... [14:28:06]Read from MH i2c: F0 [14:28:06]MH_I2C_Read... [14:28:06]Read from MH i2c: F0 09 00 [14:28:06]MH_I2C_Read... [14:28:06]Read from MH i2c: F0 09 00 26 0C 00 F9 D2 5D 66 91 46 04 65 F8 [14:28:06]GetLastDocTimeStamp 1717424719 [14:28:06]current date 1717424889 [14:28:06]FM_GetShiftState [14:28:06]SAM_PROTO_GetShiftState [14:28:06]wFMCommunicate request_size=4 [14:28:06]MH_SAM_APDU [14:28:06]CAPDU: 80 13 01 00 [14:28:06]Write to MH i2c: E2 08 00 27 0C 80 13 01 00 00 00 00 00 B0 [14:28:06]Write i2c OK [14:28:06]MH_I2C_Read... [14:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:06]Read from MH i2c: E2 [14:28:06]MH_I2C_Read... [14:28:06]Read from MH i2c: E2 0E 00 [14:28:06]MH_I2C_Read... [14:28:06]Read from MH i2c: E2 0E 00 27 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D3 [14:28:06]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:28:06]wFMCommunicate OK [14:28:06]SAM_PROTO_GetShiftState done [14:28:06]FM_GetShiftState done [14:28:06]opened in 1717373769 [14:28:06]opened+sec_in_day 1717460169 [14:28:06]quantity*price = 2800 [14:28:06]sum+1 = 2801 [14:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 28.00 НСП 1% : 0.25 НДС 12% : 2.97 Наличными: 28.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 48 03.06.2024 14:28 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39930 ФПД: 111524058482417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142809&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39930&fm=111524058482417&tin=02508201610067®Number=0000000000092680&sum=2800 0 [14:28:07]StoreToDocumentArchive [14:28:07]shift 376 fd 39930 [14:28:07]save to /storage/0376/doc_00039930 [14:28:07]save last doc name /storage/0376/doc_00039930 to /storage/kkm_last_doc_name [14:28:07]save OK [14:28:07]Clear old archive folders... [14:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:28:07]tlvbuf is 00E223C0 [14:28:07]SAM_PROTO_ClearQueue [14:28:07]wFMCommunicate request_size=4 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 09 00 00 [14:28:07]Write to MH i2c: E2 08 00 34 0C 80 09 00 00 00 00 00 00 B2 [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [14:28:07]RAPDU: 90 00 [14:28:07]wFMCommunicate OK [14:28:07]SAM_PROTO_ClearQueue done [14:28:07]KKMCreateOFDPacket [14:28:07]OFDProtocolAddRootSTLVToBuf [14:28:07]FM_MakeSignedData [14:28:07]FM_MakeSignedData [14:28:07]SAM_PROTO_SignData [14:28:07]wFMCommunicate request_size=4 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 0D 01 02 [14:28:07]Write to MH i2c: E2 08 00 35 0C 80 0D 01 02 00 00 00 00 BA [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [14:28:07]RAPDU: 90 00 [14:28:07]wFMCommunicate OK [14:28:07]wFMCommunicate request_size=255 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [14:28:07]Write to MH i2c: E2 02 01 36 0C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 98 [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [14:28:07]RAPDU: 90 00 [14:28:07]wFMCommunicate OK [14:28:07]wFMCommunicate request_size=46 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 0D 02 02 29 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FA 9B 00 00 35 04 06 00 65 6E 37 E3 C6 F1 [14:28:07]Write to MH i2c: E2 31 00 37 0C 80 0D 02 02 29 00 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FA 9B 00 00 35 04 06 00 65 6E 37 E3 C6 F1 00 00 87 [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [14:28:07]RAPDU: 90 00 [14:28:07]wFMCommunicate OK [14:28:07]wFMCommunicate request_size=4 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 0D 03 02 [14:28:07]Write to MH i2c: E2 08 00 38 0C 80 0D 03 02 00 00 00 00 BF [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 0B 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 0B 00 38 0C 00 1E 7B C7 20 F9 0B 88 DC 90 00 A8 [14:28:07]RAPDU: 1E 7B C7 20 F9 0B 88 DC 90 00 [14:28:07]wFMCommunicate OK [14:28:07]SAM_PROTO_SignData done [14:28:07]FM_MakeSignedData done [14:28:07]CreateOFDProtocolMessage [14:28:07]wFMCommunicate request_size=4 [14:28:07]MH_SAM_APDU [14:28:07]CAPDU: 80 11 00 00 [14:28:07]Write to MH i2c: E2 08 00 39 0C 80 11 00 00 00 00 00 00 BF [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:07]Read from MH i2c: E2 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 17 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: E2 17 00 39 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 17 [14:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:28:07]wFMCommunicate OK [14:28:07]CreateOFDProtocolMessage done [14:28:07]OFDSenderStorePacket 39930 [14:28:07]StoreOFDPacket docnum=39930 [14:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 24 74 2B 01 67 6E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FA 9B 00 00 35 04 06 00 65 6E 37 E3 C6 F1 1E 7B C7 20 F9 0B 88 DC [14:28:07]CheckFolder [14:28:07]dirname=/storage/ofd_packets [14:28:07]CheckFolder done [14:28:07]ProducePacketName [14:28:07]name=ofd_packets/00039930 [14:28:07]NVStorageSaveData ofd_packets/00039930 [14:28:07]File name is /storage/ofd_packets/00039930 [14:28:07]Write 337 bytes [14:28:07]NVStorageSaveData done [14:28:07]OFDSenderStorePacket done [14:28:07]KKMCreateOFDPacket done [14:28:07]NVStorageSaveData kkm_last_timestamp [14:28:07]File name is /storage/kkm_last_timestamp [14:28:07]Write 4 bytes [14:28:07]NVStorageSaveData done [14:28:07]ExternCall_PrintAddStr [14:28:07]wPrintStart [14:28:07]Write to MH i2c: 01 00 00 3A 0C 46 [14:28:07]Write i2c OK [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: 01 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: 01 07 00 [14:28:07]MH_I2C_Read... [14:28:07]Read from MH i2c: 01 07 00 3A 0C 00 00 00 00 00 FF 0F 5B [14:28:07]RasterBufferAndPrint [14:28:07]line Счет N : (3)176489 [14:28:07]line ИНН: 02508201610067 [14:28:07]line Контрольно-Кассовый Чек [14:28:07]line ПРОДАЖА [14:28:07]line Товар: 2000053020015 [14:28:07]line Бумажные стаканы 250мл 1шт [14:28:07]line 4.000 * 7.00 [14:28:07]line = 28.00 [14:28:07]line НДС 12% НСП 1% [14:28:07]line > о реализуемом товаре [14:28:07]line ИТОГО: 28.00 [14:28:07]line НСП 1% : 0.25 [14:28:07]line НДС 12% : 2.97 [14:28:07]line Наличными: 28.00 [14:28:07]line Безнал.: 0.00 [14:28:07]line Место: АЗС № 63 "Партнер Нефть" [14:28:07]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:28:07]line СНО: Общий режим [14:28:07]line Чек 48 03.06.2024 14:28 [14:28:07]line Смена: 376 ФФД: 1.0 [14:28:07]line ЗНМ: 0300000037 [14:28:08]line РНМ: 0000000000092680 [14:28:08]line Версия ККМ: 001 [14:28:08]line ФМ: 0000000000874882 [14:28:08]line ФД: 39930 [14:28:08]line ФПД: 111524058482417 [14:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142809&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39930&fm=111524058482417&tin=02508201610067®Number=0000000000092680&sum=2800 [14:28:08]line 0 [14:28:08]OFD Sender: Processing packet 39930 [packets to send 5, broken 4] [14:28:08]ProducePacketName [14:28:08]name=ofd_packets/00039930 [14:28:08]OFD Sender: To server: pG, [14:28:08]CommunicateWithHost lk.salyk.kg:30040 [14:28:08]ConnectInit lk.salyk.kg [14:28:08]written 0, free lines is 4095 [14:28:08]Connected sock=10 [14:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 24 74 2B 01 67 6E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 D2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FA 9B 00 00 35 04 06 00 65 6E 37 E3 C6 F1 1E 7B C7 20 F9 0B 88 DC [14:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 10 C7 47 00 A2 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FA 9B 00 00 F4 03 04 00 A4 7B 5D 66 B6 04 01 00 00 5C 23 A4 A1 A8 59 74 3E [14:28:08]CommunicateWithHost err = 0 [14:28:08]CheckOFDResponse [14:28:08]1017 (14) - 77093643461234 [14:28:08]1041 (16) - 0000000000874882 [14:28:08]1040 (4) - 39930 [14:28:08]1012 (4) - 03.06.2024 08:15 [14:28:08]1206 (1) - 0 [14:28:08]OFD Sender: Remove packet 39930 [14:28:08]ProducePacketName [14:28:08]name=ofd_packets/00039930 [14:28:08]NVStorageDeleteData [14:28:08]Write to MH i2c: 01 00 00 63 0C 6F [14:28:08]Write i2c OK [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: 01 [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: 01 07 00 [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FE 0C 80 [14:28:08]RasterBufferAndPrint [14:28:08]line [14:28:08]line [14:28:08]line [14:28:08]line [14:28:08]line [14:28:08]written 0, free lines is 3332 [14:28:08]MH_Cut [14:28:08]Write to MH i2c: D1 01 00 6A 0C 01 48 [14:28:08]Write i2c OK [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: D1 [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: D1 01 00 [14:28:08]MH_I2C_Read... [14:28:08]Read from MH i2c: D1 01 00 6A 0C 00 47 [14:28:08]Write to MH i2c: 01 00 00 6B 0C 77 [14:28:08]Write i2c OK [14:28:08]MH_I2C_Read... [14:28:09]OFD Sender: No OFD packet to send [14:28:09]*** Cut start [14:28:09]*** Partial cut [14:28:09]*** CUTSNS_PIN = 1 [14:28:09]*** CUTSNS_PIN = 0 [14:28:09]*** Brake cut motor [14:28:09]Read from MH i2c: 01 [14:28:10]MH_I2C_Read... [14:28:10]*** Stop cut motor [14:28:10]*** Cut end [14:28:10]Read from MH i2c: 01 07 00 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [14:28:10]process_action close_receipt done [14:28:10]requested_data is exist [14:28:10]produce_requested_data [14:28:10]requested_item fm.sn is exist - process it [14:28:10]wFMCommunicate request_size=4 [14:28:10]MH_SAM_APDU [14:28:10]CAPDU: 80 11 00 00 [14:28:10]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [14:28:10]Write i2c OK [14:28:10]MH_I2C_Read... [14:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:10]Read from MH i2c: E2 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 17 00 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 4A [14:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:28:10]wFMCommunicate OK [14:28:10]requested_item fd.num is exist - process it [14:28:10]SAM_PROTO_GetFieldsCounters [14:28:10]wFMCommunicate request_size=4 [14:28:10]MH_SAM_APDU [14:28:10]CAPDU: 80 13 00 00 [14:28:10]Write to MH i2c: E2 08 00 6D 0C 80 13 00 00 00 00 00 00 F5 [14:28:10]Write i2c OK [14:28:10]MH_I2C_Read... [14:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:10]Read from MH i2c: E2 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 62 00 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 62 00 6D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FA 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:10]wFMCommunicate OK [14:28:10]SAM_PROTO_GetFieldsCounters done [14:28:10]requested_item shift.num is exist - process it [14:28:10]requested_item shift.opened is exist - process it [14:28:10]req_shift_opened [14:28:10]FM_GetShiftState [14:28:10]SAM_PROTO_GetShiftState [14:28:10]wFMCommunicate request_size=4 [14:28:10]MH_SAM_APDU [14:28:10]CAPDU: 80 13 01 00 [14:28:10]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [14:28:10]Write i2c OK [14:28:10]MH_I2C_Read... [14:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:10]Read from MH i2c: E2 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 0E 00 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1A [14:28:10]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:28:10]wFMCommunicate OK [14:28:10]SAM_PROTO_GetShiftState done [14:28:10]FM_GetShiftState done [14:28:10]req_shift_opened done [14:28:10]requested_item shift.open_date is exist - process it [14:28:10]req_shift_open_date [14:28:10]req_shift_open_date done [14:28:10]produce_requested_data done [14:28:10]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39930,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:28:10]process_action_free close_receipt [14:28:10]json_value_free [14:28:10]json_value_free done [14:28:10]process_json_proto returns [14:28:10]Send response to host [14:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39930,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:28:10]free response buf [14:28:10]execute_script done [14:28:10]execute_script returns [14:28:10]free content buf [14:28:10]Sock 8.Close socket [14:28:10]Sock 8.Thread stoped [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:57]accept exits with 9 [14:39:57]New connection [14:39:57]New thread 3067325796 created [14:39:57]Thread 3067182436 joined [14:39:57]Waiting for new connection... [14:39:57] Sock 9.Parse request [14:39:57]Sock 9.Check first char [14:39:57]Sock 9.First char is OK [14:39:57]request: POST /json_proto HTTP/1.0 [14:39:57]Method: POST [14:39:57]URL: /json_proto [14:39:57]Method is POST - this is cgi request [14:39:57]url: /json_proto [14:39:57]query_string will be loaded in cgi processing [14:39:57]execute_cgi json_proto POST (null) [14:39:57]execute_cgi path=json_proto method=POST [14:39:57]POST find Content-Length [14:39:57]Host: 172.17.36.199:8080 [14:39:57]Content-Length: 621 [14:39:57]Content-Type: application/json [14:39:57] [14:39:57]POST finish read [14:39:57]Found Content-Length = 621 [14:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176490", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:57]execute_script... [14:39:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176490", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:57]POST & json_proto [14:39:57]process_json_proto [14:39:57]json parsed OK: [14:39:57]protocol is kg_v1.0 [14:39:57]action value=close_receipt [14:39:57]process_action close_receipt [14:39:57]cmd_close_receipt [14:39:57]MH_GetDate [14:39:57]Write to MH i2c: F0 00 00 6F 0C 6A [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 09 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 09 00 6F 0C 00 C0 D5 5D 66 91 46 04 65 0B [14:39:57]GetLastDocTimeStamp 1717424889 [14:39:57]current date 1717425600 [14:39:57]FM_GetShiftState [14:39:57]SAM_PROTO_GetShiftState [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 13 01 00 [14:39:57]Write to MH i2c: E2 08 00 70 0C 80 13 01 00 00 00 00 00 F9 [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 70 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1C [14:39:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:39:57]wFMCommunicate OK [14:39:57]SAM_PROTO_GetShiftState done [14:39:57]FM_GetShiftState done [14:39:57]opened in 1717373769 [14:39:57]opened+sec_in_day 1717460169 [14:39:57]quantity*price = 14000 [14:39:57]sum+1 = 14001 [14:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 49 03.06.2024 14:40 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39931 ФПД: 5856056599462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144000&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39931&fm=5856056599462&tin=02508201610067®Number=0000000000092680&sum=14000 0 [14:39:58]StoreToDocumentArchive [14:39:58]shift 376 fd 39931 [14:39:58]save to /storage/0376/doc_00039931 [14:39:58]save last doc name /storage/0376/doc_00039931 to /storage/kkm_last_doc_name [14:39:58]save OK [14:39:58]Clear old archive folders... [14:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:39:58]tlvbuf is 00DF4100 [14:39:58]SAM_PROTO_ClearQueue [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 09 00 00 [14:39:58]Write to MH i2c: E2 08 00 7D 0C 80 09 00 00 00 00 00 00 FB [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]SAM_PROTO_ClearQueue done [14:39:58]KKMCreateOFDPacket [14:39:58]OFDProtocolAddRootSTLVToBuf [14:39:58]FM_MakeSignedData [14:39:58]FM_MakeSignedData [14:39:58]SAM_PROTO_SignData [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 01 02 [14:39:58]Write to MH i2c: E2 08 00 7E 0C 80 0D 01 02 00 00 00 00 03 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=255 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C0 D5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [14:39:58]Write to MH i2c: E2 02 01 7F 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C0 D5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 E6 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=32 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 FB 9B 00 00 35 04 06 00 05 53 78 2C 63 A6 [14:39:58]Write to MH i2c: E2 23 00 80 0C 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 FB 9B 00 00 35 04 06 00 05 53 78 2C 63 A6 00 00 03 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 03 02 [14:39:58]Write to MH i2c: E2 08 00 81 0C 80 0D 03 02 00 00 00 00 08 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 0B 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 0B 00 81 0C 00 48 64 54 1B 23 B4 A4 B7 90 00 56 [14:39:58]RAPDU: 48 64 54 1B 23 B4 A4 B7 90 00 [14:39:58]wFMCommunicate OK [14:39:58]SAM_PROTO_SignData done [14:39:58]FM_MakeSignedData done [14:39:58]CreateOFDProtocolMessage [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 11 00 00 [14:39:58]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 17 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 60 [14:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:39:58]wFMCommunicate OK [14:39:58]CreateOFDProtocolMessage done [14:39:58]OFDSenderStorePacket 39931 [14:39:58]StoreOFDPacket docnum=39931 [14:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 25 DB 1D 01 B0 86 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C0 D5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FB 9B 00 00 35 04 06 00 05 53 78 2C 63 A6 48 64 54 1B 23 B4 A4 B7 [14:39:58]CheckFolder [14:39:58]dirname=/storage/ofd_packets [14:39:58]CheckFolder done [14:39:58]ProducePacketName [14:39:58]name=ofd_packets/00039931 [14:39:58]NVStorageSaveData ofd_packets/00039931 [14:39:58]File name is /storage/ofd_packets/00039931 [14:39:58]Write 323 bytes [14:39:58]NVStorageSaveData done [14:39:58]OFDSenderStorePacket done [14:39:58]KKMCreateOFDPacket done [14:39:58]NVStorageSaveData kkm_last_timestamp [14:39:58]File name is /storage/kkm_last_timestamp [14:39:58]Write 4 bytes [14:39:58]NVStorageSaveData done [14:39:58]ExternCall_PrintAddStr [14:39:58]wPrintStart [14:39:58]Write to MH i2c: 01 00 00 83 0C 8F [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 07 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 FF 0F A4 [14:39:58]RasterBufferAndPrint [14:39:58]line Счет N : (3)176490 [14:39:58]line ИНН: 02508201610067 [14:39:58]line Контрольно-Кассовый Чек [14:39:58]line ПРОДАЖА [14:39:58]line Товар: 48747059 [14:39:58]line Сигареты Winston Legend Blue [14:39:58]line 1.000 * 140.00 [14:39:58]line = 140.00 [14:39:58]line НДС 12% НСП 1% [14:39:58]line > о реализуемом товаре [14:39:58]line ИТОГО: 140.00 [14:39:58]line НСП 1% : 1.24 [14:39:58]line НДС 12% : 14.87 [14:39:58]line Наличными: 140.00 [14:39:58]line Безнал.: 0.00 [14:39:58]line Место: АЗС № 63 "Партнер Нефть" [14:39:58]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [14:39:58]line СНО: Общий режим [14:39:58]line Чек 49 03.06.2024 14:40 [14:39:58]line Смена: 376 ФФД: 1.0 [14:39:58]line ЗНМ: 0300000037 [14:39:58]line РНМ: 0000000000092680 [14:39:59]line Версия ККМ: 001 [14:39:59]line ФМ: 0000000000874882 [14:39:59]line ФД: 39931 [14:39:59]line ФПД: 5856056599462 [14:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144000&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39931&fm=5856056599462&tin=02508201610067®Number=0000000000092680&sum=14000 [14:39:59]line 0 [14:39:59]OFD Sender: Processing packet 39931 [packets to send 5, broken 4] [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00039931 [14:39:59]OFD Sender: To server: pG, [14:39:59]CommunicateWithHost lk.salyk.kg:30040 [14:39:59]ConnectInit lk.salyk.kg [14:39:59]written 0, free lines is 4095 [14:39:59]Connected sock=10 [14:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 25 DB 1D 01 B0 86 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C0 D5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FB 9B 00 00 35 04 06 00 05 53 78 2C 63 A6 48 64 54 1B 23 B4 A4 B7 [14:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 4E 84 47 00 50 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FB 9B 00 00 F4 03 04 00 6B 7E 5D 66 B6 04 01 00 00 B0 F9 4B B6 05 A5 8E E3 [14:39:59]CommunicateWithHost err = 0 [14:39:59]CheckOFDResponse [14:39:59]1017 (14) - 77093643461234 [14:39:59]1041 (16) - 0000000000874882 [14:39:59]1040 (4) - 39931 [14:39:59]1012 (4) - 03.06.2024 08:27 [14:39:59]1206 (1) - 0 [14:39:59]OFD Sender: Remove packet 39931 [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00039931 [14:39:59]NVStorageDeleteData [14:39:59]Write to MH i2c: 01 00 00 AC 0C B8 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 07 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 F5 0C C0 [14:39:59]RasterBufferAndPrint [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]written 0, free lines is 3324 [14:39:59]MH_Cut [14:39:59]Write to MH i2c: D1 01 00 B3 0C 01 91 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 01 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 01 00 B3 0C 00 90 [14:39:59]Write to MH i2c: 01 00 00 B4 0C C0 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:40:00]OFD Sender: No OFD packet to send [14:40:00]*** Cut start [14:40:00]*** Partial cut [14:40:00]*** CUTSNS_PIN = 1 [14:40:00]*** CUTSNS_PIN = 0 [14:40:00]*** Brake cut motor [14:40:00]Read from MH i2c: 01 [14:40:00]MH_I2C_Read... [14:40:00]*** Stop cut motor [14:40:00]*** Cut end [14:40:00]Read from MH i2c: 01 07 00 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [14:40:00]process_action close_receipt done [14:40:00]requested_data is exist [14:40:00]produce_requested_data [14:40:00]requested_item fm.sn is exist - process it [14:40:00]wFMCommunicate request_size=4 [14:40:00]MH_SAM_APDU [14:40:00]CAPDU: 80 11 00 00 [14:40:00]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 17 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 93 [14:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [14:40:01]wFMCommunicate OK [14:40:01]requested_item fd.num is exist - process it [14:40:01]SAM_PROTO_GetFieldsCounters [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 13 00 00 [14:40:01]Write to MH i2c: E2 08 00 B6 0C 80 13 00 00 00 00 00 00 3E [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 62 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 62 00 B6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FB 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:01]wFMCommunicate OK [14:40:01]SAM_PROTO_GetFieldsCounters done [14:40:01]requested_item shift.num is exist - process it [14:40:01]requested_item shift.opened is exist - process it [14:40:01]req_shift_opened [14:40:01]FM_GetShiftState [14:40:01]SAM_PROTO_GetShiftState [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 13 01 00 [14:40:01]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 0E 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 63 [14:40:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [14:40:01]wFMCommunicate OK [14:40:01]SAM_PROTO_GetShiftState done [14:40:01]FM_GetShiftState done [14:40:01]req_shift_opened done [14:40:01]requested_item shift.open_date is exist - process it [14:40:01]req_shift_open_date [14:40:01]req_shift_open_date done [14:40:01]produce_requested_data done [14:40:01]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39931,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [14:40:01]process_action_free close_receipt [14:40:01]json_value_free [14:40:01]json_value_free done [14:40:01]process_json_proto returns [14:40:01]Send response to host [14:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39931,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [14:40:01]free response buf [14:40:01]execute_script done [14:40:01]execute_script returns [14:40:01]free content buf [14:40:01]Sock 9.Close socket [14:40:01]Sock 9.Thread stoped [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]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:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:13:56]accept exits with 8 [15:13:56]New connection [15:13:56]New thread 3067182436 created [15:13:56]Thread 3067325796 joined [15:13:56]Waiting for new connection... [15:13:56] Sock 8.Parse request [15:13:56]Sock 8.Check first char [15:13:56]Sock 8.First char is OK [15:13:56]request: POST /json_proto HTTP/1.0 [15:13:56]Method: POST [15:13:56]URL: /json_proto [15:13:56]Method is POST - this is cgi request [15:13:56]url: /json_proto [15:13:56]query_string will be loaded in cgi processing [15:13:56]execute_cgi json_proto POST (null) [15:13:56]execute_cgi path=json_proto method=POST [15:13:56]POST find Content-Length [15:13:56]Host: 172.17.36.199:8080 [15:13:56]Content-Length: 646 [15:13:56]Content-Type: application/json [15:13:56] [15:13:56]POST finish read [15:13:56]Found Content-Length = 646 [15:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176491", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:56]execute_script... [15:13:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176491", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:56]POST & json_proto [15:13:56]process_json_proto [15:13:56]json parsed OK: [15:13:56]protocol is kg_v1.0 [15:13:56]action value=close_receipt [15:13:56]process_action close_receipt [15:13:56]cmd_close_receipt [15:13:56]MH_GetDate [15:13:56]Write to MH i2c: F0 00 00 B8 0C B3 [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: F0 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: F0 09 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: F0 09 00 B8 0C 00 B7 DD 5D 66 91 46 04 65 53 [15:13:56]GetLastDocTimeStamp 1717425600 [15:13:56]current date 1717427639 [15:13:56]FM_GetShiftState [15:13:56]SAM_PROTO_GetShiftState [15:13:56]wFMCommunicate request_size=4 [15:13:56]MH_SAM_APDU [15:13:56]CAPDU: 80 13 01 00 [15:13:56]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:56]Read from MH i2c: E2 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 0E 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 65 [15:13:56]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:13:56]wFMCommunicate OK [15:13:56]SAM_PROTO_GetShiftState done [15:13:56]FM_GetShiftState done [15:13:56]opened in 1717373769 [15:13:56]opened+sec_in_day 1717460169 [15:13:56]quantity*price = 12500 [15:13:56]sum+1 = 12501 [15:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 50 03.06.2024 15:13 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39932 ФПД: 126219444201425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151359&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39932&fm=126219444201425&tin=02508201610067®Number=0000000000092680&sum=12500 0 [15:13:58]StoreToDocumentArchive [15:13:58]shift 376 fd 39932 [15:13:58]save to /storage/0376/doc_00039932 [15:13:58]save last doc name /storage/0376/doc_00039932 to /storage/kkm_last_doc_name [15:13:58]save OK [15:13:58]Clear old archive folders... [15:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:13:58]tlvbuf is 00E22110 [15:13:58]SAM_PROTO_ClearQueue [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 09 00 00 [15:13:58]Write to MH i2c: E2 08 00 C6 0C 80 09 00 00 00 00 00 00 44 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [15:13:58]RAPDU: 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_ClearQueue done [15:13:58]KKMCreateOFDPacket [15:13:58]OFDProtocolAddRootSTLVToBuf [15:13:58]FM_MakeSignedData [15:13:58]FM_MakeSignedData [15:13:58]SAM_PROTO_SignData [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 0D 01 02 [15:13:58]Write to MH i2c: E2 08 00 C7 0C 80 0D 01 02 00 00 00 00 4C [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:58]Read from MH i2c: E2 03 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [15:13:58]RAPDU: 90 00 [15:13:58]wFMCommunicate OK [15:13:58]wFMCommunicate request_size=255 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 DD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 [15:13:58]Write to MH i2c: E2 02 01 C8 0C 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 DD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 00 00 4C [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [15:13:58]RAPDU: 90 00 [15:13:58]wFMCommunicate OK [15:13:58]wFMCommunicate request_size=41 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FC 9B 00 00 35 04 06 00 72 CB C1 22 A7 D1 [15:13:58]Write to MH i2c: E2 2C 00 C9 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FC 9B 00 00 35 04 06 00 72 CB C1 22 A7 D1 00 00 52 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [15:13:58]RAPDU: 90 00 [15:13:58]wFMCommunicate OK [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 0D 03 02 [15:13:58]Write to MH i2c: E2 08 00 CA 0C 80 0D 03 02 00 00 00 00 51 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0B 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0B 00 CA 0C 00 46 56 D9 AE D9 32 2C A4 90 00 50 [15:13:58]RAPDU: 46 56 D9 AE D9 32 2C A4 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_SignData done [15:13:58]FM_MakeSignedData done [15:13:58]CreateOFDProtocolMessage [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 11 00 00 [15:13:58]Write to MH i2c: E2 08 00 CB 0C 80 11 00 00 00 00 00 00 51 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 17 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 17 00 CB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A9 [15:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:13:58]wFMCommunicate OK [15:13:58]CreateOFDProtocolMessage done [15:13:58]OFDSenderStorePacket 39932 [15:13:58]StoreOFDPacket docnum=39932 [15:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 6B 2F 26 01 28 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 DD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FC 9B 00 00 35 04 06 00 72 CB C1 22 A7 D1 46 56 D9 AE D9 32 2C A4 [15:13:58]CheckFolder [15:13:58]dirname=/storage/ofd_packets [15:13:58]CheckFolder done [15:13:58]ProducePacketName [15:13:58]name=ofd_packets/00039932 [15:13:58]NVStorageSaveData ofd_packets/00039932 [15:13:58]File name is /storage/ofd_packets/00039932 [15:13:58]Write 332 bytes [15:13:58]NVStorageSaveData done [15:13:58]OFDSenderStorePacket done [15:13:58]KKMCreateOFDPacket done [15:13:58]NVStorageSaveData kkm_last_timestamp [15:13:58]File name is /storage/kkm_last_timestamp [15:13:58]Write 4 bytes [15:13:58]NVStorageSaveData done [15:13:58]ExternCall_PrintAddStr [15:13:58]wPrintStart [15:13:58]Write to MH i2c: 01 00 00 CC 0C D8 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: 01 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: 01 07 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [15:13:58]RasterBufferAndPrint [15:13:58]line Счет N : (3)176491 [15:13:58]line ИНН: 02508201610067 [15:13:58]line Контрольно-Кассовый Чек [15:13:58]line ПРОДАЖА [15:13:58]line Товар: 2000036220012 [15:13:58]line Кофе Капучино XL(GABB TRADE) [15:13:58]line 1.000 * 125.00 [15:13:58]line = 125.00 [15:13:58]line НДС 12% НСП 1% [15:13:58]line > о реализуемом товаре [15:13:58]line ИТОГО: 125.00 [15:13:58]line НСП 1% : 1.11 [15:13:58]line НДС 12% : 13.27 [15:13:58]line Наличными: 125.00 [15:13:58]line Безнал.: 0.00 [15:13:58]line Место: АЗС № 63 "Партнер Нефть" [15:13:58]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:13:58]line СНО: Общий режим [15:13:58]line Чек 50 03.06.2024 15:13 [15:13:58]line Смена: 376 ФФД: 1.0 [15:13:58]line ЗНМ: 0300000037 [15:13:58]line РНМ: 0000000000092680 [15:13:58]line Версия ККМ: 001 [15:13:58]line ФМ: 0000000000874882 [15:13:58]line ФД: 39932 [15:13:58]line ФПД: 126219444201425 [15:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151359&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39932&fm=126219444201425&tin=02508201610067®Number=0000000000092680&sum=12500 [15:13:58]line 0 [15:13:58]OFD Sender: Processing packet 39932 [packets to send 5, broken 4] [15:13:58]ProducePacketName [15:13:58]name=ofd_packets/00039932 [15:13:58]OFD Sender: To server: pG, [15:13:58]CommunicateWithHost lk.salyk.kg:30040 [15:13:58]ConnectInit lk.salyk.kg [15:13:58]written 0, free lines is 4095 [15:13:58]Connected sock=10 [15:13:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 6B 2F 26 01 28 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 DD 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FC 9B 00 00 35 04 06 00 72 CB C1 22 A7 D1 46 56 D9 AE D9 32 2C A4 [15:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 BF B0 47 00 73 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FC 9B 00 00 F4 03 04 00 63 86 5D 66 B6 04 01 00 00 A8 00 50 C2 0C 43 ED DF [15:13:59]CommunicateWithHost err = 0 [15:13:59]CheckOFDResponse [15:13:59]1017 (14) - 77093643461234 [15:13:59]1041 (16) - 0000000000874882 [15:13:59]1040 (4) - 39932 [15:13:59]1012 (4) - 03.06.2024 09:01 [15:13:59]1206 (1) - 0 [15:13:59]OFD Sender: Remove packet 39932 [15:13:59]ProducePacketName [15:13:59]name=ofd_packets/00039932 [15:13:59]NVStorageDeleteData [15:13:59]Write to MH i2c: 01 00 00 F5 0C 01 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: 01 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: 01 07 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 05 0D 1A [15:13:59]RasterBufferAndPrint [15:13:59]line [15:13:59]line [15:13:59]line [15:13:59]line [15:13:59]line [15:13:59]written 0, free lines is 3339 [15:13:59]MH_Cut [15:13:59]Write to MH i2c: D1 01 00 FC 0C 01 DA [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: D1 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: D1 01 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: D1 01 00 FC 0C 00 D9 [15:13:59]Write to MH i2c: 01 00 00 FD 0C 09 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]OFD Sender: No OFD packet to send [15:13:59]*** Cut start [15:13:59]*** Partial cut [15:13:59]*** CUTSNS_PIN = 1 [15:13:59]*** CUTSNS_PIN = 0 [15:14:00]*** Brake cut motor [15:14:00]Read from MH i2c: 01 [15:14:00]MH_I2C_Read... [15:14:00]*** Stop cut motor [15:14:00]*** Cut end [15:14:00]Read from MH i2c: 01 07 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [15:14:00]process_action close_receipt done [15:14:00]requested_data is exist [15:14:00]produce_requested_data [15:14:00]requested_item fm.sn is exist - process it [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 11 00 00 [15:14:00]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DC [15:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:14:00]wFMCommunicate OK [15:14:00]requested_item fd.num is exist - process it [15:14:00]SAM_PROTO_GetFieldsCounters [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 00 00 [15:14:00]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 62 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 62 00 FF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FC 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetFieldsCounters done [15:14:00]requested_item shift.num is exist - process it [15:14:00]requested_item shift.opened is exist - process it [15:14:00]req_shift_opened [15:14:00]FM_GetShiftState [15:14:00]SAM_PROTO_GetShiftState [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 01 00 [15:14:00]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 AD [15:14:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftState done [15:14:00]FM_GetShiftState done [15:14:00]req_shift_opened done [15:14:00]requested_item shift.open_date is exist - process it [15:14:00]req_shift_open_date [15:14:00]req_shift_open_date done [15:14:00]produce_requested_data done [15:14:00]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39932,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:14:00]process_action_free close_receipt [15:14:00]json_value_free [15:14:00]json_value_free done [15:14:00]process_json_proto returns [15:14:00]Send response to host [15:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39932,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:14:00]free response buf [15:14:00]execute_script done [15:14:00]execute_script returns [15:14:00]free content buf [15:14:00]Sock 8.Close socket [15:14:00]Sock 8.Thread stoped [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]accept exits with 9 [15:16:44]New connection [15:16:44]New thread 3067325796 created [15:16:44]Thread 3067182436 joined [15:16:44]Waiting for new connection... [15:16:44] Sock 9.Parse request [15:16:44]Sock 9.Check first char [15:16:44]Sock 9.First char is OK [15:16:44]request: POST /json_proto HTTP/1.0 [15:16:44]Method: POST [15:16:44]URL: /json_proto [15:16:44]Method is POST - this is cgi request [15:16:44]url: /json_proto [15:16:44]query_string will be loaded in cgi processing [15:16:44]execute_cgi json_proto POST (null) [15:16:44]execute_cgi path=json_proto method=POST [15:16:44]POST find Content-Length [15:16:44]Host: 172.17.36.199:8080 [15:16:44]Content-Length: 880 [15:16:44]Content-Type: application/json [15:16:44] [15:16:44]POST finish read [15:16:44]Found Content-Length = 880 [15:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176492", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:44]execute_script... [15:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176492", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:44]POST & json_proto [15:16:44]process_json_proto [15:16:44]json parsed OK: [15:16:44]protocol is kg_v1.0 [15:16:44]action value=close_receipt [15:16:44]process_action close_receipt [15:16:44]cmd_close_receipt [15:16:44]MH_GetDate [15:16:44]Write to MH i2c: F0 00 00 01 0D FD [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: F0 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: F0 09 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: F0 09 00 01 0D 00 5F DE 5D 66 91 46 04 65 46 [15:16:44]GetLastDocTimeStamp 1717427639 [15:16:44]current date 1717427807 [15:16:44]FM_GetShiftState [15:16:44]SAM_PROTO_GetShiftState [15:16:44]wFMCommunicate request_size=4 [15:16:44]MH_SAM_APDU [15:16:44]CAPDU: 80 13 01 00 [15:16:44]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 0E 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 AF [15:16:44]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:16:44]wFMCommunicate OK [15:16:44]SAM_PROTO_GetShiftState done [15:16:44]FM_GetShiftState done [15:16:44]opened in 1717373769 [15:16:44]opened+sec_in_day 1717460169 [15:16:44]quantity*price = 15500 [15:16:44]sum+1 = 15501 [15:16:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 51 03.06.2024 15:16 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39933 ФПД: 216474601645928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151647&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39933&fm=216474601645928&tin=02508201610067®Number=0000000000092680&sum=21500 0 [15:16:45]StoreToDocumentArchive [15:16:45]shift 376 fd 39933 [15:16:45]save to /storage/0376/doc_00039933 [15:16:45]save last doc name /storage/0376/doc_00039933 to /storage/kkm_last_doc_name [15:16:45]save OK [15:16:45]Clear old archive folders... [15:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=376 [15:16:45]tlvbuf is 00E348D0 [15:16:45]SAM_PROTO_ClearQueue [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 09 00 00 [15:16:45]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:45]Read from MH i2c: E2 03 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [15:16:45]RAPDU: 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_ClearQueue done [15:16:45]KKMCreateOFDPacket [15:16:45]OFDProtocolAddRootSTLVToBuf [15:16:45]FM_MakeSignedData [15:16:45]FM_MakeSignedData [15:16:45]SAM_PROTO_SignData [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 0D 01 02 [15:16:45]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:45]Read from MH i2c: E2 03 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [15:16:45]RAPDU: 90 00 [15:16:45]wFMCommunicate OK [15:16:45]wFMCommunicate request_size=255 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 [15:16:45]Write to MH i2c: E2 02 01 11 0D 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 00 00 FB [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 03 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [15:16:45]RAPDU: 90 00 [15:16:45]wFMCommunicate OK [15:16:45]wFMCommunicate request_size=135 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5F DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FD 9B 00 00 35 04 06 00 C4 E1 EB BB E7 68 [15:16:45]Write to MH i2c: E2 8A 00 12 0D 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5F DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FD 9B 00 00 35 04 06 00 C4 E1 EB BB E7 68 00 00 FE [15:16:45]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 03 02 [15:16:46]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 13 0D 00 DF 19 7B E1 C4 8D 5A 4C 90 00 E7 [15:16:46]RAPDU: DF 19 7B E1 C4 8D 5A 4C 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_SignData done [15:16:46]FM_MakeSignedData done [15:16:46]CreateOFDProtocolMessage [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 11 00 00 [15:16:46]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F3 [15:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:16:46]wFMCommunicate OK [15:16:46]CreateOFDProtocolMessage done [15:16:46]OFDSenderStorePacket 39933 [15:16:46]StoreOFDPacket docnum=39933 [15:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 8C 01 00 00 28 04 84 01 D3 1A 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5F DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FD 9B 00 00 35 04 06 00 C4 E1 EB BB E7 68 DF 19 7B E1 C4 8D 5A 4C [15:16:46]CheckFolder [15:16:46]dirname=/storage/ofd_packets [15:16:46]CheckFolder done [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00039933 [15:16:46]NVStorageSaveData ofd_packets/00039933 [15:16:46]File name is /storage/ofd_packets/00039933 [15:16:46]Write 426 bytes [15:16:46]NVStorageSaveData done [15:16:46]OFDSenderStorePacket done [15:16:46]KKMCreateOFDPacket done [15:16:46]NVStorageSaveData kkm_last_timestamp [15:16:46]File name is /storage/kkm_last_timestamp [15:16:46]Write 4 bytes [15:16:46]NVStorageSaveData done [15:16:46]ExternCall_PrintAddStr [15:16:46]wPrintStart [15:16:46]Write to MH i2c: 01 00 00 15 0D 22 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [15:16:46]RasterBufferAndPrint [15:16:46]line Счет N : (3)176492 [15:16:46]line ИНН: 02508201610067 [15:16:46]line Контрольно-Кассовый Чек [15:16:46]line ПРОДАЖА [15:16:46]line Товар: 48746526 [15:16:46]line Сигареты Mevius Wind Blue [15:16:46]line 1.000 * 155.00 [15:16:46]line = 155.00 [15:16:46]line НДС 12% НСП 1% [15:16:46]line > о реализуемом товаре [15:16:46]line Товар: 4700000310043 [15:16:46]line Вода Жалалабат 27 1л [15:16:46]line 1.000 * 60.00 [15:16:46]line = 60.00 [15:16:46]line НДС 12% НСП 1% [15:16:46]line > о реализуемом товаре [15:16:46]line ИТОГО: 215.00 [15:16:46]line НСП 1% : 1.90 [15:16:46]line НДС 12% : 22.83 [15:16:46]line Наличными: 215.00 [15:16:46]line Безнал.: 0.00 [15:16:46]line Место: АЗС № 63 "Партнер Нефть" [15:16:46]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:16:46]line СНО: Общий режим [15:16:46]line Чек 51 03.06.2024 15:16 [15:16:46]line Смена: 376 ФФД: 1.0 [15:16:46]line ЗНМ: 0300000037 [15:16:46]line РНМ: 0000000000092680 [15:16:46]line Версия ККМ: 001 [15:16:46]line ФМ: 0000000000874882 [15:16:46]line ФД: 39933 [15:16:46]line ФПД: 216474601645928 [15:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151647&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39933&fm=216474601645928&tin=02508201610067®Number=0000000000092680&sum=21500 [15:16:46]OFD Sender: Processing packet 39933 [packets to send 5, broken 4] [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00039933 [15:16:46]OFD Sender: To server: pG, [15:16:46]CommunicateWithHost lk.salyk.kg:30040 [15:16:46]ConnectInit lk.salyk.kg [15:16:46]line 0 [15:16:46]written 0, free lines is 4095 [15:16:46]Connected sock=10 [15:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 8C 01 00 00 28 04 84 01 D3 1A 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5F DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FD 9B 00 00 35 04 06 00 C4 E1 EB BB E7 68 DF 19 7B E1 C4 8D 5A 4C [15:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 20 40 47 00 02 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FD 9B 00 00 F4 03 04 00 0B 87 5D 66 B6 04 01 00 00 19 D9 F0 2D 6A AA 7B 75 [15:16:46]CommunicateWithHost err = 0 [15:16:46]CheckOFDResponse [15:16:46]1017 (14) - 77093643461234 [15:16:46]1041 (16) - 0000000000874882 [15:16:46]1040 (4) - 39933 [15:16:46]1012 (4) - 03.06.2024 09:04 [15:16:46]1206 (1) - 0 [15:16:46]OFD Sender: Remove packet 39933 [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00039933 [15:16:46]NVStorageDeleteData [15:16:47]Write to MH i2c: 01 00 00 43 0D 50 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 D3 0C 36 [15:16:47]RasterBufferAndPrint [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]written 0, free lines is 3289 [15:16:47]MH_Cut [15:16:47]Write to MH i2c: D1 01 00 4A 0D 01 29 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 01 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 01 00 4A 0D 00 28 [15:16:47]Write to MH i2c: 01 00 00 4B 0D 58 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]OFD Sender: No OFD packet to send [15:16:47]*** Cut start [15:16:47]*** Partial cut [15:16:47]*** CUTSNS_PIN = 1 [15:16:47]*** CUTSNS_PIN = 0 [15:16:48]*** Brake cut motor [15:16:48]Read from MH i2c: 01 [15:16:48]MH_I2C_Read... [15:16:48]*** Stop cut motor [15:16:48]*** Cut end [15:16:48]Read from MH i2c: 01 07 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [15:16:48]process_action close_receipt done [15:16:48]requested_data is exist [15:16:48]produce_requested_data [15:16:48]requested_item fm.sn is exist - process it [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 11 00 00 [15:16:48]Write to MH i2c: E2 08 00 4C 0D 80 11 00 00 00 00 00 00 D3 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 17 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 17 00 4C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2B [15:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:16:48]wFMCommunicate OK [15:16:48]requested_item fd.num is exist - process it [15:16:48]SAM_PROTO_GetFieldsCounters [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 13 00 00 [15:16:48]Write to MH i2c: E2 08 00 4D 0D 80 13 00 00 00 00 00 00 D6 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 62 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 62 00 4D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FD 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FD 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetFieldsCounters done [15:16:48]requested_item shift.num is exist - process it [15:16:48]requested_item shift.opened is exist - process it [15:16:48]req_shift_opened [15:16:48]FM_GetShiftState [15:16:48]SAM_PROTO_GetShiftState [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 13 01 00 [15:16:48]Write to MH i2c: E2 08 00 4E 0D 80 13 01 00 00 00 00 00 D8 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 4E 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FB [15:16:48]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetShiftState done [15:16:48]FM_GetShiftState done [15:16:48]req_shift_opened done [15:16:48]requested_item shift.open_date is exist - process it [15:16:48]req_shift_open_date [15:16:48]req_shift_open_date done [15:16:48]produce_requested_data done [15:16:48]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39933,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:16:48]process_action_free close_receipt [15:16:48]json_value_free [15:16:48]json_value_free done [15:16:48]process_json_proto returns [15:16:48]Send response to host [15:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39933,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:16:48]free response buf [15:16:48]execute_script done [15:16:48]execute_script returns [15:16:48]free content buf [15:16:48]Sock 9.Close socket [15:16:48]Sock 9.Thread stoped [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]accept exits with 8 [15:17:37]New connection [15:17:37]New thread 3067182436 created [15:17:37]Thread 3067325796 joined [15:17:37]Waiting for new connection... [15:17:37] Sock 8.Parse request [15:17:37]Sock 8.Check first char [15:17:37]Sock 8.First char is OK [15:17:37]request: POST /json_proto HTTP/1.0 [15:17:37]Method: POST [15:17:37]URL: /json_proto [15:17:37]Method is POST - this is cgi request [15:17:37]url: /json_proto [15:17:37]query_string will be loaded in cgi processing [15:17:37]execute_cgi json_proto POST (null) [15:17:37]execute_cgi path=json_proto method=POST [15:17:37]POST find Content-Length [15:17:37]Host: 172.17.36.199:8080 [15:17:37]Content-Length: 633 [15:17:37]Content-Type: application/json [15:17:37] [15:17:37]POST finish read [15:17:37]Found Content-Length = 633 [15:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176493", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]execute_script... [15:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176493", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]POST & json_proto [15:17:37]process_json_proto [15:17:37]json parsed OK: [15:17:37]protocol is kg_v1.0 [15:17:37]action value=close_receipt [15:17:37]process_action close_receipt [15:17:37]cmd_close_receipt [15:17:37]MH_GetDate [15:17:37]Write to MH i2c: F0 00 00 4F 0D 4B [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 4F 0D 00 94 DE 5D 66 91 46 04 65 C9 [15:17:37]GetLastDocTimeStamp 1717427807 [15:17:37]current date 1717427860 [15:17:37]FM_GetShiftState [15:17:37]SAM_PROTO_GetShiftState [15:17:37]wFMCommunicate request_size=4 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 13 01 00 [15:17:37]Write to MH i2c: E2 08 00 50 0D 80 13 01 00 00 00 00 00 DA [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 50 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FD [15:17:37]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:17:37]wFMCommunicate OK [15:17:37]SAM_PROTO_GetShiftState done [15:17:37]FM_GetShiftState done [15:17:37]opened in 1717373769 [15:17:37]opened+sec_in_day 1717460169 [15:17:37]quantity*price = 13000 [15:17:37]sum+1 = 13001 [15:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 52 03.06.2024 15:17 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39934 ФПД: 202972615592932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151740&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39934&fm=202972615592932&tin=02508201610067®Number=0000000000092680&sum=13000 0 [15:17:38]StoreToDocumentArchive [15:17:38]shift 376 fd 39934 [15:17:38]save to /storage/0376/doc_00039934 [15:17:38]save last doc name /storage/0376/doc_00039934 to /storage/kkm_last_doc_name [15:17:38]save OK [15:17:38]Clear old archive folders... [15:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:17:38]tlvbuf is 00E1FD60 [15:17:38]SAM_PROTO_ClearQueue [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 09 00 00 [15:17:38]Write to MH i2c: E2 08 00 5D 0D 80 09 00 00 00 00 00 00 DC [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [15:17:38]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_ClearQueue done [15:17:38]KKMCreateOFDPacket [15:17:38]OFDProtocolAddRootSTLVToBuf [15:17:38]FM_MakeSignedData [15:17:38]FM_MakeSignedData [15:17:38]SAM_PROTO_SignData [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 01 02 [15:17:38]Write to MH i2c: E2 08 00 5E 0D 80 0D 01 02 00 00 00 00 E4 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 5E 0D 00 90 00 DF [15:17:38]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]wFMCommunicate request_size=255 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 94 DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 [15:17:38]Write to MH i2c: E2 02 01 5F 0D 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 94 DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 00 00 8F [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [15:17:38]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]wFMCommunicate request_size=44 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 02 02 27 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FE 9B 00 00 35 04 06 00 B8 9A 3E A6 CB E4 [15:17:38]Write to MH i2c: E2 2F 00 60 0D 80 0D 02 02 27 00 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FE 9B 00 00 35 04 06 00 B8 9A 3E A6 CB E4 00 00 84 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [15:17:38]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 03 02 [15:17:38]Write to MH i2c: E2 08 00 61 0D 80 0D 03 02 00 00 00 00 E9 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0B 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0B 00 61 0D 00 E7 7C 9D 02 46 41 2D 58 90 00 F8 [15:17:38]RAPDU: E7 7C 9D 02 46 41 2D 58 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_SignData done [15:17:38]FM_MakeSignedData done [15:17:38]CreateOFDProtocolMessage [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 11 00 00 [15:17:38]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 41 [15:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:17:38]wFMCommunicate OK [15:17:38]CreateOFDProtocolMessage done [15:17:38]OFDSenderStorePacket 39934 [15:17:38]StoreOFDPacket docnum=39934 [15:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 31 01 00 00 15 21 29 01 CC A9 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 94 DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FE 9B 00 00 35 04 06 00 B8 9A 3E A6 CB E4 E7 7C 9D 02 46 41 2D 58 [15:17:38]CheckFolder [15:17:38]dirname=/storage/ofd_packets [15:17:38]CheckFolder done [15:17:38]ProducePacketName [15:17:38]name=ofd_packets/00039934 [15:17:38]NVStorageSaveData ofd_packets/00039934 [15:17:38]File name is /storage/ofd_packets/00039934 [15:17:38]Write 335 bytes [15:17:38]NVStorageSaveData done [15:17:38]OFDSenderStorePacket done [15:17:38]KKMCreateOFDPacket done [15:17:38]NVStorageSaveData kkm_last_timestamp [15:17:38]File name is /storage/kkm_last_timestamp [15:17:38]Write 4 bytes [15:17:38]NVStorageSaveData done [15:17:38]ExternCall_PrintAddStr [15:17:38]wPrintStart [15:17:38]Write to MH i2c: 01 00 00 63 0D 70 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [15:17:38]RasterBufferAndPrint [15:17:38]line Счет N : (3)176493 [15:17:38]line ИНН: 02508201610067 [15:17:38]line Контрольно-Кассовый Чек [15:17:38]line ПРОДАЖА [15:17:38]line Товар: 48745291 [15:17:38]line Сигареты Parliament SOHO NYC COMPACT BLU [15:17:38]line 1.000 * 130.00 [15:17:38]line = 130.00 [15:17:38]line НДС 12% НСП 1% [15:17:38]line > о реализуемом товаре [15:17:38]line ИТОГО: 130.00 [15:17:38]line НСП 1% : 1.15 [15:17:38]line НДС 12% : 13.80 [15:17:38]line Наличными: 130.00 [15:17:38]line Безнал.: 0.00 [15:17:38]line Место: АЗС № 63 "Партнер Нефть" [15:17:38]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:17:38]line СНО: Общий режим [15:17:38]line Чек 52 03.06.2024 15:17 [15:17:38]line Смена: 376 ФФД: 1.0 [15:17:38]line ЗНМ: 0300000037 [15:17:38]line РНМ: 0000000000092680 [15:17:38]line Версия ККМ: 001 [15:17:38]line ФМ: 0000000000874882 [15:17:38]line ФД: 39934 [15:17:38]line ФПД: 202972615592932 [15:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151740&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39934&fm=202972615592932&tin=02508201610067®Number=0000000000092680&sum=13000 [15:17:39]line 0 [15:17:39]OFD Sender: Processing packet 39934 [packets to send 5, broken 4] [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00039934 [15:17:39]OFD Sender: To server: pG, [15:17:39]CommunicateWithHost lk.salyk.kg:30040 [15:17:39]ConnectInit lk.salyk.kg [15:17:39]written 0, free lines is 4095 [15:17:39]Connected sock=10 [15:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 31 01 00 00 15 21 29 01 CC A9 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 94 DE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FE 9B 00 00 35 04 06 00 B8 9A 3E A6 CB E4 E7 7C 9D 02 46 41 2D 58 [15:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 B7 14 47 00 69 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FE 9B 00 00 F4 03 04 00 3F 87 5D 66 B6 04 01 00 00 A9 2D C8 1B D1 B3 DC D0 [15:17:39]CommunicateWithHost err = 0 [15:17:39]CheckOFDResponse [15:17:39]1017 (14) - 77093643461234 [15:17:39]1041 (16) - 0000000000874882 [15:17:39]1040 (4) - 39934 [15:17:39]1012 (4) - 03.06.2024 09:05 [15:17:39]1206 (1) - 0 [15:17:39]OFD Sender: Remove packet 39934 [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00039934 [15:17:39]NVStorageDeleteData [15:17:39]Write to MH i2c: 01 00 00 8C 0D 99 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 8C 0D 00 00 00 00 00 08 0D B5 [15:17:39]RasterBufferAndPrint [15:17:39]line [15:17:39]line [15:17:39]line [15:17:39]line [15:17:39]line [15:17:39]written 0, free lines is 3342 [15:17:39]MH_Cut [15:17:39]Write to MH i2c: D1 01 00 93 0D 01 72 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: D1 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: D1 01 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: D1 01 00 93 0D 00 71 [15:17:39]Write to MH i2c: 01 00 00 94 0D A1 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]OFD Sender: No OFD packet to send [15:17:40]*** Cut start [15:17:40]*** Partial cut [15:17:40]*** CUTSNS_PIN = 1 [15:17:40]*** CUTSNS_PIN = 0 [15:17:40]*** Brake cut motor [15:17:40]Read from MH i2c: 01 [15:17:40]MH_I2C_Read... [15:17:40]*** Stop cut motor [15:17:40]*** Cut end [15:17:40]Read from MH i2c: 01 07 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FF 0F B6 [15:17:40]process_action close_receipt done [15:17:40]requested_data is exist [15:17:40]produce_requested_data [15:17:40]requested_item fm.sn is exist - process it [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 11 00 00 [15:17:40]Write to MH i2c: E2 08 00 95 0D 80 11 00 00 00 00 00 00 1C [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 17 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 17 00 95 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 74 [15:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:17:40]wFMCommunicate OK [15:17:40]requested_item fd.num is exist - process it [15:17:40]SAM_PROTO_GetFieldsCounters [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 13 00 00 [15:17:40]Write to MH i2c: E2 08 00 96 0D 80 13 00 00 00 00 00 00 1F [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 62 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 62 00 96 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [15:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FE 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:41]wFMCommunicate OK [15:17:41]SAM_PROTO_GetFieldsCounters done [15:17:41]requested_item shift.num is exist - process it [15:17:41]requested_item shift.opened is exist - process it [15:17:41]req_shift_opened [15:17:41]FM_GetShiftState [15:17:41]SAM_PROTO_GetShiftState [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 13 01 00 [15:17:41]Write to MH i2c: E2 08 00 97 0D 80 13 01 00 00 00 00 00 21 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 0E 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 0E 00 97 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 44 [15:17:41]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:17:41]wFMCommunicate OK [15:17:41]SAM_PROTO_GetShiftState done [15:17:41]FM_GetShiftState done [15:17:41]req_shift_opened done [15:17:41]requested_item shift.open_date is exist - process it [15:17:41]req_shift_open_date [15:17:41]req_shift_open_date done [15:17:41]produce_requested_data done [15:17:41]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39934,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:17:41]process_action_free close_receipt [15:17:41]json_value_free [15:17:41]json_value_free done [15:17:41]process_json_proto returns [15:17:41]Send response to host [15:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39934,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:17:41]free response buf [15:17:41]execute_script done [15:17:41]execute_script returns [15:17:41]free content buf [15:17:41]Sock 8.Close socket [15:17:41]Sock 8.Thread stoped [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:23]accept exits with 9 [15:21:23]New connection [15:21:23]New thread 3067325796 created [15:21:23]Thread 3067182436 joined [15:21:23]Waiting for new connection... [15:21:23] Sock 9.Parse request [15:21:23]Sock 9.Check first char [15:21:23]Sock 9.First char is OK [15:21:23]request: POST /json_proto HTTP/1.0 [15:21:23]Method: POST [15:21:23]URL: /json_proto [15:21:23]Method is POST - this is cgi request [15:21:23]url: /json_proto [15:21:23]query_string will be loaded in cgi processing [15:21:23]execute_cgi json_proto POST (null) [15:21:23]execute_cgi path=json_proto method=POST [15:21:23]POST find Content-Length [15:21:23]Host: 172.17.36.199:8080 [15:21:23]Content-Length: 568 [15:21:23]Content-Type: application/json [15:21:23] [15:21:23]POST finish read [15:21:23]Found Content-Length = 568 [15:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176494", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:23]execute_script... [15:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176494", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:23]POST & json_proto [15:21:23]process_json_proto [15:21:23]json parsed OK: [15:21:23]protocol is kg_v1.0 [15:21:23]action value=close_receipt [15:21:23]process_action close_receipt [15:21:23]cmd_close_receipt [15:21:23]MH_GetDate [15:21:23]Write to MH i2c: F0 00 00 98 0D 94 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 09 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 09 00 98 0D 00 76 DF 5D 66 91 46 04 65 F5 [15:21:23]GetLastDocTimeStamp 1717427860 [15:21:23]current date 1717428086 [15:21:23]FM_GetShiftState [15:21:23]SAM_PROTO_GetShiftState [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 01 00 [15:21:23]Write to MH i2c: E2 08 00 99 0D 80 13 01 00 00 00 00 00 23 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 99 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 46 [15:21:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetShiftState done [15:21:23]FM_GetShiftState done [15:21:23]opened in 1717373769 [15:21:23]opened+sec_in_day 1717460169 [15:21:23]quantity*price = 13000 [15:21:23]sum+1 = 13001 [15:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 53 03.06.2024 15:21 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39935 ФПД: 115902989783254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152126&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39935&fm=115902989783254&tin=02508201610067®Number=0000000000092680&sum=13000 0 [15:21:24]StoreToDocumentArchive [15:21:24]shift 376 fd 39935 [15:21:24]save to /storage/0376/doc_00039935 [15:21:24]save last doc name /storage/0376/doc_00039935 to /storage/kkm_last_doc_name [15:21:24]save OK [15:21:24]Clear old archive folders... [15:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:21:24]tlvbuf is 00E1FCF0 [15:21:24]SAM_PROTO_ClearQueue [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 09 00 00 [15:21:24]Write to MH i2c: E2 08 00 A6 0D 80 09 00 00 00 00 00 00 25 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]SAM_PROTO_ClearQueue done [15:21:24]KKMCreateOFDPacket [15:21:24]OFDProtocolAddRootSTLVToBuf [15:21:24]FM_MakeSignedData [15:21:24]FM_MakeSignedData [15:21:24]SAM_PROTO_SignData [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 01 02 [15:21:24]Write to MH i2c: E2 08 00 A7 0D 80 0D 01 02 00 00 00 00 2D [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=255 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 76 DF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FF 9B 00 00 35 04 06 00 [15:21:24]Write to MH i2c: E2 02 01 A8 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 76 DF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FF 9B 00 00 35 04 06 00 00 00 AB [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=11 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 06 69 69 C4 88 D0 D6 [15:21:24]Write to MH i2c: E2 0E 00 A9 0D 80 0D 02 02 06 00 69 69 C4 88 D0 D6 00 00 00 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 03 02 [15:21:24]Write to MH i2c: E2 08 00 AA 0D 80 0D 03 02 00 00 00 00 32 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 AA 0D 00 10 A4 09 BF F4 7E F3 28 90 00 3C [15:21:24]RAPDU: 10 A4 09 BF F4 7E F3 28 90 00 [15:21:24]wFMCommunicate OK [15:21:24]SAM_PROTO_SignData done [15:21:24]FM_MakeSignedData done [15:21:24]CreateOFDProtocolMessage [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 11 00 00 [15:21:24]Write to MH i2c: E2 08 00 AB 0D 80 11 00 00 00 00 00 00 32 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 AB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8A [15:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:21:24]wFMCommunicate OK [15:21:24]CreateOFDProtocolMessage done [15:21:24]OFDSenderStorePacket 39935 [15:21:24]StoreOFDPacket docnum=39935 [15:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 01 00 00 BE F2 08 01 07 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 76 DF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FF 9B 00 00 35 04 06 00 69 69 C4 88 D0 D6 10 A4 09 BF F4 7E F3 28 [15:21:24]CheckFolder [15:21:24]dirname=/storage/ofd_packets [15:21:24]CheckFolder done [15:21:24]ProducePacketName [15:21:24]name=ofd_packets/00039935 [15:21:24]NVStorageSaveData ofd_packets/00039935 [15:21:24]File name is /storage/ofd_packets/00039935 [15:21:24]Write 302 bytes [15:21:24]NVStorageSaveData done [15:21:24]OFDSenderStorePacket done [15:21:24]KKMCreateOFDPacket done [15:21:24]NVStorageSaveData kkm_last_timestamp [15:21:24]File name is /storage/kkm_last_timestamp [15:21:24]Write 4 bytes [15:21:24]NVStorageSaveData done [15:21:24]ExternCall_PrintAddStr [15:21:24]wPrintStart [15:21:24]Write to MH i2c: 01 00 00 AC 0D B9 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [15:21:24]RasterBufferAndPrint [15:21:24]line Счет N : (3)176494 [15:21:24]line ИНН: 02508201610067 [15:21:24]line Контрольно-Кассовый Чек [15:21:24]line ПРОДАЖА [15:21:24]line Товар: 48744539 [15:21:24]line LD Compact Blue [15:21:24]line 1.000 * 130.00 [15:21:24]line = 130.00 [15:21:24]line НДС 12% НСП 1% [15:21:24]line > о реализуемом товаре [15:21:24]line ИТОГО: 130.00 [15:21:24]line НСП 1% : 1.15 [15:21:24]line НДС 12% : 13.80 [15:21:24]line Наличными: 130.00 [15:21:24]line Безнал.: 0.00 [15:21:24]line Место: АЗС № 63 "Партнер Нефть" [15:21:24]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:21:24]line СНО: Общий режим [15:21:24]line Чек 53 03.06.2024 15:21 [15:21:25]line Смена: 376 ФФД: 1.0 [15:21:25]line ЗНМ: 0300000037 [15:21:25]line РНМ: 0000000000092680 [15:21:25]line Версия ККМ: 001 [15:21:25]line ФМ: 0000000000874882 [15:21:25]line ФД: 39935 [15:21:25]line ФПД: 115902989783254 [15:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152126&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39935&fm=115902989783254&tin=02508201610067®Number=0000000000092680&sum=13000 [15:21:25]line 0 [15:21:25]OFD Sender: Processing packet 39935 [packets to send 5, broken 4] [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00039935 [15:21:25]OFD Sender: To server: pG, [15:21:25]CommunicateWithHost lk.salyk.kg:30040 [15:21:25]ConnectInit lk.salyk.kg [15:21:25]written 0, free lines is 4095 [15:21:25]Connected sock=10 [15:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 01 00 00 BE F2 08 01 07 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 76 DF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FF 9B 00 00 35 04 06 00 69 69 C4 88 D0 D6 10 A4 09 BF F4 7E F3 28 [15:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 5B DC 47 00 CE C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 FF 9B 00 00 F4 03 04 00 21 88 5D 66 B6 04 01 00 00 A6 6F 2C EC CB D7 D0 9C [15:21:25]CommunicateWithHost err = 0 [15:21:25]CheckOFDResponse [15:21:25]1017 (14) - 77093643461234 [15:21:25]1041 (16) - 0000000000874882 [15:21:25]1040 (4) - 39935 [15:21:25]1012 (4) - 03.06.2024 09:08 [15:21:25]1206 (1) - 0 [15:21:25]OFD Sender: Remove packet 39935 [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00039935 [15:21:25]NVStorageDeleteData [15:21:25]Write to MH i2c: 01 00 00 D4 0D E1 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 19 0D 0E [15:21:25]RasterBufferAndPrint [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]written 0, free lines is 3359 [15:21:25]MH_Cut [15:21:25]Write to MH i2c: D1 01 00 DB 0D 01 BA [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 DB 0D 00 B9 [15:21:25]Write to MH i2c: 01 00 00 DC 0D E9 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]OFD Sender: No OFD packet to send [15:21:26]*** Cut start [15:21:26]*** Partial cut [15:21:26]*** CUTSNS_PIN = 1 [15:21:26]*** CUTSNS_PIN = 0 [15:21:26]*** Brake cut motor [15:21:26]Read from MH i2c: 01 [15:21:26]MH_I2C_Read... [15:21:26]*** Stop cut motor [15:21:26]*** Cut end [15:21:26]Read from MH i2c: 01 07 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [15:21:26]process_action close_receipt done [15:21:26]requested_data is exist [15:21:26]produce_requested_data [15:21:26]requested_item fm.sn is exist - process it [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 11 00 00 [15:21:26]Write to MH i2c: E2 08 00 DD 0D 80 11 00 00 00 00 00 00 64 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 DD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BC [15:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:21:26]wFMCommunicate OK [15:21:26]requested_item fd.num is exist - process it [15:21:26]SAM_PROTO_GetFieldsCounters [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 13 00 00 [15:21:26]Write to MH i2c: E2 08 00 DE 0D 80 13 00 00 00 00 00 00 67 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 62 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 62 00 DE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 FF 9B 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:26]wFMCommunicate OK [15:21:26]SAM_PROTO_GetFieldsCounters done [15:21:26]requested_item shift.num is exist - process it [15:21:26]requested_item shift.opened is exist - process it [15:21:26]req_shift_opened [15:21:26]FM_GetShiftState [15:21:26]SAM_PROTO_GetShiftState [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 13 01 00 [15:21:26]Write to MH i2c: E2 08 00 DF 0D 80 13 01 00 00 00 00 00 69 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 DF 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8C [15:21:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetShiftState done [15:21:27]FM_GetShiftState done [15:21:27]req_shift_opened done [15:21:27]requested_item shift.open_date is exist - process it [15:21:27]req_shift_open_date [15:21:27]req_shift_open_date done [15:21:27]produce_requested_data done [15:21:27]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39935,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:21:27]process_action_free close_receipt [15:21:27]json_value_free [15:21:27]json_value_free done [15:21:27]process_json_proto returns [15:21:27]Send response to host [15:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39935,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:21:27]free response buf [15:21:27]execute_script done [15:21:27]execute_script returns [15:21:27]free content buf [15:21:27]Sock 9.Close socket [15:21:27]Sock 9.Thread stoped [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:50]accept exits with 8 [15:34:50]New connection [15:34:50]New thread 3067182436 created [15:34:50]Thread 3067325796 joined [15:34:50]Waiting for new connection... [15:34:50] Sock 8.Parse request [15:34:50]Sock 8.Check first char [15:34:50]Sock 8.First char is OK [15:34:50]request: POST /json_proto HTTP/1.0 [15:34:50]Method: POST [15:34:50]URL: /json_proto [15:34:50]Method is POST - this is cgi request [15:34:50]url: /json_proto [15:34:50]query_string will be loaded in cgi processing [15:34:50]execute_cgi json_proto POST (null) [15:34:50]execute_cgi path=json_proto method=POST [15:34:50]POST find Content-Length [15:34:50]Host: 172.17.36.199:8080 [15:34:50]Content-Length: 1255 [15:34:50]Content-Type: application/json [15:34:50] [15:34:50]POST finish read [15:34:50]Found Content-Length = 1255 [15:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176495", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016705", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0433\u043E\u0440\u044C\u043A\u0438\u0439 OZera Dark 90\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:50]execute_script... [15:34:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176495", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016705", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0433\u043E\u0440\u044C\u043A\u0438\u0439 OZera Dark 90\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:50]POST & json_proto [15:34:50]process_json_proto [15:34:50]json parsed OK: [15:34:50]protocol is kg_v1.0 [15:34:50]action value=close_receipt [15:34:50]process_action close_receipt [15:34:50]cmd_close_receipt [15:34:50]MH_GetDate [15:34:50]Write to MH i2c: F0 00 00 E0 0D DC [15:34:50]Write i2c OK [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: F0 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: F0 09 00 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: F0 09 00 E0 0D 00 9D E2 5D 66 91 46 04 65 67 [15:34:50]GetLastDocTimeStamp 1717428086 [15:34:50]current date 1717428893 [15:34:50]FM_GetShiftState [15:34:50]SAM_PROTO_GetShiftState [15:34:50]wFMCommunicate request_size=4 [15:34:50]MH_SAM_APDU [15:34:50]CAPDU: 80 13 01 00 [15:34:50]Write to MH i2c: E2 08 00 E1 0D 80 13 01 00 00 00 00 00 6B [15:34:50]Write i2c OK [15:34:50]MH_I2C_Read... [15:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:50]Read from MH i2c: E2 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: E2 0E 00 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: E2 0E 00 E1 0D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 8E [15:34:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:34:50]wFMCommunicate OK [15:34:50]SAM_PROTO_GetShiftState done [15:34:50]FM_GetShiftState done [15:34:50]opened in 1717373769 [15:34:50]opened+sec_in_day 1717460169 [15:34:50]quantity*price = 14000 [15:34:50]sum+1 = 14001 [15:34:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4690329016705 Шоколад горький OZera Dark 90г 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607123066058 Печенье Юбилейное Торжество орех 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 299.00 НСП 1% : 2.64 НДС 12% : 31.75 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 54 03.06.2024 15:34 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39936 ФПД: 95946527129258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153454&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39936&fm=95946527129258&tin=02508201610067®Number=0000000000092680&sum=29900 0 [15:34:51]StoreToDocumentArchive [15:34:51]shift 376 fd 39936 [15:34:51]save to /storage/0376/doc_00039936 [15:34:51]save last doc name /storage/0376/doc_00039936 to /storage/kkm_last_doc_name [15:34:51]save OK [15:34:51]Clear old archive folders... [15:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=526 [15:34:51]tlvbuf is 00E0CFD0 [15:34:51]SAM_PROTO_ClearQueue [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 09 00 00 [15:34:51]Write to MH i2c: E2 08 00 EE 0D 80 09 00 00 00 00 00 00 6D [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]SAM_PROTO_ClearQueue done [15:34:51]KKMCreateOFDPacket [15:34:51]OFDProtocolAddRootSTLVToBuf [15:34:51]FM_MakeSignedData [15:34:51]FM_MakeSignedData [15:34:51]SAM_PROTO_SignData [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 0D 01 02 [15:34:51]Write to MH i2c: E2 08 00 EF 0D 80 0D 01 02 00 00 00 00 75 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]wFMCommunicate request_size=255 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 [15:34:52]Write to MH i2c: E2 02 01 F0 0D 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 00 CB [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [15:34:52]RAPDU: 90 00 [15:34:52]wFMCommunicate OK [15:34:52]wFMCommunicate request_size=255 [15:34:52]MH_SAM_APDU [15:34:52]CAPDU: 80 0D 02 02 FA 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9E E2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 [15:34:52]Write to MH i2c: E2 02 01 F1 0D 80 0D 02 02 FA 00 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9E E2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 00 00 97 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [15:34:52]RAPDU: 90 00 [15:34:52]wFMCommunicate OK [15:34:52]wFMCommunicate request_size=35 [15:34:52]MH_SAM_APDU [15:34:52]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 9C 00 00 35 04 06 00 57 43 4A AA BE AA [15:34:52]Write to MH i2c: E2 26 00 F2 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 9C 00 00 35 04 06 00 57 43 4A AA BE AA 00 00 03 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [15:34:52]RAPDU: 90 00 [15:34:52]wFMCommunicate OK [15:34:52]wFMCommunicate request_size=4 [15:34:52]MH_SAM_APDU [15:34:52]CAPDU: 80 0D 03 02 [15:34:52]Write to MH i2c: E2 08 00 F3 0D 80 0D 03 02 00 00 00 00 7B [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 0B 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 0B 00 F3 0D 00 0E F5 54 E3 FA AE 08 FF 90 00 65 [15:34:52]RAPDU: 0E F5 54 E3 FA AE 08 FF 90 00 [15:34:52]wFMCommunicate OK [15:34:52]SAM_PROTO_SignData done [15:34:52]FM_MakeSignedData done [15:34:52]CreateOFDProtocolMessage [15:34:52]wFMCommunicate request_size=4 [15:34:52]MH_SAM_APDU [15:34:52]CAPDU: 80 11 00 00 [15:34:52]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 17 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D3 [15:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:34:52]wFMCommunicate OK [15:34:52]CreateOFDProtocolMessage done [15:34:52]OFDSenderStorePacket 39936 [15:34:52]StoreOFDPacket docnum=39936 [15:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 22 02 00 00 7C C8 1A 02 E3 4E 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9E E2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 9C 00 00 35 04 06 00 57 43 4A AA BE AA 0E F5 54 E3 FA AE 08 FF [15:34:52]CheckFolder [15:34:52]dirname=/storage/ofd_packets [15:34:52]CheckFolder done [15:34:52]ProducePacketName [15:34:52]name=ofd_packets/00039936 [15:34:52]NVStorageSaveData ofd_packets/00039936 [15:34:52]File name is /storage/ofd_packets/00039936 [15:34:52]Write 576 bytes [15:34:52]NVStorageSaveData done [15:34:52]OFDSenderStorePacket done [15:34:52]KKMCreateOFDPacket done [15:34:52]NVStorageSaveData kkm_last_timestamp [15:34:52]File name is /storage/kkm_last_timestamp [15:34:52]Write 4 bytes [15:34:52]NVStorageSaveData done [15:34:52]ExternCall_PrintAddStr [15:34:52]wPrintStart [15:34:52]Write to MH i2c: 01 00 00 F5 0D 02 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 07 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 FF 0F 17 [15:34:52]RasterBufferAndPrint [15:34:52]line Счет N : (3)176495 [15:34:52]line ИНН: 02508201610067 [15:34:52]line Контрольно-Кассовый Чек [15:34:52]line ПРОДАЖА [15:34:52]line Товар: 4870112002768 [15:34:52]line Печенье Biskrem 100г [15:34:52]line 2.000 * 70.00 [15:34:52]line = 140.00 [15:34:52]line НДС 12% НСП 1% [15:34:52]line > о реализуемом товаре [15:34:52]line Товар: 4690329016705 [15:34:52]line Шоколад горький OZera Dark 90г [15:34:52]line 1.000 * 100.00 [15:34:52]line = 100.00 [15:34:52]line НДС 12% НСП 1% [15:34:52]line > о реализуемом товаре [15:34:52]line Товар: 4607123066058 [15:34:52]line Печенье Юбилейное Торжество орех 120г [15:34:52]line 1.000 * 59.00 [15:34:52]line = 59.00 [15:34:52]line НДС 12% НСП 1% [15:34:52]line > о реализуемом товаре [15:34:52]line ИТОГО: 299.00 [15:34:52]line НСП 1% : 2.64 [15:34:52]line НДС 12% : 31.75 [15:34:52]line Наличными: 299.00 [15:34:52]line Безнал.: 0.00 [15:34:52]line Место: АЗС № 63 "Партнер Нефть" [15:34:52]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:34:52]line СНО: Общий режим [15:34:52]line Чек 54 03.06.2024 15:34 [15:34:52]line Смена: 376 ФФД: 1.0 [15:34:52]line ЗНМ: 0300000037 [15:34:52]line РНМ: 0000000000092680 [15:34:52]line Версия ККМ: 001 [15:34:52]line ФМ: 0000000000874882 [15:34:52]line ФД: 39936 [15:34:52]line ФПД: 95946527129258 [15:34:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153454&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39936&fm=95946527129258&tin=02508201610067®Number=0000000000092680&sum=29900 [15:34:53]line 0 [15:34:53]OFD Sender: Processing packet 39936 [packets to send 5, broken 4] [15:34:53]ProducePacketName [15:34:53]name=ofd_packets/00039936 [15:34:53]OFD Sender: To server: pG, [15:34:53]CommunicateWithHost lk.salyk.kg:30040 [15:34:53]ConnectInit lk.salyk.kg [15:34:53]written 0, free lines is 4095 [15:34:53]Connected sock=11 [15:34:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 22 02 00 00 7C C8 1A 02 E3 4E 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9E E2 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 9C 00 00 35 04 06 00 57 43 4A AA BE AA 0E F5 54 E3 FA AE 08 FF [15:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D3 A4 47 00 72 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 9C 00 00 F4 03 04 00 4A 8B 5D 66 B6 04 01 00 00 4A D9 08 D7 3A 7C 4B 2E [15:34:53]CommunicateWithHost err = 0 [15:34:53]CheckOFDResponse [15:34:53]1017 (14) - 77093643461234 [15:34:53]1041 (16) - 0000000000874882 [15:34:53]1040 (4) - 39936 [15:34:53]1012 (4) - 03.06.2024 09:22 [15:34:53]1206 (1) - 0 [15:34:53]OFD Sender: Remove packet 39936 [15:34:53]ProducePacketName [15:34:53]name=ofd_packets/00039936 [15:34:53]NVStorageDeleteData [15:34:53]Write to MH i2c: 01 00 00 2B 0E 39 [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: 01 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: 01 07 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 58 0C A4 [15:34:53]RasterBufferAndPrint [15:34:53]line [15:34:53]line [15:34:53]line [15:34:53]line [15:34:53]line [15:34:53]written 0, free lines is 3169 [15:34:53]MH_Cut [15:34:53]Write to MH i2c: D1 01 00 32 0E 01 12 [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: D1 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: D1 01 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: D1 01 00 32 0E 00 11 [15:34:53]Write to MH i2c: 01 00 00 33 0E 41 [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:54]OFD Sender: No OFD packet to send [15:34:54]*** Cut start [15:34:54]*** Partial cut [15:34:54]*** CUTSNS_PIN = 1 [15:34:54]*** CUTSNS_PIN = 0 [15:34:54]*** Brake cut motor [15:34:55]Read from MH i2c: 01 [15:34:55]MH_I2C_Read... [15:34:55]*** Stop cut motor [15:34:55]*** Cut end [15:34:55]Read from MH i2c: 01 07 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 FF 0F 56 [15:34:55]process_action close_receipt done [15:34:55]requested_data is exist [15:34:55]produce_requested_data [15:34:55]requested_item fm.sn is exist - process it [15:34:55]wFMCommunicate request_size=4 [15:34:55]MH_SAM_APDU [15:34:55]CAPDU: 80 11 00 00 [15:34:55]Write to MH i2c: E2 08 00 34 0E 80 11 00 00 00 00 00 00 BC [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:55]Read from MH i2c: E2 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 17 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 17 00 34 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 14 [15:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:34:55]wFMCommunicate OK [15:34:55]requested_item fd.num is exist - process it [15:34:55]SAM_PROTO_GetFieldsCounters [15:34:55]wFMCommunicate request_size=4 [15:34:55]MH_SAM_APDU [15:34:55]CAPDU: 80 13 00 00 [15:34:55]Write to MH i2c: E2 08 00 35 0E 80 13 00 00 00 00 00 00 BF [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:55]Read from MH i2c: E2 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 62 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 62 00 35 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 00 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:34:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 00 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:55]wFMCommunicate OK [15:34:55]SAM_PROTO_GetFieldsCounters done [15:34:55]requested_item shift.num is exist - process it [15:34:55]requested_item shift.opened is exist - process it [15:34:55]req_shift_opened [15:34:55]FM_GetShiftState [15:34:55]SAM_PROTO_GetShiftState [15:34:55]wFMCommunicate request_size=4 [15:34:55]MH_SAM_APDU [15:34:55]CAPDU: 80 13 01 00 [15:34:55]Write to MH i2c: E2 08 00 36 0E 80 13 01 00 00 00 00 00 C1 [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:55]Read from MH i2c: E2 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 0E 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: E2 0E 00 36 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E4 [15:34:55]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:34:55]wFMCommunicate OK [15:34:55]SAM_PROTO_GetShiftState done [15:34:55]FM_GetShiftState done [15:34:55]req_shift_opened done [15:34:55]requested_item shift.open_date is exist - process it [15:34:55]req_shift_open_date [15:34:55]req_shift_open_date done [15:34:55]produce_requested_data done [15:34:55]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39936,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:34:55]process_action_free close_receipt [15:34:55]json_value_free [15:34:55]json_value_free done [15:34:55]process_json_proto returns [15:34:55]Send response to host [15:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39936,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:34:55]free response buf [15:34:55]execute_script done [15:34:55]execute_script returns [15:34:55]free content buf [15:34:55]Sock 8.Close socket [15:34:55]Sock 8.Thread stoped [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:31]accept exits with 9 [15:36:31]New connection [15:36:31]New thread 3067325796 created [15:36:31]Thread 3067182436 joined [15:36:31]Waiting for new connection... [15:36:31] Sock 9.Parse request [15:36:31]Sock 9.Check first char [15:36:31]Sock 9.First char is OK [15:36:31]request: POST /json_proto HTTP/1.0 [15:36:31]Method: POST [15:36:31]URL: /json_proto [15:36:31]Method is POST - this is cgi request [15:36:31]url: /json_proto [15:36:31]query_string will be loaded in cgi processing [15:36:31]execute_cgi json_proto POST (null) [15:36:31]execute_cgi path=json_proto method=POST [15:36:31]POST find Content-Length [15:36:31]Host: 172.17.36.199:8080 [15:36:31]Content-Length: 886 [15:36:31]Content-Type: application/json [15:36:31] [15:36:31]POST finish read [15:36:31]Found Content-Length = 886 [15:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176496", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:31]execute_script... [15:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176496", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:31]POST & json_proto [15:36:31]process_json_proto [15:36:31]json parsed OK: [15:36:31]protocol is kg_v1.0 [15:36:31]action value=close_receipt [15:36:31]process_action close_receipt [15:36:31]cmd_close_receipt [15:36:31]MH_GetDate [15:36:31]Write to MH i2c: F0 00 00 37 0E 34 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 09 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 09 00 37 0E 00 02 E3 5D 66 91 46 04 65 25 [15:36:31]GetLastDocTimeStamp 1717428894 [15:36:31]current date 1717428994 [15:36:31]FM_GetShiftState [15:36:31]SAM_PROTO_GetShiftState [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 13 01 00 [15:36:31]Write to MH i2c: E2 08 00 38 0E 80 13 01 00 00 00 00 00 C3 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0E 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0E 00 38 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E6 [15:36:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:36:31]wFMCommunicate OK [15:36:31]SAM_PROTO_GetShiftState done [15:36:31]FM_GetShiftState done [15:36:31]opened in 1717373769 [15:36:31]opened+sec_in_day 1717460169 [15:36:31]quantity*price = 11500 [15:36:31]sum+1 = 11501 [15:36:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.04 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 55 03.06.2024 15:36 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39937 ФПД: 164277479014855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153634&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39937&fm=164277479014855&tin=02508201610067®Number=0000000000092680&sum=23000 0 [15:36:32]StoreToDocumentArchive [15:36:32]shift 376 fd 39937 [15:36:32]save to /storage/0376/doc_00039937 [15:36:32]save last doc name /storage/0376/doc_00039937 to /storage/kkm_last_doc_name [15:36:32]save OK [15:36:32]Clear old archive folders... [15:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=384 [15:36:32]tlvbuf is 00E13B60 [15:36:32]SAM_PROTO_ClearQueue [15:36:32]wFMCommunicate request_size=4 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 09 00 00 [15:36:32]Write to MH i2c: E2 08 00 45 0E 80 09 00 00 00 00 00 00 C5 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 [15:36:32]MH_I2C_Read... [15:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:32]Read from MH i2c: E2 03 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [15:36:32]RAPDU: 90 00 [15:36:32]wFMCommunicate OK [15:36:32]SAM_PROTO_ClearQueue done [15:36:32]KKMCreateOFDPacket [15:36:32]OFDProtocolAddRootSTLVToBuf [15:36:32]FM_MakeSignedData [15:36:32]FM_MakeSignedData [15:36:32]SAM_PROTO_SignData [15:36:32]wFMCommunicate request_size=4 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 0D 01 02 [15:36:32]Write to MH i2c: E2 08 00 46 0E 80 0D 01 02 00 00 00 00 CD [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:32]Read from MH i2c: E2 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [15:36:32]RAPDU: 90 00 [15:36:32]wFMCommunicate OK [15:36:32]wFMCommunicate request_size=255 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [15:36:32]Write to MH i2c: E2 02 01 47 0E 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 B2 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:32]Read from MH i2c: E2 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [15:36:32]RAPDU: 90 00 [15:36:32]wFMCommunicate OK [15:36:32]wFMCommunicate request_size=143 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 0D 02 02 8A CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 E3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 01 9C 00 00 35 04 06 00 95 68 D4 C8 01 C7 [15:36:32]Write to MH i2c: E2 92 00 48 0E 80 0D 02 02 8A 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 E3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 01 9C 00 00 35 04 06 00 95 68 D4 C8 01 C7 00 00 FC [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [15:36:33]RAPDU: 90 00 [15:36:33]wFMCommunicate OK [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 0D 03 02 [15:36:33]Write to MH i2c: E2 08 00 49 0E 80 0D 03 02 00 00 00 00 D2 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0B 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0B 00 49 0E 00 17 B5 63 15 E3 87 04 62 90 00 E7 [15:36:33]RAPDU: 17 B5 63 15 E3 87 04 62 90 00 [15:36:33]wFMCommunicate OK [15:36:33]SAM_PROTO_SignData done [15:36:33]FM_MakeSignedData done [15:36:33]CreateOFDProtocolMessage [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 11 00 00 [15:36:33]Write to MH i2c: E2 08 00 4A 0E 80 11 00 00 00 00 00 00 D2 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 4A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2A [15:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:36:33]wFMCommunicate OK [15:36:33]CreateOFDProtocolMessage done [15:36:33]OFDSenderStorePacket 39937 [15:36:33]StoreOFDPacket docnum=39937 [15:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 94 01 00 00 46 F6 8C 01 38 88 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 E3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 01 9C 00 00 35 04 06 00 95 68 D4 C8 01 C7 17 B5 63 15 E3 87 04 62 [15:36:33]CheckFolder [15:36:33]dirname=/storage/ofd_packets [15:36:33]CheckFolder done [15:36:33]ProducePacketName [15:36:33]name=ofd_packets/00039937 [15:36:33]NVStorageSaveData ofd_packets/00039937 [15:36:33]File name is /storage/ofd_packets/00039937 [15:36:33]Write 434 bytes [15:36:33]NVStorageSaveData done [15:36:33]OFDSenderStorePacket done [15:36:33]KKMCreateOFDPacket done [15:36:33]NVStorageSaveData kkm_last_timestamp [15:36:33]File name is /storage/kkm_last_timestamp [15:36:33]Write 4 bytes [15:36:33]NVStorageSaveData done [15:36:33]ExternCall_PrintAddStr [15:36:33]wPrintStart [15:36:33]Write to MH i2c: 01 00 00 4B 0E 59 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 07 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 07 00 4B 0E 00 00 00 00 00 FF 0F 6E [15:36:33]RasterBufferAndPrint [15:36:33]line Счет N : (3)176496 [15:36:33]line ИНН: 02508201610067 [15:36:33]line Контрольно-Кассовый Чек [15:36:33]line ПРОДАЖА [15:36:33]line Товар: 2000036210013 [15:36:33]line Кофе Капучино (GABB TRADE) [15:36:33]line 1.000 * 115.00 [15:36:33]line = 115.00 [15:36:33]line НДС 12% НСП 1% [15:36:33]line > о реализуемом товаре [15:36:33]line Товар: 2000036240010 [15:36:33]line Кофе Латте (GABB TRADE) [15:36:33]line 1.000 * 115.00 [15:36:33]line = 115.00 [15:36:33]line НДС 12% НСП 1% [15:36:33]line > о реализуемом товаре [15:36:33]line ИТОГО: 230.00 [15:36:33]line НСП 1% : 2.04 [15:36:33]line НДС 12% : 24.42 [15:36:33]line Наличными: 230.00 [15:36:33]line Безнал.: 0.00 [15:36:33]line Место: АЗС № 63 "Партнер Нефть" [15:36:33]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:36:33]line СНО: Общий режим [15:36:33]line Чек 55 03.06.2024 15:36 [15:36:33]line Смена: 376 ФФД: 1.0 [15:36:33]line ЗНМ: 0300000037 [15:36:33]line РНМ: 0000000000092680 [15:36:33]line Версия ККМ: 001 [15:36:33]line ФМ: 0000000000874882 [15:36:33]line ФД: 39937 [15:36:33]line ФПД: 164277479014855 [15:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153634&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39937&fm=164277479014855&tin=02508201610067®Number=0000000000092680&sum=23000 [15:36:33]OFD Sender: Processing packet 39937 [packets to send 5, broken 4] [15:36:33]ProducePacketName [15:36:33]name=ofd_packets/00039937 [15:36:33]OFD Sender: To server: pG, [15:36:33]CommunicateWithHost lk.salyk.kg:30040 [15:36:33]ConnectInit lk.salyk.kg [15:36:33]line 0 [15:36:33]written 0, free lines is 4095 [15:36:33]Connected sock=10 [15:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 94 01 00 00 46 F6 8C 01 38 88 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 E3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 01 9C 00 00 35 04 06 00 95 68 D4 C8 01 C7 17 B5 63 15 E3 87 04 62 [15:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CF 9C 47 00 49 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 01 9C 00 00 F4 03 04 00 AE 8B 5D 66 B6 04 01 00 00 D0 61 BD E6 C8 7A 2F C0 [15:36:33]CommunicateWithHost err = 0 [15:36:33]CheckOFDResponse [15:36:33]1017 (14) - 77093643461234 [15:36:33]1041 (16) - 0000000000874882 [15:36:33]1040 (4) - 39937 [15:36:33]1012 (4) - 03.06.2024 09:23 [15:36:33]1206 (1) - 0 [15:36:33]OFD Sender: Remove packet 39937 [15:36:33]ProducePacketName [15:36:33]name=ofd_packets/00039937 [15:36:33]NVStorageDeleteData [15:36:34]Write to MH i2c: 01 00 00 79 0E 87 [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 07 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 EA 0C 84 [15:36:34]RasterBufferAndPrint [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]written 0, free lines is 3312 [15:36:34]MH_Cut [15:36:34]Write to MH i2c: D1 01 00 80 0E 01 60 [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 01 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 01 00 80 0E 00 5F [15:36:34]Write to MH i2c: 01 00 00 81 0E 8F [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]OFD Sender: No OFD packet to send [15:36:34]*** Cut start [15:36:34]*** Partial cut [15:36:34]*** CUTSNS_PIN = 1 [15:36:34]*** CUTSNS_PIN = 0 [15:36:35]*** Brake cut motor [15:36:35]Read from MH i2c: 01 [15:36:35]MH_I2C_Read... [15:36:35]*** Stop cut motor [15:36:35]*** Cut end [15:36:35]Read from MH i2c: 01 07 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: 01 07 00 81 0E 00 00 00 00 00 FF 0F A4 [15:36:35]process_action close_receipt done [15:36:35]requested_data is exist [15:36:35]produce_requested_data [15:36:35]requested_item fm.sn is exist - process it [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 11 00 00 [15:36:35]Write to MH i2c: E2 08 00 82 0E 80 11 00 00 00 00 00 00 0A [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 17 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 17 00 82 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 62 [15:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:36:35]wFMCommunicate OK [15:36:35]requested_item fd.num is exist - process it [15:36:35]SAM_PROTO_GetFieldsCounters [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 13 00 00 [15:36:35]Write to MH i2c: E2 08 00 83 0E 80 13 00 00 00 00 00 00 0D [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 62 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 62 00 83 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 01 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 01 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:35]wFMCommunicate OK [15:36:35]SAM_PROTO_GetFieldsCounters done [15:36:35]requested_item shift.num is exist - process it [15:36:35]requested_item shift.opened is exist - process it [15:36:35]req_shift_opened [15:36:35]FM_GetShiftState [15:36:35]SAM_PROTO_GetShiftState [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 13 01 00 [15:36:35]Write to MH i2c: E2 08 00 84 0E 80 13 01 00 00 00 00 00 0F [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 0E 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 0E 00 84 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 32 [15:36:35]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:36:35]wFMCommunicate OK [15:36:35]SAM_PROTO_GetShiftState done [15:36:35]FM_GetShiftState done [15:36:35]req_shift_opened done [15:36:35]requested_item shift.open_date is exist - process it [15:36:35]req_shift_open_date [15:36:35]req_shift_open_date done [15:36:35]produce_requested_data done [15:36:35]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39937,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:36:35]process_action_free close_receipt [15:36:35]json_value_free [15:36:35]json_value_free done [15:36:35]process_json_proto returns [15:36:35]Send response to host [15:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39937,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:36:35]free response buf [15:36:35]execute_script done [15:36:35]execute_script returns [15:36:35]free content buf [15:36:35]Sock 9.Close socket [15:36:35]Sock 9.Thread stoped [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:02]accept exits with 8 [15:42:02]New connection [15:42:02]New thread 3067182436 created [15:42:02]Thread 3067325796 joined [15:42:02]Waiting for new connection... [15:42:02] Sock 8.Parse request [15:42:02]Sock 8.Check first char [15:42:02]Sock 8.First char is OK [15:42:02]request: POST /json_proto HTTP/1.0 [15:42:02]Method: POST [15:42:02]URL: /json_proto [15:42:02]Method is POST - this is cgi request [15:42:02]url: /json_proto [15:42:02]query_string will be loaded in cgi processing [15:42:02]execute_cgi json_proto POST (null) [15:42:02]execute_cgi path=json_proto method=POST [15:42:02]POST find Content-Length [15:42:02]Host: 172.17.36.199:8080 [15:42:02]Content-Length: 909 [15:42:02]Content-Type: application/json [15:42:02] [15:42:02]POST finish read [15:42:02]Found Content-Length = 909 [15:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176497", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:02]execute_script... [15:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176497", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:02]POST & json_proto [15:42:02]process_json_proto [15:42:02]json parsed OK: [15:42:02]protocol is kg_v1.0 [15:42:02]action value=close_receipt [15:42:02]process_action close_receipt [15:42:02]cmd_close_receipt [15:42:02]MH_GetDate [15:42:02]Write to MH i2c: F0 00 00 85 0E 82 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 85 0E 00 4D E4 5D 66 91 46 04 65 BF [15:42:02]GetLastDocTimeStamp 1717428994 [15:42:02]current date 1717429325 [15:42:02]FM_GetShiftState [15:42:02]SAM_PROTO_GetShiftState [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 01 00 [15:42:02]Write to MH i2c: E2 08 00 86 0E 80 13 01 00 00 00 00 00 11 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 86 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 34 [15:42:02]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetShiftState done [15:42:02]FM_GetShiftState done [15:42:02]opened in 1717373769 [15:42:02]opened+sec_in_day 1717460169 [15:42:02]quantity*price = 6500 [15:42:02]sum+1 = 6501 [15:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 56 03.06.2024 15:42 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39938 ФПД: 143325331501157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154205&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39938&fm=143325331501157&tin=02508201610067®Number=0000000000092680&sum=6500 0 [15:42:03]StoreToDocumentArchive [15:42:03]shift 376 fd 39938 [15:42:03]save to /storage/0376/doc_00039938 [15:42:03]save last doc name /storage/0376/doc_00039938 to /storage/kkm_last_doc_name [15:42:03]save OK [15:42:03]Clear old archive folders... [15:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:42:03]tlvbuf is 00E2FD90 [15:42:03]SAM_PROTO_ClearQueue [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 09 00 00 [15:42:03]Write to MH i2c: E2 08 00 93 0E 80 09 00 00 00 00 00 00 13 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_ClearQueue done [15:42:03]KKMCreateOFDPacket [15:42:03]OFDProtocolAddRootSTLVToBuf [15:42:03]FM_MakeSignedData [15:42:03]FM_MakeSignedData [15:42:03]SAM_PROTO_SignData [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 01 02 [15:42:03]Write to MH i2c: E2 08 00 94 0E 80 0D 01 02 00 00 00 00 1B [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]wFMCommunicate request_size=255 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E4 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:42:03]Write to MH i2c: E2 02 01 95 0E 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E4 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 6A [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]wFMCommunicate request_size=58 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 02 9C 00 00 35 04 06 00 82 5A 87 78 B0 65 [15:42:03]Write to MH i2c: E2 3D 00 96 0E 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 02 9C 00 00 35 04 06 00 82 5A 87 78 B0 65 00 00 A0 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 03 02 [15:42:03]Write to MH i2c: E2 08 00 97 0E 80 0D 03 02 00 00 00 00 20 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 0B 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 0B 00 97 0E 00 A8 A0 14 AC 7F 09 D2 5E 90 00 E1 [15:42:03]RAPDU: A8 A0 14 AC 7F 09 D2 5E 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_SignData done [15:42:03]FM_MakeSignedData done [15:42:03]CreateOFDProtocolMessage [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 11 00 00 [15:42:03]Write to MH i2c: E2 08 00 98 0E 80 11 00 00 00 00 00 00 20 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 98 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 78 [15:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:42:03]wFMCommunicate OK [15:42:03]CreateOFDProtocolMessage done [15:42:03]OFDSenderStorePacket 39938 [15:42:03]StoreOFDPacket docnum=39938 [15:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 32 0D 37 01 8C 94 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E4 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 02 9C 00 00 35 04 06 00 82 5A 87 78 B0 65 A8 A0 14 AC 7F 09 D2 5E [15:42:03]CheckFolder [15:42:03]dirname=/storage/ofd_packets [15:42:03]CheckFolder done [15:42:03]ProducePacketName [15:42:03]name=ofd_packets/00039938 [15:42:03]NVStorageSaveData ofd_packets/00039938 [15:42:03]File name is /storage/ofd_packets/00039938 [15:42:03]Write 349 bytes [15:42:03]NVStorageSaveData done [15:42:03]OFDSenderStorePacket done [15:42:03]KKMCreateOFDPacket done [15:42:03]NVStorageSaveData kkm_last_timestamp [15:42:03]File name is /storage/kkm_last_timestamp [15:42:03]Write 4 bytes [15:42:03]NVStorageSaveData done [15:42:03]ExternCall_PrintAddStr [15:42:03]wPrintStart [15:42:03]Write to MH i2c: 01 00 00 99 0E A7 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 FF 0F BC [15:42:03]RasterBufferAndPrint [15:42:03]line Счет N : (3)176497 [15:42:03]line ИНН: 02508201610067 [15:42:03]line Контрольно-Кассовый Чек [15:42:03]line ПРОДАЖА [15:42:03]line Товар: 2000032780015 [15:42:03]line Слойка DC треугольная курица 110г [15:42:03]line 1.000 * 65.00 [15:42:03]line = 65.00 [15:42:03]line НДС 12% НСП 1% [15:42:03]line > о реализуемом товаре [15:42:03]line ИТОГО: 65.00 [15:42:03]line НСП 1% : 0.57 [15:42:03]line НДС 12% : 6.90 [15:42:03]line Наличными: 0.00 [15:42:03]line Безнал.: 65.00 [15:42:03]line Место: АЗС № 63 "Партнер Нефть" [15:42:03]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:42:03]line СНО: Общий режим [15:42:03]line Чек 56 03.06.2024 15:42 [15:42:03]line Смена: 376 ФФД: 1.0 [15:42:03]line ЗНМ: 0300000037 [15:42:03]line РНМ: 0000000000092680 [15:42:03]line Версия ККМ: 001 [15:42:03]line Платежная система: АКБ Кыргызстан [15:42:03]line ФМ: 0000000000874882 [15:42:03]line ФД: 39938 [15:42:04]line ФПД: 143325331501157 [15:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154205&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39938&fm=143325331501157&tin=02508201610067®Number=0000000000092680&sum=6500 [15:42:04]line 0 [15:42:04]OFD Sender: Processing packet 39938 [packets to send 5, broken 4] [15:42:04]ProducePacketName [15:42:04]name=ofd_packets/00039938 [15:42:04]OFD Sender: To server: pG, [15:42:04]CommunicateWithHost lk.salyk.kg:30040 [15:42:04]ConnectInit lk.salyk.kg [15:42:04]written 0, free lines is 4095 [15:42:04]Connected sock=11 [15:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 32 0D 37 01 8C 94 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E4 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 02 9C 00 00 35 04 06 00 82 5A 87 78 B0 65 A8 A0 14 AC 7F 09 D2 5E [15:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 88 48 47 00 8E 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 38 37 34 38 38 32 10 04 04 00 02 9C 00 00 F4 03 04 00 F9 8C 5D 66 B6 04 01 00 00 BF CC DD B1 B0 2D 14 C9 [15:42:04]CommunicateWithHost err = 0 [15:42:04]CheckOFDResponse [15:42:04]1017 (14) - 77093643461234 [15:42:04]1041 (16) - 0000000000874882 [15:42:04]1040 (4) - 39938 [15:42:04]1012 (4) - 03.06.2024 09:29 [15:42:04]1206 (1) - 0 [15:42:04]OFD Sender: Remove packet 39938 [15:42:04]ProducePacketName [15:42:04]name=ofd_packets/00039938 [15:42:04]NVStorageDeleteData [15:42:04]Write to MH i2c: 01 00 00 C4 0E D2 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 C4 0E 00 00 00 00 00 01 0D E7 [15:42:04]RasterBufferAndPrint [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]written 0, free lines is 3335 [15:42:04]MH_Cut [15:42:04]Write to MH i2c: D1 01 00 CB 0E 01 AB [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 01 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 01 00 CB 0E 00 AA [15:42:04]Write to MH i2c: 01 00 00 CC 0E DA [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:05]OFD Sender: No OFD packet to send [15:42:05]*** Cut start [15:42:05]*** Partial cut [15:42:05]*** CUTSNS_PIN = 1 [15:42:05]*** CUTSNS_PIN = 0 [15:42:05]*** Brake cut motor [15:42:06]Read from MH i2c: 01 [15:42:06]MH_I2C_Read... [15:42:06]*** Stop cut motor [15:42:06]*** Cut end [15:42:06]Read from MH i2c: 01 07 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 FF 0F EF [15:42:06]process_action close_receipt done [15:42:06]requested_data is exist [15:42:06]produce_requested_data [15:42:06]requested_item fm.sn is exist - process it [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 11 00 00 [15:42:06]Write to MH i2c: E2 08 00 CD 0E 80 11 00 00 00 00 00 00 55 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 CD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 AD [15:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:42:06]wFMCommunicate OK [15:42:06]requested_item fd.num is exist - process it [15:42:06]SAM_PROTO_GetFieldsCounters [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 13 00 00 [15:42:06]Write to MH i2c: E2 08 00 CE 0E 80 13 00 00 00 00 00 00 58 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 62 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 62 00 CE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 02 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 02 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetFieldsCounters done [15:42:06]requested_item shift.num is exist - process it [15:42:06]requested_item shift.opened is exist - process it [15:42:06]req_shift_opened [15:42:06]FM_GetShiftState [15:42:06]SAM_PROTO_GetShiftState [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 13 01 00 [15:42:06]Write to MH i2c: E2 08 00 CF 0E 80 13 01 00 00 00 00 00 5A [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 CF 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 7D [15:42:06]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetShiftState done [15:42:06]FM_GetShiftState done [15:42:06]req_shift_opened done [15:42:06]requested_item shift.open_date is exist - process it [15:42:06]req_shift_open_date [15:42:06]req_shift_open_date done [15:42:06]produce_requested_data done [15:42:06]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39938,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:42:06]process_action_free close_receipt [15:42:06]json_value_free [15:42:06]json_value_free done [15:42:06]process_json_proto returns [15:42:06]Send response to host [15:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39938,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:42:06]free response buf [15:42:06]execute_script done [15:42:06]execute_script returns [15:42:06]free content buf [15:42:06]Sock 8.Close socket [15:42:06]Sock 8.Thread stoped [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:11]accept exits with 9 [15:45:11]New connection [15:45:11]New thread 3067325796 created [15:45:11]Thread 3067182436 joined [15:45:11]Waiting for new connection... [15:45:11] Sock 9.Parse request [15:45:11]Sock 9.Check first char [15:45:11]Sock 9.First char is OK [15:45:11]request: POST /json_proto HTTP/1.0 [15:45:11]Method: POST [15:45:11]URL: /json_proto [15:45:11]Method is POST - this is cgi request [15:45:11]url: /json_proto [15:45:11]query_string will be loaded in cgi processing [15:45:11]execute_cgi json_proto POST (null) [15:45:11]execute_cgi path=json_proto method=POST [15:45:11]POST find Content-Length [15:45:11]Host: 172.17.36.199:8080 [15:45:11]Content-Length: 903 [15:45:11]Content-Type: application/json [15:45:11] [15:45:11]POST finish read [15:45:11]Found Content-Length = 903 [15:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176498", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:11]execute_script... [15:45:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176498", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:11]POST & json_proto [15:45:11]process_json_proto [15:45:11]json parsed OK: [15:45:11]protocol is kg_v1.0 [15:45:11]action value=close_receipt [15:45:11]process_action close_receipt [15:45:11]cmd_close_receipt [15:45:11]MH_GetDate [15:45:11]Write to MH i2c: F0 00 00 D0 0E CD [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: F0 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: F0 09 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: F0 09 00 D0 0E 00 0A E5 5D 66 91 46 04 65 C8 [15:45:11]GetLastDocTimeStamp 1717429325 [15:45:11]current date 1717429514 [15:45:11]FM_GetShiftState [15:45:11]SAM_PROTO_GetShiftState [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 13 01 00 [15:45:11]Write to MH i2c: E2 08 00 D1 0E 80 13 01 00 00 00 00 00 5C [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 0E 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 0E 00 D1 0E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 7F [15:45:11]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:45:11]wFMCommunicate OK [15:45:11]SAM_PROTO_GetShiftState done [15:45:11]FM_GetShiftState done [15:45:11]opened in 1717373769 [15:45:11]opened+sec_in_day 1717460169 [15:45:11]quantity*price = 12500 [15:45:11]sum+1 = 12501 [15:45:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032710015 Сочник DC творог 75г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.70 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 57 03.06.2024 15:45 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39939 ФПД: 254254267335132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39939&fm=254254267335132&tin=02508201610067®Number=0000000000092680&sum=19500 0 [15:45:12]StoreToDocumentArchive [15:45:12]shift 376 fd 39939 [15:45:12]save to /storage/0376/doc_00039939 [15:45:12]save last doc name /storage/0376/doc_00039939 to /storage/kkm_last_doc_name [15:45:12]save OK [15:45:12]Clear old archive folders... [15:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=387 [15:45:12]tlvbuf is 00E2F950 [15:45:12]SAM_PROTO_ClearQueue [15:45:12]wFMCommunicate request_size=4 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 09 00 00 [15:45:12]Write to MH i2c: E2 08 00 DE 0E 80 09 00 00 00 00 00 00 5E [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:12]Read from MH i2c: E2 03 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 DE 0E 00 90 00 60 [15:45:12]RAPDU: 90 00 [15:45:12]wFMCommunicate OK [15:45:12]SAM_PROTO_ClearQueue done [15:45:12]KKMCreateOFDPacket [15:45:12]OFDProtocolAddRootSTLVToBuf [15:45:12]FM_MakeSignedData [15:45:12]FM_MakeSignedData [15:45:12]SAM_PROTO_SignData [15:45:12]wFMCommunicate request_size=4 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 0D 01 02 [15:45:12]Write to MH i2c: E2 08 00 DF 0E 80 0D 01 02 00 00 00 00 66 [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [15:45:12]RAPDU: 90 00 [15:45:12]wFMCommunicate OK [15:45:12]wFMCommunicate request_size=255 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [15:45:12]Write to MH i2c: E2 02 01 E0 0E 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 75 [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [15:45:12]RAPDU: 90 00 [15:45:12]wFMCommunicate OK [15:45:12]wFMCommunicate request_size=146 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 0D 02 02 8D 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0A E5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 03 9C 00 00 35 04 06 00 E7 3E 2F 49 81 DC [15:45:12]Write to MH i2c: E2 95 00 E1 0E 80 0D 02 02 8D 00 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0A E5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 03 9C 00 00 35 04 06 00 E7 3E 2F 49 81 DC 00 00 FE [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:13]Read from MH i2c: E2 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 03 00 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [15:45:13]RAPDU: 90 00 [15:45:13]wFMCommunicate OK [15:45:13]wFMCommunicate request_size=4 [15:45:13]MH_SAM_APDU [15:45:13]CAPDU: 80 0D 03 02 [15:45:13]Write to MH i2c: E2 08 00 E2 0E 80 0D 03 02 00 00 00 00 6B [15:45:13]Write i2c OK [15:45:13]MH_I2C_Read... [15:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:13]Read from MH i2c: E2 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 0B 00 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 0B 00 E2 0E 00 6D 28 B8 A2 F4 0E E4 7C 90 00 BD [15:45:13]RAPDU: 6D 28 B8 A2 F4 0E E4 7C 90 00 [15:45:13]wFMCommunicate OK [15:45:13]SAM_PROTO_SignData done [15:45:13]FM_MakeSignedData done [15:45:13]CreateOFDProtocolMessage [15:45:13]wFMCommunicate request_size=4 [15:45:13]MH_SAM_APDU [15:45:13]CAPDU: 80 11 00 00 [15:45:13]Write to MH i2c: E2 08 00 E3 0E 80 11 00 00 00 00 00 00 6B [15:45:13]Write i2c OK [15:45:13]MH_I2C_Read... [15:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:13]Read from MH i2c: E2 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 17 00 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: E2 17 00 E3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C3 [15:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:45:13]wFMCommunicate OK [15:45:13]CreateOFDProtocolMessage done [15:45:13]OFDSenderStorePacket 39939 [15:45:13]StoreOFDPacket docnum=39939 [15:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 97 01 00 00 51 AF 8F 01 EA 83 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0A E5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 03 9C 00 00 35 04 06 00 E7 3E 2F 49 81 DC 6D 28 B8 A2 F4 0E E4 7C [15:45:13]CheckFolder [15:45:13]dirname=/storage/ofd_packets [15:45:13]CheckFolder done [15:45:13]ProducePacketName [15:45:13]name=ofd_packets/00039939 [15:45:13]NVStorageSaveData ofd_packets/00039939 [15:45:13]File name is /storage/ofd_packets/00039939 [15:45:13]Write 437 bytes [15:45:13]NVStorageSaveData done [15:45:13]OFDSenderStorePacket done [15:45:13]KKMCreateOFDPacket done [15:45:13]NVStorageSaveData kkm_last_timestamp [15:45:13]File name is /storage/kkm_last_timestamp [15:45:13]Write 4 bytes [15:45:13]NVStorageSaveData done [15:45:13]ExternCall_PrintAddStr [15:45:13]wPrintStart [15:45:13]Write to MH i2c: 01 00 00 E4 0E F2 [15:45:13]Write i2c OK [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: 01 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: 01 07 00 [15:45:13]MH_I2C_Read... [15:45:13]Read from MH i2c: 01 07 00 E4 0E 00 00 00 00 00 FF 0F 07 [15:45:13]RasterBufferAndPrint [15:45:13]line Счет N : (3)176498 [15:45:13]line ИНН: 02508201610067 [15:45:13]line Контрольно-Кассовый Чек [15:45:13]line ПРОДАЖА [15:45:13]line Товар: 2000036220012 [15:45:13]line Кофе Капучино XL(GABB TRADE) [15:45:13]line 1.000 * 125.00 [15:45:13]line = 125.00 [15:45:13]line НДС 12% НСП 1% [15:45:13]line > о реализуемом товаре [15:45:13]line Товар: 2000032710015 [15:45:13]line Сочник DC творог 75г [15:45:13]line 2.000 * 35.00 [15:45:13]line = 70.00 [15:45:13]line НДС 12% НСП 1% [15:45:13]line > о реализуемом товаре [15:45:13]line ИТОГО: 195.00 [15:45:13]line НСП 1% : 1.73 [15:45:13]line НДС 12% : 20.70 [15:45:13]line Наличными: 195.00 [15:45:13]line Безнал.: 0.00 [15:45:13]line Место: АЗС № 63 "Партнер Нефть" [15:45:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:45:13]line СНО: Общий режим [15:45:13]line Чек 57 03.06.2024 15:45 [15:45:13]line Смена: 376 ФФД: 1.0 [15:45:13]line ЗНМ: 0300000037 [15:45:13]line РНМ: 0000000000092680 [15:45:13]line Версия ККМ: 001 [15:45:13]line ФМ: 0000000000874882 [15:45:13]line ФД: 39939 [15:45:13]line ФПД: 254254267335132 [15:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154514&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39939&fm=254254267335132&tin=02508201610067®Number=0000000000092680&sum=19500 [15:45:13]line 0 [15:45:13]OFD Sender: Processing packet 39939 [packets to send 5, broken 4] [15:45:13]ProducePacketName [15:45:13]name=ofd_packets/00039939 [15:45:13]OFD Sender: To server: pG, [15:45:13]CommunicateWithHost lk.salyk.kg:30040 [15:45:13]ConnectInit lk.salyk.kg [15:45:13]written 0, free lines is 4095 [15:45:13]Connected sock=10 [15:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 97 01 00 00 51 AF 8F 01 EA 83 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0A E5 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 03 9C 00 00 35 04 06 00 E7 3E 2F 49 81 DC 6D 28 B8 A2 F4 0E E4 7C [15:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 54 B5 47 00 41 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 03 9C 00 00 F4 03 04 00 B6 8D 5D 66 B6 04 01 00 00 A2 71 C7 E2 DC 93 CC D5 [15:45:13]CommunicateWithHost err = 0 [15:45:13]CheckOFDResponse [15:45:13]1017 (14) - 77093643461234 [15:45:13]1041 (16) - 0000000000874882 [15:45:13]1040 (4) - 39939 [15:45:13]1012 (4) - 03.06.2024 09:32 [15:45:13]1206 (1) - 0 [15:45:13]OFD Sender: Remove packet 39939 [15:45:13]ProducePacketName [15:45:13]name=ofd_packets/00039939 [15:45:13]NVStorageDeleteData [15:45:14]Write to MH i2c: 01 00 00 13 0F 22 [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: 01 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: 01 07 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 C4 0C F9 [15:45:14]RasterBufferAndPrint [15:45:14]line [15:45:14]line [15:45:14]line [15:45:14]line [15:45:14]line [15:45:14]written 0, free lines is 3274 [15:45:14]MH_Cut [15:45:14]Write to MH i2c: D1 01 00 1A 0F 01 FB [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: D1 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: D1 01 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: D1 01 00 1A 0F 00 FA [15:45:14]Write to MH i2c: 01 00 00 1B 0F 2A [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]OFD Sender: No OFD packet to send [15:45:14]*** Cut start [15:45:14]*** Partial cut [15:45:14]*** CUTSNS_PIN = 1 [15:45:14]*** CUTSNS_PIN = 0 [15:45:15]*** Brake cut motor [15:45:15]Read from MH i2c: 01 [15:45:15]MH_I2C_Read... [15:45:15]*** Stop cut motor [15:45:15]*** Cut end [15:45:15]Read from MH i2c: 01 07 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 FF 0F 3F [15:45:15]process_action close_receipt done [15:45:15]requested_data is exist [15:45:15]produce_requested_data [15:45:15]requested_item fm.sn is exist - process it [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 11 00 00 [15:45:15]Write to MH i2c: E2 08 00 1C 0F 80 11 00 00 00 00 00 00 A5 [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 17 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 17 00 1C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 FD [15:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:45:15]wFMCommunicate OK [15:45:15]requested_item fd.num is exist - process it [15:45:15]SAM_PROTO_GetFieldsCounters [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 13 00 00 [15:45:15]Write to MH i2c: E2 08 00 1D 0F 80 13 00 00 00 00 00 00 A8 [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 62 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 62 00 1D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 03 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [15:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 03 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:15]wFMCommunicate OK [15:45:15]SAM_PROTO_GetFieldsCounters done [15:45:15]requested_item shift.num is exist - process it [15:45:15]requested_item shift.opened is exist - process it [15:45:15]req_shift_opened [15:45:15]FM_GetShiftState [15:45:15]SAM_PROTO_GetShiftState [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 13 01 00 [15:45:15]Write to MH i2c: E2 08 00 1E 0F 80 13 01 00 00 00 00 00 AA [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:15]Read from MH i2c: E2 0E 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 0E 00 1E 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CD [15:45:15]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:45:15]wFMCommunicate OK [15:45:15]SAM_PROTO_GetShiftState done [15:45:15]FM_GetShiftState done [15:45:15]req_shift_opened done [15:45:15]requested_item shift.open_date is exist - process it [15:45:15]req_shift_open_date [15:45:15]req_shift_open_date done [15:45:15]produce_requested_data done [15:45:15]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39939,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:45:15]process_action_free close_receipt [15:45:15]json_value_free [15:45:15]json_value_free done [15:45:15]process_json_proto returns [15:45:15]Send response to host [15:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39939,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:45:15]free response buf [15:45:15]execute_script done [15:45:15]execute_script returns [15:45:15]free content buf [15:45:15]Sock 9.Close socket [15:45:15]Sock 9.Thread stoped [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:27]accept exits with 8 [15:49:27]New connection [15:49:27]New thread 3067182436 created [15:49:27]Thread 3067325796 joined [15:49:27]Waiting for new connection... [15:49:27] Sock 8.Parse request [15:49:27]Sock 8.Check first char [15:49:27]Sock 8.First char is OK [15:49:27]request: POST /json_proto HTTP/1.0 [15:49:27]Method: POST [15:49:27]URL: /json_proto [15:49:27]Method is POST - this is cgi request [15:49:27]url: /json_proto [15:49:27]query_string will be loaded in cgi processing [15:49:27]execute_cgi json_proto POST (null) [15:49:27]execute_cgi path=json_proto method=POST [15:49:27]POST find Content-Length [15:49:27]Host: 172.17.36.199:8080 [15:49:27]Content-Length: 856 [15:49:27]Content-Type: application/json [15:49:27] [15:49:27]POST finish read [15:49:27]Found Content-Length = 856 [15:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176499", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:27]execute_script... [15:49:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176499", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:27]POST & json_proto [15:49:27]process_json_proto [15:49:27]json parsed OK: [15:49:27]protocol is kg_v1.0 [15:49:27]action value=close_receipt [15:49:27]process_action close_receipt [15:49:27]cmd_close_receipt [15:49:27]MH_GetDate [15:49:27]Write to MH i2c: F0 00 00 1F 0F 1D [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 09 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 09 00 1F 0F 00 0A E6 5D 66 91 46 04 65 19 [15:49:27]GetLastDocTimeStamp 1717429514 [15:49:27]current date 1717429770 [15:49:27]FM_GetShiftState [15:49:27]SAM_PROTO_GetShiftState [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 01 00 [15:49:27]Write to MH i2c: E2 08 00 20 0F 80 13 01 00 00 00 00 00 AC [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 20 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CF [15:49:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetShiftState done [15:49:27]FM_GetShiftState done [15:49:27]opened in 1717373769 [15:49:27]opened+sec_in_day 1717460169 [15:49:27]quantity*price = 14000 [15:49:27]sum+1 = 14001 [15:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 58 03.06.2024 15:49 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874882 ФД: 39940 ФПД: 213586269280339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154930&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39940&fm=213586269280339&tin=02508201610067®Number=0000000000092680&sum=14000 0 [15:49:28]StoreToDocumentArchive [15:49:28]shift 376 fd 39940 [15:49:28]save to /storage/0376/doc_00039940 [15:49:28]save last doc name /storage/0376/doc_00039940 to /storage/kkm_last_doc_name [15:49:28]save OK [15:49:28]Clear old archive folders... [15:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=295 [15:49:28]tlvbuf is 00E565D0 [15:49:28]SAM_PROTO_ClearQueue [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 09 00 00 [15:49:28]Write to MH i2c: E2 08 00 2D 0F 80 09 00 00 00 00 00 00 AE [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]SAM_PROTO_ClearQueue done [15:49:28]KKMCreateOFDPacket [15:49:28]OFDProtocolAddRootSTLVToBuf [15:49:28]FM_MakeSignedData [15:49:28]FM_MakeSignedData [15:49:28]SAM_PROTO_SignData [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 01 02 [15:49:28]Write to MH i2c: E2 08 00 2E 0F 80 0D 01 02 00 00 00 00 B6 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=255 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [15:49:28]Write to MH i2c: E2 02 01 2F 0F 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 D9 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=54 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 04 9C 00 00 35 04 06 00 C2 41 6D B5 98 53 [15:49:28]Write to MH i2c: E2 39 00 30 0F 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 04 9C 00 00 35 04 06 00 C2 41 6D B5 98 53 00 00 95 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 03 02 [15:49:28]Write to MH i2c: E2 08 00 31 0F 80 0D 03 02 00 00 00 00 BB [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 0B 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 0B 00 31 0F 00 B3 D6 4F E1 62 E8 05 F1 90 00 B5 [15:49:28]RAPDU: B3 D6 4F E1 62 E8 05 F1 90 00 [15:49:28]wFMCommunicate OK [15:49:28]SAM_PROTO_SignData done [15:49:28]FM_MakeSignedData done [15:49:28]CreateOFDProtocolMessage [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 11 00 00 [15:49:28]Write to MH i2c: E2 08 00 32 0F 80 11 00 00 00 00 00 00 BB [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 17 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 17 00 32 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 13 [15:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:49:28]wFMCommunicate OK [15:49:28]CreateOFDProtocolMessage done [15:49:28]OFDSenderStorePacket 39940 [15:49:28]StoreOFDPacket docnum=39940 [15:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3B 01 00 00 1E 31 33 01 5A D5 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 04 9C 00 00 35 04 06 00 C2 41 6D B5 98 53 B3 D6 4F E1 62 E8 05 F1 [15:49:28]CheckFolder [15:49:28]dirname=/storage/ofd_packets [15:49:28]CheckFolder done [15:49:28]ProducePacketName [15:49:28]name=ofd_packets/00039940 [15:49:28]NVStorageSaveData ofd_packets/00039940 [15:49:28]File name is /storage/ofd_packets/00039940 [15:49:28]Write 345 bytes [15:49:28]NVStorageSaveData done [15:49:28]OFDSenderStorePacket done [15:49:28]KKMCreateOFDPacket done [15:49:28]NVStorageSaveData kkm_last_timestamp [15:49:28]File name is /storage/kkm_last_timestamp [15:49:28]Write 4 bytes [15:49:28]NVStorageSaveData done [15:49:28]ExternCall_PrintAddStr [15:49:28]wPrintStart [15:49:28]Write to MH i2c: 01 00 00 33 0F 42 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: 01 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: 01 07 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 FF 0F 57 [15:49:28]RasterBufferAndPrint [15:49:28]line Счет N : (3)176499 [15:49:28]line ИНН: 02508201610067 [15:49:28]line Контрольно-Кассовый Чек [15:49:28]line ПРОДАЖА [15:49:28]line Товар: 2000039210050 [15:49:28]line АКЦИЯ Френч-дог Sib говяжья 180г [15:49:28]line 1.000 * 140.00 [15:49:28]line = 140.00 [15:49:28]line НДС 12% НСП 1% [15:49:28]line > о реализуемом товаре [15:49:28]line ИТОГО: 140.00 [15:49:28]line НСП 1% : 1.24 [15:49:28]line НДС 12% : 14.87 [15:49:28]line Наличными: 0.00 [15:49:28]line Безнал.: 140.00 [15:49:28]line Место: АЗС № 63 "Партнер Нефть" [15:49:28]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:49:28]line СНО: Общий режим [15:49:28]line Чек 58 03.06.2024 15:49 [15:49:28]line Смена: 376 ФФД: 1.0 [15:49:28]line ЗНМ: 0300000037 [15:49:28]line РНМ: 0000000000092680 [15:49:28]line Версия ККМ: 001 [15:49:28]line Платежная система: O! деньги [15:49:28]line ФМ: 0000000000874882 [15:49:28]line ФД: 39940 [15:49:28]line ФПД: 213586269280339 [15:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154930&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39940&fm=213586269280339&tin=02508201610067®Number=0000000000092680&sum=14000 [15:49:29]line 0 [15:49:29]OFD Sender: Processing packet 39940 [packets to send 5, broken 4] [15:49:29]ProducePacketName [15:49:29]name=ofd_packets/00039940 [15:49:29]OFD Sender: To server: pG, [15:49:29]CommunicateWithHost lk.salyk.kg:30040 [15:49:29]ConnectInit lk.salyk.kg [15:49:29]written 0, free lines is 4095 [15:49:29]Connected sock=10 [15:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3B 01 00 00 1E 31 33 01 5A D5 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 04 9C 00 00 35 04 06 00 C2 41 6D B5 98 53 B3 D6 4F E1 62 E8 05 F1 [15:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 59 DD 47 00 3F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 04 9C 00 00 F4 03 04 00 B6 8E 5D 66 B6 04 01 00 00 1C EB 15 71 DC 56 E7 DC [15:49:29]CommunicateWithHost err = 0 [15:49:29]CheckOFDResponse [15:49:29]1017 (14) - 77093643461234 [15:49:29]1041 (16) - 0000000000874882 [15:49:29]1040 (4) - 39940 [15:49:29]1012 (4) - 03.06.2024 09:36 [15:49:29]1206 (1) - 0 [15:49:29]OFD Sender: Remove packet 39940 [15:49:29]ProducePacketName [15:49:29]name=ofd_packets/00039940 [15:49:29]NVStorageDeleteData [15:49:29]Write to MH i2c: 01 00 00 5E 0F 6D [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0C 7F [15:49:29]RasterBufferAndPrint [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]written 0, free lines is 3333 [15:49:29]MH_Cut [15:49:29]Write to MH i2c: D1 01 00 65 0F 01 46 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 01 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 01 00 65 0F 00 45 [15:49:29]Write to MH i2c: 01 00 00 66 0F 75 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:30]OFD Sender: No OFD packet to send [15:49:30]*** Cut start [15:49:30]*** Partial cut [15:49:30]*** CUTSNS_PIN = 1 [15:49:30]*** CUTSNS_PIN = 0 [15:49:30]*** Brake cut motor [15:49:30]Read from MH i2c: 01 [15:49:30]MH_I2C_Read... [15:49:30]*** Stop cut motor [15:49:31]*** Cut end [15:49:31]Read from MH i2c: 01 07 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: 01 07 00 66 0F 00 00 00 00 00 FF 0F 8A [15:49:31]process_action close_receipt done [15:49:31]requested_data is exist [15:49:31]produce_requested_data [15:49:31]requested_item fm.sn is exist - process it [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 11 00 00 [15:49:31]Write to MH i2c: E2 08 00 67 0F 80 11 00 00 00 00 00 00 F0 [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 17 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 17 00 67 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 48 [15:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:49:31]wFMCommunicate OK [15:49:31]requested_item fd.num is exist - process it [15:49:31]SAM_PROTO_GetFieldsCounters [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 13 00 00 [15:49:31]Write to MH i2c: E2 08 00 68 0F 80 13 00 00 00 00 00 00 F3 [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 62 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 62 00 68 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 04 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [15:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 04 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:31]wFMCommunicate OK [15:49:31]SAM_PROTO_GetFieldsCounters done [15:49:31]requested_item shift.num is exist - process it [15:49:31]requested_item shift.opened is exist - process it [15:49:31]req_shift_opened [15:49:31]FM_GetShiftState [15:49:31]SAM_PROTO_GetShiftState [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 13 01 00 [15:49:31]Write to MH i2c: E2 08 00 69 0F 80 13 01 00 00 00 00 00 F5 [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 0E 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 0E 00 69 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 18 [15:49:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:49:31]wFMCommunicate OK [15:49:31]SAM_PROTO_GetShiftState done [15:49:31]FM_GetShiftState done [15:49:31]req_shift_opened done [15:49:31]requested_item shift.open_date is exist - process it [15:49:31]req_shift_open_date [15:49:31]req_shift_open_date done [15:49:31]produce_requested_data done [15:49:31]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39940,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:49:31]process_action_free close_receipt [15:49:31]json_value_free [15:49:31]json_value_free done [15:49:31]process_json_proto returns [15:49:31]Send response to host [15:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39940,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:49:31]free response buf [15:49:31]execute_script done [15:49:31]execute_script returns [15:49:31]free content buf [15:49:31]Sock 8.Close socket [15:49:31]Sock 8.Thread stoped [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:31]accept exits with 9 [15:50:31]New connection [15:50:31]New thread 3067325796 created [15:50:31]Thread 3067182436 joined [15:50:31]Waiting for new connection... [15:50:31] Sock 9.Parse request [15:50:31]Sock 9.Check first char [15:50:31]Sock 9.First char is OK [15:50:31]request: POST /json_proto HTTP/1.0 [15:50:31]Method: POST [15:50:31]URL: /json_proto [15:50:31]Method is POST - this is cgi request [15:50:31]url: /json_proto [15:50:31]query_string will be loaded in cgi processing [15:50:31]execute_cgi json_proto POST (null) [15:50:31]execute_cgi path=json_proto method=POST [15:50:31]POST find Content-Length [15:50:31]Host: 172.17.36.199:8080 [15:50:31]Content-Length: 708 [15:50:31]Content-Type: application/json [15:50:31] [15:50:31]POST finish read [15:50:31]Found Content-Length = 708 [15:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176500", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:31]execute_script... [15:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176500", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:31]POST & json_proto [15:50:31]process_json_proto [15:50:31]json parsed OK: [15:50:31]protocol is kg_v1.0 [15:50:31]action value=close_receipt [15:50:31]process_action close_receipt [15:50:31]cmd_close_receipt [15:50:31]MH_GetDate [15:50:31]Write to MH i2c: F0 00 00 6A 0F 68 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: F0 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: F0 09 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: F0 09 00 6A 0F 00 4A E6 5D 66 91 46 04 65 A4 [15:50:31]GetLastDocTimeStamp 1717429770 [15:50:31]current date 1717429834 [15:50:31]FM_GetShiftState [15:50:31]SAM_PROTO_GetShiftState [15:50:31]wFMCommunicate request_size=4 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 13 01 00 [15:50:31]Write to MH i2c: E2 08 00 6B 0F 80 13 01 00 00 00 00 00 F7 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 0E 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 0E 00 6B 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1A [15:50:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:50:31]wFMCommunicate OK [15:50:31]SAM_PROTO_GetShiftState done [15:50:31]FM_GetShiftState done [15:50:31]opened in 1717373769 [15:50:31]opened+sec_in_day 1717460169 [15:50:31]quantity*price = 6500 [15:50:31]sum+1 = 6501 [15:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 59 03.06.2024 15:50 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39941 ФПД: 39071368242709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155034&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39941&fm=39071368242709&tin=02508201610067®Number=0000000000092680&sum=6500 0 [15:50:32]StoreToDocumentArchive [15:50:32]shift 376 fd 39941 [15:50:32]save to /storage/0376/doc_00039941 [15:50:32]save last doc name /storage/0376/doc_00039941 to /storage/kkm_last_doc_name [15:50:32]save OK [15:50:32]Clear old archive folders... [15:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:50:32]tlvbuf is 00E06740 [15:50:32]SAM_PROTO_ClearQueue [15:50:32]wFMCommunicate request_size=4 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 09 00 00 [15:50:32]Write to MH i2c: E2 08 00 78 0F 80 09 00 00 00 00 00 00 F9 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [15:50:32]RAPDU: 90 00 [15:50:32]wFMCommunicate OK [15:50:32]SAM_PROTO_ClearQueue done [15:50:32]KKMCreateOFDPacket [15:50:32]OFDProtocolAddRootSTLVToBuf [15:50:32]FM_MakeSignedData [15:50:32]FM_MakeSignedData [15:50:32]SAM_PROTO_SignData [15:50:32]wFMCommunicate request_size=4 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 0D 01 02 [15:50:32]Write to MH i2c: E2 08 00 79 0F 80 0D 01 02 00 00 00 00 01 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [15:50:32]RAPDU: 90 00 [15:50:32]wFMCommunicate OK [15:50:32]wFMCommunicate request_size=255 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:50:32]Write to MH i2c: E2 02 01 7A 0F 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 52 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [15:50:32]RAPDU: 90 00 [15:50:32]wFMCommunicate OK [15:50:32]wFMCommunicate request_size=58 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 05 9C 00 00 35 04 06 00 23 89 03 06 66 15 [15:50:32]Write to MH i2c: E2 3D 00 7B 0F 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 05 9C 00 00 35 04 06 00 23 89 03 06 66 15 00 00 C9 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [15:50:32]RAPDU: 90 00 [15:50:32]wFMCommunicate OK [15:50:32]wFMCommunicate request_size=4 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 0D 03 02 [15:50:32]Write to MH i2c: E2 08 00 7C 0F 80 0D 03 02 00 00 00 00 06 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 0B 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 0B 00 7C 0F 00 5E 42 98 22 4D 31 74 49 90 00 9C [15:50:32]RAPDU: 5E 42 98 22 4D 31 74 49 90 00 [15:50:32]wFMCommunicate OK [15:50:32]SAM_PROTO_SignData done [15:50:32]FM_MakeSignedData done [15:50:32]CreateOFDProtocolMessage [15:50:32]wFMCommunicate request_size=4 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 11 00 00 [15:50:32]Write to MH i2c: E2 08 00 7D 0F 80 11 00 00 00 00 00 00 06 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 17 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 17 00 7D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 5E [15:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:50:32]wFMCommunicate OK [15:50:32]CreateOFDProtocolMessage done [15:50:32]OFDSenderStorePacket 39941 [15:50:32]StoreOFDPacket docnum=39941 [15:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 B1 4B 37 01 32 62 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 05 9C 00 00 35 04 06 00 23 89 03 06 66 15 5E 42 98 22 4D 31 74 49 [15:50:32]CheckFolder [15:50:32]dirname=/storage/ofd_packets [15:50:32]CheckFolder done [15:50:32]ProducePacketName [15:50:32]name=ofd_packets/00039941 [15:50:32]NVStorageSaveData ofd_packets/00039941 [15:50:32]File name is /storage/ofd_packets/00039941 [15:50:32]Write 349 bytes [15:50:32]NVStorageSaveData done [15:50:32]OFDSenderStorePacket done [15:50:32]KKMCreateOFDPacket done [15:50:32]NVStorageSaveData kkm_last_timestamp [15:50:32]File name is /storage/kkm_last_timestamp [15:50:32]Write 4 bytes [15:50:32]NVStorageSaveData done [15:50:32]ExternCall_PrintAddStr [15:50:32]wPrintStart [15:50:32]Write to MH i2c: 01 00 00 7E 0F 8D [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 07 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 FF 0F A2 [15:50:32]RasterBufferAndPrint [15:50:32]line Счет N : (3)176500 [15:50:32]line ИНН: 02508201610067 [15:50:32]line Контрольно-Кассовый Чек [15:50:32]line ПРОДАЖА [15:50:32]line Товар: 2000032780015 [15:50:32]line Слойка DC треугольная курица 110г [15:50:32]line 1.000 * 65.00 [15:50:32]line = 65.00 [15:50:32]line НДС 12% НСП 1% [15:50:32]line > о реализуемом товаре [15:50:32]line ИТОГО: 65.00 [15:50:32]line НСП 1% : 0.57 [15:50:32]line НДС 12% : 6.90 [15:50:32]line Наличными: 65.00 [15:50:32]line Безнал.: 0.00 [15:50:32]line Место: АЗС № 63 "Партнер Нефть" [15:50:32]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:50:32]line СНО: Общий режим [15:50:32]line Чек 59 03.06.2024 15:50 [15:50:32]line Смена: 376 ФФД: 1.0 [15:50:32]line ЗНМ: 0300000037 [15:50:32]line РНМ: 0000000000092680 [15:50:32]line Версия ККМ: 001 [15:50:32]line ФМ: 0000000000874882 [15:50:32]line ФД: 39941 [15:50:32]line ФПД: 39071368242709 [15:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155034&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39941&fm=39071368242709&tin=02508201610067®Number=0000000000092680&sum=6500 [15:50:33]line 0 [15:50:33]OFD Sender: Processing packet 39941 [packets to send 5, broken 4] [15:50:33]ProducePacketName [15:50:33]name=ofd_packets/00039941 [15:50:33]OFD Sender: To server: pG, [15:50:33]CommunicateWithHost lk.salyk.kg:30040 [15:50:33]ConnectInit lk.salyk.kg [15:50:33]written 0, free lines is 4095 [15:50:33]Connected sock=10 [15:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 B1 4B 37 01 32 62 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4A E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 05 9C 00 00 35 04 06 00 23 89 03 06 66 15 5E 42 98 22 4D 31 74 49 [15:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 32 85 47 00 9E 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 05 9C 00 00 F4 03 04 00 F6 8E 5D 66 B6 04 01 00 00 F2 69 89 A2 2A 74 88 A9 [15:50:33]CommunicateWithHost err = 0 [15:50:33]CheckOFDResponse [15:50:33]1017 (14) - 77093643461234 [15:50:33]1041 (16) - 0000000000874882 [15:50:33]1040 (4) - 39941 [15:50:33]1012 (4) - 03.06.2024 09:37 [15:50:33]1206 (1) - 0 [15:50:33]OFD Sender: Remove packet 39941 [15:50:33]ProducePacketName [15:50:33]name=ofd_packets/00039941 [15:50:33]NVStorageDeleteData [15:50:33]Write to MH i2c: 01 00 00 A7 0F B6 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: 01 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: 01 07 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 02 0D CC [15:50:33]RasterBufferAndPrint [15:50:33]line [15:50:33]line [15:50:33]line [15:50:33]line [15:50:33]line [15:50:33]written 0, free lines is 3335 [15:50:33]MH_Cut [15:50:33]Write to MH i2c: D1 01 00 AE 0F 01 8F [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: D1 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: D1 01 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: D1 01 00 AE 0F 00 8E [15:50:33]Write to MH i2c: 01 00 00 AF 0F BE [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:34]OFD Sender: No OFD packet to send [15:50:34]*** Cut start [15:50:34]*** Partial cut [15:50:34]*** CUTSNS_PIN = 1 [15:50:34]*** CUTSNS_PIN = 0 [15:50:34]*** Brake cut motor [15:50:34]Read from MH i2c: 01 [15:50:34]MH_I2C_Read... [15:50:35]*** Stop cut motor [15:50:35]*** Cut end [15:50:35]Read from MH i2c: 01 07 00 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [15:50:35]process_action close_receipt done [15:50:35]requested_data is exist [15:50:35]produce_requested_data [15:50:35]requested_item fm.sn is exist - process it [15:50:35]wFMCommunicate request_size=4 [15:50:35]MH_SAM_APDU [15:50:35]CAPDU: 80 11 00 00 [15:50:35]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [15:50:35]Write i2c OK [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 [15:50:35]MH_I2C_Read... [15:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:35]Read from MH i2c: E2 17 00 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 91 [15:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:50:35]wFMCommunicate OK [15:50:35]requested_item fd.num is exist - process it [15:50:35]SAM_PROTO_GetFieldsCounters [15:50:35]wFMCommunicate request_size=4 [15:50:35]MH_SAM_APDU [15:50:35]CAPDU: 80 13 00 00 [15:50:35]Write to MH i2c: E2 08 00 B1 0F 80 13 00 00 00 00 00 00 3C [15:50:35]Write i2c OK [15:50:35]MH_I2C_Read... [15:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:35]Read from MH i2c: E2 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 62 00 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 62 00 B1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 05 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [15:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 05 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:35]wFMCommunicate OK [15:50:35]SAM_PROTO_GetFieldsCounters done [15:50:35]requested_item shift.num is exist - process it [15:50:35]requested_item shift.opened is exist - process it [15:50:35]req_shift_opened [15:50:35]FM_GetShiftState [15:50:35]SAM_PROTO_GetShiftState [15:50:35]wFMCommunicate request_size=4 [15:50:35]MH_SAM_APDU [15:50:35]CAPDU: 80 13 01 00 [15:50:35]Write to MH i2c: E2 08 00 B2 0F 80 13 01 00 00 00 00 00 3E [15:50:35]Write i2c OK [15:50:35]MH_I2C_Read... [15:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:35]Read from MH i2c: E2 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 0E 00 [15:50:35]MH_I2C_Read... [15:50:35]Read from MH i2c: E2 0E 00 B2 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 61 [15:50:35]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:50:35]wFMCommunicate OK [15:50:35]SAM_PROTO_GetShiftState done [15:50:35]FM_GetShiftState done [15:50:35]req_shift_opened done [15:50:35]requested_item shift.open_date is exist - process it [15:50:35]req_shift_open_date [15:50:35]req_shift_open_date done [15:50:35]produce_requested_data done [15:50:35]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39941,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:50:35]process_action_free close_receipt [15:50:35]json_value_free [15:50:35]json_value_free done [15:50:35]process_json_proto returns [15:50:35]Send response to host [15:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39941,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:50:35]free response buf [15:50:35]execute_script done [15:50:35]execute_script returns [15:50:35]free content buf [15:50:35]Sock 9.Close socket [15:50:35]Sock 9.Thread stoped [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:38]accept exits with 8 [15:51:38]New connection [15:51:38]New thread 3067182436 created [15:51:38]Thread 3067325796 joined [15:51:38]Waiting for new connection... [15:51:38] Sock 8.Parse request [15:51:38]Sock 8.Check first char [15:51:38]Sock 8.First char is OK [15:51:38]request: POST /json_proto HTTP/1.0 [15:51:38]Method: POST [15:51:38]URL: /json_proto [15:51:38]Method is POST - this is cgi request [15:51:38]url: /json_proto [15:51:38]query_string will be loaded in cgi processing [15:51:38]execute_cgi json_proto POST (null) [15:51:38]execute_cgi path=json_proto method=POST [15:51:38]POST find Content-Length [15:51:38]Host: 172.17.36.199:8080 [15:51:38]Content-Length: 869 [15:51:38]Content-Type: application/json [15:51:38] [15:51:38]POST finish read [15:51:38]Found Content-Length = 869 [15:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176501", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:38]execute_script... [15:51:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176501", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:38]POST & json_proto [15:51:38]process_json_proto [15:51:38]json parsed OK: [15:51:38]protocol is kg_v1.0 [15:51:38]action value=close_receipt [15:51:38]process_action close_receipt [15:51:38]cmd_close_receipt [15:51:38]MH_GetDate [15:51:38]Write to MH i2c: F0 00 00 B3 0F B1 [15:51:38]Write i2c OK [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: F0 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: F0 09 00 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: F0 09 00 B3 0F 00 8D E6 5D 66 91 46 04 65 30 [15:51:38]GetLastDocTimeStamp 1717429834 [15:51:38]current date 1717429901 [15:51:38]FM_GetShiftState [15:51:38]SAM_PROTO_GetShiftState [15:51:38]wFMCommunicate request_size=4 [15:51:38]MH_SAM_APDU [15:51:38]CAPDU: 80 13 01 00 [15:51:38]Write to MH i2c: E2 08 00 B4 0F 80 13 01 00 00 00 00 00 40 [15:51:38]Write i2c OK [15:51:38]MH_I2C_Read... [15:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:38]Read from MH i2c: E2 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: E2 0E 00 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: E2 0E 00 B4 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 63 [15:51:38]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:51:38]wFMCommunicate OK [15:51:38]SAM_PROTO_GetShiftState done [15:51:38]FM_GetShiftState done [15:51:38]opened in 1717373769 [15:51:38]opened+sec_in_day 1717460169 [15:51:38]quantity*price = 6500 [15:51:38]sum+1 = 6501 [15:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 60 03.06.2024 15:51 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874882 ФД: 39942 ФПД: 103408134492697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155141&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39942&fm=103408134492697&tin=02508201610067®Number=0000000000092680&sum=6500 0 [15:51:39]StoreToDocumentArchive [15:51:39]shift 376 fd 39942 [15:51:39]save to /storage/0376/doc_00039942 [15:51:39]save last doc name /storage/0376/doc_00039942 to /storage/kkm_last_doc_name [15:51:39]save OK [15:51:39]Clear old archive folders... [15:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:51:39]tlvbuf is 00E2FC10 [15:51:39]SAM_PROTO_ClearQueue [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 09 00 00 [15:51:39]Write to MH i2c: E2 08 00 C1 0F 80 09 00 00 00 00 00 00 42 [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [15:51:39]RAPDU: 90 00 [15:51:39]wFMCommunicate OK [15:51:39]SAM_PROTO_ClearQueue done [15:51:39]KKMCreateOFDPacket [15:51:39]OFDProtocolAddRootSTLVToBuf [15:51:39]FM_MakeSignedData [15:51:39]FM_MakeSignedData [15:51:39]SAM_PROTO_SignData [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 0D 01 02 [15:51:39]Write to MH i2c: E2 08 00 C2 0F 80 0D 01 02 00 00 00 00 4A [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [15:51:39]RAPDU: 90 00 [15:51:39]wFMCommunicate OK [15:51:39]wFMCommunicate request_size=255 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8D E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:51:39]Write to MH i2c: E2 02 01 C3 0F 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8D E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 DF [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [15:51:39]RAPDU: 90 00 [15:51:39]wFMCommunicate OK [15:51:39]wFMCommunicate request_size=58 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 06 9C 00 00 35 04 06 00 5E 0C 95 1F 92 19 [15:51:39]Write to MH i2c: E2 3D 00 C4 0F 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 06 9C 00 00 35 04 06 00 5E 0C 95 1F 92 19 00 00 AC [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [15:51:39]RAPDU: 90 00 [15:51:39]wFMCommunicate OK [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 0D 03 02 [15:51:39]Write to MH i2c: E2 08 00 C5 0F 80 0D 03 02 00 00 00 00 4F [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 0B 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 0B 00 C5 0F 00 C6 B9 81 96 66 09 32 93 90 00 1A [15:51:39]RAPDU: C6 B9 81 96 66 09 32 93 90 00 [15:51:39]wFMCommunicate OK [15:51:39]SAM_PROTO_SignData done [15:51:39]FM_MakeSignedData done [15:51:39]CreateOFDProtocolMessage [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 11 00 00 [15:51:39]Write to MH i2c: E2 08 00 C6 0F 80 11 00 00 00 00 00 00 4F [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 17 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 17 00 C6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A7 [15:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:51:39]wFMCommunicate OK [15:51:39]CreateOFDProtocolMessage done [15:51:39]OFDSenderStorePacket 39942 [15:51:39]StoreOFDPacket docnum=39942 [15:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 EF A8 37 01 AC 3D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8D E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 06 9C 00 00 35 04 06 00 5E 0C 95 1F 92 19 C6 B9 81 96 66 09 32 93 [15:51:39]CheckFolder [15:51:39]dirname=/storage/ofd_packets [15:51:39]CheckFolder done [15:51:39]ProducePacketName [15:51:39]name=ofd_packets/00039942 [15:51:39]NVStorageSaveData ofd_packets/00039942 [15:51:39]File name is /storage/ofd_packets/00039942 [15:51:39]Write 349 bytes [15:51:39]NVStorageSaveData done [15:51:39]OFDSenderStorePacket done [15:51:39]KKMCreateOFDPacket done [15:51:39]NVStorageSaveData kkm_last_timestamp [15:51:39]File name is /storage/kkm_last_timestamp [15:51:39]Write 4 bytes [15:51:39]NVStorageSaveData done [15:51:39]ExternCall_PrintAddStr [15:51:39]wPrintStart [15:51:39]Write to MH i2c: 01 00 00 C7 0F D6 [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: 01 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: 01 07 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [15:51:39]RasterBufferAndPrint [15:51:39]line Счет N : (3)176501 [15:51:39]line ИНН: 02508201610067 [15:51:39]line Контрольно-Кассовый Чек [15:51:39]line ПРОДАЖА [15:51:39]line Товар: 2000032780015 [15:51:39]line Слойка DC треугольная курица 110г [15:51:39]line 1.000 * 65.00 [15:51:39]line = 65.00 [15:51:39]line НДС 12% НСП 1% [15:51:39]line > о реализуемом товаре [15:51:39]line ИТОГО: 65.00 [15:51:39]line НСП 1% : 0.57 [15:51:39]line НДС 12% : 6.90 [15:51:39]line Наличными: 0.00 [15:51:39]line Безнал.: 65.00 [15:51:39]line Место: АЗС № 63 "Партнер Нефть" [15:51:39]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [15:51:39]line СНО: Общий режим [15:51:39]line Чек 60 03.06.2024 15:51 [15:51:39]line Смена: 376 ФФД: 1.0 [15:51:39]line ЗНМ: 0300000037 [15:51:39]line РНМ: 0000000000092680 [15:51:39]line Версия ККМ: 001 [15:51:39]line Платежная система: O! деньги [15:51:39]line ФМ: 0000000000874882 [15:51:39]line ФД: 39942 [15:51:39]line ФПД: 103408134492697 [15:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155141&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39942&fm=103408134492697&tin=02508201610067®Number=0000000000092680&sum=6500 [15:51:40]line 0 [15:51:40]OFD Sender: Processing packet 39942 [packets to send 5, broken 4] [15:51:40]ProducePacketName [15:51:40]name=ofd_packets/00039942 [15:51:40]OFD Sender: To server: pG, [15:51:40]CommunicateWithHost lk.salyk.kg:30040 [15:51:40]ConnectInit lk.salyk.kg [15:51:40]written 0, free lines is 4095 [15:51:40]Connected sock=10 [15:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3F 01 00 00 EF A8 37 01 AC 3D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8D E6 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 06 9C 00 00 35 04 06 00 5E 0C 95 1F 92 19 C6 B9 81 96 66 09 32 93 [15:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D1 DE 47 00 DF CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 06 9C 00 00 F4 03 04 00 39 8F 5D 66 B6 04 01 00 00 1B 0F AE 2A 83 9B BB 37 [15:51:40]CommunicateWithHost err = 0 [15:51:40]CheckOFDResponse [15:51:40]1017 (14) - 77093643461234 [15:51:40]1041 (16) - 0000000000874882 [15:51:40]1040 (4) - 39942 [15:51:40]1012 (4) - 03.06.2024 09:39 [15:51:40]1206 (1) - 0 [15:51:40]OFD Sender: Remove packet 39942 [15:51:40]ProducePacketName [15:51:40]name=ofd_packets/00039942 [15:51:40]NVStorageDeleteData [15:51:40]Write to MH i2c: 01 00 00 F2 0F 01 [15:51:40]Write i2c OK [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: 01 [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: 01 07 00 [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 E8 0C FC [15:51:40]RasterBufferAndPrint [15:51:40]line [15:51:40]line [15:51:40]line [15:51:40]line [15:51:40]line [15:51:40]written 0, free lines is 3311 [15:51:40]MH_Cut [15:51:40]Write to MH i2c: D1 01 00 F9 0F 01 DA [15:51:40]Write i2c OK [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: D1 [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: D1 01 00 [15:51:40]MH_I2C_Read... [15:51:40]Read from MH i2c: D1 01 00 F9 0F 00 D9 [15:51:40]Write to MH i2c: 01 00 00 FA 0F 09 [15:51:40]Write i2c OK [15:51:40]MH_I2C_Read... [15:51:41]OFD Sender: No OFD packet to send [15:51:41]*** Cut start [15:51:41]*** Partial cut [15:51:41]*** CUTSNS_PIN = 1 [15:51:41]*** CUTSNS_PIN = 0 [15:51:41]*** Brake cut motor [15:51:42]Read from MH i2c: 01 [15:51:42]MH_I2C_Read... [15:51:42]*** Stop cut motor [15:51:42]Read from MH i2c: 01 07 00 [15:51:42]MH_I2C_Read... [15:51:42]*** Cut end [15:51:42]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [15:51:42]process_action close_receipt done [15:51:42]requested_data is exist [15:51:42]produce_requested_data [15:51:42]requested_item fm.sn is exist - process it [15:51:42]wFMCommunicate request_size=4 [15:51:42]MH_SAM_APDU [15:51:42]CAPDU: 80 11 00 00 [15:51:42]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:42]Read from MH i2c: E2 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 17 00 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DC [15:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [15:51:42]wFMCommunicate OK [15:51:42]requested_item fd.num is exist - process it [15:51:42]SAM_PROTO_GetFieldsCounters [15:51:42]wFMCommunicate request_size=4 [15:51:42]MH_SAM_APDU [15:51:42]CAPDU: 80 13 00 00 [15:51:42]Write to MH i2c: E2 08 00 FC 0F 80 13 00 00 00 00 00 00 87 [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:42]Read from MH i2c: E2 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 62 00 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 62 00 FC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 06 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [15:51:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 06 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:42]wFMCommunicate OK [15:51:42]SAM_PROTO_GetFieldsCounters done [15:51:42]requested_item shift.num is exist - process it [15:51:42]requested_item shift.opened is exist - process it [15:51:42]req_shift_opened [15:51:42]FM_GetShiftState [15:51:42]SAM_PROTO_GetShiftState [15:51:42]wFMCommunicate request_size=4 [15:51:42]MH_SAM_APDU [15:51:42]CAPDU: 80 13 01 00 [15:51:42]Write to MH i2c: E2 08 00 FD 0F 80 13 01 00 00 00 00 00 89 [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:42]Read from MH i2c: E2 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 0E 00 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 0E 00 FD 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 AC [15:51:42]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [15:51:42]wFMCommunicate OK [15:51:42]SAM_PROTO_GetShiftState done [15:51:42]FM_GetShiftState done [15:51:42]req_shift_opened done [15:51:42]requested_item shift.open_date is exist - process it [15:51:42]req_shift_open_date [15:51:42]req_shift_open_date done [15:51:42]produce_requested_data done [15:51:42]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39942,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [15:51:42]process_action_free close_receipt [15:51:42]json_value_free [15:51:42]json_value_free done [15:51:42]process_json_proto returns [15:51:42]Send response to host [15:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39942,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [15:51:42]free response buf [15:51:42]execute_script done [15:51:42]execute_script returns [15:51:42]free content buf [15:51:42]Sock 8.Close socket [15:51:42]Sock 8.Thread stoped [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:34]accept exits with 9 [16:11:34]New connection [16:11:34]New thread 3067325796 created [16:11:34]Thread 3067182436 joined [16:11:34]Waiting for new connection... [16:11:34] Sock 9.Parse request [16:11:34]Sock 9.Check first char [16:11:34]Sock 9.First char is OK [16:11:34]request: POST /json_proto HTTP/1.0 [16:11:34]Method: POST [16:11:34]URL: /json_proto [16:11:34]Method is POST - this is cgi request [16:11:34]url: /json_proto [16:11:34]query_string will be loaded in cgi processing [16:11:34]execute_cgi json_proto POST (null) [16:11:34]execute_cgi path=json_proto method=POST [16:11:34]POST find Content-Length [16:11:34]Host: 172.17.36.199:8080 [16:11:34]Content-Length: 931 [16:11:34]Content-Type: application/json [16:11:34] [16:11:34]POST finish read [16:11:34]Found Content-Length = 931 [16:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176502", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:34]execute_script... [16:11:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176502", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:34]POST & json_proto [16:11:34]process_json_proto [16:11:34]json parsed OK: [16:11:34]protocol is kg_v1.0 [16:11:34]action value=close_receipt [16:11:34]process_action close_receipt [16:11:34]cmd_close_receipt [16:11:34]MH_GetDate [16:11:34]Write to MH i2c: F0 00 00 FE 0F FC [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 09 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 09 00 FE 0F 00 39 EB 5D 66 91 46 04 65 2C [16:11:34]GetLastDocTimeStamp 1717429901 [16:11:34]current date 1717431097 [16:11:34]FM_GetShiftState [16:11:34]SAM_PROTO_GetShiftState [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 13 01 00 [16:11:34]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0E 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 AE [16:11:34]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:11:34]wFMCommunicate OK [16:11:34]SAM_PROTO_GetShiftState done [16:11:34]FM_GetShiftState done [16:11:34]opened in 1717373769 [16:11:34]opened+sec_in_day 1717460169 [16:11:34]quantity*price = 18500 [16:11:34]sum+1 = 18501 [16:11:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 61 03.06.2024 16:11 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39943 ФПД: 197617649172724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161137&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39943&fm=197617649172724&tin=02508201610067®Number=0000000000092680&sum=25500 0 [16:11:35]StoreToDocumentArchive [16:11:35]shift 376 fd 39943 [16:11:35]save to /storage/0376/doc_00039943 [16:11:35]save last doc name /storage/0376/doc_00039943 to /storage/kkm_last_doc_name [16:11:35]save OK [16:11:35]Clear old archive folders... [16:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=391 [16:11:35]tlvbuf is 00DCBE90 [16:11:35]SAM_PROTO_ClearQueue [16:11:35]wFMCommunicate request_size=4 [16:11:35]MH_SAM_APDU [16:11:35]CAPDU: 80 09 00 00 [16:11:35]Write to MH i2c: E2 08 00 0C 10 80 09 00 00 00 00 00 00 8E [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:35]Read from MH i2c: E2 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 03 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [16:11:35]RAPDU: 90 00 [16:11:35]wFMCommunicate OK [16:11:35]SAM_PROTO_ClearQueue done [16:11:35]KKMCreateOFDPacket [16:11:35]OFDProtocolAddRootSTLVToBuf [16:11:35]FM_MakeSignedData [16:11:35]FM_MakeSignedData [16:11:35]SAM_PROTO_SignData [16:11:35]wFMCommunicate request_size=4 [16:11:35]MH_SAM_APDU [16:11:35]CAPDU: 80 0D 01 02 [16:11:35]Write to MH i2c: E2 08 00 0D 10 80 0D 01 02 00 00 00 00 96 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:35]Read from MH i2c: E2 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 03 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 03 00 0D 10 00 90 00 91 [16:11:35]RAPDU: 90 00 [16:11:35]wFMCommunicate OK [16:11:35]wFMCommunicate request_size=255 [16:11:35]MH_SAM_APDU [16:11:35]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [16:11:35]Write to MH i2c: E2 02 01 0E 10 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 15 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]wFMCommunicate request_size=150 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 0D 02 02 91 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 94 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 3D 00 00 00 F4 03 04 00 39 EB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 07 9C 00 00 35 04 06 00 B3 BB 71 C7 C0 F4 [16:11:36]Write to MH i2c: E2 99 00 0F 10 80 0D 02 02 91 00 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 94 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 3D 00 00 00 F4 03 04 00 39 EB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 07 9C 00 00 35 04 06 00 B3 BB 71 C7 C0 F4 00 00 08 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 0D 03 02 [16:11:36]Write to MH i2c: E2 08 00 10 10 80 0D 03 02 00 00 00 00 9B [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0B 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0B 00 10 10 00 07 FD B5 B9 6B 79 6D 35 90 00 94 [16:11:36]RAPDU: 07 FD B5 B9 6B 79 6D 35 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_SignData done [16:11:36]FM_MakeSignedData done [16:11:36]CreateOFDProtocolMessage [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 11 00 00 [16:11:36]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F3 [16:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:11:36]wFMCommunicate OK [16:11:36]CreateOFDProtocolMessage done [16:11:36]OFDSenderStorePacket 39943 [16:11:36]StoreOFDPacket docnum=39943 [16:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9B 01 00 00 17 16 93 01 65 25 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 94 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 3D 00 00 00 F4 03 04 00 39 EB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 07 9C 00 00 35 04 06 00 B3 BB 71 C7 C0 F4 07 FD B5 B9 6B 79 6D 35 [16:11:36]CheckFolder [16:11:36]dirname=/storage/ofd_packets [16:11:36]CheckFolder done [16:11:36]ProducePacketName [16:11:36]name=ofd_packets/00039943 [16:11:36]NVStorageSaveData ofd_packets/00039943 [16:11:36]File name is /storage/ofd_packets/00039943 [16:11:36]Write 441 bytes [16:11:36]NVStorageSaveData done [16:11:36]OFDSenderStorePacket done [16:11:36]KKMCreateOFDPacket done [16:11:36]NVStorageSaveData kkm_last_timestamp [16:11:36]File name is /storage/kkm_last_timestamp [16:11:36]Write 4 bytes [16:11:36]NVStorageSaveData done [16:11:36]ExternCall_PrintAddStr [16:11:36]wPrintStart [16:11:36]Write to MH i2c: 01 00 00 12 10 22 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 07 00 [16:11:36]MH_I2C_Read... [16:11:36]OFD Sender: Processing packet 39943 [packets to send 5, broken 4] [16:11:36]ProducePacketName [16:11:36]name=ofd_packets/00039943 [16:11:36]Read from MH i2c: 01 OFD Sender: To server: pG, [16:11:36]07 00 12 CommunicateWithHost lk.salyk.kg:30040 [16:11:36]10 ConnectInit lk.salyk.kg [16:11:36]00 00 00 00 00 FF 0F 37 [16:11:36]RasterBufferAndPrint [16:11:36]line Счет N : (3)176502 [16:11:36]line ИНН: 02508201610067 [16:11:36]line Контрольно-Кассовый Чек [16:11:36]line ПРОДАЖА [16:11:36]line Товар: 90162602 [16:11:36]line Энерг напиток Red bull 0,25л [16:11:36]line 1.000 * 185.00 [16:11:36]line = 185.00 [16:11:36]line НДС 12% НСП 1% [16:11:36]line > о реализуемом товаре [16:11:36]line Товар: 4630007400655 [16:11:36]line Семечки ДЖИНН 70г синий [16:11:36]line 1.000 * 70.00 [16:11:36]line = 70.00 [16:11:36]line НДС 12% НСП 1% [16:11:36]line > о реализуемом товаре [16:11:36]line ИТОГО: 255.00 [16:11:36]line НСП 1% : 2.26 [16:11:36]line НДС 12% : 27.08 [16:11:36]line Наличными: 255.00 [16:11:36]line Безнал.: 0.00 [16:11:36]line Место: АЗС № 63 "Партнер Нефть" [16:11:36]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [16:11:36]line СНО: Общий режим [16:11:36]line Чек 61 03.06.2024 16:11 [16:11:36]line Смена: 376 ФФД: 1.0 [16:11:36]line ЗНМ: 0300000037 [16:11:36]line РНМ: 0000000000092680 [16:11:36]line Версия ККМ: 001 [16:11:36]line ФМ: 0000000000874882 [16:11:36]line ФД: 39943 [16:11:36]line ФПД: 197617649172724 [16:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161137&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39943&fm=197617649172724&tin=02508201610067®Number=0000000000092680&sum=25500 [16:11:36]line 0 [16:11:36]written 0, free lines is 4095 [16:11:36]Connected sock=11 [16:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9B 01 00 00 17 16 93 01 65 25 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 94 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 3D 00 00 00 F4 03 04 00 39 EB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 07 9C 00 00 35 04 06 00 B3 BB 71 C7 C0 F4 07 FD B5 B9 6B 79 6D 35 [16:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 B1 87 47 00 B4 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 07 9C 00 00 F4 03 04 00 E5 93 5D 66 B6 04 01 00 00 FE 92 A9 2C F4 4D 3E 4D [16:11:36]CommunicateWithHost err = 0 [16:11:36]CheckOFDResponse [16:11:36]1017 (14) - 77093643461234 [16:11:36]1041 (16) - 0000000000874882 [16:11:36]1040 (4) - 39943 [16:11:36]1012 (4) - 03.06.2024 09:59 [16:11:36]1206 (1) - 0 [16:11:36]OFD Sender: Remove packet 39943 [16:11:36]ProducePacketName [16:11:36]name=ofd_packets/00039943 [16:11:36]NVStorageDeleteData [16:11:37]Write to MH i2c: 01 00 00 40 10 50 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 07 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 07 00 40 10 00 00 00 00 00 DF 0C 42 [16:11:37]RasterBufferAndPrint [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]written 0, free lines is 3301 [16:11:37]MH_Cut [16:11:37]Write to MH i2c: D1 01 00 47 10 01 29 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 01 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 01 00 47 10 00 28 [16:11:37]Write to MH i2c: 01 00 00 48 10 58 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]OFD Sender: No OFD packet to send [16:11:37]*** Cut start [16:11:37]*** Partial cut [16:11:37]*** CUTSNS_PIN = 1 [16:11:37]*** CUTSNS_PIN = 0 [16:11:38]*** Brake cut motor [16:11:38]Read from MH i2c: 01 [16:11:38]MH_I2C_Read... [16:11:38]*** Stop cut motor [16:11:38]*** Cut end [16:11:38]Read from MH i2c: 01 07 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: 01 07 00 48 10 00 00 00 00 00 FF 0F 6D [16:11:38]process_action close_receipt done [16:11:38]requested_data is exist [16:11:38]produce_requested_data [16:11:38]requested_item fm.sn is exist - process it [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 11 00 00 [16:11:38]Write to MH i2c: E2 08 00 49 10 80 11 00 00 00 00 00 00 D3 [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:38]Read from MH i2c: E2 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 17 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 17 00 49 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2B [16:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:11:38]wFMCommunicate OK [16:11:38]requested_item fd.num is exist - process it [16:11:38]SAM_PROTO_GetFieldsCounters [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 13 00 00 [16:11:38]Write to MH i2c: E2 08 00 4A 10 80 13 00 00 00 00 00 00 D6 [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:38]Read from MH i2c: E2 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 62 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 62 00 4A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 07 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 07 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:38]wFMCommunicate OK [16:11:38]SAM_PROTO_GetFieldsCounters done [16:11:38]requested_item shift.num is exist - process it [16:11:38]requested_item shift.opened is exist - process it [16:11:38]req_shift_opened [16:11:38]FM_GetShiftState [16:11:38]SAM_PROTO_GetShiftState [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 13 01 00 [16:11:38]Write to MH i2c: E2 08 00 4B 10 80 13 01 00 00 00 00 00 D8 [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:38]Read from MH i2c: E2 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 0E 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 0E 00 4B 10 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FB [16:11:38]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:11:38]wFMCommunicate OK [16:11:38]SAM_PROTO_GetShiftState done [16:11:38]FM_GetShiftState done [16:11:38]req_shift_opened done [16:11:38]requested_item shift.open_date is exist - process it [16:11:38]req_shift_open_date [16:11:38]req_shift_open_date done [16:11:38]produce_requested_data done [16:11:38]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39943,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [16:11:38]process_action_free close_receipt [16:11:38]json_value_free [16:11:38]json_value_free done [16:11:38]process_json_proto returns [16:11:38]Send response to host [16:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39943,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [16:11:38]free response buf [16:11:38]execute_script done [16:11:38]execute_script returns [16:11:38]free content buf [16:11:38]Sock 9.Close socket [16:11:38]Sock 9.Thread stoped [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]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:54]accept exits with 8 [16:28:54]New connection [16:28:54]New thread 3067182436 created [16:28:54]Thread 3067325796 joined [16:28:54]Waiting for new connection... [16:28:54] Sock 8.Parse request [16:28:54]Sock 8.Check first char [16:28:54]Sock 8.First char is OK [16:28:54]request: POST /json_proto HTTP/1.0 [16:28:54]Method: POST [16:28:54]URL: /json_proto [16:28:54]Method is POST - this is cgi request [16:28:54]url: /json_proto [16:28:54]query_string will be loaded in cgi processing [16:28:54]execute_cgi json_proto POST (null) [16:28:54]execute_cgi path=json_proto method=POST [16:28:54]POST find Content-Length [16:28:54]Host: 172.17.36.199:8080 [16:28:54]Content-Length: 2257 [16:28:54]Content-Type: application/json [16:28:54] [16:28:54]POST finish read [16:28:54]Found Content-Length = 2257 [16:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176503", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 626.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:54]execute_script... [16:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176503", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 626.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:54]POST & json_proto [16:28:54]process_json_proto [16:28:54]json parsed OK: [16:28:54]protocol is kg_v1.0 [16:28:54]action value=close_receipt [16:28:54]process_action close_receipt [16:28:54]cmd_close_receipt [16:28:54]MH_GetDate [16:28:54]Write to MH i2c: F0 00 00 4C 10 4B [16:28:54]Write i2c OK [16:28:54]MH_I2C_Read... [16:28:54]Read from MH i2c: F0 [16:28:54]MH_I2C_Read... [16:28:54]Read from MH i2c: F0 09 00 [16:28:54]MH_I2C_Read... [16:28:54]Read from MH i2c: F0 09 00 4C 10 00 49 EF 5D 66 91 46 04 65 8F [16:28:54]GetLastDocTimeStamp 1717431097 [16:28:54]current date 1717432137 [16:28:54]FM_GetShiftState [16:28:54]SAM_PROTO_GetShiftState [16:28:54]wFMCommunicate request_size=4 [16:28:54]MH_SAM_APDU [16:28:54]CAPDU: 80 13 01 00 [16:28:54]Write to MH i2c: E2 08 00 4D 10 80 13 01 00 00 00 00 00 DA [16:28:54]Write i2c OK [16:28:54]MH_I2C_Read... [16:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:54]Read from MH i2c: E2 [16:28:54]MH_I2C_Read... [16:28:54]Read from MH i2c: E2 0E 00 [16:28:54]MH_I2C_Read... [16:28:54]Read from MH i2c: E2 0E 00 4D 10 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FD [16:28:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:28:54]wFMCommunicate OK [16:28:54]SAM_PROTO_GetShiftState done [16:28:54]FM_GetShiftState done [16:28:54]opened in 1717373769 [16:28:54]opened+sec_in_day 1717460169 [16:28:54]quantity*price = 13000 [16:28:54]sum+1 = 13001 [16:28:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004824 Печ зат Яшкино слив Крем 182г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145001790 Пиво Жатецкий гусь 0,5л ст 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004753 Напиток Garage hard lemon ст 0,4л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 626.00 НСП 1% : 5.54 НДС 12% : 66.46 Наличными: 0.00 Безнал.: 626.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 62 03.06.2024 16:28 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39944 ФПД: 63300268360274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162857&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39944&fm=63300268360274&tin=02508201610067®Number=0000000000092680&sum=62600 0 [16:28:56]StoreToDocumentArchive [16:28:56]shift 376 fd 39944 [16:28:56]save to /storage/0376/doc_00039944 [16:28:56]save last doc name /storage/0376/doc_00039944 to /storage/kkm_last_doc_name [16:28:56]save OK [16:28:56]Clear old archive folders... [16:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=878 [16:28:56]tlvbuf is 00DF2FF0 [16:28:56]SAM_PROTO_ClearQueue [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 09 00 00 [16:28:56]Write to MH i2c: E2 08 00 5A 10 80 09 00 00 00 00 00 00 DC [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]SAM_PROTO_ClearQueue done [16:28:56]KKMCreateOFDPacket [16:28:56]OFDProtocolAddRootSTLVToBuf [16:28:56]FM_MakeSignedData [16:28:56]FM_MakeSignedData [16:28:56]SAM_PROTO_SignData [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 01 02 [16:28:56]Write to MH i2c: E2 08 00 5B 10 80 0D 01 02 00 00 00 00 E4 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=255 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 02 02 FA 03 00 6E 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [16:28:56]Write to MH i2c: E2 02 01 5C 10 80 0D 02 02 FA 00 03 00 6E 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 DB [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=255 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 02 02 FA 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 [16:28:56]Write to MH i2c: E2 02 01 5D 10 80 0D 02 02 FA 00 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 00 00 70 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=255 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 02 02 FA 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 02 00 00 00 00 [16:28:56]Write to MH i2c: E2 02 01 5E 10 80 0D 02 02 FA 00 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 02 00 00 00 00 00 00 CA [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [16:28:57]RAPDU: 90 00 [16:28:57]wFMCommunicate OK [16:28:57]wFMCommunicate request_size=137 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 EF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 08 9C 00 00 35 04 06 00 39 92 3E 02 82 52 [16:28:57]Write to MH i2c: E2 8C 00 5F 10 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 EF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 08 9C 00 00 35 04 06 00 39 92 3E 02 82 52 00 00 E3 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [16:28:57]RAPDU: 90 00 [16:28:57]wFMCommunicate OK [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 0D 03 02 [16:28:57]Write to MH i2c: E2 08 00 60 10 80 0D 03 02 00 00 00 00 EB [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0B 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0B 00 60 10 00 03 49 27 CB 53 EE 6C 4E 90 00 25 [16:28:57]RAPDU: 03 49 27 CB 53 EE 6C 4E 90 00 [16:28:57]wFMCommunicate OK [16:28:57]SAM_PROTO_SignData done [16:28:57]FM_MakeSignedData done [16:28:57]CreateOFDProtocolMessage [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 11 00 00 [16:28:57]Write to MH i2c: E2 08 00 61 10 80 11 00 00 00 00 00 00 EB [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 61 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 43 [16:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:28:57]wFMCommunicate OK [16:28:57]CreateOFDProtocolMessage done [16:28:57]OFDSenderStorePacket 39944 [16:28:57]StoreOFDPacket docnum=39944 [16:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 82 03 00 00 C3 F4 7A 03 3E F3 5A 03 01 00 03 00 6E 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 EF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 08 9C 00 00 35 04 06 00 39 92 3E 02 82 52 03 49 27 CB 53 EE 6C 4E [16:28:57]CheckFolder [16:28:57]dirname=/storage/ofd_packets [16:28:57]CheckFolder done [16:28:57]ProducePacketName [16:28:57]name=ofd_packets/00039944 [16:28:57]NVStorageSaveData ofd_packets/00039944 [16:28:57]File name is /storage/ofd_packets/00039944 [16:28:57]Write 928 bytes [16:28:57]NVStorageSaveData done [16:28:57]OFDSenderStorePacket done [16:28:57]KKMCreateOFDPacket done [16:28:57]NVStorageSaveData kkm_last_timestamp [16:28:57]File name is /storage/kkm_last_timestamp [16:28:57]Write 4 bytes [16:28:57]NVStorageSaveData done [16:28:57]ExternCall_PrintAddStr [16:28:57]wPrintStart [16:28:57]Write to MH i2c: 01 00 00 62 10 72 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 62 10 00 00 00 00 00 FF 0F 87 [16:28:57]RasterBufferAndPrint [16:28:57]line Счет N : (3)176503 [16:28:57]line ИНН: 02508201610067 [16:28:57]line Контрольно-Кассовый Чек [16:28:57]line ПРОДАЖА [16:28:57]line Товар: 2000036230011 [16:28:57]line Кофе Латте XL(GABB TRADE) [16:28:57]line 1.000 * 130.00 [16:28:57]line = 130.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line Товар: 4870202521216 [16:28:57]line Напиток MAXI чай 1,2 зел.лимон (новый) [16:28:57]line 1.000 * 125.00 [16:28:57]line = 125.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line Товар: 4603290004824 [16:28:57]line Печ зат Яшкино слив Крем 182г [16:28:57]line 1.000 * 81.00 [16:28:57]line = 81.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line Товар: 4870112002775 [16:28:57]line Шок батончик ALBENI BITES 80гр [16:28:57]line 1.000 * 60.00 [16:28:57]line = 60.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line Товар: 4870145001790 [16:28:57]line Пиво Жатецкий гусь 0,5л ст [16:28:57]line 1.000 * 110.00 [16:28:57]line = 110.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line Товар: 4870145004753 [16:28:57]line Напиток Garage hard lemon ст 0,4л [16:28:57]line 1.000 * 120.00 [16:28:57]line = 120.00 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line ИТОГО: 626.00 [16:28:57]line НСП 1% : 5.54 [16:28:57]line НДС 12% : 66.46 [16:28:57]line Наличными: 0.00 [16:28:57]line Безнал.: 626.00 [16:28:57]line Место: АЗС № 63 "Партнер Нефть" [16:28:57]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [16:28:57]line СНО: Общий режим [16:28:57]line Чек 62 03.06.2024 16:28 [16:28:57]line Смена: 376 ФФД: 1.0 [16:28:57]line ЗНМ: 0300000037 [16:28:57]line РНМ: 0000000000092680 [16:28:57]line Версия ККМ: 001 [16:28:57]line Платежная система: Бакай Банк [16:28:57]line ФМ: 0000000000874882 [16:28:57]line ФД: 39944 [16:28:57]line ФПД: 63300268360274 [16:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162857&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39944&fm=63300268360274&tin=02508201610067®Number=0000000000092680&sum=62600 [16:28:57]OFD Sender: Processing packet 39944 [packets to send 5, broken 4] [16:28:57]ProducePacketName [16:28:57]name=ofd_packets/00039944 [16:28:57]OFD Sender: To server: pG, [16:28:57]CommunicateWithHost lk.salyk.kg:30040 [16:28:57]ConnectInit lk.salyk.kg [16:28:57]line 0 [16:28:57]written 0, free lines is 4095 [16:28:57]Connected sock=10 [16:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 82 03 00 00 C3 F4 7A 03 3E F3 5A 03 01 00 03 00 6E 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 EF 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 08 9C 00 00 35 04 06 00 39 92 3E 02 82 52 03 49 27 CB 53 EE 6C 4E [16:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 95 F0 47 00 93 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 08 9C 00 00 F4 03 04 00 F6 97 5D 66 B6 04 01 00 00 1A FB EC 35 61 60 5C 40 [16:28:58]CommunicateWithHost err = 0 [16:28:58]CheckOFDResponse [16:28:58]1017 (14) - 77093643461234 [16:28:58]1041 (16) - 0000000000874882 [16:28:58]1040 (4) - 39944 [16:28:58]1012 (4) - 03.06.2024 10:16 [16:28:58]1206 (1) - 0 [16:28:58]OFD Sender: Remove packet 39944 [16:28:58]ProducePacketName [16:28:58]name=ofd_packets/00039944 [16:28:58]NVStorageDeleteData [16:28:58]Write to MH i2c: 01 00 00 AE 10 BE [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: 01 [16:28:58]MH_I2C_Read... [16:28:58]OFD Sender: No OFD packet to send [16:28:58]Read from MH i2c: 01 07 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 5E 0B 2E [16:28:58]RasterBufferAndPrint [16:28:58]line [16:28:58]line [16:28:58]line [16:28:58]line [16:28:58]line [16:28:58]written 0, free lines is 2959 [16:28:58]MH_Cut [16:28:58]Write to MH i2c: D1 01 00 B5 10 01 97 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: D1 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: D1 01 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: D1 01 00 B5 10 00 96 [16:28:58]Write to MH i2c: 01 00 00 B6 10 C6 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:59]*** Cut start [16:28:59]*** Partial cut [16:28:59]*** CUTSNS_PIN = 1 [16:28:59]*** CUTSNS_PIN = 0 [16:28:59]*** Brake cut motor [16:29:00]Read from MH i2c: 01 [16:29:00]MH_I2C_Read... [16:29:00]*** Stop cut motor [16:29:00]*** Cut end [16:29:00]Read from MH i2c: 01 07 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 FF 0F DB [16:29:00]process_action close_receipt done [16:29:00]requested_data is exist [16:29:00]produce_requested_data [16:29:00]requested_item fm.sn is exist - process it [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 11 00 00 [16:29:00]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 99 [16:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:29:00]wFMCommunicate OK [16:29:00]requested_item fd.num is exist - process it [16:29:00]SAM_PROTO_GetFieldsCounters [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 13 00 00 [16:29:00]Write to MH i2c: E2 08 00 B8 10 80 13 00 00 00 00 00 00 44 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 B8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 08 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [16:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 08 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetFieldsCounters done [16:29:00]requested_item shift.num is exist - process it [16:29:00]requested_item shift.opened is exist - process it [16:29:00]req_shift_opened [16:29:00]FM_GetShiftState [16:29:00]SAM_PROTO_GetShiftState [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 13 01 00 [16:29:00]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 69 [16:29:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetShiftState done [16:29:00]FM_GetShiftState done [16:29:00]req_shift_opened done [16:29:00]requested_item shift.open_date is exist - process it [16:29:00]req_shift_open_date [16:29:00]req_shift_open_date done [16:29:00]produce_requested_data done [16:29:00]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39944,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [16:29:00]process_action_free close_receipt [16:29:00]json_value_free [16:29:00]json_value_free done [16:29:00]process_json_proto returns [16:29:00]Send response to host [16:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39944,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [16:29:00]free response buf [16:29:00]execute_script done [16:29:00]execute_script returns [16:29:00]free content buf [16:29:00]Sock 8.Close socket [16:29:00]Sock 8.Thread stoped [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 [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]accept exits with 9 [16:38:38]New connection [16:38:38]New thread 3067325796 created [16:38:38]Thread 3067182436 joined [16:38:38]Waiting for new connection... [16:38:38] Sock 9.Parse request [16:38:38]Sock 9.Check first char [16:38:38]Sock 9.First char is OK [16:38:38]request: POST /json_proto HTTP/1.0 [16:38:38]Method: POST [16:38:38]URL: /json_proto [16:38:38]Method is POST - this is cgi request [16:38:38]url: /json_proto [16:38:38]query_string will be loaded in cgi processing [16:38:38]execute_cgi json_proto POST (null) [16:38:38]execute_cgi path=json_proto method=POST [16:38:38]POST find Content-Length [16:38:38]Host: 172.17.36.199:8080 [16:38:38]Content-Length: 681 [16:38:38]Content-Type: application/json [16:38:38] [16:38:38]POST finish read [16:38:38]Found Content-Length = 681 [16:38:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176504", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:38]execute_script... [16:38:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176504", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:38]POST & json_proto [16:38:38]process_json_proto [16:38:38]json parsed OK: [16:38:38]protocol is kg_v1.0 [16:38:38]action value=close_receipt [16:38:38]process_action close_receipt [16:38:38]cmd_close_receipt [16:38:38]MH_GetDate [16:38:38]Write to MH i2c: F0 00 00 BA 10 B9 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: F0 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: F0 09 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: F0 09 00 BA 10 00 91 F1 5D 66 91 46 04 65 47 [16:38:38]GetLastDocTimeStamp 1717432137 [16:38:38]current date 1717432721 [16:38:38]FM_GetShiftState [16:38:38]SAM_PROTO_GetShiftState [16:38:38]wFMCommunicate request_size=4 [16:38:38]MH_SAM_APDU [16:38:38]CAPDU: 80 13 01 00 [16:38:38]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6B [16:38:38]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:38:38]wFMCommunicate OK [16:38:38]SAM_PROTO_GetShiftState done [16:38:38]FM_GetShiftState done [16:38:38]opened in 1717373769 [16:38:38]opened+sec_in_day 1717460169 [16:38:38]quantity*price = 9500 [16:38:38]sum+1 = 9501 [16:38:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 63 03.06.2024 16:38 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39945 ФПД: 185356937700229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T163841&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39945&fm=185356937700229&tin=02508201610067®Number=0000000000092680&sum=9500 0 [16:38:39]StoreToDocumentArchive [16:38:39]shift 376 fd 39945 [16:38:39]save to /storage/0376/doc_00039945 [16:38:39]save last doc name /storage/0376/doc_00039945 to /storage/kkm_last_doc_name [16:38:39]save OK [16:38:39]Clear old archive folders... [16:38:39]ProcessDocumentItem done err = 0, tmpTLVsize=296 [16:38:39]tlvbuf is 00DE93B0 [16:38:39]SAM_PROTO_ClearQueue [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 09 00 00 [16:38:39]Write to MH i2c: E2 08 00 C8 10 80 09 00 00 00 00 00 00 4A [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [16:38:39]RAPDU: 90 00 [16:38:39]wFMCommunicate OK [16:38:39]SAM_PROTO_ClearQueue done [16:38:39]KKMCreateOFDPacket [16:38:39]OFDProtocolAddRootSTLVToBuf [16:38:39]FM_MakeSignedData [16:38:39]FM_MakeSignedData [16:38:39]SAM_PROTO_SignData [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 0D 01 02 [16:38:39]Write to MH i2c: E2 08 00 C9 10 80 0D 01 02 00 00 00 00 52 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [16:38:39]RAPDU: 90 00 [16:38:39]wFMCommunicate OK [16:38:39]wFMCommunicate request_size=255 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 91 F1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [16:38:39]Write to MH i2c: E2 02 01 CA 10 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 91 F1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 87 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [16:38:39]RAPDU: 90 00 [16:38:39]wFMCommunicate OK [16:38:39]wFMCommunicate request_size=55 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 09 9C 00 00 35 04 06 00 A8 94 C6 6D A3 85 [16:38:39]Write to MH i2c: E2 3A 00 CB 10 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 09 9C 00 00 35 04 06 00 A8 94 C6 6D A3 85 00 00 EF [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [16:38:39]RAPDU: 90 00 [16:38:39]wFMCommunicate OK [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 0D 03 02 [16:38:39]Write to MH i2c: E2 08 00 CC 10 80 0D 03 02 00 00 00 00 57 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 0B 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 0B 00 CC 10 00 4D 4B 10 DC FB AD 66 6D 90 00 57 [16:38:39]RAPDU: 4D 4B 10 DC FB AD 66 6D 90 00 [16:38:39]wFMCommunicate OK [16:38:39]SAM_PROTO_SignData done [16:38:39]FM_MakeSignedData done [16:38:39]CreateOFDProtocolMessage [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 11 00 00 [16:38:39]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 AF [16:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:38:39]wFMCommunicate OK [16:38:39]CreateOFDProtocolMessage done [16:38:39]OFDSenderStorePacket 39945 [16:38:39]StoreOFDPacket docnum=39945 [16:38:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 04 0E 34 01 00 D2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 91 F1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 09 9C 00 00 35 04 06 00 A8 94 C6 6D A3 85 4D 4B 10 DC FB AD 66 6D [16:38:40]CheckFolder [16:38:40]dirname=/storage/ofd_packets [16:38:40]CheckFolder done [16:38:40]ProducePacketName [16:38:40]name=ofd_packets/00039945 [16:38:40]NVStorageSaveData ofd_packets/00039945 [16:38:40]File name is /storage/ofd_packets/00039945 [16:38:40]Write 346 bytes [16:38:40]NVStorageSaveData done [16:38:40]OFDSenderStorePacket done [16:38:40]KKMCreateOFDPacket done [16:38:40]NVStorageSaveData kkm_last_timestamp [16:38:40]File name is /storage/kkm_last_timestamp [16:38:40]Write 4 bytes [16:38:40]NVStorageSaveData done [16:38:40]ExternCall_PrintAddStr [16:38:40]wPrintStart [16:38:40]Write to MH i2c: 01 00 00 CE 10 DE [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 07 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [16:38:40]RasterBufferAndPrint [16:38:40]line Счет N : (3)176504 [16:38:40]line ИНН: 02508201610067 [16:38:40]line Контрольно-Кассовый Чек [16:38:40]line ПРОДАЖА [16:38:40]line Товар: 4700000482733 [16:38:40]line Напиток Nitro Fr газ класс ж/б 0,45л [16:38:40]line 1.000 * 95.00 [16:38:40]line = 95.00 [16:38:40]line НДС 12% НСП 1% [16:38:40]line > о реализуемом товаре [16:38:40]line ИТОГО: 95.00 [16:38:40]line НСП 1% : 0.84 [16:38:40]line НДС 12% : 10.09 [16:38:40]line Наличными: 95.00 [16:38:40]line Безнал.: 0.00 [16:38:40]line Место: АЗС № 63 "Партнер Нефть" [16:38:40]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [16:38:40]line СНО: Общий режим [16:38:40]line Чек 63 03.06.2024 16:38 [16:38:40]line Смена: 376 ФФД: 1.0 [16:38:40]line ЗНМ: 0300000037 [16:38:40]line РНМ: 0000000000092680 [16:38:40]line Версия ККМ: 001 [16:38:40]line ФМ: 0000000000874882 [16:38:40]line ФД: 39945 [16:38:40]line ФПД: 185356937700229 [16:38:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T163841&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39945&fm=185356937700229&tin=02508201610067®Number=0000000000092680&sum=9500 [16:38:40]OFD Sender: Processing packet 39945 [packets to send 5, broken 4] [16:38:40]ProducePacketName [16:38:40]name=ofd_packets/00039945 [16:38:40]OFD Sender: To server: pG, [16:38:40]CommunicateWithHost lk.salyk.kg:30040 [16:38:40]ConnectInit lk.salyk.kg [16:38:40]line 0 [16:38:40]written 0, free lines is 4095 [16:38:40]Connected sock=10 [16:38:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3C 01 00 00 04 0E 34 01 00 D2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 91 F1 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 09 9C 00 00 35 04 06 00 A8 94 C6 6D A3 85 4D 4B 10 DC FB AD 66 6D [16:38:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 6D BC 47 00 46 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 09 9C 00 00 F4 03 04 00 3D 9A 5D 66 B6 04 01 00 00 32 70 48 4A 20 6B 7B 17 [16:38:40]CommunicateWithHost err = 0 [16:38:40]CheckOFDResponse [16:38:40]1017 (14) - 77093643461234 [16:38:40]1041 (16) - 0000000000874882 [16:38:40]1040 (4) - 39945 [16:38:40]1012 (4) - 03.06.2024 10:26 [16:38:40]1206 (1) - 0 [16:38:40]OFD Sender: Remove packet 39945 [16:38:40]ProducePacketName [16:38:40]name=ofd_packets/00039945 [16:38:40]NVStorageDeleteData [16:38:40]Write to MH i2c: 01 00 00 F7 10 07 [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 07 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 17 0D 32 [16:38:40]RasterBufferAndPrint [16:38:40]line [16:38:40]line [16:38:40]line [16:38:40]line [16:38:40]line [16:38:40]written 0, free lines is 3357 [16:38:40]MH_Cut [16:38:40]Write to MH i2c: D1 01 00 FE 10 01 E0 [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: D1 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: D1 01 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: D1 01 00 FE 10 00 DF [16:38:40]Write to MH i2c: 01 00 00 FF 10 0F [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:41]OFD Sender: No OFD packet to send [16:38:41]*** Cut start [16:38:41]*** Partial cut [16:38:41]*** CUTSNS_PIN = 1 [16:38:41]*** CUTSNS_PIN = 0 [16:38:41]*** Brake cut motor [16:38:42]Read from MH i2c: 01 [16:38:42]MH_I2C_Read... [16:38:42]*** Stop cut motor [16:38:42]*** Cut end [16:38:42]Read from MH i2c: 01 07 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [16:38:42]process_action close_receipt done [16:38:42]requested_data is exist [16:38:42]produce_requested_data [16:38:42]requested_item fm.sn is exist - process it [16:38:42]wFMCommunicate request_size=4 [16:38:42]MH_SAM_APDU [16:38:42]CAPDU: 80 11 00 00 [16:38:42]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [16:38:42]Write i2c OK [16:38:42]MH_I2C_Read... [16:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:42]Read from MH i2c: E2 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 17 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 17 00 00 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E3 [16:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:38:42]wFMCommunicate OK [16:38:42]requested_item fd.num is exist - process it [16:38:42]SAM_PROTO_GetFieldsCounters [16:38:42]wFMCommunicate request_size=4 [16:38:42]MH_SAM_APDU [16:38:42]CAPDU: 80 13 00 00 [16:38:42]Write to MH i2c: E2 08 00 01 11 80 13 00 00 00 00 00 00 8E [16:38:42]Write i2c OK [16:38:42]MH_I2C_Read... [16:38:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:42]Read from MH i2c: E2 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 62 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 62 00 01 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 09 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [16:38:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 09 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:42]wFMCommunicate OK [16:38:42]SAM_PROTO_GetFieldsCounters done [16:38:42]requested_item shift.num is exist - process it [16:38:42]requested_item shift.opened is exist - process it [16:38:42]req_shift_opened [16:38:42]FM_GetShiftState [16:38:42]SAM_PROTO_GetShiftState [16:38:42]wFMCommunicate request_size=4 [16:38:42]MH_SAM_APDU [16:38:42]CAPDU: 80 13 01 00 [16:38:42]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [16:38:42]Write i2c OK [16:38:42]MH_I2C_Read... [16:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:42]Read from MH i2c: E2 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 0E 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B3 [16:38:42]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:38:42]wFMCommunicate OK [16:38:42]SAM_PROTO_GetShiftState done [16:38:42]FM_GetShiftState done [16:38:42]req_shift_opened done [16:38:42]requested_item shift.open_date is exist - process it [16:38:42]req_shift_open_date [16:38:42]req_shift_open_date done [16:38:42]produce_requested_data done [16:38:42]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39945,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [16:38:42]process_action_free close_receipt [16:38:42]json_value_free [16:38:42]json_value_free done [16:38:42]process_json_proto returns [16:38:42]Send response to host [16:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39945,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [16:38:42]free response buf [16:38:42]execute_script done [16:38:42]execute_script returns [16:38:42]free content buf [16:38:42]Sock 9.Close socket [16:38:42]Sock 9.Thread stoped [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:28]accept exits with 8 [16:46:28]New connection [16:46:28]New thread 3067182436 created [16:46:28]Thread 3067325796 joined [16:46:28]Waiting for new connection... [16:46:28] Sock 8.Parse request [16:46:28]Sock 8.Check first char [16:46:28]Sock 8.First char is OK [16:46:28]request: POST /json_proto HTTP/1.0 [16:46:28]Method: POST [16:46:28]URL: /json_proto [16:46:28]Method is POST - this is cgi request [16:46:28]url: /json_proto [16:46:28]query_string will be loaded in cgi processing [16:46:28]execute_cgi json_proto POST (null) [16:46:28]execute_cgi path=json_proto method=POST [16:46:28]POST find Content-Length [16:46:28]Host: 172.17.36.199:8080 [16:46:28]Content-Length: 815 [16:46:28]Content-Type: application/json [16:46:28] [16:46:28]POST finish read [16:46:28]Found Content-Length = 815 [16:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176505", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]execute_script... [16:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176505", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]POST & json_proto [16:46:28]process_json_proto [16:46:28]json parsed OK: [16:46:28]protocol is kg_v1.0 [16:46:28]action value=close_receipt [16:46:28]process_action close_receipt [16:46:28]cmd_close_receipt [16:46:28]MH_GetDate [16:46:28]Write to MH i2c: F0 00 00 03 11 03 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 03 11 00 67 F3 5D 66 91 46 04 65 69 [16:46:28]GetLastDocTimeStamp 1717432721 [16:46:28]current date 1717433191 [16:46:28]FM_GetShiftState [16:46:28]SAM_PROTO_GetShiftState [16:46:28]wFMCommunicate request_size=4 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 13 01 00 [16:46:28]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B5 [16:46:28]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:46:28]wFMCommunicate OK [16:46:28]SAM_PROTO_GetShiftState done [16:46:28]FM_GetShiftState done [16:46:28]opened in 1717373769 [16:46:28]opened+sec_in_day 1717460169 [16:46:28]quantity*price = 13000 [16:46:28]sum+1 = 13001 [16:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 64 03.06.2024 16:46 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39946 ФПД: 164749600094065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164631&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39946&fm=164749600094065&tin=02508201610067®Number=0000000000092680&sum=13000 0 [16:46:29]StoreToDocumentArchive [16:46:29]shift 376 fd 39946 [16:46:29]save to /storage/0376/doc_00039946 [16:46:29]save last doc name /storage/0376/doc_00039946 to /storage/kkm_last_doc_name [16:46:29]save OK [16:46:29]Clear old archive folders... [16:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:46:29]tlvbuf is 00DE9010 [16:46:29]SAM_PROTO_ClearQueue [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 09 00 00 [16:46:29]Write to MH i2c: E2 08 00 11 11 80 09 00 00 00 00 00 00 94 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_ClearQueue done [16:46:29]KKMCreateOFDPacket [16:46:29]OFDProtocolAddRootSTLVToBuf [16:46:29]FM_MakeSignedData [16:46:29]FM_MakeSignedData [16:46:29]SAM_PROTO_SignData [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 01 02 [16:46:29]Write to MH i2c: E2 08 00 12 11 80 0D 01 02 00 00 00 00 9C [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]wFMCommunicate request_size=255 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 [16:46:29]Write to MH i2c: E2 02 01 13 11 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 00 00 33 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]wFMCommunicate request_size=25 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 02 02 14 38 32 10 04 04 00 0A 9C 00 00 35 04 06 00 95 D6 C1 63 F7 71 [16:46:29]Write to MH i2c: E2 1C 00 14 11 80 0D 02 02 14 00 38 32 10 04 04 00 0A 9C 00 00 35 04 06 00 95 D6 C1 63 F7 71 00 00 25 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 03 02 [16:46:29]Write to MH i2c: E2 08 00 15 11 80 0D 03 02 00 00 00 00 A1 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0B 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0B 00 15 11 00 B2 25 8D 15 BC 18 D0 72 90 00 31 [16:46:29]RAPDU: B2 25 8D 15 BC 18 D0 72 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_SignData done [16:46:29]FM_MakeSignedData done [16:46:29]CreateOFDProtocolMessage [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 11 00 00 [16:46:29]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 16 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F9 [16:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:46:29]wFMCommunicate OK [16:46:29]CreateOFDProtocolMessage done [16:46:29]OFDSenderStorePacket 39946 [16:46:29]StoreOFDPacket docnum=39946 [16:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 47 F9 16 01 A3 7B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0A 9C 00 00 35 04 06 00 95 D6 C1 63 F7 71 B2 25 8D 15 BC 18 D0 72 [16:46:29]CheckFolder [16:46:29]dirname=/storage/ofd_packets [16:46:29]CheckFolder done [16:46:29]ProducePacketName [16:46:29]name=ofd_packets/00039946 [16:46:29]NVStorageSaveData ofd_packets/00039946 [16:46:29]File name is /storage/ofd_packets/00039946 [16:46:29]Write 316 bytes [16:46:29]NVStorageSaveData done [16:46:29]OFDSenderStorePacket done [16:46:29]KKMCreateOFDPacket done [16:46:29]NVStorageSaveData kkm_last_timestamp [16:46:29]File name is /storage/kkm_last_timestamp [16:46:29]Write 4 bytes [16:46:29]NVStorageSaveData done [16:46:29]ExternCall_PrintAddStr [16:46:29]wPrintStart [16:46:29]Write to MH i2c: 01 00 00 17 11 28 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [16:46:29]RasterBufferAndPrint [16:46:29]line Счет N : (3)176505 [16:46:29]line ИНН: 02508201610067 [16:46:29]line Контрольно-Кассовый Чек [16:46:29]line ПРОДАЖА [16:46:29]line Товар: 4870001570071 [16:46:29]line Напиток Pepsi 1л [16:46:29]line 1.000 * 130.00 [16:46:29]line = 130.00 [16:46:29]line НДС 12% НСП 1% [16:46:29]line > о реализуемом товаре [16:46:29]line ИТОГО: 130.00 [16:46:29]line НСП 1% : 1.15 [16:46:29]line НДС 12% : 13.80 [16:46:29]line Наличными: 0.00 [16:46:29]line Безнал.: 130.00 [16:46:29]line Место: АЗС № 63 "Партнер Нефть" [16:46:29]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [16:46:29]line СНО: Общий режим [16:46:29]line Чек 64 03.06.2024 16:46 [16:46:29]line Смена: 376 ФФД: 1.0 [16:46:29]line ЗНМ: 0300000037 [16:46:29]line РНМ: 0000000000092680 [16:46:29]line Версия ККМ: 001 [16:46:30]line Платежная система: АКБ Кыргызстан [16:46:30]line ФМ: 0000000000874882 [16:46:30]line ФД: 39946 [16:46:30]line ФПД: 164749600094065 [16:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164631&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39946&fm=164749600094065&tin=02508201610067®Number=0000000000092680&sum=13000 [16:46:30]line 0 [16:46:30]OFD Sender: Processing packet 39946 [packets to send 5, broken 4] [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00039946 [16:46:30]OFD Sender: To server: pG, [16:46:30]CommunicateWithHost lk.salyk.kg:30040 [16:46:30]ConnectInit lk.salyk.kg [16:46:30]written 0, free lines is 4095 [16:46:30]Connected sock=10 [16:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 47 F9 16 01 A3 7B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0A 9C 00 00 35 04 06 00 95 D6 C1 63 F7 71 B2 25 8D 15 BC 18 D0 72 [16:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 29 37 47 00 7E A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0A 9C 00 00 F4 03 04 00 13 9C 5D 66 B6 04 01 00 00 A0 13 58 44 99 9C 41 82 [16:46:30]CommunicateWithHost err = 0 [16:46:30]CheckOFDResponse [16:46:30]1017 (14) - 77093643461234 [16:46:30]1041 (16) - 0000000000874882 [16:46:30]1040 (4) - 39946 [16:46:30]1012 (4) - 03.06.2024 10:33 [16:46:30]1206 (1) - 0 [16:46:30]OFD Sender: Remove packet 39946 [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00039946 [16:46:30]NVStorageDeleteData [16:46:30]Write to MH i2c: 01 00 00 41 11 52 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 41 11 00 00 00 00 00 13 0D 79 [16:46:30]RasterBufferAndPrint [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]written 0, free lines is 3354 [16:46:30]MH_Cut [16:46:30]Write to MH i2c: D1 01 00 48 11 01 2B [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 01 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 01 00 48 11 00 2A [16:46:30]Write to MH i2c: 01 00 00 49 11 5A [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:31]OFD Sender: No OFD packet to send [16:46:31]*** Cut start [16:46:31]*** Partial cut [16:46:31]*** CUTSNS_PIN = 1 [16:46:31]*** CUTSNS_PIN = 0 [16:46:31]*** Brake cut motor [16:46:32]Read from MH i2c: 01 [16:46:32]MH_I2C_Read... [16:46:32]*** Stop cut motor [16:46:32]*** Cut end [16:46:32]Read from MH i2c: 01 07 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 FF 0F 6F [16:46:32]process_action close_receipt done [16:46:32]requested_data is exist [16:46:32]produce_requested_data [16:46:32]requested_item fm.sn is exist - process it [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 11 00 00 [16:46:32]Write to MH i2c: E2 08 00 4A 11 80 11 00 00 00 00 00 00 D5 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 4A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2D [16:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:46:32]wFMCommunicate OK [16:46:32]requested_item fd.num is exist - process it [16:46:32]SAM_PROTO_GetFieldsCounters [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 13 00 00 [16:46:32]Write to MH i2c: E2 08 00 4B 11 80 13 00 00 00 00 00 00 D8 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 62 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 62 00 4B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_GetFieldsCounters done [16:46:32]requested_item shift.num is exist - process it [16:46:32]requested_item shift.opened is exist - process it [16:46:32]req_shift_opened [16:46:32]FM_GetShiftState [16:46:32]SAM_PROTO_GetShiftState [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 13 01 00 [16:46:32]Write to MH i2c: E2 08 00 4C 11 80 13 01 00 00 00 00 00 DA [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0E 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0E 00 4C 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FD [16:46:32]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_GetShiftState done [16:46:32]FM_GetShiftState done [16:46:32]req_shift_opened done [16:46:32]requested_item shift.open_date is exist - process it [16:46:32]req_shift_open_date [16:46:32]req_shift_open_date done [16:46:32]produce_requested_data done [16:46:32]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39946,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [16:46:32]process_action_free close_receipt [16:46:32]json_value_free [16:46:32]json_value_free done [16:46:32]process_json_proto returns [16:46:32]Send response to host [16:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39946,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [16:46:32]free response buf [16:46:32]execute_script done [16:46:32]execute_script returns [16:46:32]free content buf [16:46:32]Sock 8.Close socket [16:46:32]Sock 8.Thread stoped [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:39]accept exits with 9 [16:48:39]New connection [16:48:39]New thread 3067325796 created [16:48:39]Thread 3067182436 joined [16:48:39]Waiting for new connection... [16:48:39] Sock 9.Parse request [16:48:39]Sock 9.Check first char [16:48:39]Sock 9.First char is OK [16:48:39]request: POST /json_proto HTTP/1.0 [16:48:39]Method: POST [16:48:39]URL: /json_proto [16:48:39]Method is POST - this is cgi request [16:48:39]url: /json_proto [16:48:39]query_string will be loaded in cgi processing [16:48:39]execute_cgi json_proto POST (null) [16:48:39]execute_cgi path=json_proto method=POST [16:48:39]POST find Content-Length [16:48:39]Host: 172.17.36.199:8080 [16:48:39]Content-Length: 652 [16:48:39]Content-Type: application/json [16:48:39] [16:48:39]POST finish read [16:48:39]Found Content-Length = 652 [16:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176506", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:39]execute_script... [16:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176506", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:39]POST & json_proto [16:48:39]process_json_proto [16:48:39]json parsed OK: [16:48:39]protocol is kg_v1.0 [16:48:39]action value=close_receipt [16:48:39]process_action close_receipt [16:48:39]cmd_close_receipt [16:48:39]MH_GetDate [16:48:39]Write to MH i2c: F0 00 00 4D 11 4D [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 09 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 09 00 4D 11 00 EA F3 5D 66 91 46 04 65 36 [16:48:39]GetLastDocTimeStamp 1717433191 [16:48:39]current date 1717433322 [16:48:39]FM_GetShiftState [16:48:39]SAM_PROTO_GetShiftState [16:48:39]wFMCommunicate request_size=4 [16:48:39]MH_SAM_APDU [16:48:39]CAPDU: 80 13 01 00 [16:48:39]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:39]Read from MH i2c: E2 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: E2 0E 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FF [16:48:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:48:39]wFMCommunicate OK [16:48:39]SAM_PROTO_GetShiftState done [16:48:39]FM_GetShiftState done [16:48:39]opened in 1717373769 [16:48:39]opened+sec_in_day 1717460169 [16:48:39]quantity*price = 6500 [16:48:39]sum+1 = 6501 [16:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 65 03.06.2024 16:48 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39947 ФПД: 191431663086186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164842&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39947&fm=191431663086186&tin=02508201610067®Number=0000000000092680&sum=6500 0 [16:48:40]StoreToDocumentArchive [16:48:40]shift 376 fd 39947 [16:48:40]save to /storage/0376/doc_00039947 [16:48:40]save last doc name /storage/0376/doc_00039947 to /storage/kkm_last_doc_name [16:48:40]save OK [16:48:40]Clear old archive folders... [16:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:48:40]tlvbuf is 00E32180 [16:48:40]SAM_PROTO_ClearQueue [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 09 00 00 [16:48:40]Write to MH i2c: E2 08 00 5B 11 80 09 00 00 00 00 00 00 DE [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 [16:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [16:48:40]RAPDU: 90 00 [16:48:40]wFMCommunicate OK [16:48:40]SAM_PROTO_ClearQueue done [16:48:40]KKMCreateOFDPacket [16:48:40]OFDProtocolAddRootSTLVToBuf [16:48:40]FM_MakeSignedData [16:48:40]FM_MakeSignedData [16:48:40]SAM_PROTO_SignData [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 0D 01 02 [16:48:40]Write to MH i2c: E2 08 00 5C 11 80 0D 01 02 00 00 00 00 E6 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [16:48:40]RAPDU: 90 00 [16:48:40]wFMCommunicate OK [16:48:40]wFMCommunicate request_size=255 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 [16:48:40]Write to MH i2c: E2 02 01 5D 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 00 00 0B [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [16:48:40]RAPDU: 90 00 [16:48:40]wFMCommunicate OK [16:48:40]wFMCommunicate request_size=34 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0B 9C 00 00 35 04 06 00 AE 1B 28 46 EA 6A [16:48:40]Write to MH i2c: E2 25 00 5E 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0B 9C 00 00 35 04 06 00 AE 1B 28 46 EA 6A 00 00 E1 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [16:48:40]RAPDU: 90 00 [16:48:40]wFMCommunicate OK [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 0D 03 02 [16:48:40]Write to MH i2c: E2 08 00 5F 11 80 0D 03 02 00 00 00 00 EB [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 0B 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 0B 00 5F 11 00 5A 6D E2 58 77 84 20 5B 90 00 63 [16:48:40]RAPDU: 5A 6D E2 58 77 84 20 5B 90 00 [16:48:40]wFMCommunicate OK [16:48:40]SAM_PROTO_SignData done [16:48:40]FM_MakeSignedData done [16:48:40]CreateOFDProtocolMessage [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 11 00 00 [16:48:40]Write to MH i2c: E2 08 00 60 11 80 11 00 00 00 00 00 00 EB [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 17 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 17 00 60 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 43 [16:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:48:40]wFMCommunicate OK [16:48:40]CreateOFDProtocolMessage done [16:48:40]OFDSenderStorePacket 39947 [16:48:40]StoreOFDPacket docnum=39947 [16:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 27 01 00 00 90 42 1F 01 29 50 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0B 9C 00 00 35 04 06 00 AE 1B 28 46 EA 6A 5A 6D E2 58 77 84 20 5B [16:48:40]CheckFolder [16:48:40]dirname=/storage/ofd_packets [16:48:40]CheckFolder done [16:48:40]ProducePacketName [16:48:40]name=ofd_packets/00039947 [16:48:40]NVStorageSaveData ofd_packets/00039947 [16:48:40]File name is /storage/ofd_packets/00039947 [16:48:40]Write 325 bytes [16:48:40]NVStorageSaveData done [16:48:40]OFDSenderStorePacket done [16:48:40]KKMCreateOFDPacket done [16:48:40]NVStorageSaveData kkm_last_timestamp [16:48:40]File name is /storage/kkm_last_timestamp [16:48:40]Write 4 bytes [16:48:40]NVStorageSaveData done [16:48:40]ExternCall_PrintAddStr [16:48:40]wPrintStart [16:48:40]Write to MH i2c: 01 00 00 61 11 72 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: 01 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: 01 07 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 FF 0F 87 [16:48:40]RasterBufferAndPrint [16:48:40]line Счет N : (3)176506 [16:48:40]line ИНН: 02508201610067 [16:48:40]line Контрольно-Кассовый Чек [16:48:40]line ПРОДАЖА [16:48:40]line Товар: 54491472 [16:48:40]line Напиток Кока-Кола 0,5л [16:48:40]line 1.000 * 65.00 [16:48:40]line = 65.00 [16:48:40]line НДС 12% НСП 1% [16:48:40]line > о реализуемом товаре [16:48:40]line ИТОГО: 65.00 [16:48:40]line НСП 1% : 0.57 [16:48:40]line НДС 12% : 6.90 [16:48:40]line Наличными: 65.00 [16:48:40]line Безнал.: 0.00 [16:48:40]line Место: АЗС № 63 "Партнер Нефть" [16:48:40]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [16:48:40]line СНО: Общий режим [16:48:40]line Чек 65 03.06.2024 16:48 [16:48:40]line Смена: 376 ФФД: 1.0 [16:48:40]line ЗНМ: 0300000037 [16:48:40]line РНМ: 0000000000092680 [16:48:40]line Версия ККМ: 001 [16:48:40]line ФМ: 0000000000874882 [16:48:40]line ФД: 39947 [16:48:41]line ФПД: 191431663086186 [16:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164842&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39947&fm=191431663086186&tin=02508201610067®Number=0000000000092680&sum=6500 [16:48:41]line 0 [16:48:41]OFD Sender: Processing packet 39947 [packets to send 5, broken 4] [16:48:41]ProducePacketName [16:48:41]name=ofd_packets/00039947 [16:48:41]OFD Sender: To server: pG, [16:48:41]CommunicateWithHost lk.salyk.kg:30040 [16:48:41]ConnectInit lk.salyk.kg [16:48:41]written 0, free lines is 4095 [16:48:41]Connected sock=10 [16:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 27 01 00 00 90 42 1F 01 29 50 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA F3 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0B 9C 00 00 35 04 06 00 AE 1B 28 46 EA 6A 5A 6D E2 58 77 84 20 5B [16:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 13 EC 47 00 8B 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0B 9C 00 00 F4 03 04 00 96 9C 5D 66 B6 04 01 00 00 19 C9 BC CC 6C 26 3B F2 [16:48:41]CommunicateWithHost err = 0 [16:48:41]CheckOFDResponse [16:48:41]1017 (14) - 77093643461234 [16:48:41]1041 (16) - 0000000000874882 [16:48:41]1040 (4) - 39947 [16:48:41]1012 (4) - 03.06.2024 10:36 [16:48:41]1206 (1) - 0 [16:48:41]OFD Sender: Remove packet 39947 [16:48:41]ProducePacketName [16:48:41]name=ofd_packets/00039947 [16:48:41]NVStorageDeleteData [16:48:41]Write to MH i2c: 01 00 00 89 11 9A [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 07 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 22 0D D0 [16:48:41]RasterBufferAndPrint [16:48:41]line [16:48:41]line [16:48:41]line [16:48:41]line [16:48:41]line [16:48:41]written 0, free lines is 3369 [16:48:41]MH_Cut [16:48:41]Write to MH i2c: D1 01 00 90 11 01 73 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: D1 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: D1 01 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: D1 01 00 90 11 00 72 [16:48:41]Write to MH i2c: 01 00 00 91 11 A2 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]OFD Sender: No OFD packet to send [16:48:42]*** Cut start [16:48:42]*** Partial cut [16:48:42]*** CUTSNS_PIN = 1 [16:48:42]*** CUTSNS_PIN = 0 [16:48:42]*** Brake cut motor [16:48:42]Read from MH i2c: 01 [16:48:42]MH_I2C_Read... [16:48:42]*** Stop cut motor [16:48:42]*** Cut end [16:48:42]Read from MH i2c: 01 07 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [16:48:42]process_action close_receipt done [16:48:42]requested_data is exist [16:48:42]produce_requested_data [16:48:42]requested_item fm.sn is exist - process it [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 11 00 00 [16:48:42]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 75 [16:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [16:48:42]wFMCommunicate OK [16:48:42]requested_item fd.num is exist - process it [16:48:42]SAM_PROTO_GetFieldsCounters [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 13 00 00 [16:48:42]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 62 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 62 00 93 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetFieldsCounters done [16:48:43]requested_item shift.num is exist - process it [16:48:43]requested_item shift.opened is exist - process it [16:48:43]req_shift_opened [16:48:43]FM_GetShiftState [16:48:43]SAM_PROTO_GetShiftState [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 01 00 [16:48:43]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 45 [16:48:43]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetShiftState done [16:48:43]FM_GetShiftState done [16:48:43]req_shift_opened done [16:48:43]requested_item shift.open_date is exist - process it [16:48:43]req_shift_open_date [16:48:43]req_shift_open_date done [16:48:43]produce_requested_data done [16:48:43]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39947,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [16:48:43]process_action_free close_receipt [16:48:43]json_value_free [16:48:43]json_value_free done [16:48:43]process_json_proto returns [16:48:43]Send response to host [16:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39947,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [16:48:43]free response buf [16:48:43]execute_script done [16:48:43]execute_script returns [16:48:43]free content buf [16:48:43]Sock 9.Close socket [16:48:43]Sock 9.Thread stoped [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:00]accept exits with 8 [17:03:00]New connection [17:03:00]New thread 3067182436 created [17:03:00]Thread 3067325796 joined [17:03:00]Waiting for new connection... [17:03:00] Sock 8.Parse request [17:03:00]Sock 8.Check first char [17:03:00]Sock 8.First char is OK [17:03:00]request: POST /json_proto HTTP/1.0 [17:03:00]Method: POST [17:03:00]URL: /json_proto [17:03:00]Method is POST - this is cgi request [17:03:00]url: /json_proto [17:03:00]query_string will be loaded in cgi processing [17:03:00]execute_cgi json_proto POST (null) [17:03:00]execute_cgi path=json_proto method=POST [17:03:00]POST find Content-Length [17:03:00]Host: 172.17.36.199:8080 [17:03:00]Content-Length: 947 [17:03:00]Content-Type: application/json [17:03:00] [17:03:00]POST finish read [17:03:00]Found Content-Length = 947 [17:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176507", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5903111735548", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 WIND FRESH ( lemon)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]execute_script... [17:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176507", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5903111735548", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 WIND FRESH ( lemon)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]POST & json_proto [17:03:00]process_json_proto [17:03:00]json parsed OK: [17:03:00]protocol is kg_v1.0 [17:03:00]action value=close_receipt [17:03:00]process_action close_receipt [17:03:00]cmd_close_receipt [17:03:00]MH_GetDate [17:03:00]Write to MH i2c: F0 00 00 95 11 95 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 95 11 00 47 F7 5D 66 91 46 04 65 DF [17:03:00]GetLastDocTimeStamp 1717433322 [17:03:00]current date 1717434183 [17:03:00]FM_GetShiftState [17:03:00]SAM_PROTO_GetShiftState [17:03:00]wFMCommunicate request_size=4 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 13 01 00 [17:03:00]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 47 [17:03:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:03:00]wFMCommunicate OK [17:03:00]SAM_PROTO_GetShiftState done [17:03:00]FM_GetShiftState done [17:03:00]opened in 1717373769 [17:03:00]opened+sec_in_day 1717460169 [17:03:00]quantity*price = 6500 [17:03:00]sum+1 = 6501 [17:03:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5903111735548 Ароматизатор WIND FRESH ( lemon) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 66 03.06.2024 17:03 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39948 ФПД: 206095154541923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170303&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39948&fm=206095154541923&tin=02508201610067®Number=0000000000092680&sum=18000 0 [17:03:01]StoreToDocumentArchive [17:03:01]shift 376 fd 39948 [17:03:01]save to /storage/0376/doc_00039948 [17:03:01]save last doc name /storage/0376/doc_00039948 to /storage/kkm_last_doc_name [17:03:01]save OK [17:03:01]Clear old archive folders... [17:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=415 [17:03:01]tlvbuf is 00DF4110 [17:03:01]SAM_PROTO_ClearQueue [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 09 00 00 [17:03:01]Write to MH i2c: E2 08 00 A3 11 80 09 00 00 00 00 00 00 26 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_ClearQueue done [17:03:01]KKMCreateOFDPacket [17:03:01]OFDProtocolAddRootSTLVToBuf [17:03:01]FM_MakeSignedData [17:03:01]FM_MakeSignedData [17:03:01]SAM_PROTO_SignData [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 01 02 [17:03:01]Write to MH i2c: E2 08 00 A4 11 80 0D 01 02 00 00 00 00 2E [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=255 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 34 38 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 6C 65 6D 6F 6E 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [17:03:01]Write to MH i2c: E2 02 01 A5 11 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 34 38 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 6C 65 6D 6F 6E 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 14 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=174 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0C 9C 00 00 35 04 06 00 BB 71 44 79 F5 63 [17:03:01]Write to MH i2c: E2 B1 00 A6 11 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0C 9C 00 00 35 04 06 00 BB 71 44 79 F5 63 00 00 BE [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 03 02 [17:03:02]Write to MH i2c: E2 08 00 A7 11 80 0D 03 02 00 00 00 00 33 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 A7 11 00 74 F3 99 96 5C B4 7A 47 90 00 9B [17:03:02]RAPDU: 74 F3 99 96 5C B4 7A 47 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_SignData done [17:03:02]FM_MakeSignedData done [17:03:02]CreateOFDProtocolMessage [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 11 00 00 [17:03:02]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 A8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8B [17:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:03:02]wFMCommunicate OK [17:03:02]CreateOFDProtocolMessage done [17:03:02]OFDSenderStorePacket 39948 [17:03:02]StoreOFDPacket docnum=39948 [17:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B3 01 00 00 40 30 AB 01 FE 7E 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 34 38 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 6C 65 6D 6F 6E 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0C 9C 00 00 35 04 06 00 BB 71 44 79 F5 63 74 F3 99 96 5C B4 7A 47 [17:03:02]CheckFolder [17:03:02]dirname=/storage/ofd_packets [17:03:02]CheckFolder done [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00039948 [17:03:02]NVStorageSaveData ofd_packets/00039948 [17:03:02]File name is /storage/ofd_packets/00039948 [17:03:02]Write 465 bytes [17:03:02]NVStorageSaveData done [17:03:02]OFDSenderStorePacket done [17:03:02]KKMCreateOFDPacket done [17:03:02]NVStorageSaveData kkm_last_timestamp [17:03:02]File name is /storage/kkm_last_timestamp [17:03:02]Write 4 bytes [17:03:02]NVStorageSaveData done [17:03:02]ExternCall_PrintAddStr [17:03:02]wPrintStart [17:03:02]Write to MH i2c: 01 00 00 A9 11 BA [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]OFD Sender: Processing packet 39948 [packets to send 5, broken 4] [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00039948 [17:03:02]OFD Sender: To server: pG, [17:03:02]CommunicateWithHost lk.salyk.kg:30040 [17:03:02]ConnectInit lk.salyk.kg [17:03:02]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [17:03:02]RasterBufferAndPrint [17:03:02]line Счет N : (3)176507 [17:03:02]line ИНН: 02508201610067 [17:03:02]line Контрольно-Кассовый Чек [17:03:02]line ПРОДАЖА [17:03:02]line Товар: 4620016300305 [17:03:02]line Салфетки Absolut classic вл а/бакт 20 шт [17:03:02]line 1.000 * 65.00 [17:03:02]line = 65.00 [17:03:02]line НДС 12% НСП 1% [17:03:02]line > о реализуемом товаре [17:03:02]line Товар: 5903111735548 [17:03:02]line Ароматизатор WIND FRESH ( lemon) [17:03:02]line 1.000 * 115.00 [17:03:02]line = 115.00 [17:03:02]line НДС 12% НСП 1% [17:03:02]line > о реализуемом товаре [17:03:02]line ИТОГО: 180.00 [17:03:02]line НСП 1% : 1.59 [17:03:02]line НДС 12% : 19.11 [17:03:02]line Наличными: 180.00 [17:03:02]line Безнал.: 0.00 [17:03:02]line Место: АЗС № 63 "Партнер Нефть" [17:03:02]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:03:02]line СНО: Общий режим [17:03:02]line Чек 66 03.06.2024 17:03 [17:03:02]line Смена: 376 ФФД: 1.0 [17:03:02]line ЗНМ: 0300000037 [17:03:02]line РНМ: 0000000000092680 [17:03:02]line Версия ККМ: 001 [17:03:02]line ФМ: 0000000000874882 [17:03:02]line ФД: 39948 [17:03:02]line ФПД: 206095154541923 [17:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170303&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39948&fm=206095154541923&tin=02508201610067®Number=0000000000092680&sum=18000 [17:03:02]line 0 [17:03:02]written 0, free lines is 4095 [17:03:02]Connected sock=10 [17:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B3 01 00 00 40 30 AB 01 FE 7E 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 34 38 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 6C 65 6D 6F 6E 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0C 9C 00 00 35 04 06 00 BB 71 44 79 F5 63 74 F3 99 96 5C B4 7A 47 [17:03:02]Write to MH i2c: 01 00 00 D9 11 EA [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 AB 0C A8 [17:03:02]RasterBufferAndPrint [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]written 0, free lines is 3249 [17:03:02]MH_Cut [17:03:02]Write to MH i2c: D1 01 00 E0 11 01 C3 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 E0 11 00 C2 [17:03:02]Write to MH i2c: 01 00 00 E1 11 F2 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 6F C6 47 00 AD E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0C 9C 00 00 F4 03 04 00 F3 9F 5D 66 B6 04 01 00 00 0D 91 36 D1 2E 36 3D 43 [17:03:02]CommunicateWithHost err = 0 [17:03:02]CheckOFDResponse [17:03:02]1017 (14) - 77093643461234 [17:03:02]1041 (16) - 0000000000874882 [17:03:02]1040 (4) - 39948 [17:03:02]1012 (4) - 03.06.2024 10:50 [17:03:02]1206 (1) - 0 [17:03:02]OFD Sender: Remove packet 39948 [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00039948 [17:03:02]NVStorageDeleteData [17:03:03]OFD Sender: No OFD packet to send [17:03:03]*** Cut start [17:03:03]*** Partial cut [17:03:03]*** CUTSNS_PIN = 1 [17:03:03]*** CUTSNS_PIN = 0 [17:03:03]*** Brake cut motor [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 E1 11 00 00 00 00 00 FF 0F 07 [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C5 [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:03:04]wFMCommunicate OK [17:03:04]requested_item fd.num is exist - process it [17:03:04]SAM_PROTO_GetFieldsCounters [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 00 00 [17:03:04]Write to MH i2c: E2 08 00 E3 11 80 13 00 00 00 00 00 00 70 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 E3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetFieldsCounters done [17:03:04]requested_item shift.num is exist - process it [17:03:04]requested_item shift.opened is exist - process it [17:03:04]req_shift_opened [17:03:04]FM_GetShiftState [17:03:04]SAM_PROTO_GetShiftState [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 01 00 [17:03:04]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:04]Read from MH i2c: E2 0E 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 95 [17:03:04]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetShiftState done [17:03:04]FM_GetShiftState done [17:03:04]req_shift_opened done [17:03:04]requested_item shift.open_date is exist - process it [17:03:04]req_shift_open_date [17:03:04]req_shift_open_date done [17:03:04]produce_requested_data done [17:03:04]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39948,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:03:04]process_action_free close_receipt [17:03:04]json_value_free [17:03:04]json_value_free done [17:03:04]process_json_proto returns [17:03:04]Send response to host [17:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39948,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:03:04]free response buf [17:03:04]execute_script done [17:03:04]execute_script returns [17:03:04]free content buf [17:03:04]Sock 8.Close socket [17:03:04]Sock 8.Thread stoped [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:25]accept exits with 9 [17:03:25]New connection [17:03:25]New thread 3067325796 created [17:03:25]Thread 3067182436 joined [17:03:25]Waiting for new connection... [17:03:25] Sock 9.Parse request [17:03:25]Sock 9.Check first char [17:03:25]Sock 9.First char is OK [17:03:25]request: POST /json_proto HTTP/1.0 [17:03:25]Method: POST [17:03:25]URL: /json_proto [17:03:25]Method is POST - this is cgi request [17:03:25]url: /json_proto [17:03:25]query_string will be loaded in cgi processing [17:03:25]execute_cgi json_proto POST (null) [17:03:25]execute_cgi path=json_proto method=POST [17:03:25]POST find Content-Length [17:03:25]Host: 172.17.36.199:8080 [17:03:25]Content-Length: 622 [17:03:25]Content-Type: application/json [17:03:25] [17:03:25]POST finish read [17:03:25]Found Content-Length = 622 [17:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176508", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:25]execute_script... [17:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176508", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:25]POST & json_proto [17:03:25]process_json_proto [17:03:25]json parsed OK: [17:03:25]protocol is kg_v1.0 [17:03:25]action value=close_receipt [17:03:25]process_action close_receipt [17:03:25]cmd_close_receipt [17:03:25]MH_GetDate [17:03:25]Write to MH i2c: F0 00 00 E5 11 E5 [17:03:25]Write i2c OK [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: F0 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: F0 09 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: F0 09 00 E5 11 00 60 F7 5D 66 91 46 04 65 48 [17:03:25]GetLastDocTimeStamp 1717434183 [17:03:25]current date 1717434208 [17:03:25]FM_GetShiftState [17:03:25]SAM_PROTO_GetShiftState [17:03:25]wFMCommunicate request_size=4 [17:03:25]MH_SAM_APDU [17:03:25]CAPDU: 80 13 01 00 [17:03:25]Write to MH i2c: E2 08 00 E6 11 80 13 01 00 00 00 00 00 74 [17:03:25]Write i2c OK [17:03:25]MH_I2C_Read... [17:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:25]Read from MH i2c: E2 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0E 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0E 00 E6 11 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 97 [17:03:25]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:03:25]wFMCommunicate OK [17:03:25]SAM_PROTO_GetShiftState done [17:03:25]FM_GetShiftState done [17:03:25]opened in 1717373769 [17:03:25]opened+sec_in_day 1717460169 [17:03:25]quantity*price = 13800 [17:03:25]sum+1 = 13801 [17:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 67 03.06.2024 17:03 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39949 ФПД: 178958909881778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170328&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39949&fm=178958909881778&tin=02508201610067®Number=0000000000092680&sum=13800 0 [17:03:26]StoreToDocumentArchive [17:03:26]shift 376 fd 39949 [17:03:26]save to /storage/0376/doc_00039949 [17:03:26]save last doc name /storage/0376/doc_00039949 to /storage/kkm_last_doc_name [17:03:26]save OK [17:03:26]Clear old archive folders... [17:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:03:26]tlvbuf is 00E535D0 [17:03:26]SAM_PROTO_ClearQueue [17:03:26]wFMCommunicate request_size=4 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 09 00 00 [17:03:26]Write to MH i2c: E2 08 00 F3 11 80 09 00 00 00 00 00 00 76 [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:26]Read from MH i2c: E2 03 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [17:03:26]RAPDU: 90 00 [17:03:26]wFMCommunicate OK [17:03:26]SAM_PROTO_ClearQueue done [17:03:26]KKMCreateOFDPacket [17:03:26]OFDProtocolAddRootSTLVToBuf [17:03:26]FM_MakeSignedData [17:03:26]FM_MakeSignedData [17:03:26]SAM_PROTO_SignData [17:03:26]wFMCommunicate request_size=4 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 0D 01 02 [17:03:26]Write to MH i2c: E2 08 00 F4 11 80 0D 01 02 00 00 00 00 7E [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [17:03:26]RAPDU: 90 00 [17:03:26]wFMCommunicate OK [17:03:26]wFMCommunicate request_size=255 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 60 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [17:03:26]Write to MH i2c: E2 02 01 F5 11 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 60 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 91 [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [17:03:26]RAPDU: 90 00 [17:03:26]wFMCommunicate OK [17:03:26]wFMCommunicate request_size=33 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0D 9C 00 00 35 04 06 00 A2 C3 1E 40 BD B2 [17:03:26]Write to MH i2c: E2 24 00 F6 11 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0D 9C 00 00 35 04 06 00 A2 C3 1E 40 BD B2 00 00 F0 [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [17:03:26]RAPDU: 90 00 [17:03:26]wFMCommunicate OK [17:03:26]wFMCommunicate request_size=4 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 0D 03 02 [17:03:26]Write to MH i2c: E2 08 00 F7 11 80 0D 03 02 00 00 00 00 83 [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 0B 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 0B 00 F7 11 00 8B A7 F7 6D 9B 06 84 BB 90 00 FA [17:03:26]RAPDU: 8B A7 F7 6D 9B 06 84 BB 90 00 [17:03:26]wFMCommunicate OK [17:03:26]SAM_PROTO_SignData done [17:03:26]FM_MakeSignedData done [17:03:26]CreateOFDProtocolMessage [17:03:26]wFMCommunicate request_size=4 [17:03:26]MH_SAM_APDU [17:03:26]CAPDU: 80 11 00 00 [17:03:26]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:26]Read from MH i2c: E2 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 17 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DB [17:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:03:26]wFMCommunicate OK [17:03:26]CreateOFDProtocolMessage done [17:03:26]OFDSenderStorePacket 39949 [17:03:26]StoreOFDPacket docnum=39949 [17:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 56 C1 1E 01 F1 10 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 60 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0D 9C 00 00 35 04 06 00 A2 C3 1E 40 BD B2 8B A7 F7 6D 9B 06 84 BB [17:03:26]CheckFolder [17:03:26]dirname=/storage/ofd_packets [17:03:26]CheckFolder done [17:03:26]ProducePacketName [17:03:26]name=ofd_packets/00039949 [17:03:26]NVStorageSaveData ofd_packets/00039949 [17:03:26]File name is /storage/ofd_packets/00039949 [17:03:26]Write 324 bytes [17:03:26]NVStorageSaveData done [17:03:26]OFDSenderStorePacket done [17:03:26]KKMCreateOFDPacket done [17:03:26]NVStorageSaveData kkm_last_timestamp [17:03:26]File name is /storage/kkm_last_timestamp [17:03:26]Write 4 bytes [17:03:26]NVStorageSaveData done [17:03:26]ExternCall_PrintAddStr [17:03:26]wPrintStart [17:03:26]Write to MH i2c: 01 00 00 F9 11 0A [17:03:26]Write i2c OK [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: 01 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: 01 07 00 [17:03:26]MH_I2C_Read... [17:03:26]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [17:03:26]RasterBufferAndPrint [17:03:26]line Счет N : (3)176508 [17:03:26]line ИНН: 02508201610067 [17:03:26]line Контрольно-Кассовый Чек [17:03:26]line ПРОДАЖА [17:03:26]line Товар: 4640030091645 [17:03:26]line Сигареты ESSE Exchange M [17:03:26]line 1.000 * 138.00 [17:03:26]line = 138.00 [17:03:26]line НДС 12% НСП 1% [17:03:26]line > о реализуемом товаре [17:03:26]line ИТОГО: 138.00 [17:03:26]line НСП 1% : 1.22 [17:03:26]line НДС 12% : 14.65 [17:03:26]line Наличными: 138.00 [17:03:26]line Безнал.: 0.00 [17:03:26]line Место: АЗС № 63 "Партнер Нефть" [17:03:26]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:03:26]line СНО: Общий режим [17:03:26]line Чек 67 03.06.2024 17:03 [17:03:26]line Смена: 376 ФФД: 1.0 [17:03:26]line ЗНМ: 0300000037 [17:03:26]line РНМ: 0000000000092680 [17:03:26]line Версия ККМ: 001 [17:03:26]line ФМ: 0000000000874882 [17:03:26]line ФД: 39949 [17:03:26]line ФПД: 178958909881778 [17:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170328&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39949&fm=178958909881778&tin=02508201610067®Number=0000000000092680&sum=13800 [17:03:27]line 0 [17:03:27]OFD Sender: Processing packet 39949 [packets to send 5, broken 4] [17:03:27]ProducePacketName [17:03:27]name=ofd_packets/00039949 [17:03:27]OFD Sender: To server: pG, [17:03:27]CommunicateWithHost lk.salyk.kg:30040 [17:03:27]ConnectInit lk.salyk.kg [17:03:27]written 0, free lines is 4095 [17:03:27]Connected sock=10 [17:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 56 C1 1E 01 F1 10 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 60 F7 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0D 9C 00 00 35 04 06 00 A2 C3 1E 40 BD B2 8B A7 F7 6D 9B 06 84 BB [17:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 BE BD 47 00 3D 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0D 9C 00 00 F4 03 04 00 0C A0 5D 66 B6 04 01 00 00 09 AB 86 2A 31 6C 20 73 [17:03:27]CommunicateWithHost err = 0 [17:03:27]CheckOFDResponse [17:03:27]1017 (14) - 77093643461234 [17:03:27]1041 (16) - 0000000000874882 [17:03:27]1040 (4) - 39949 [17:03:27]1012 (4) - 03.06.2024 10:50 [17:03:27]1206 (1) - 0 [17:03:27]OFD Sender: Remove packet 39949 [17:03:27]ProducePacketName [17:03:27]name=ofd_packets/00039949 [17:03:27]NVStorageDeleteData [17:03:27]Write to MH i2c: 01 00 00 21 12 33 [17:03:27]Write i2c OK [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: 01 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: 01 07 00 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: 01 07 00 21 12 00 00 00 00 00 30 0D 77 [17:03:27]RasterBufferAndPrint [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]line [17:03:27]written 0, free lines is 3383 [17:03:27]MH_Cut [17:03:27]Write to MH i2c: D1 01 00 28 12 01 0C [17:03:27]Write i2c OK [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: D1 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: D1 01 00 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: D1 01 00 28 12 00 0B [17:03:27]Write to MH i2c: 01 00 00 29 12 3B [17:03:27]Write i2c OK [17:03:27]MH_I2C_Read... [17:03:27]OFD Sender: No OFD packet to send [17:03:28]*** Cut start [17:03:28]*** Partial cut [17:03:28]*** CUTSNS_PIN = 1 [17:03:28]*** CUTSNS_PIN = 0 [17:03:28]*** Brake cut motor [17:03:28]Read from MH i2c: 01 [17:03:28]MH_I2C_Read... [17:03:28]*** Stop cut motor [17:03:28]*** Cut end [17:03:28]Read from MH i2c: 01 07 00 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 FF 0F 50 [17:03:28]process_action close_receipt done [17:03:28]requested_data is exist [17:03:28]produce_requested_data [17:03:28]requested_item fm.sn is exist - process it [17:03:28]wFMCommunicate request_size=4 [17:03:28]MH_SAM_APDU [17:03:28]CAPDU: 80 11 00 00 [17:03:28]Write to MH i2c: E2 08 00 2A 12 80 11 00 00 00 00 00 00 B6 [17:03:28]Write i2c OK [17:03:28]MH_I2C_Read... [17:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:28]Read from MH i2c: E2 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: E2 17 00 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: E2 17 00 2A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 0E [17:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:03:28]wFMCommunicate OK [17:03:28]requested_item fd.num is exist - process it [17:03:28]SAM_PROTO_GetFieldsCounters [17:03:28]wFMCommunicate request_size=4 [17:03:28]MH_SAM_APDU [17:03:28]CAPDU: 80 13 00 00 [17:03:28]Write to MH i2c: E2 08 00 2B 12 80 13 00 00 00 00 00 00 B9 [17:03:28]Write i2c OK [17:03:28]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 62 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 62 00 2B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:29]wFMCommunicate OK [17:03:29]SAM_PROTO_GetFieldsCounters done [17:03:29]requested_item shift.num is exist - process it [17:03:29]requested_item shift.opened is exist - process it [17:03:29]req_shift_opened [17:03:29]FM_GetShiftState [17:03:29]SAM_PROTO_GetShiftState [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 13 01 00 [17:03:29]Write to MH i2c: E2 08 00 2C 12 80 13 01 00 00 00 00 00 BB [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 0E 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 0E 00 2C 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DE [17:03:29]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:03:29]wFMCommunicate OK [17:03:29]SAM_PROTO_GetShiftState done [17:03:29]FM_GetShiftState done [17:03:29]req_shift_opened done [17:03:29]requested_item shift.open_date is exist - process it [17:03:29]req_shift_open_date [17:03:29]req_shift_open_date done [17:03:29]produce_requested_data done [17:03:29]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39949,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:03:29]process_action_free close_receipt [17:03:29]json_value_free [17:03:29]json_value_free done [17:03:29]process_json_proto returns [17:03:29]Send response to host [17:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39949,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:03:29]free response buf [17:03:29]execute_script done [17:03:29]execute_script returns [17:03:29]free content buf [17:03:29]Sock 9.Close socket [17:03:29]Sock 9.Thread stoped [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:12]accept exits with 8 [17:08:12]New connection [17:08:12]New thread 3067182436 created [17:08:12]Thread 3067325796 joined [17:08:12]Waiting for new connection... [17:08:12] Sock 8.Parse request [17:08:12]Sock 8.Check first char [17:08:12]Sock 8.First char is OK [17:08:12]request: POST /json_proto HTTP/1.0 [17:08:12]Method: POST [17:08:12]URL: /json_proto [17:08:12]Method is POST - this is cgi request [17:08:12]url: /json_proto [17:08:12]query_string will be loaded in cgi processing [17:08:12]execute_cgi json_proto POST (null) [17:08:12]execute_cgi path=json_proto method=POST [17:08:12]POST find Content-Length [17:08:12]Host: 172.17.36.199:8080 [17:08:12]Content-Length: 634 [17:08:12]Content-Type: application/json [17:08:12] [17:08:12]POST finish read [17:08:12]Found Content-Length = 634 [17:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176509", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:12]execute_script... [17:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176509", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:12]POST & json_proto [17:08:12]process_json_proto [17:08:12]json parsed OK: [17:08:12]protocol is kg_v1.0 [17:08:12]action value=close_receipt [17:08:12]process_action close_receipt [17:08:12]cmd_close_receipt [17:08:12]MH_GetDate [17:08:12]Write to MH i2c: F0 00 00 2D 12 2E [17:08:12]Write i2c OK [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: F0 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: F0 09 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: F0 09 00 2D 12 00 7F F8 5D 66 91 46 04 65 B1 [17:08:12]GetLastDocTimeStamp 1717434208 [17:08:12]current date 1717434495 [17:08:12]FM_GetShiftState [17:08:12]SAM_PROTO_GetShiftState [17:08:12]wFMCommunicate request_size=4 [17:08:12]MH_SAM_APDU [17:08:12]CAPDU: 80 13 01 00 [17:08:12]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [17:08:12]Write i2c OK [17:08:12]MH_I2C_Read... [17:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:12]Read from MH i2c: E2 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E0 [17:08:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:08:12]wFMCommunicate OK [17:08:12]SAM_PROTO_GetShiftState done [17:08:12]FM_GetShiftState done [17:08:12]opened in 1717373769 [17:08:12]opened+sec_in_day 1717460169 [17:08:12]quantity*price = 12000 [17:08:12]sum+1 = 12001 [17:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 68 03.06.2024 17:08 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39950 ФПД: 136179645653894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170815&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39950&fm=136179645653894&tin=02508201610067®Number=0000000000092680&sum=12000 0 [17:08:13]StoreToDocumentArchive [17:08:13]shift 376 fd 39950 [17:08:13]save to /storage/0376/doc_00039950 [17:08:13]save last doc name /storage/0376/doc_00039950 to /storage/kkm_last_doc_name [17:08:13]save OK [17:08:13]Clear old archive folders... [17:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:08:13]tlvbuf is 00E53280 [17:08:13]SAM_PROTO_ClearQueue [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 09 00 00 [17:08:13]Write to MH i2c: E2 08 00 3B 12 80 09 00 00 00 00 00 00 BF [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_ClearQueue done [17:08:13]KKMCreateOFDPacket [17:08:13]OFDProtocolAddRootSTLVToBuf [17:08:13]FM_MakeSignedData [17:08:13]FM_MakeSignedData [17:08:13]SAM_PROTO_SignData [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 01 02 [17:08:13]Write to MH i2c: E2 08 00 3C 12 80 0D 01 02 00 00 00 00 C7 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=255 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7F F8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:08:13]Write to MH i2c: E2 02 01 3D 12 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7F F8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 39 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=30 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 0E 9C 00 00 35 04 06 00 7B DA CB 67 A3 86 [17:08:13]Write to MH i2c: E2 21 00 3E 12 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 0E 9C 00 00 35 04 06 00 7B DA CB 67 A3 86 00 00 22 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 03 02 [17:08:13]Write to MH i2c: E2 08 00 3F 12 80 0D 03 02 00 00 00 00 CC [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0B 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0B 00 3F 12 00 ED 03 F1 AF F4 1F 76 6B 90 00 51 [17:08:13]RAPDU: ED 03 F1 AF F4 1F 76 6B 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_SignData done [17:08:13]FM_MakeSignedData done [17:08:13]CreateOFDProtocolMessage [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 11 00 00 [17:08:13]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 17 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 24 [17:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:08:13]wFMCommunicate OK [17:08:13]CreateOFDProtocolMessage done [17:08:13]OFDSenderStorePacket 39950 [17:08:13]StoreOFDPacket docnum=39950 [17:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 CA 13 1B 01 92 BF 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7F F8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0E 9C 00 00 35 04 06 00 7B DA CB 67 A3 86 ED 03 F1 AF F4 1F 76 6B [17:08:13]CheckFolder [17:08:13]dirname=/storage/ofd_packets [17:08:13]CheckFolder done [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00039950 [17:08:13]NVStorageSaveData ofd_packets/00039950 [17:08:13]File name is /storage/ofd_packets/00039950 [17:08:13]Write 321 bytes [17:08:13]NVStorageSaveData done [17:08:13]OFDSenderStorePacket done [17:08:13]KKMCreateOFDPacket done [17:08:13]NVStorageSaveData kkm_last_timestamp [17:08:13]File name is /storage/kkm_last_timestamp [17:08:13]Write 4 bytes [17:08:13]NVStorageSaveData done [17:08:13]OFD Sender: Processing packet 39950 [packets to send 5, broken 4] [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00039950 [17:08:13]OFD Sender: To server: pG, [17:08:13]CommunicateWithHost lk.salyk.kg:30040 [17:08:13]ConnectInit lk.salyk.kg [17:08:13]ExternCall_PrintAddStr [17:08:13]wPrintStart [17:08:13]Write to MH i2c: 01 00 00 41 12 53 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 07 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [17:08:13]RasterBufferAndPrint [17:08:13]line Счет N : (3)176509 [17:08:13]line ИНН: 02508201610067 [17:08:13]line Контрольно-Кассовый Чек [17:08:13]line ПРОДАЖА [17:08:13]line Товар: 4700025314002 [17:08:13]line ВОДКА МЯГКАЯ 0,1л [17:08:13]line 2.000 * 60.00 [17:08:13]line = 120.00 [17:08:13]line НДС 12% НСП 1% [17:08:13]line > о реализуемом товаре [17:08:13]line ИТОГО: 120.00 [17:08:13]line НСП 1% : 1.06 [17:08:13]line НДС 12% : 12.74 [17:08:13]line Наличными: 120.00 [17:08:13]line Безнал.: 0.00 [17:08:13]line Место: АЗС № 63 "Партнер Нефть" [17:08:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:08:13]line СНО: Общий режим [17:08:13]line Чек 68 03.06.2024 17:08 [17:08:13]line Смена: 376 ФФД: 1.0 [17:08:13]line ЗНМ: 0300000037 [17:08:13]line РНМ: 0000000000092680 [17:08:13]line Версия ККМ: 001 [17:08:13]line ФМ: 0000000000874882 [17:08:13]line ФД: 39950 [17:08:13]line ФПД: 136179645653894 [17:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T170815&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39950&fm=136179645653894&tin=02508201610067®Number=0000000000092680&sum=12000 [17:08:14]line 0 [17:08:14]Connected sock=11 [17:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 CA 13 1B 01 92 BF 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7F F8 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0E 9C 00 00 35 04 06 00 7B DA CB 67 A3 86 ED 03 F1 AF F4 1F 76 6B [17:08:14]written 0, free lines is 4095 [17:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 43 52 47 00 FD 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0E 9C 00 00 F4 03 04 00 2B A1 5D 66 B6 04 01 00 00 EA 19 32 6C 8B 45 70 E7 [17:08:14]CommunicateWithHost err = 0 [17:08:14]CheckOFDResponse [17:08:14]1017 (14) - 77093643461234 [17:08:14]1041 (16) - 0000000000874882 [17:08:14]1040 (4) - 39950 [17:08:14]1012 (4) - 03.06.2024 10:55 [17:08:14]1206 (1) - 0 [17:08:14]OFD Sender: Remove packet 39950 [17:08:14]ProducePacketName [17:08:14]name=ofd_packets/00039950 [17:08:14]NVStorageDeleteData [17:08:14]Write to MH i2c: 01 00 00 69 12 7B [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 69 12 00 00 00 00 00 1B 0D AA [17:08:14]RasterBufferAndPrint [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]written 0, free lines is 3361 [17:08:14]MH_Cut [17:08:14]Write to MH i2c: D1 01 00 70 12 01 54 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 01 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 01 00 70 12 00 53 [17:08:14]Write to MH i2c: 01 00 00 71 12 83 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]OFD Sender: No OFD packet to send [17:08:15]*** Cut start [17:08:15]*** Partial cut [17:08:15]*** CUTSNS_PIN = 1 [17:08:15]*** CUTSNS_PIN = 0 [17:08:15]*** Brake cut motor [17:08:15]Read from MH i2c: 01 [17:08:15]MH_I2C_Read... [17:08:15]*** Stop cut motor [17:08:15]*** Cut end [17:08:15]Read from MH i2c: 01 07 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 71 12 00 00 00 00 00 FF 0F 98 [17:08:15]process_action close_receipt done [17:08:15]requested_data is exist [17:08:15]produce_requested_data [17:08:15]requested_item fm.sn is exist - process it [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 11 00 00 [17:08:15]Write to MH i2c: E2 08 00 72 12 80 11 00 00 00 00 00 00 FE [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 72 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 56 [17:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:08:16]wFMCommunicate OK [17:08:16]requested_item fd.num is exist - process it [17:08:16]SAM_PROTO_GetFieldsCounters [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 13 00 00 [17:08:16]Write to MH i2c: E2 08 00 73 12 80 13 00 00 00 00 00 00 01 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 62 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 62 00 73 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:16]wFMCommunicate OK [17:08:16]SAM_PROTO_GetFieldsCounters done [17:08:16]requested_item shift.num is exist - process it [17:08:16]requested_item shift.opened is exist - process it [17:08:16]req_shift_opened [17:08:16]FM_GetShiftState [17:08:16]SAM_PROTO_GetShiftState [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 13 01 00 [17:08:16]Write to MH i2c: E2 08 00 74 12 80 13 01 00 00 00 00 00 03 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 0E 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 0E 00 74 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 26 [17:08:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:08:16]wFMCommunicate OK [17:08:16]SAM_PROTO_GetShiftState done [17:08:16]FM_GetShiftState done [17:08:16]req_shift_opened done [17:08:16]requested_item shift.open_date is exist - process it [17:08:16]req_shift_open_date [17:08:16]req_shift_open_date done [17:08:16]produce_requested_data done [17:08:16]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39950,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:08:16]process_action_free close_receipt [17:08:16]json_value_free [17:08:16]json_value_free done [17:08:16]process_json_proto returns [17:08:16]Send response to host [17:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39950,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:08:16]free response buf [17:08:16]execute_script done [17:08:16]execute_script returns [17:08:16]free content buf [17:08:16]Sock 8.Close socket [17:08:16]Sock 8.Thread stoped [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]accept exits with 9 [17:18:00]New connection [17:18:00]New thread 3067325796 created [17:18:00]Thread 3067182436 joined [17:18:00]Waiting for new connection... [17:18:00] Sock 9.Parse request [17:18:00]Sock 9.Check first char [17:18:00]Sock 9.First char is OK [17:18:00]request: POST /json_proto HTTP/1.0 [17:18:00]Method: POST [17:18:00]URL: /json_proto [17:18:00]Method is POST - this is cgi request [17:18:00]url: /json_proto [17:18:00]query_string will be loaded in cgi processing [17:18:00]execute_cgi json_proto POST (null) [17:18:00]execute_cgi path=json_proto method=POST [17:18:00]POST find Content-Length [17:18:00]Host: 172.17.36.199:8080 [17:18:00]Content-Length: 1090 [17:18:00]Content-Type: application/json [17:18:00] [17:18:00]POST finish read [17:18:00]Found Content-Length = 1090 [17:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176510", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:00]execute_script... [17:18:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176510", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:00]POST & json_proto [17:18:00]process_json_proto [17:18:00]json parsed OK: [17:18:00]protocol is kg_v1.0 [17:18:00]action value=close_receipt [17:18:00]process_action close_receipt [17:18:00]cmd_close_receipt [17:18:00]MH_GetDate [17:18:00]Write to MH i2c: F0 00 00 75 12 76 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: F0 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: F0 09 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: F0 09 00 75 12 00 CB FA 5D 66 91 46 04 65 47 [17:18:00]GetLastDocTimeStamp 1717434495 [17:18:00]current date 1717435083 [17:18:00]FM_GetShiftState [17:18:00]SAM_PROTO_GetShiftState [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 13 01 00 [17:18:00]Write to MH i2c: E2 08 00 76 12 80 13 01 00 00 00 00 00 05 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]OFD Sender: No OFD packet to send [17:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0E 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0E 00 76 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 28 [17:18:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_GetShiftState done [17:18:00]FM_GetShiftState done [17:18:00]opened in 1717373769 [17:18:00]opened+sec_in_day 1717460169 [17:18:00]quantity*price = 40500 [17:18:00]sum+1 = 40501 [17:18:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159438056 Драже Skittles Кисломикс 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 525.00 НСП 1% : 4.64 НДС 12% : 55.75 Наличными: 0.00 Безнал.: 525.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 69 03.06.2024 17:18 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39951 ФПД: 106152296992798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171803&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39951&fm=106152296992798&tin=02508201610067®Number=0000000000092680&sum=52500 0 [17:18:01]StoreToDocumentArchive [17:18:01]shift 376 fd 39951 [17:18:01]save to /storage/0376/doc_00039951 [17:18:01]save last doc name /storage/0376/doc_00039951 to /storage/kkm_last_doc_name [17:18:01]save OK [17:18:01]Clear old archive folders... [17:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=392 [17:18:01]tlvbuf is 00DE8EC0 [17:18:01]SAM_PROTO_ClearQueue [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 09 00 00 [17:18:01]Write to MH i2c: E2 08 00 83 12 80 09 00 00 00 00 00 00 07 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [17:18:01]RAPDU: 90 00 [17:18:01]wFMCommunicate OK [17:18:01]SAM_PROTO_ClearQueue done [17:18:01]KKMCreateOFDPacket [17:18:01]OFDProtocolAddRootSTLVToBuf [17:18:01]FM_MakeSignedData [17:18:01]FM_MakeSignedData [17:18:01]SAM_PROTO_SignData [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 0D 01 02 [17:18:01]Write to MH i2c: E2 08 00 84 12 80 0D 01 02 00 00 00 00 0F [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [17:18:01]RAPDU: 90 00 [17:18:01]wFMCommunicate OK [17:18:01]wFMCommunicate request_size=255 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [17:18:01]Write to MH i2c: E2 02 01 85 12 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 EB [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [17:18:01]RAPDU: 90 00 [17:18:01]wFMCommunicate OK [17:18:01]wFMCommunicate request_size=151 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 CD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 CB FA 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0F 9C 00 00 35 04 06 00 60 8B 81 F4 50 1E [17:18:01]Write to MH i2c: E2 9A 00 86 12 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 CD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 CB FA 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0F 9C 00 00 35 04 06 00 60 8B 81 F4 50 1E 00 00 BA [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 03 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [17:18:02]RAPDU: 90 00 [17:18:02]wFMCommunicate OK [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 0D 03 02 [17:18:02]Write to MH i2c: E2 08 00 87 12 80 0D 03 02 00 00 00 00 14 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0B 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0B 00 87 12 00 11 C2 3B 78 F7 54 64 9E 90 00 E8 [17:18:02]RAPDU: 11 C2 3B 78 F7 54 64 9E 90 00 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_SignData done [17:18:02]FM_MakeSignedData done [17:18:02]CreateOFDProtocolMessage [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 11 00 00 [17:18:02]Write to MH i2c: E2 08 00 88 12 80 11 00 00 00 00 00 00 14 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 88 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 6C [17:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:18:02]wFMCommunicate OK [17:18:02]CreateOFDProtocolMessage done [17:18:02]OFDSenderStorePacket 39951 [17:18:02]StoreOFDPacket docnum=39951 [17:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9C 01 00 00 0C 8E 94 01 01 5C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 CD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 CB FA 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0F 9C 00 00 35 04 06 00 60 8B 81 F4 50 1E 11 C2 3B 78 F7 54 64 9E [17:18:02]CheckFolder [17:18:02]dirname=/storage/ofd_packets [17:18:02]CheckFolder done [17:18:02]ProducePacketName [17:18:02]name=ofd_packets/00039951 [17:18:02]NVStorageSaveData ofd_packets/00039951 [17:18:02]File name is /storage/ofd_packets/00039951 [17:18:02]Write 442 bytes [17:18:02]NVStorageSaveData done [17:18:02]OFDSenderStorePacket done [17:18:02]KKMCreateOFDPacket done [17:18:02]NVStorageSaveData kkm_last_timestamp [17:18:02]File name is /storage/kkm_last_timestamp [17:18:02]Write 4 bytes [17:18:02]NVStorageSaveData done [17:18:02]ExternCall_PrintAddStr [17:18:02]wPrintStart [17:18:02]Write to MH i2c: 01 00 00 89 12 9B [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [17:18:02]RasterBufferAndPrint [17:18:02]line Счет N : (3)176510 [17:18:02]line ИНН: 02508201610067 [17:18:02]line Контрольно-Кассовый Чек [17:18:02]line ПРОДАЖА [17:18:02]line Товар: 4607161615386 [17:18:02]line Лукойл Супер 10W40 SG/CD 1л. [17:18:02]line 1.000 * 405.00 [17:18:02]line = 405.00 [17:18:02]line НДС 12% НСП 1% [17:18:02]line > о реализуемом товаре [17:18:02]line Товар: 5000159438056 [17:18:02]line Драже Skittles Кисломикс [17:18:02]line 2.000 * 60.00 [17:18:02]line = 120.00 [17:18:02]line НДС 12% НСП 1% [17:18:02]line > о реализуемом товаре [17:18:02]line ИТОГО: 525.00 [17:18:02]line НСП 1% : 4.64 [17:18:02]line НДС 12% : 55.75 [17:18:02]line Наличными: 0.00 [17:18:02]line Безнал.: 525.00 [17:18:02]line Место: АЗС № 63 "Партнер Нефть" [17:18:02]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:18:02]line СНО: Общий режим [17:18:02]line Чек 69 03.06.2024 17:18 [17:18:02]line Смена: 376 ФФД: 1.0 [17:18:02]line ЗНМ: 0300000037 [17:18:02]line РНМ: 0000000000092680 [17:18:02]line Версия ККМ: 001 [17:18:02]line Платежная система: Бакай Банк [17:18:02]line ФМ: 0000000000874882 [17:18:02]line ФД: 39951 [17:18:02]line ФПД: 106152296992798 [17:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171803&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39951&fm=106152296992798&tin=02508201610067®Number=0000000000092680&sum=52500 [17:18:02]line 0 [17:18:02]written 0, free lines is 4095 [17:18:02]OFD Sender: Processing packet 39951 [packets to send 5, broken 4] [17:18:02]ProducePacketName [17:18:02]name=ofd_packets/00039951 [17:18:02]OFD Sender: To server: pG, [17:18:02]CommunicateWithHost lk.salyk.kg:30040 [17:18:02]ConnectInit lk.salyk.kg [17:18:02]Connected sock=10 [17:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9C 01 00 00 0C 8E 94 01 01 5C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 CD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 CB FA 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0F 9C 00 00 35 04 06 00 60 8B 81 F4 50 1E 11 C2 3B 78 F7 54 64 9E [17:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 13 8C 47 00 15 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 0F 9C 00 00 F4 03 04 00 77 A3 5D 66 B6 04 01 00 00 7D A1 11 25 8B 12 D8 EE [17:18:02]CommunicateWithHost err = 0 [17:18:02]CheckOFDResponse [17:18:02]1017 (14) - 77093643461234 [17:18:02]1041 (16) - 0000000000874882 [17:18:02]1040 (4) - 39951 [17:18:02]1012 (4) - 03.06.2024 11:05 [17:18:02]1206 (1) - 0 [17:18:02]OFD Sender: Remove packet 39951 [17:18:02]ProducePacketName [17:18:02]name=ofd_packets/00039951 [17:18:02]NVStorageDeleteData [17:18:02]Write to MH i2c: 01 00 00 BA 12 CC [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 B0 0C 8F [17:18:02]RasterBufferAndPrint [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]written 0, free lines is 3257 [17:18:02]MH_Cut [17:18:02]Write to MH i2c: D1 01 00 C1 12 01 A5 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 01 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 01 00 C1 12 00 A4 [17:18:02]Write to MH i2c: 01 00 00 C2 12 D4 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:03]OFD Sender: No OFD packet to send [17:18:03]*** Cut start [17:18:03]*** Partial cut [17:18:03]*** CUTSNS_PIN = 1 [17:18:03]*** CUTSNS_PIN = 0 [17:18:03]*** Brake cut motor [17:18:04]Read from MH i2c: 01 [17:18:04]MH_I2C_Read... [17:18:04]*** Stop cut motor [17:18:04]*** Cut end [17:18:04]Read from MH i2c: 01 07 00 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: 01 07 00 C2 12 00 00 00 00 00 FF 0F E9 [17:18:04]process_action close_receipt done [17:18:04]requested_data is exist [17:18:04]produce_requested_data [17:18:04]requested_item fm.sn is exist - process it [17:18:04]wFMCommunicate request_size=4 [17:18:04]MH_SAM_APDU [17:18:04]CAPDU: 80 11 00 00 [17:18:04]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [17:18:04]Write i2c OK [17:18:04]MH_I2C_Read... [17:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:04]Read from MH i2c: E2 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 17 00 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A7 [17:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:18:04]wFMCommunicate OK [17:18:04]requested_item fd.num is exist - process it [17:18:04]SAM_PROTO_GetFieldsCounters [17:18:04]wFMCommunicate request_size=4 [17:18:04]MH_SAM_APDU [17:18:04]CAPDU: 80 13 00 00 [17:18:04]Write to MH i2c: E2 08 00 C4 12 80 13 00 00 00 00 00 00 52 [17:18:04]Write i2c OK [17:18:04]MH_I2C_Read... [17:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:04]Read from MH i2c: E2 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 62 00 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 62 00 C4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 0F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:04]wFMCommunicate OK [17:18:04]SAM_PROTO_GetFieldsCounters done [17:18:04]requested_item shift.num is exist - process it [17:18:04]requested_item shift.opened is exist - process it [17:18:04]req_shift_opened [17:18:04]FM_GetShiftState [17:18:04]SAM_PROTO_GetShiftState [17:18:04]wFMCommunicate request_size=4 [17:18:04]MH_SAM_APDU [17:18:04]CAPDU: 80 13 01 00 [17:18:04]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [17:18:04]Write i2c OK [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 [17:18:04]MH_I2C_Read... [17:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:04]Read from MH i2c: E2 0E 00 [17:18:04]MH_I2C_Read... [17:18:04]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 77 [17:18:04]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:18:04]wFMCommunicate OK [17:18:04]SAM_PROTO_GetShiftState done [17:18:04]FM_GetShiftState done [17:18:04]req_shift_opened done [17:18:04]requested_item shift.open_date is exist - process it [17:18:04]req_shift_open_date [17:18:04]req_shift_open_date done [17:18:04]produce_requested_data done [17:18:04]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39951,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:18:04]process_action_free close_receipt [17:18:04]json_value_free [17:18:04]json_value_free done [17:18:04]process_json_proto returns [17:18:04]Send response to host [17:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39951,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:18:04]free response buf [17:18:04]execute_script done [17:18:04]execute_script returns [17:18:04]free content buf [17:18:04]Sock 9.Close socket [17:18:04]Sock 9.Thread stoped [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:21]accept exits with 8 [17:20:21]New connection [17:20:21]New thread 3067182436 created [17:20:21]Thread 3067325796 joined [17:20:21]Waiting for new connection... [17:20:21] Sock 8.Parse request [17:20:21]Sock 8.Check first char [17:20:21]Sock 8.First char is OK [17:20:21]request: POST /json_proto HTTP/1.0 [17:20:21]Method: POST [17:20:21]URL: /json_proto [17:20:21]Method is POST - this is cgi request [17:20:21]url: /json_proto [17:20:21]query_string will be loaded in cgi processing [17:20:21]execute_cgi json_proto POST (null) [17:20:21]execute_cgi path=json_proto method=POST [17:20:21]POST find Content-Length [17:20:21]Host: 172.17.36.199:8080 [17:20:21]Content-Length: 621 [17:20:21]Content-Type: application/json [17:20:21] [17:20:21]POST finish read [17:20:21]Found Content-Length = 621 [17:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176511", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:21]execute_script... [17:20:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176511", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:21]POST & json_proto [17:20:21]process_json_proto [17:20:21]json parsed OK: [17:20:21]protocol is kg_v1.0 [17:20:21]action value=close_receipt [17:20:21]process_action close_receipt [17:20:21]cmd_close_receipt [17:20:21]MH_GetDate [17:20:21]Write to MH i2c: F0 00 00 C6 12 C7 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 09 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 09 00 C6 12 00 58 FB 5D 66 91 46 04 65 26 [17:20:21]GetLastDocTimeStamp 1717435083 [17:20:21]current date 1717435224 [17:20:21]FM_GetShiftState [17:20:21]SAM_PROTO_GetShiftState [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 13 01 00 [17:20:21]Write to MH i2c: E2 08 00 C7 12 80 13 01 00 00 00 00 00 56 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0E 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0E 00 C7 12 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 79 [17:20:21]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:20:21]wFMCommunicate OK [17:20:21]SAM_PROTO_GetShiftState done [17:20:21]FM_GetShiftState done [17:20:21]opened in 1717373769 [17:20:21]opened+sec_in_day 1717460169 [17:20:21]quantity*price = 14000 [17:20:21]sum+1 = 14001 [17:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 70 03.06.2024 17:20 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39952 ФПД: 252053433432853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172024&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39952&fm=252053433432853&tin=02508201610067®Number=0000000000092680&sum=14000 0 [17:20:22]StoreToDocumentArchive [17:20:22]shift 376 fd 39952 [17:20:22]save to /storage/0376/doc_00039952 [17:20:22]save last doc name /storage/0376/doc_00039952 to /storage/kkm_last_doc_name [17:20:22]save OK [17:20:22]Clear old archive folders... [17:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:20:22]tlvbuf is 00E53590 [17:20:22]SAM_PROTO_ClearQueue [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 09 00 00 [17:20:22]Write to MH i2c: E2 08 00 D4 12 80 09 00 00 00 00 00 00 58 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]SAM_PROTO_ClearQueue done [17:20:22]KKMCreateOFDPacket [17:20:22]OFDProtocolAddRootSTLVToBuf [17:20:22]FM_MakeSignedData [17:20:22]FM_MakeSignedData [17:20:22]SAM_PROTO_SignData [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 01 02 [17:20:22]Write to MH i2c: E2 08 00 D5 12 80 0D 01 02 00 00 00 00 60 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=255 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 FB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [17:20:22]Write to MH i2c: E2 02 01 D6 12 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 FB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 2A [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=32 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 10 9C 00 00 35 04 06 00 E5 3D C3 5D 3B 15 [17:20:22]Write to MH i2c: E2 23 00 D7 12 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 10 9C 00 00 35 04 06 00 E5 3D C3 5D 3B 15 00 00 03 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 03 02 [17:20:22]Write to MH i2c: E2 08 00 D8 12 80 0D 03 02 00 00 00 00 65 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 0B 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 0B 00 D8 12 00 7A 8F AA 89 F5 53 E7 35 90 00 06 [17:20:22]RAPDU: 7A 8F AA 89 F5 53 E7 35 90 00 [17:20:22]wFMCommunicate OK [17:20:22]SAM_PROTO_SignData done [17:20:22]FM_MakeSignedData done [17:20:22]CreateOFDProtocolMessage [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 11 00 00 [17:20:22]Write to MH i2c: E2 08 00 D9 12 80 11 00 00 00 00 00 00 65 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 17 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 17 00 D9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BD [17:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:20:22]wFMCommunicate OK [17:20:22]CreateOFDProtocolMessage done [17:20:22]OFDSenderStorePacket 39952 [17:20:22]StoreOFDPacket docnum=39952 [17:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 2A 6C 1D 01 82 4C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 FB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 10 9C 00 00 35 04 06 00 E5 3D C3 5D 3B 15 7A 8F AA 89 F5 53 E7 35 [17:20:22]CheckFolder [17:20:22]dirname=/storage/ofd_packets [17:20:22]CheckFolder done [17:20:22]ProducePacketName [17:20:22]name=ofd_packets/00039952 [17:20:22]NVStorageSaveData ofd_packets/00039952 [17:20:22]File name is /storage/ofd_packets/00039952 [17:20:22]Write 323 bytes [17:20:22]NVStorageSaveData done [17:20:22]OFDSenderStorePacket done [17:20:22]KKMCreateOFDPacket done [17:20:22]NVStorageSaveData kkm_last_timestamp [17:20:22]File name is /storage/kkm_last_timestamp [17:20:22]Write 4 bytes [17:20:22]NVStorageSaveData done [17:20:22]ExternCall_PrintAddStr [17:20:22]wPrintStart [17:20:22]Write to MH i2c: 01 00 00 DA 12 EC [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 07 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [17:20:22]RasterBufferAndPrint [17:20:22]line Счет N : (3)176511 [17:20:22]line ИНН: 02508201610067 [17:20:22]line Контрольно-Кассовый Чек [17:20:22]line ПРОДАЖА [17:20:22]line Товар: 48743570 [17:20:22]line Сигареты Winston XStyle Blue [17:20:22]line 1.000 * 140.00 [17:20:22]line = 140.00 [17:20:22]line НДС 12% НСП 1% [17:20:22]line > о реализуемом товаре [17:20:22]line ИТОГО: 140.00 [17:20:22]line НСП 1% : 1.24 [17:20:22]line НДС 12% : 14.87 [17:20:22]line Наличными: 140.00 [17:20:22]line Безнал.: 0.00 [17:20:22]line Место: АЗС № 63 "Партнер Нефть" [17:20:22]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:20:22]line СНО: Общий режим [17:20:22]line Чек 70 03.06.2024 17:20 [17:20:22]line Смена: 376 ФФД: 1.0 [17:20:22]line ЗНМ: 0300000037 [17:20:22]line РНМ: 0000000000092680 [17:20:22]line Версия ККМ: 001 [17:20:22]line ФМ: 0000000000874882 [17:20:22]line ФД: 39952 [17:20:22]line ФПД: 252053433432853 [17:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172024&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39952&fm=252053433432853&tin=02508201610067®Number=0000000000092680&sum=14000 [17:20:23]line 0 [17:20:23]OFD Sender: Processing packet 39952 [packets to send 5, broken 4] [17:20:23]ProducePacketName [17:20:23]name=ofd_packets/00039952 [17:20:23]OFD Sender: To server: pG, [17:20:23]CommunicateWithHost lk.salyk.kg:30040 [17:20:23]ConnectInit lk.salyk.kg [17:20:23]written 0, free lines is 4095 [17:20:23]Connected sock=11 [17:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 2A 6C 1D 01 82 4C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 FB 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 10 9C 00 00 35 04 06 00 E5 3D C3 5D 3B 15 7A 8F AA 89 F5 53 E7 35 [17:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 F9 E7 47 00 45 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 10 9C 00 00 F4 03 04 00 04 A4 5D 66 B6 04 01 00 00 BA A7 E3 70 08 93 49 26 [17:20:23]CommunicateWithHost err = 0 [17:20:23]CheckOFDResponse [17:20:23]1017 (14) - 77093643461234 [17:20:23]1041 (16) - 0000000000874882 [17:20:23]1040 (4) - 39952 [17:20:23]1012 (4) - 03.06.2024 11:07 [17:20:23]1206 (1) - 0 [17:20:23]OFD Sender: Remove packet 39952 [17:20:23]ProducePacketName [17:20:23]name=ofd_packets/00039952 [17:20:23]NVStorageDeleteData [17:20:23]Write to MH i2c: 01 00 00 02 13 15 [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 12 0D 3B [17:20:23]RasterBufferAndPrint [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]written 0, free lines is 3353 [17:20:23]MH_Cut [17:20:23]Write to MH i2c: D1 01 00 09 13 01 EE [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 01 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 01 00 09 13 00 ED [17:20:23]Write to MH i2c: 01 00 00 0A 13 1D [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]OFD Sender: No OFD packet to send [17:20:24]*** Cut start [17:20:24]*** Partial cut [17:20:24]*** CUTSNS_PIN = 1 [17:20:24]*** CUTSNS_PIN = 0 [17:20:24]*** Brake cut motor [17:20:24]Read from MH i2c: 01 [17:20:24]MH_I2C_Read... [17:20:24]*** Stop cut motor [17:20:24]*** Cut end [17:20:24]Read from MH i2c: 01 07 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [17:20:24]process_action close_receipt done [17:20:24]requested_data is exist [17:20:24]produce_requested_data [17:20:24]requested_item fm.sn is exist - process it [17:20:24]wFMCommunicate request_size=4 [17:20:24]MH_SAM_APDU [17:20:24]CAPDU: 80 11 00 00 [17:20:24]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:24]Read from MH i2c: E2 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 17 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F0 [17:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:20:24]wFMCommunicate OK [17:20:24]requested_item fd.num is exist - process it [17:20:24]SAM_PROTO_GetFieldsCounters [17:20:24]wFMCommunicate request_size=4 [17:20:24]MH_SAM_APDU [17:20:24]CAPDU: 80 13 00 00 [17:20:24]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 62 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 62 00 0C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 10 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [17:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 10 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:25]wFMCommunicate OK [17:20:25]SAM_PROTO_GetFieldsCounters done [17:20:25]requested_item shift.num is exist - process it [17:20:25]requested_item shift.opened is exist - process it [17:20:25]req_shift_opened [17:20:25]FM_GetShiftState [17:20:25]SAM_PROTO_GetShiftState [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 13 01 00 [17:20:25]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 0E 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C0 [17:20:25]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:20:25]wFMCommunicate OK [17:20:25]SAM_PROTO_GetShiftState done [17:20:25]FM_GetShiftState done [17:20:25]req_shift_opened done [17:20:25]requested_item shift.open_date is exist - process it [17:20:25]req_shift_open_date [17:20:25]req_shift_open_date done [17:20:25]produce_requested_data done [17:20:25]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39952,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:20:25]process_action_free close_receipt [17:20:25]json_value_free [17:20:25]json_value_free done [17:20:25]process_json_proto returns [17:20:25]Send response to host [17:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39952,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:20:25]free response buf [17:20:25]execute_script done [17:20:25]execute_script returns [17:20:25]free content buf [17:20:25]Sock 8.Close socket [17:20:25]Sock 8.Thread stoped [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:53]accept exits with 9 [17:34:53]New connection [17:34:53]New thread 3067325796 created [17:34:53]Thread 3067182436 joined [17:34:53]Waiting for new connection... [17:34:53] Sock 9.Parse request [17:34:53]Sock 9.Check first char [17:34:53]Sock 9.First char is OK [17:34:53]request: POST /json_proto HTTP/1.0 [17:34:53]Method: POST [17:34:53]URL: /json_proto [17:34:53]Method is POST - this is cgi request [17:34:53]url: /json_proto [17:34:53]query_string will be loaded in cgi processing [17:34:53]execute_cgi json_proto POST (null) [17:34:53]execute_cgi path=json_proto method=POST [17:34:53]POST find Content-Length [17:34:53]Host: 172.17.36.199:8080 [17:34:53]Content-Length: 633 [17:34:53]Content-Type: application/json [17:34:53] [17:34:53]POST finish read [17:34:53]Found Content-Length = 633 [17:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176512", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:53]execute_script... [17:34:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176512", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:53]POST & json_proto [17:34:53]process_json_proto [17:34:53]json parsed OK: [17:34:53]protocol is kg_v1.0 [17:34:53]action value=close_receipt [17:34:53]process_action close_receipt [17:34:53]cmd_close_receipt [17:34:53]MH_GetDate [17:34:53]Write to MH i2c: F0 00 00 0E 13 10 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: F0 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: F0 09 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: F0 09 00 0E 13 00 C0 FE 5D 66 91 46 04 65 DA [17:34:53]GetLastDocTimeStamp 1717435224 [17:34:53]current date 1717436096 [17:34:53]FM_GetShiftState [17:34:53]SAM_PROTO_GetShiftState [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 01 00 [17:34:53]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C2 [17:34:53]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetShiftState done [17:34:53]FM_GetShiftState done [17:34:53]opened in 1717373769 [17:34:53]opened+sec_in_day 1717460169 [17:34:53]quantity*price = 8500 [17:34:53]sum+1 = 8501 [17:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 71 03.06.2024 17:34 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39953 ФПД: 273270347919135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173456&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39953&fm=273270347919135&tin=02508201610067®Number=0000000000092680&sum=8500 0 [17:34:54]StoreToDocumentArchive [17:34:54]shift 376 fd 39953 [17:34:54]save to /storage/0376/doc_00039953 [17:34:54]save last doc name /storage/0376/doc_00039953 to /storage/kkm_last_doc_name [17:34:54]save OK [17:34:54]Clear old archive folders... [17:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:34:54]tlvbuf is 00DE8B20 [17:34:54]SAM_PROTO_ClearQueue [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 09 00 00 [17:34:54]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_ClearQueue done [17:34:54]KKMCreateOFDPacket [17:34:54]OFDProtocolAddRootSTLVToBuf [17:34:54]FM_MakeSignedData [17:34:54]FM_MakeSignedData [17:34:54]SAM_PROTO_SignData [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 01 02 [17:34:54]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=255 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C0 FE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [17:34:54]Write to MH i2c: E2 02 01 1E 13 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C0 FE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 0C [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]OFD Sender: No OFD packet to send [17:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=31 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 11 9C 00 00 35 04 06 00 F8 89 B6 03 EF 1F [17:34:54]Write to MH i2c: E2 22 00 1F 13 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 11 9C 00 00 35 04 06 00 F8 89 B6 03 EF 1F 00 00 D1 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 03 02 [17:34:54]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0B 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0B 00 20 13 00 EC 15 19 AA F8 B8 0A 73 90 00 A0 [17:34:54]RAPDU: EC 15 19 AA F8 B8 0A 73 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_SignData done [17:34:54]FM_MakeSignedData done [17:34:54]CreateOFDProtocolMessage [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 11 00 00 [17:34:54]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 06 [17:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:34:54]wFMCommunicate OK [17:34:54]CreateOFDProtocolMessage done [17:34:54]OFDSenderStorePacket 39953 [17:34:54]StoreOFDPacket docnum=39953 [17:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 C2 67 1C 01 EB 0B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C0 FE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 11 9C 00 00 35 04 06 00 F8 89 B6 03 EF 1F EC 15 19 AA F8 B8 0A 73 [17:34:54]CheckFolder [17:34:54]dirname=/storage/ofd_packets [17:34:54]CheckFolder done [17:34:54]ProducePacketName [17:34:54]name=ofd_packets/00039953 [17:34:54]NVStorageSaveData ofd_packets/00039953 [17:34:54]File name is /storage/ofd_packets/00039953 [17:34:54]Write 322 bytes [17:34:54]NVStorageSaveData done [17:34:54]OFDSenderStorePacket done [17:34:54]KKMCreateOFDPacket done [17:34:54]NVStorageSaveData kkm_last_timestamp [17:34:54]File name is /storage/kkm_last_timestamp [17:34:54]Write 4 bytes [17:34:54]NVStorageSaveData done [17:34:54]ExternCall_PrintAddStr [17:34:54]wPrintStart [17:34:54]Write to MH i2c: 01 00 00 22 13 35 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 07 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [17:34:54]RasterBufferAndPrint [17:34:54]line Счет N : (3)176512 [17:34:54]line ИНН: 02508201610067 [17:34:54]line Контрольно-Кассовый Чек [17:34:54]line ПРОДАЖА [17:34:54]line Товар: 5449000014535 [17:34:54]line Напит Спрайт 0,33л [17:34:54]line 1.000 * 85.00 [17:34:54]line = 85.00 [17:34:54]line НДС 12% НСП 1% [17:34:54]line > о реализуемом товаре [17:34:54]line ИТОГО: 85.00 [17:34:54]line НСП 1% : 0.75 [17:34:54]line НДС 12% : 9.03 [17:34:54]line Наличными: 85.00 [17:34:54]line Безнал.: 0.00 [17:34:54]line Место: АЗС № 63 "Партнер Нефть" [17:34:54]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:34:54]line СНО: Общий режим [17:34:54]line Чек 71 03.06.2024 17:34 [17:34:54]line Смена: 376 ФФД: 1.0 [17:34:54]line ЗНМ: 0300000037 [17:34:54]line РНМ: 0000000000092680 [17:34:54]line Версия ККМ: 001 [17:34:54]line ФМ: 0000000000874882 [17:34:54]line ФД: 39953 [17:34:54]line ФПД: 273270347919135 [17:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173456&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39953&fm=273270347919135&tin=02508201610067®Number=0000000000092680&sum=8500 [17:34:54]line 0 [17:34:55]written 0, free lines is 4095 [17:34:55]OFD Sender: Processing packet 39953 [packets to send 5, broken 4] [17:34:55]ProducePacketName [17:34:55]name=ofd_packets/00039953 [17:34:55]OFD Sender: To server: pG, [17:34:55]CommunicateWithHost lk.salyk.kg:30040 [17:34:55]ConnectInit lk.salyk.kg [17:34:55]Connected sock=10 [17:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 C2 67 1C 01 EB 0B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C0 FE 5D 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 11 9C 00 00 35 04 06 00 F8 89 B6 03 EF 1F EC 15 19 AA F8 B8 0A 73 [17:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 FD C8 47 00 4E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 11 9C 00 00 F4 03 04 00 6C A7 5D 66 B6 04 01 00 00 E4 B6 4C A4 D5 F3 F8 75 [17:34:55]CommunicateWithHost err = 0 [17:34:55]CheckOFDResponse [17:34:55]1017 (14) - 77093643461234 [17:34:55]1041 (16) - 0000000000874882 [17:34:55]1040 (4) - 39953 [17:34:55]1012 (4) - 03.06.2024 11:22 [17:34:55]1206 (1) - 0 [17:34:55]OFD Sender: Remove packet 39953 [17:34:55]ProducePacketName [17:34:55]name=ofd_packets/00039953 [17:34:55]NVStorageDeleteData [17:34:55]Write to MH i2c: 01 00 00 4A 13 5D [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 07 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 15 0D 86 [17:34:55]RasterBufferAndPrint [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]written 0, free lines is 3353 [17:34:55]MH_Cut [17:34:55]Write to MH i2c: D1 01 00 51 13 01 36 [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 01 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 01 00 51 13 00 35 [17:34:55]Write to MH i2c: 01 00 00 52 13 65 [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:56]OFD Sender: No OFD packet to send [17:34:56]*** Cut start [17:34:56]*** Partial cut [17:34:56]*** CUTSNS_PIN = 1 [17:34:56]*** CUTSNS_PIN = 0 [17:34:56]*** Brake cut motor [17:34:56]Read from MH i2c: 01 [17:34:56]MH_I2C_Read... [17:34:56]*** Stop cut motor [17:34:56]*** Cut end [17:34:56]Read from MH i2c: 01 07 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: 01 07 00 52 13 00 00 00 00 00 FF 0F 7A [17:34:56]process_action close_receipt done [17:34:56]requested_data is exist [17:34:56]produce_requested_data [17:34:56]requested_item fm.sn is exist - process it [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 11 00 00 [17:34:56]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:56]Read from MH i2c: E2 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 17 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 38 [17:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:34:56]wFMCommunicate OK [17:34:56]requested_item fd.num is exist - process it [17:34:56]SAM_PROTO_GetFieldsCounters [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 13 00 00 [17:34:56]Write to MH i2c: E2 08 00 54 13 80 13 00 00 00 00 00 00 E3 [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 62 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 62 00 54 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 11 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 11 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:57]wFMCommunicate OK [17:34:57]SAM_PROTO_GetFieldsCounters done [17:34:57]requested_item shift.num is exist - process it [17:34:57]requested_item shift.opened is exist - process it [17:34:57]req_shift_opened [17:34:57]FM_GetShiftState [17:34:57]SAM_PROTO_GetShiftState [17:34:57]wFMCommunicate request_size=4 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 13 01 00 [17:34:57]Write to MH i2c: E2 08 00 55 13 80 13 01 00 00 00 00 00 E5 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0E 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0E 00 55 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 08 [17:34:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:34:57]wFMCommunicate OK [17:34:57]SAM_PROTO_GetShiftState done [17:34:57]FM_GetShiftState done [17:34:57]req_shift_opened done [17:34:57]requested_item shift.open_date is exist - process it [17:34:57]req_shift_open_date [17:34:57]req_shift_open_date done [17:34:57]produce_requested_data done [17:34:57]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39953,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:34:57]process_action_free close_receipt [17:34:57]json_value_free [17:34:57]json_value_free done [17:34:57]process_json_proto returns [17:34:57]Send response to host [17:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39953,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:34:57]free response buf [17:34:57]execute_script done [17:34:57]execute_script returns [17:34:57]free content buf [17:34:57]Sock 9.Close socket [17:34:57]Sock 9.Thread stoped [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:58:57]accept exits with 8 [17:58:57]New connection [17:58:57]New thread 3067182436 created [17:58:57]Thread 3067325796 joined [17:58:57]Waiting for new connection... [17:58:57] Sock 8.Parse request [17:58:57]Sock 8.Check first char [17:58:57]Sock 8.First char is OK [17:58:57]request: POST /json_proto HTTP/1.0 [17:58:57]Method: POST [17:58:57]URL: /json_proto [17:58:57]Method is POST - this is cgi request [17:58:57]url: /json_proto [17:58:57]query_string will be loaded in cgi processing [17:58:57]execute_cgi json_proto POST (null) [17:58:57]execute_cgi path=json_proto method=POST [17:58:57]POST find Content-Length [17:58:57]Host: 172.17.36.199:8080 [17:58:57]Content-Length: 786 [17:58:57]Content-Type: application/json [17:58:57] [17:58:57]POST finish read [17:58:57]Found Content-Length = 786 [17:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176513", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:57]execute_script... [17:58:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176513", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:57]POST & json_proto [17:58:57]process_json_proto [17:58:57]json parsed OK: [17:58:57]protocol is kg_v1.0 [17:58:57]action value=close_receipt [17:58:57]process_action close_receipt [17:58:57]cmd_close_receipt [17:58:57]MH_GetDate [17:58:57]Write to MH i2c: F0 00 00 56 13 58 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: F0 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: F0 09 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: F0 09 00 56 13 00 64 04 5E 66 91 46 04 65 CD [17:58:57]GetLastDocTimeStamp 1717436096 [17:58:57]current date 1717437540 [17:58:57]FM_GetShiftState [17:58:57]SAM_PROTO_GetShiftState [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 13 01 00 [17:58:57]Write to MH i2c: E2 08 00 57 13 80 13 01 00 00 00 00 00 E7 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 57 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 0A [17:58:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_GetShiftState done [17:58:57]FM_GetShiftState done [17:58:57]opened in 1717373769 [17:58:57]opened+sec_in_day 1717460169 [17:58:57]quantity*price = 4500 [17:58:57]sum+1 = 4501 [17:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 72 03.06.2024 17:59 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39954 ФПД: 69194608967723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175900&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39954&fm=69194608967723&tin=02508201610067®Number=0000000000092680&sum=4500 0 [17:58:58]StoreToDocumentArchive [17:58:58]shift 376 fd 39954 [17:58:58]save to /storage/0376/doc_00039954 [17:58:58]save last doc name /storage/0376/doc_00039954 to /storage/kkm_last_doc_name [17:58:58]save OK [17:58:58]Clear old archive folders... [17:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=260 [17:58:58]tlvbuf is 00DE8CC0 [17:58:58]SAM_PROTO_ClearQueue [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 09 00 00 [17:58:58]Write to MH i2c: E2 08 00 64 13 80 09 00 00 00 00 00 00 E9 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]SAM_PROTO_ClearQueue done [17:58:58]KKMCreateOFDPacket [17:58:58]OFDProtocolAddRootSTLVToBuf [17:58:58]FM_MakeSignedData [17:58:58]FM_MakeSignedData [17:58:58]SAM_PROTO_SignData [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 01 02 [17:58:58]Write to MH i2c: E2 08 00 65 13 80 0D 01 02 00 00 00 00 F1 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]wFMCommunicate request_size=255 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 64 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 [17:58:58]Write to MH i2c: E2 02 01 66 13 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 64 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 00 00 EF [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]wFMCommunicate request_size=19 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 02 02 0E 12 9C 00 00 35 04 06 00 3E EE A0 16 80 2B [17:58:58]Write to MH i2c: E2 16 00 67 13 80 0D 02 02 0E 00 12 9C 00 00 35 04 06 00 3E EE A0 16 80 2B 00 00 8A [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 03 02 [17:58:58]Write to MH i2c: E2 08 00 68 13 80 0D 03 02 00 00 00 00 F6 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 0B 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 0B 00 68 13 00 2E CF E0 DC 22 E9 0F 83 90 00 4D [17:58:58]RAPDU: 2E CF E0 DC 22 E9 0F 83 90 00 [17:58:58]wFMCommunicate OK [17:58:58]SAM_PROTO_SignData done [17:58:58]FM_MakeSignedData done [17:58:58]CreateOFDProtocolMessage [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 11 00 00 [17:58:58]Write to MH i2c: E2 08 00 69 13 80 11 00 00 00 00 00 00 F6 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 17 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 17 00 69 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 4E [17:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:58:58]wFMCommunicate OK [17:58:58]CreateOFDProtocolMessage done [17:58:58]OFDSenderStorePacket 39954 [17:58:58]StoreOFDPacket docnum=39954 [17:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 18 01 00 00 77 2B 10 01 FD 1E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 64 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 12 9C 00 00 35 04 06 00 3E EE A0 16 80 2B 2E CF E0 DC 22 E9 0F 83 [17:58:58]CheckFolder [17:58:58]dirname=/storage/ofd_packets [17:58:58]CheckFolder done [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00039954 [17:58:58]NVStorageSaveData ofd_packets/00039954 [17:58:58]File name is /storage/ofd_packets/00039954 [17:58:58]Write 310 bytes [17:58:58]NVStorageSaveData done [17:58:58]OFDSenderStorePacket done [17:58:58]KKMCreateOFDPacket done [17:58:58]NVStorageSaveData kkm_last_timestamp [17:58:58]File name is /storage/kkm_last_timestamp [17:58:58]Write 4 bytes [17:58:58]NVStorageSaveData done [17:58:58]ExternCall_PrintAddStr [17:58:58]wPrintStart [17:58:58]Write to MH i2c: 01 00 00 6A 13 7D [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 FF 0F 92 [17:58:58]RasterBufferAndPrint [17:58:58]line Счет N : (3)176513 [17:58:58]line ИНН: 02508201610067 [17:58:58]line Контрольно-Кассовый Чек [17:58:58]line ПРОДАЖА [17:58:58]line Товар: 50173808 [17:58:58]line Жев Orbit Sweet Mint [17:58:58]line 1.000 * 45.00 [17:58:58]line = 45.00 [17:58:58]line НДС 12% НСП 1% [17:58:58]line > о реализуемом товаре [17:58:58]line ИТОГО: 45.00 [17:58:58]line НСП 1% : 0.40 [17:58:58]line НДС 12% : 4.78 [17:58:58]line Наличными: 0.00 [17:58:58]line Безнал.: 45.00 [17:58:58]line Место: АЗС № 63 "Партнер Нефть" [17:58:58]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [17:58:58]line СНО: Общий режим [17:58:58]line Чек 72 03.06.2024 17:59 [17:58:58]line Смена: 376 ФФД: 1.0 [17:58:58]line ЗНМ: 0300000037 [17:58:58]line РНМ: 0000000000092680 [17:58:58]line Версия ККМ: 001 [17:58:58]line Платежная система: АКБ Кыргызстан [17:58:58]line ФМ: 0000000000874882 [17:58:58]line ФД: 39954 [17:58:58]line ФПД: 69194608967723 [17:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175900&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39954&fm=69194608967723&tin=02508201610067®Number=0000000000092680&sum=4500 [17:58:59]line 0 [17:58:59]OFD Sender: Processing packet 39954 [packets to send 5, broken 4] [17:58:59]ProducePacketName [17:58:59]name=ofd_packets/00039954 [17:58:59]OFD Sender: To server: pG, [17:58:59]CommunicateWithHost lk.salyk.kg:30040 [17:58:59]ConnectInit lk.salyk.kg [17:58:59]written 0, free lines is 4095 [17:58:59]Connected sock=11 [17:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 18 01 00 00 77 2B 10 01 FD 1E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 64 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 12 9C 00 00 35 04 06 00 3E EE A0 16 80 2B 2E CF E0 DC 22 E9 0F 83 [17:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 DC B9 47 00 6D 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 12 9C 00 00 F4 03 04 00 10 AD 5D 66 B6 04 01 00 00 41 61 83 E8 9E E1 4B C1 [17:58:59]CommunicateWithHost err = 0 [17:58:59]CheckOFDResponse [17:58:59]1017 (14) - 77093643461234 [17:58:59]1041 (16) - 0000000000874882 [17:58:59]1040 (4) - 39954 [17:58:59]1012 (4) - 03.06.2024 11:46 [17:58:59]1206 (1) - 0 [17:58:59]OFD Sender: Remove packet 39954 [17:58:59]ProducePacketName [17:58:59]name=ofd_packets/00039954 [17:58:59]NVStorageDeleteData [17:58:59]Write to MH i2c: 01 00 00 94 13 A7 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 F1 0C AB [17:58:59]RasterBufferAndPrint [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]written 0, free lines is 3320 [17:58:59]MH_Cut [17:58:59]Write to MH i2c: D1 01 00 9B 13 01 80 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D1 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D1 01 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D1 01 00 9B 13 00 7F [17:58:59]Write to MH i2c: 01 00 00 9C 13 AF [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:59:00]OFD Sender: No OFD packet to send [17:59:00]*** Cut start [17:59:00]*** Partial cut [17:59:00]*** CUTSNS_PIN = 1 [17:59:00]*** CUTSNS_PIN = 0 [17:59:00]*** Brake cut motor [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]*** Stop cut motor [17:59:00]*** Cut end [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [17:59:00]process_action close_receipt done [17:59:00]requested_data is exist [17:59:00]produce_requested_data [17:59:00]requested_item fm.sn is exist - process it [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 11 00 00 [17:59:00]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:01]Read from MH i2c: E2 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 17 00 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 82 [17:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [17:59:01]wFMCommunicate OK [17:59:01]requested_item fd.num is exist - process it [17:59:01]SAM_PROTO_GetFieldsCounters [17:59:01]wFMCommunicate request_size=4 [17:59:01]MH_SAM_APDU [17:59:01]CAPDU: 80 13 00 00 [17:59:01]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [17:59:01]Write i2c OK [17:59:01]MH_I2C_Read... [17:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:01]Read from MH i2c: E2 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 62 00 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 12 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 12 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:01]wFMCommunicate OK [17:59:01]SAM_PROTO_GetFieldsCounters done [17:59:01]requested_item shift.num is exist - process it [17:59:01]requested_item shift.opened is exist - process it [17:59:01]req_shift_opened [17:59:01]FM_GetShiftState [17:59:01]SAM_PROTO_GetShiftState [17:59:01]wFMCommunicate request_size=4 [17:59:01]MH_SAM_APDU [17:59:01]CAPDU: 80 13 01 00 [17:59:01]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [17:59:01]Write i2c OK [17:59:01]MH_I2C_Read... [17:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:01]Read from MH i2c: E2 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 0E 00 [17:59:01]MH_I2C_Read... [17:59:01]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 52 [17:59:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [17:59:01]wFMCommunicate OK [17:59:01]SAM_PROTO_GetShiftState done [17:59:01]FM_GetShiftState done [17:59:01]req_shift_opened done [17:59:01]requested_item shift.open_date is exist - process it [17:59:01]req_shift_open_date [17:59:01]req_shift_open_date done [17:59:01]produce_requested_data done [17:59:01]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39954,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [17:59:01]process_action_free close_receipt [17:59:01]json_value_free [17:59:01]json_value_free done [17:59:01]process_json_proto returns [17:59:01]Send response to host [17:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39954,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [17:59:01]free response buf [17:59:01]execute_script done [17:59:01]execute_script returns [17:59:01]free content buf [17:59:01]Sock 8.Close socket [17:59:01]Sock 8.Thread stoped [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:16]accept exits with 9 [18:01:16]New connection [18:01:16]New thread 3067325796 created [18:01:16]Thread 3067182436 joined [18:01:16]Waiting for new connection... [18:01:16] Sock 9.Parse request [18:01:16]Sock 9.Check first char [18:01:16]Sock 9.First char is OK [18:01:16]request: POST /json_proto HTTP/1.0 [18:01:16]Method: POST [18:01:16]URL: /json_proto [18:01:16]Method is POST - this is cgi request [18:01:16]url: /json_proto [18:01:16]query_string will be loaded in cgi processing [18:01:16]execute_cgi json_proto POST (null) [18:01:16]execute_cgi path=json_proto method=POST [18:01:16]POST find Content-Length [18:01:16]Host: 172.17.36.199:8080 [18:01:16]Content-Length: 982 [18:01:16]Content-Type: application/json [18:01:16] [18:01:16]POST finish read [18:01:16]Found Content-Length = 982 [18:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176514", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:16]execute_script... [18:01:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176514", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:16]POST & json_proto [18:01:16]process_json_proto [18:01:16]json parsed OK: [18:01:16]protocol is kg_v1.0 [18:01:16]action value=close_receipt [18:01:16]process_action close_receipt [18:01:16]cmd_close_receipt [18:01:16]MH_GetDate [18:01:16]Write to MH i2c: F0 00 00 A0 13 A2 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 09 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 09 00 A0 13 00 EF 04 5E 66 91 46 04 65 A2 [18:01:16]GetLastDocTimeStamp 1717437540 [18:01:16]current date 1717437679 [18:01:16]FM_GetShiftState [18:01:16]SAM_PROTO_GetShiftState [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 13 01 00 [18:01:16]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 54 [18:01:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_GetShiftState done [18:01:16]FM_GetShiftState done [18:01:16]opened in 1717373769 [18:01:16]opened+sec_in_day 1717460169 [18:01:16]quantity*price = 12500 [18:01:16]sum+1 = 12501 [18:01:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 53.00 = 53.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.58 НДС 12% : 18.90 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 73 03.06.2024 18:01 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39955 ФПД: 175186949147185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180119&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39955&fm=175186949147185&tin=02508201610067®Number=0000000000092680&sum=17800 0 [18:01:17]StoreToDocumentArchive [18:01:17]shift 376 fd 39955 [18:01:17]save to /storage/0376/doc_00039955 [18:01:17]save last doc name /storage/0376/doc_00039955 to /storage/kkm_last_doc_name [18:01:17]save OK [18:01:17]Clear old archive folders... [18:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=414 [18:01:17]tlvbuf is 00E31B80 [18:01:17]SAM_PROTO_ClearQueue [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 09 00 00 [18:01:17]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_ClearQueue done [18:01:17]KKMCreateOFDPacket [18:01:17]OFDProtocolAddRootSTLVToBuf [18:01:17]FM_MakeSignedData [18:01:17]FM_MakeSignedData [18:01:17]SAM_PROTO_SignData [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 01 02 [18:01:17]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=255 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [18:01:17]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 E3 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=173 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EF 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 13 9C 00 00 35 04 06 00 9F 54 E3 DF 8A 31 [18:01:17]Write to MH i2c: E2 B0 00 B1 13 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EF 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 13 9C 00 00 35 04 06 00 9F 54 E3 DF 8A 31 00 00 10 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 03 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [18:01:18]RAPDU: 90 00 [18:01:18]wFMCommunicate OK [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 0D 03 02 [18:01:18]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 0B 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 0B 00 B2 13 00 39 87 89 A7 77 71 BA BF 90 00 92 [18:01:18]RAPDU: 39 87 89 A7 77 71 BA BF 90 00 [18:01:18]wFMCommunicate OK [18:01:18]SAM_PROTO_SignData done [18:01:18]FM_MakeSignedData done [18:01:18]CreateOFDProtocolMessage [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 11 00 00 [18:01:18]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 17 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 98 [18:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:01:18]wFMCommunicate OK [18:01:18]CreateOFDProtocolMessage done [18:01:18]OFDSenderStorePacket 39955 [18:01:18]StoreOFDPacket docnum=39955 [18:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 5E E3 AA 01 88 2C 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EF 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 13 9C 00 00 35 04 06 00 9F 54 E3 DF 8A 31 39 87 89 A7 77 71 BA BF [18:01:18]CheckFolder [18:01:18]dirname=/storage/ofd_packets [18:01:18]CheckFolder done [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00039955 [18:01:18]NVStorageSaveData ofd_packets/00039955 [18:01:18]File name is /storage/ofd_packets/00039955 [18:01:18]Write 464 bytes [18:01:18]NVStorageSaveData done [18:01:18]OFDSenderStorePacket done [18:01:18]KKMCreateOFDPacket done [18:01:18]NVStorageSaveData kkm_last_timestamp [18:01:18]File name is /storage/kkm_last_timestamp [18:01:18]Write 4 bytes [18:01:18]NVStorageSaveData done [18:01:18]ExternCall_PrintAddStr [18:01:18]wPrintStart [18:01:18]Write to MH i2c: 01 00 00 B4 13 C7 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [18:01:18]RasterBufferAndPrint [18:01:18]line Счет N : (3)176514 [18:01:18]line ИНН: 02508201610067 [18:01:18]line Контрольно-Кассовый Чек [18:01:18]line ПРОДАЖА [18:01:18]line Товар: 4870202522701 [18:01:18]line Напиток Maxi Чай черный Малина 1,2 [18:01:18]line 1.000 * 125.00 [18:01:18]line = 125.00 [18:01:18]line НДС 12% НСП 1% [18:01:18]line > о реализуемом товаре [18:01:18]line Товар: 4607120854184 [18:01:18]line Снек Орехи BEERKa Арахис 90г [18:01:18]line 1.000 * 53.00 [18:01:18]line = 53.00 [18:01:18]line НДС 12% НСП 1% [18:01:18]line > о реализуемом товаре [18:01:18]line ИТОГО: 178.00 [18:01:18]line НСП 1% : 1.58 [18:01:18]line НДС 12% : 18.90 [18:01:18]line Наличными: 178.00 [18:01:18]line Безнал.: 0.00 [18:01:18]line Место: АЗС № 63 "Партнер Нефть" [18:01:18]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:01:18]line СНО: Общий режим [18:01:18]line Чек 73 03.06.2024 18:01 [18:01:18]line Смена: 376 ФФД: 1.0 [18:01:18]line ЗНМ: 0300000037 [18:01:18]line РНМ: 0000000000092680 [18:01:18]line Версия ККМ: 001 [18:01:18]line ФМ: 0000000000874882 [18:01:18]line ФД: 39955 [18:01:18]line ФПД: 175186949147185 [18:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180119&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39955&fm=175186949147185&tin=02508201610067®Number=0000000000092680&sum=17800 [18:01:18]line 0 [18:01:18]OFD Sender: Processing packet 39955 [packets to send 5, broken 4] [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00039955 [18:01:18]OFD Sender: To server: pG, [18:01:18]CommunicateWithHost lk.salyk.kg:30040 [18:01:18]ConnectInit lk.salyk.kg [18:01:18]written 0, free lines is 4095 [18:01:18]Connected sock=10 [18:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 5E E3 AA 01 88 2C 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EF 04 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 13 9C 00 00 35 04 06 00 9F 54 E3 DF 8A 31 39 87 89 A7 77 71 BA BF [18:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 C0 B1 47 00 19 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 13 9C 00 00 F4 03 04 00 9B AD 5D 66 B6 04 01 00 00 AE AE 16 82 8B 1B 50 D6 [18:01:18]CommunicateWithHost err = 0 [18:01:18]CheckOFDResponse [18:01:18]1017 (14) - 77093643461234 [18:01:18]1041 (16) - 0000000000874882 [18:01:18]1040 (4) - 39955 [18:01:18]1012 (4) - 03.06.2024 11:48 [18:01:18]1206 (1) - 0 [18:01:18]OFD Sender: Remove packet 39955 [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00039955 [18:01:18]NVStorageDeleteData [18:01:18]Write to MH i2c: 01 00 00 E4 13 F7 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 9B 0C A5 [18:01:18]RasterBufferAndPrint [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]written 0, free lines is 3238 [18:01:19]MH_Cut [18:01:19]Write to MH i2c: D1 01 00 EB 13 01 D0 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: D1 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: D1 01 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: D1 01 00 EB 13 00 CF [18:01:19]Write to MH i2c: 01 00 00 EC 13 FF [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]OFD Sender: No OFD packet to send [18:01:19]*** Cut start [18:01:19]*** Partial cut [18:01:19]*** CUTSNS_PIN = 1 [18:01:19]*** CUTSNS_PIN = 0 [18:01:19]*** Brake cut motor [18:01:20]Read from MH i2c: 01 [18:01:20]MH_I2C_Read... [18:01:20]*** Stop cut motor [18:01:20]*** Cut end [18:01:20]Read from MH i2c: 01 07 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 FF 0F 14 [18:01:20]process_action close_receipt done [18:01:20]requested_data is exist [18:01:20]produce_requested_data [18:01:20]requested_item fm.sn is exist - process it [18:01:20]wFMCommunicate request_size=4 [18:01:20]MH_SAM_APDU [18:01:20]CAPDU: 80 11 00 00 [18:01:20]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 17 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D2 [18:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:01:20]wFMCommunicate OK [18:01:20]requested_item fd.num is exist - process it [18:01:20]SAM_PROTO_GetFieldsCounters [18:01:20]wFMCommunicate request_size=4 [18:01:20]MH_SAM_APDU [18:01:20]CAPDU: 80 13 00 00 [18:01:20]Write to MH i2c: E2 08 00 EE 13 80 13 00 00 00 00 00 00 7D [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 62 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 62 00 EE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 13 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 13 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:20]wFMCommunicate OK [18:01:20]SAM_PROTO_GetFieldsCounters done [18:01:20]requested_item shift.num is exist - process it [18:01:20]requested_item shift.opened is exist - process it [18:01:20]req_shift_opened [18:01:20]FM_GetShiftState [18:01:20]SAM_PROTO_GetShiftState [18:01:20]wFMCommunicate request_size=4 [18:01:20]MH_SAM_APDU [18:01:20]CAPDU: 80 13 01 00 [18:01:20]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A2 [18:01:20]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:01:20]wFMCommunicate OK [18:01:20]SAM_PROTO_GetShiftState done [18:01:20]FM_GetShiftState done [18:01:20]req_shift_opened done [18:01:20]requested_item shift.open_date is exist - process it [18:01:20]req_shift_open_date [18:01:20]req_shift_open_date done [18:01:20]produce_requested_data done [18:01:20]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39955,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:01:20]process_action_free close_receipt [18:01:20]json_value_free [18:01:20]json_value_free done [18:01:20]process_json_proto returns [18:01:20]Send response to host [18:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39955,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:01:20]free response buf [18:01:20]execute_script done [18:01:20]execute_script returns [18:01:20]free content buf [18:01:20]Sock 9.Close socket [18:01:20]Sock 9.Thread stoped [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:15:57]accept exits with 8 [18:15:57]New connection [18:15:57]New thread 3067182436 created [18:15:57]Thread 3067325796 joined [18:15:57]Waiting for new connection... [18:15:57] Sock 8.Parse request [18:15:57]Sock 8.Check first char [18:15:57]Sock 8.First char is OK [18:15:57]request: POST /json_proto HTTP/1.0 [18:15:57]Method: POST [18:15:57]URL: /json_proto [18:15:57]Method is POST - this is cgi request [18:15:57]url: /json_proto [18:15:57]query_string will be loaded in cgi processing [18:15:57]execute_cgi json_proto POST (null) [18:15:57]execute_cgi path=json_proto method=POST [18:15:57]POST find Content-Length [18:15:57]Host: 172.17.36.199:8080 [18:15:57]Content-Length: 2343 [18:15:57]Content-Type: application/json [18:15:57] [18:15:57]POST finish read [18:15:57]Found Content-Length = 2343 [18:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176515", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744809", "name": "\u0413\u0440\u0435\u043D\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0427\u0435\u0441\u043D\u043E\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606016353", "name": "\u041C\u0430\u0440-\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0444\u0430\u043D\u0441\u044B 70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 786.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:57]execute_script... [18:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176515", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744809", "name": "\u0413\u0440\u0435\u043D\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0427\u0435\u0441\u043D\u043E\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606016353", "name": "\u041C\u0430\u0440-\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0444\u0430\u043D\u0441\u044B 70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 786.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:57]POST & json_proto [18:15:57]process_json_proto [18:15:57]json parsed OK: [18:15:57]protocol is kg_v1.0 [18:15:57]action value=close_receipt [18:15:57]process_action close_receipt [18:15:57]cmd_close_receipt [18:15:57]MH_GetDate [18:15:57]Write to MH i2c: F0 00 00 F0 13 F2 [18:15:57]Write i2c OK [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 09 00 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 09 00 F0 13 00 61 08 5E 66 91 46 04 65 68 [18:15:57]GetLastDocTimeStamp 1717437679 [18:15:57]current date 1717438561 [18:15:57]FM_GetShiftState [18:15:57]SAM_PROTO_GetShiftState [18:15:57]wFMCommunicate request_size=4 [18:15:57]MH_SAM_APDU [18:15:57]CAPDU: 80 13 01 00 [18:15:57]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [18:15:57]Write i2c OK [18:15:57]MH_I2C_Read... [18:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:57]Read from MH i2c: E2 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: E2 0E 00 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A4 [18:15:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:15:57]wFMCommunicate OK [18:15:57]SAM_PROTO_GetShiftState done [18:15:57]FM_GetShiftState done [18:15:57]opened in 1717373769 [18:15:57]opened+sec_in_day 1717460169 [18:15:57]quantity*price = 26000 [18:15:57]sum+1 = 26001 [18:15:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004831 Печ.зат.TONDI Сэнд.шок.вк. 1.000 * 83.00 = 83.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209744809 Гренки Флинт Чеснок 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606016353 Мар-д ЧЧ Кислые фансы 70г 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680021880490 Печ.сд.С каплями 200г/12 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 786.00 НСП 1% : 6.95 НДС 12% : 83.46 Наличными: 786.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 74 03.06.2024 18:16 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39956 ФПД: 42091533383224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T181601&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39956&fm=42091533383224&tin=02508201610067®Number=0000000000092680&sum=78600 0 [18:15:59]StoreToDocumentArchive [18:15:59]shift 376 fd 39956 [18:15:59]save to /storage/0376/doc_00039956 [18:15:59]save last doc name /storage/0376/doc_00039956 to /storage/kkm_last_doc_name [18:15:59]save OK [18:15:59]Clear old archive folders... [18:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=979 [18:15:59]tlvbuf is 00E00B70 [18:15:59]SAM_PROTO_ClearQueue [18:15:59]wFMCommunicate request_size=4 [18:15:59]MH_SAM_APDU [18:15:59]CAPDU: 80 09 00 00 [18:15:59]Write to MH i2c: E2 08 00 FE 13 80 09 00 00 00 00 00 00 83 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:59]Read from MH i2c: E2 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [18:15:59]RAPDU: 90 00 [18:15:59]wFMCommunicate OK [18:15:59]SAM_PROTO_ClearQueue done [18:15:59]KKMCreateOFDPacket [18:15:59]OFDProtocolAddRootSTLVToBuf [18:15:59]FM_MakeSignedData [18:15:59]FM_MakeSignedData [18:15:59]SAM_PROTO_SignData [18:15:59]wFMCommunicate request_size=4 [18:15:59]MH_SAM_APDU [18:15:59]CAPDU: 80 0D 01 02 [18:15:59]Write to MH i2c: E2 08 00 FF 13 80 0D 01 02 00 00 00 00 8B [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:59]Read from MH i2c: E2 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [18:15:59]RAPDU: 90 00 [18:15:59]wFMCommunicate OK [18:15:59]wFMCommunicate request_size=255 [18:15:59]MH_SAM_APDU [18:15:59]CAPDU: 80 0D 02 02 FA 03 00 D3 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 [18:15:59]Write to MH i2c: E2 02 01 00 14 80 0D 02 02 FA 00 03 00 D3 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 00 00 7E [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:59]Read from MH i2c: E2 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [18:15:59]RAPDU: 90 00 [18:15:59]wFMCommunicate OK [18:15:59]wFMCommunicate request_size=255 [18:15:59]MH_SAM_APDU [18:15:59]CAPDU: 80 0D 02 02 FA 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 36 33 35 33 06 04 2B 00 D0 9C D0 B0 D1 80 2D D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 84 D0 B0 D0 BD D1 81 D1 8B 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 [18:15:59]Write to MH i2c: E2 02 01 01 14 80 0D 02 02 FA 00 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 36 33 35 33 06 04 2B 00 D0 9C D0 B0 D1 80 2D D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 84 D0 B0 D0 BD D1 81 D1 8B 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 00 00 C9 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:59]Read from MH i2c: E2 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [18:15:59]RAPDU: 90 00 [18:15:59]wFMCommunicate OK [18:15:59]wFMCommunicate request_size=255 [18:15:59]MH_SAM_APDU [18:15:59]CAPDU: 80 0D 02 02 FA D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 [18:15:59]Write to MH i2c: E2 02 01 02 14 80 0D 02 02 FA 00 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 00 00 F5 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:16:00]OFD Sender: No OFD packet to send [18:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:00]Read from MH i2c: E2 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 03 00 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 03 00 02 14 00 90 00 8A [18:16:00]RAPDU: 90 00 [18:16:00]wFMCommunicate OK [18:16:00]wFMCommunicate request_size=238 [18:16:00]MH_SAM_APDU [18:16:00]CAPDU: 80 0D 02 02 E9 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 33 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 20 00 00 00 00 07 04 06 00 08 33 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 61 08 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 14 9C 00 00 35 04 06 00 26 48 32 E5 36 38 [18:16:00]Write to MH i2c: E2 F1 00 03 14 80 0D 02 02 E9 00 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 33 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 20 00 00 00 00 07 04 06 00 08 33 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 61 08 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 14 9C 00 00 35 04 06 00 26 48 32 E5 36 38 00 00 B8 [18:16:00]Write i2c OK [18:16:00]MH_I2C_Read... [18:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:00]Read from MH i2c: E2 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 03 00 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 03 00 03 14 00 90 00 8B [18:16:00]RAPDU: 90 00 [18:16:00]wFMCommunicate OK [18:16:00]wFMCommunicate request_size=4 [18:16:00]MH_SAM_APDU [18:16:00]CAPDU: 80 0D 03 02 [18:16:00]Write to MH i2c: E2 08 00 04 14 80 0D 03 02 00 00 00 00 93 [18:16:00]Write i2c OK [18:16:00]MH_I2C_Read... [18:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:00]Read from MH i2c: E2 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 0B 00 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 0B 00 04 14 00 EB C1 D4 35 30 DD A8 50 90 00 4E [18:16:00]RAPDU: EB C1 D4 35 30 DD A8 50 90 00 [18:16:00]wFMCommunicate OK [18:16:00]SAM_PROTO_SignData done [18:16:00]FM_MakeSignedData done [18:16:00]CreateOFDProtocolMessage [18:16:00]wFMCommunicate request_size=4 [18:16:00]MH_SAM_APDU [18:16:00]CAPDU: 80 11 00 00 [18:16:00]Write to MH i2c: E2 08 00 05 14 80 11 00 00 00 00 00 00 93 [18:16:00]Write i2c OK [18:16:00]MH_I2C_Read... [18:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:00]Read from MH i2c: E2 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 17 00 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: E2 17 00 05 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 EB [18:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:16:00]wFMCommunicate OK [18:16:00]CreateOFDProtocolMessage done [18:16:00]OFDSenderStorePacket 39956 [18:16:00]StoreOFDPacket docnum=39956 [18:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 E7 03 00 00 D6 00 DF 03 A7 47 5A 03 01 00 03 00 D3 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 36 33 35 33 06 04 2B 00 D0 9C D0 B0 D1 80 2D D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 84 D0 B0 D0 BD D1 81 D1 8B 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 33 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 20 00 00 00 00 07 04 06 00 08 33 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 61 08 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 14 9C 00 00 35 04 06 00 26 48 32 E5 36 38 EB C1 D4 35 30 DD A8 50 [18:16:00]CheckFolder [18:16:00]dirname=/storage/ofd_packets [18:16:00]CheckFolder done [18:16:00]ProducePacketName [18:16:00]name=ofd_packets/00039956 [18:16:00]NVStorageSaveData ofd_packets/00039956 [18:16:00]File name is /storage/ofd_packets/00039956 [18:16:00]Write 1029 bytes [18:16:00]NVStorageSaveData done [18:16:00]OFDSenderStorePacket done [18:16:00]KKMCreateOFDPacket done [18:16:00]NVStorageSaveData kkm_last_timestamp [18:16:00]File name is /storage/kkm_last_timestamp [18:16:00]Write 4 bytes [18:16:00]NVStorageSaveData done [18:16:00]ExternCall_PrintAddStr [18:16:00]wPrintStart [18:16:00]Write to MH i2c: 01 00 00 06 14 1A [18:16:00]Write i2c OK [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: 01 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: 01 07 00 [18:16:00]MH_I2C_Read... [18:16:00]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [18:16:00]RasterBufferAndPrint [18:16:00]line Счет N : (3)176515 [18:16:00]line ИНН: 02508201610067 [18:16:00]line Контрольно-Кассовый Чек [18:16:00]line ПРОДАЖА [18:16:00]line Товар: 2000036230011 [18:16:00]line Кофе Латте XL(GABB TRADE) [18:16:00]line 2.000 * 130.00 [18:16:00]line = 260.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4603290004831 [18:16:00]line Печ.зат.TONDI Сэнд.шок.вк. [18:16:00]line 1.000 * 83.00 [18:16:00]line = 83.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4870209744809 [18:16:00]line Гренки Флинт Чеснок 100 гр [18:16:00]line 1.000 * 60.00 [18:16:00]line = 60.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4602606016353 [18:16:00]line Мар-д ЧЧ Кислые фансы 70г [18:16:00]line 1.000 * 103.00 [18:16:00]line = 103.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4680021880490 [18:16:00]line Печ.сд.С каплями 200г/12 [18:16:00]line 1.000 * 95.00 [18:16:00]line = 95.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4870202521216 [18:16:00]line Напиток MAXI чай 1,2 зел.лимон (новый) [18:16:00]line 1.000 * 125.00 [18:16:00]line = 125.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line Товар: 4870112002775 [18:16:00]line Шок батончик ALBENI BITES 80гр [18:16:00]line 1.000 * 60.00 [18:16:00]line = 60.00 [18:16:00]line НДС 12% НСП 1% [18:16:00]line > о реализуемом товаре [18:16:00]line ИТОГО: 786.00 [18:16:00]line НСП 1% : 6.95 [18:16:00]line НДС 12% : 83.46 [18:16:00]line Наличными: 786.00 [18:16:00]line Безнал.: 0.00 [18:16:00]line Место: АЗС № 63 "Партнер Нефть" [18:16:00]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:16:00]line СНО: Общий режим [18:16:00]line Чек 74 03.06.2024 18:16 [18:16:00]line Смена: 376 ФФД: 1.0 [18:16:00]line ЗНМ: 0300000037 [18:16:00]line РНМ: 0000000000092680 [18:16:00]line Версия ККМ: 001 [18:16:00]line ФМ: 0000000000874882 [18:16:00]line ФД: 39956 [18:16:00]line ФПД: 42091533383224 [18:16:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T181601&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39956&fm=42091533383224&tin=02508201610067®Number=0000000000092680&sum=78600 [18:16:00]line 0 [18:16:00]written 0, free lines is 4095 [18:16:00]OFD Sender: Processing packet 39956 [packets to send 5, broken 4] [18:16:00]ProducePacketName [18:16:00]name=ofd_packets/00039956 [18:16:00]OFD Sender: To server: pG, [18:16:00]CommunicateWithHost lk.salyk.kg:30040 [18:16:00]ConnectInit lk.salyk.kg [18:16:00]Connected sock=10 [18:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 E7 03 00 00 D6 00 DF 03 A7 47 5A 03 01 00 03 00 D3 03 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 36 33 35 33 06 04 2B 00 D0 9C D0 B0 D1 80 2D D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 84 D0 B0 D0 BD D1 81 D1 8B 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 33 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 20 00 00 00 00 07 04 06 00 08 33 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 61 08 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 14 9C 00 00 35 04 06 00 26 48 32 E5 36 38 EB C1 D4 35 30 DD A8 50 [18:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 83 F7 47 00 97 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 14 9C 00 00 F4 03 04 00 0E B1 5D 66 B6 04 01 00 00 3B FF DA 20 49 93 C0 DE [18:16:01]CommunicateWithHost err = 0 [18:16:01]CheckOFDResponse [18:16:01]1017 (14) - 77093643461234 [18:16:01]1041 (16) - 0000000000874882 [18:16:01]1040 (4) - 39956 [18:16:01]1012 (4) - 03.06.2024 12:03 [18:16:01]1206 (1) - 0 [18:16:01]OFD Sender: Remove packet 39956 [18:16:01]ProducePacketName [18:16:01]name=ofd_packets/00039956 [18:16:01]NVStorageDeleteData [18:16:01]Write to MH i2c: 01 00 00 54 14 68 [18:16:01]Write i2c OK [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: 01 [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: 01 07 00 [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 7A 0B F4 [18:16:01]RasterBufferAndPrint [18:16:01]line [18:16:01]line [18:16:01]line [18:16:01]line [18:16:01]line [18:16:01]written 0, free lines is 2950 [18:16:01]MH_Cut [18:16:01]Write to MH i2c: D1 01 00 5B 14 01 41 [18:16:01]Write i2c OK [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: D1 [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: D1 01 00 [18:16:01]MH_I2C_Read... [18:16:01]Read from MH i2c: D1 01 00 5B 14 00 40 [18:16:01]Write to MH i2c: 01 00 00 5C 14 70 [18:16:01]Write i2c OK [18:16:01]MH_I2C_Read... [18:16:02]OFD Sender: No OFD packet to send [18:16:02]*** Cut start [18:16:02]*** Partial cut [18:16:02]*** CUTSNS_PIN = 1 [18:16:02]*** CUTSNS_PIN = 0 [18:16:02]*** Brake cut motor [18:16:03]Read from MH i2c: 01 [18:16:03]MH_I2C_Read... [18:16:03]*** Stop cut motor [18:16:03]*** Cut end [18:16:03]Read from MH i2c: 01 07 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [18:16:03]process_action close_receipt done [18:16:03]requested_data is exist [18:16:03]produce_requested_data [18:16:03]requested_item fm.sn is exist - process it [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 11 00 00 [18:16:03]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 17 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 43 [18:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:16:03]wFMCommunicate OK [18:16:03]requested_item fd.num is exist - process it [18:16:03]SAM_PROTO_GetFieldsCounters [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 13 00 00 [18:16:03]Write to MH i2c: E2 08 00 5E 14 80 13 00 00 00 00 00 00 EE [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 62 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 62 00 5E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 14 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 14 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:03]wFMCommunicate OK [18:16:03]SAM_PROTO_GetFieldsCounters done [18:16:03]requested_item shift.num is exist - process it [18:16:03]requested_item shift.opened is exist - process it [18:16:03]req_shift_opened [18:16:03]FM_GetShiftState [18:16:03]SAM_PROTO_GetShiftState [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 13 01 00 [18:16:03]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 13 [18:16:03]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:16:03]wFMCommunicate OK [18:16:03]SAM_PROTO_GetShiftState done [18:16:03]FM_GetShiftState done [18:16:03]req_shift_opened done [18:16:03]requested_item shift.open_date is exist - process it [18:16:03]req_shift_open_date [18:16:03]req_shift_open_date done [18:16:03]produce_requested_data done [18:16:03]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39956,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:16:03]process_action_free close_receipt [18:16:03]json_value_free [18:16:03]json_value_free done [18:16:03]process_json_proto returns [18:16:03]Send response to host [18:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39956,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:16:03]free response buf [18:16:03]execute_script done [18:16:03]execute_script returns [18:16:03]free content buf [18:16:03]Sock 8.Close socket [18:16:03]Sock 8.Thread stoped [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]accept exits with 9 [18:27:07]New connection [18:27:07]New thread 3067325796 created [18:27:07]Thread 3067182436 joined [18:27:07]Waiting for new connection... [18:27:07] Sock 9.Parse request [18:27:07]Sock 9.Check first char [18:27:07]Sock 9.First char is OK [18:27:07]request: POST /json_proto HTTP/1.0 [18:27:07]Method: POST [18:27:07]URL: /json_proto [18:27:07]Method is POST - this is cgi request [18:27:07]url: /json_proto [18:27:07]query_string will be loaded in cgi processing [18:27:07]execute_cgi json_proto POST (null) [18:27:07]execute_cgi path=json_proto method=POST [18:27:07]POST find Content-Length [18:27:07]Host: 172.17.36.199:8080 [18:27:07]Content-Length: 621 [18:27:07]Content-Type: application/json [18:27:07] [18:27:07]POST finish read [18:27:07]Found Content-Length = 621 [18:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176516", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:07]execute_script... [18:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176516", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:07]POST & json_proto [18:27:07]process_json_proto [18:27:07]json parsed OK: [18:27:07]protocol is kg_v1.0 [18:27:07]action value=close_receipt [18:27:07]process_action close_receipt [18:27:07]cmd_close_receipt [18:27:07]MH_GetDate [18:27:07]Write to MH i2c: F0 00 00 60 14 63 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 09 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 09 00 60 14 00 FE 0A 5E 66 91 46 04 65 78 [18:27:07]GetLastDocTimeStamp 1717438561 [18:27:07]current date 1717439230 [18:27:07]FM_GetShiftState [18:27:07]SAM_PROTO_GetShiftState [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 13 01 00 [18:27:07]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 15 [18:27:07]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:27:07]wFMCommunicate OK [18:27:07]SAM_PROTO_GetShiftState done [18:27:07]FM_GetShiftState done [18:27:07]opened in 1717373769 [18:27:07]opened+sec_in_day 1717460169 [18:27:07]quantity*price = 28000 [18:27:07]sum+1 = 28001 [18:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 75 03.06.2024 18:27 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39957 ФПД: 8229061803657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182710&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39957&fm=8229061803657&tin=02508201610067®Number=0000000000092680&sum=28000 0 [18:27:08]StoreToDocumentArchive [18:27:08]shift 376 fd 39957 [18:27:08]save to /storage/0376/doc_00039957 [18:27:08]save last doc name /storage/0376/doc_00039957 to /storage/kkm_last_doc_name [18:27:08]save OK [18:27:08]Clear old archive folders... [18:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:27:08]tlvbuf is 00E2F780 [18:27:08]SAM_PROTO_ClearQueue [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 09 00 00 [18:27:08]Write to MH i2c: E2 08 00 6E 14 80 09 00 00 00 00 00 00 F4 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 [18:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_ClearQueue done [18:27:08]KKMCreateOFDPacket [18:27:08]OFDProtocolAddRootSTLVToBuf [18:27:08]FM_MakeSignedData [18:27:08]FM_MakeSignedData [18:27:08]SAM_PROTO_SignData [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 01 02 [18:27:08]Write to MH i2c: E2 08 00 6F 14 80 0D 01 02 00 00 00 00 FC [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]wFMCommunicate request_size=255 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE 0A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [18:27:08]Write to MH i2c: E2 02 01 70 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE 0A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 5E [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]wFMCommunicate request_size=32 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 15 9C 00 00 35 04 06 00 07 7B FA 4E 3E 89 [18:27:08]Write to MH i2c: E2 23 00 71 14 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 15 9C 00 00 35 04 06 00 07 7B FA 4E 3E 89 00 00 A3 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 03 02 [18:27:08]Write to MH i2c: E2 08 00 72 14 80 0D 03 02 00 00 00 00 01 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0B 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0B 00 72 14 00 E5 BD B9 C5 F1 F7 C5 B1 90 00 80 [18:27:08]RAPDU: E5 BD B9 C5 F1 F7 C5 B1 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_SignData done [18:27:08]FM_MakeSignedData done [18:27:08]CreateOFDProtocolMessage [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 11 00 00 [18:27:08]Write to MH i2c: E2 08 00 73 14 80 11 00 00 00 00 00 00 01 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 17 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 17 00 73 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 59 [18:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:27:08]wFMCommunicate OK [18:27:08]CreateOFDProtocolMessage done [18:27:08]OFDSenderStorePacket 39957 [18:27:08]StoreOFDPacket docnum=39957 [18:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 39 91 1D 01 C3 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE 0A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 15 9C 00 00 35 04 06 00 07 7B FA 4E 3E 89 E5 BD B9 C5 F1 F7 C5 B1 [18:27:08]CheckFolder [18:27:08]dirname=/storage/ofd_packets [18:27:08]CheckFolder done [18:27:08]ProducePacketName [18:27:08]name=ofd_packets/00039957 [18:27:08]NVStorageSaveData ofd_packets/00039957 [18:27:08]File name is /storage/ofd_packets/00039957 [18:27:08]Write 323 bytes [18:27:08]NVStorageSaveData done [18:27:08]OFDSenderStorePacket done [18:27:08]KKMCreateOFDPacket done [18:27:08]NVStorageSaveData kkm_last_timestamp [18:27:08]File name is /storage/kkm_last_timestamp [18:27:08]Write 4 bytes [18:27:08]NVStorageSaveData done [18:27:08]ExternCall_PrintAddStr [18:27:08]wPrintStart [18:27:08]Write to MH i2c: 01 00 00 74 14 88 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: 01 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: 01 07 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 FF 0F 9D [18:27:08]RasterBufferAndPrint [18:27:08]line Счет N : (3)176516 [18:27:08]line ИНН: 02508201610067 [18:27:08]line Контрольно-Кассовый Чек [18:27:08]line ПРОДАЖА [18:27:08]line Товар: 48747059 [18:27:08]line Сигареты Winston Legend Blue [18:27:08]line 2.000 * 140.00 [18:27:08]line = 280.00 [18:27:08]line НДС 12% НСП 1% [18:27:08]line > о реализуемом товаре [18:27:08]line ИТОГО: 280.00 [18:27:08]line НСП 1% : 2.48 [18:27:08]line НДС 12% : 29.73 [18:27:08]line Наличными: 280.00 [18:27:08]line Безнал.: 0.00 [18:27:08]line Место: АЗС № 63 "Партнер Нефть" [18:27:08]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:27:08]line СНО: Общий режим [18:27:08]line Чек 75 03.06.2024 18:27 [18:27:08]line Смена: 376 ФФД: 1.0 [18:27:08]line ЗНМ: 0300000037 [18:27:08]line РНМ: 0000000000092680 [18:27:08]line Версия ККМ: 001 [18:27:08]line ФМ: 0000000000874882 [18:27:08]line ФД: 39957 [18:27:08]line ФПД: 8229061803657 [18:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182710&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39957&fm=8229061803657&tin=02508201610067®Number=0000000000092680&sum=28000 [18:27:08]line 0 [18:27:09]written 0, free lines is 4095 [18:27:09]OFD Sender: Processing packet 39957 [packets to send 5, broken 4] [18:27:09]ProducePacketName [18:27:09]name=ofd_packets/00039957 [18:27:09]OFD Sender: To server: pG, [18:27:09]CommunicateWithHost lk.salyk.kg:30040 [18:27:09]ConnectInit lk.salyk.kg [18:27:09]Connected sock=10 [18:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 39 91 1D 01 C3 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE 0A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 15 9C 00 00 35 04 06 00 07 7B FA 4E 3E 89 E5 BD B9 C5 F1 F7 C5 B1 [18:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 76 2A 47 00 C4 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 15 9C 00 00 F4 03 04 00 AA B3 5D 66 B6 04 01 00 00 CA 78 CE 60 A9 43 D7 E5 [18:27:09]CommunicateWithHost err = 0 [18:27:09]CheckOFDResponse [18:27:09]1017 (14) - 77093643461234 [18:27:09]1041 (16) - 0000000000874882 [18:27:09]1040 (4) - 39957 [18:27:09]1012 (4) - 03.06.2024 12:14 [18:27:09]1206 (1) - 0 [18:27:09]OFD Sender: Remove packet 39957 [18:27:09]ProducePacketName [18:27:09]name=ofd_packets/00039957 [18:27:09]NVStorageDeleteData [18:27:09]Write to MH i2c: 01 00 00 9D 14 B1 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 9D 14 00 00 00 00 00 FD 0C C1 [18:27:09]RasterBufferAndPrint [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]written 0, free lines is 3333 [18:27:09]MH_Cut [18:27:09]Write to MH i2c: D1 01 00 A4 14 01 8A [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 01 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 01 00 A4 14 00 89 [18:27:09]Write to MH i2c: 01 00 00 A5 14 B9 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]OFD Sender: No OFD packet to send [18:27:10]*** Cut start [18:27:10]*** Partial cut [18:27:10]*** CUTSNS_PIN = 1 [18:27:10]*** CUTSNS_PIN = 0 [18:27:10]*** Brake cut motor [18:27:10]Read from MH i2c: 01 [18:27:10]MH_I2C_Read... [18:27:10]*** Stop cut motor [18:27:10]*** Cut end [18:27:10]Read from MH i2c: 01 07 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 FF 0F CE [18:27:10]process_action close_receipt done [18:27:10]requested_data is exist [18:27:10]produce_requested_data [18:27:10]requested_item fm.sn is exist - process it [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 11 00 00 [18:27:10]Write to MH i2c: E2 08 00 A6 14 80 11 00 00 00 00 00 00 34 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 17 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 17 00 A6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8C [18:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:27:10]wFMCommunicate OK [18:27:10]requested_item fd.num is exist - process it [18:27:10]SAM_PROTO_GetFieldsCounters [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 13 00 00 [18:27:10]Write to MH i2c: E2 08 00 A7 14 80 13 00 00 00 00 00 00 37 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 62 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 62 00 A7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 15 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [18:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 15 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:11]wFMCommunicate OK [18:27:11]SAM_PROTO_GetFieldsCounters done [18:27:11]requested_item shift.num is exist - process it [18:27:11]requested_item shift.opened is exist - process it [18:27:11]req_shift_opened [18:27:11]FM_GetShiftState [18:27:11]SAM_PROTO_GetShiftState [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 13 01 00 [18:27:11]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0E 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5C [18:27:11]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:27:11]wFMCommunicate OK [18:27:11]SAM_PROTO_GetShiftState done [18:27:11]FM_GetShiftState done [18:27:11]req_shift_opened done [18:27:11]requested_item shift.open_date is exist - process it [18:27:11]req_shift_open_date [18:27:11]req_shift_open_date done [18:27:11]produce_requested_data done [18:27:11]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39957,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:27:11]process_action_free close_receipt [18:27:11]json_value_free [18:27:11]json_value_free done [18:27:11]process_json_proto returns [18:27:11]Send response to host [18:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39957,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:27:11]free response buf [18:27:11]execute_script done [18:27:11]execute_script returns [18:27:11]free content buf [18:27:11]Sock 9.Close socket [18:27:11]Sock 9.Thread stoped [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:00]accept exits with 8 [18:50:00]New connection [18:50:00]New thread 3067182436 created [18:50:00]Thread 3067325796 joined [18:50:00]Waiting for new connection... [18:50:00] Sock 8.Parse request [18:50:00]Sock 8.Check first char [18:50:00]Sock 8.First char is OK [18:50:00]request: POST /json_proto HTTP/1.0 [18:50:00]Method: POST [18:50:00]URL: /json_proto [18:50:00]Method is POST - this is cgi request [18:50:00]url: /json_proto [18:50:00]query_string will be loaded in cgi processing [18:50:00]execute_cgi json_proto POST (null) [18:50:00]execute_cgi path=json_proto method=POST [18:50:00]POST find Content-Length [18:50:00]Host: 172.17.36.199:8080 [18:50:00]Content-Length: 632 [18:50:00]Content-Type: application/json [18:50:00] [18:50:00]POST finish read [18:50:00]Found Content-Length = 632 [18:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176517", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:00]execute_script... [18:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176517", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:00]POST & json_proto [18:50:00]process_json_proto [18:50:00]json parsed OK: [18:50:00]protocol is kg_v1.0 [18:50:00]action value=close_receipt [18:50:00]process_action close_receipt [18:50:00]cmd_close_receipt [18:50:00]MH_GetDate [18:50:00]Write to MH i2c: F0 00 00 A9 14 AC [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: F0 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: F0 09 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: F0 09 00 A9 14 00 5B 10 5E 66 91 46 04 65 24 [18:50:00]GetLastDocTimeStamp 1717439230 [18:50:00]current date 1717440603 [18:50:00]FM_GetShiftState [18:50:00]SAM_PROTO_GetShiftState [18:50:00]wFMCommunicate request_size=4 [18:50:00]MH_SAM_APDU [18:50:00]CAPDU: 80 13 01 00 [18:50:00]Write to MH i2c: E2 08 00 AA 14 80 13 01 00 00 00 00 00 3B [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:00]Read from MH i2c: E2 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: E2 0E 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: E2 0E 00 AA 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5E [18:50:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:50:00]wFMCommunicate OK [18:50:00]SAM_PROTO_GetShiftState done [18:50:00]FM_GetShiftState done [18:50:00]opened in 1717373769 [18:50:00]opened+sec_in_day 1717460169 [18:50:00]quantity*price = 4000 [18:50:00]sum+1 = 4001 [18:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 76 03.06.2024 18:50 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39958 ФПД: 122872569521675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185003&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39958&fm=122872569521675&tin=02508201610067®Number=0000000000092680&sum=4000 0 [18:50:01]StoreToDocumentArchive [18:50:01]shift 376 fd 39958 [18:50:01]save to /storage/0376/doc_00039958 [18:50:01]save last doc name /storage/0376/doc_00039958 to /storage/kkm_last_doc_name [18:50:01]save OK [18:50:01]Clear old archive folders... [18:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:50:01]tlvbuf is 00E2F690 [18:50:01]SAM_PROTO_ClearQueue [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 09 00 00 [18:50:01]Write to MH i2c: E2 08 00 B7 14 80 09 00 00 00 00 00 00 3D [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_ClearQueue done [18:50:01]KKMCreateOFDPacket [18:50:01]OFDProtocolAddRootSTLVToBuf [18:50:01]FM_MakeSignedData [18:50:01]FM_MakeSignedData [18:50:01]SAM_PROTO_SignData [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 01 02 [18:50:01]Write to MH i2c: E2 08 00 B8 14 80 0D 01 02 00 00 00 00 45 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=255 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5B 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:50:01]Write to MH i2c: E2 02 01 B9 14 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5B 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1E [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=30 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 16 9C 00 00 35 04 06 00 6F C0 7F DB E6 0B [18:50:01]Write to MH i2c: E2 21 00 BA 14 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 16 9C 00 00 35 04 06 00 6F C0 7F DB E6 0B 00 00 72 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 03 02 [18:50:01]Write to MH i2c: E2 08 00 BB 14 80 0D 03 02 00 00 00 00 4A [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0B 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0B 00 BB 14 00 9E 08 56 27 C4 68 DD E9 90 00 60 [18:50:01]RAPDU: 9E 08 56 27 C4 68 DD E9 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_SignData done [18:50:01]FM_MakeSignedData done [18:50:01]CreateOFDProtocolMessage [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 11 00 00 [18:50:01]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A2 [18:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:50:01]wFMCommunicate OK [18:50:01]CreateOFDProtocolMessage done [18:50:01]OFDSenderStorePacket 39958 [18:50:01]StoreOFDPacket docnum=39958 [18:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 6C A8 1B 01 9A E8 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5B 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 16 9C 00 00 35 04 06 00 6F C0 7F DB E6 0B 9E 08 56 27 C4 68 DD E9 [18:50:01]CheckFolder [18:50:01]dirname=/storage/ofd_packets [18:50:01]CheckFolder done [18:50:01]ProducePacketName [18:50:01]name=ofd_packets/00039958 [18:50:01]NVStorageSaveData ofd_packets/00039958 [18:50:01]File name is /storage/ofd_packets/00039958 [18:50:01]Write 321 bytes [18:50:01]NVStorageSaveData done [18:50:01]OFDSenderStorePacket done [18:50:01]KKMCreateOFDPacket done [18:50:01]NVStorageSaveData kkm_last_timestamp [18:50:01]File name is /storage/kkm_last_timestamp [18:50:01]Write 4 bytes [18:50:01]NVStorageSaveData done [18:50:01]ExternCall_PrintAddStr [18:50:01]wPrintStart [18:50:01]Write to MH i2c: 01 00 00 BD 14 D1 [18:50:01]OFD Sender: Processing packet 39958 [packets to send 5, broken 4] [18:50:01]ProducePacketName [18:50:01]name=ofd_packets/00039958 [18:50:01]OFD Sender: To server: pG, [18:50:01]CommunicateWithHost lk.salyk.kg:30040 [18:50:01]ConnectInit lk.salyk.kg [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 FF 0F E6 [18:50:01]RasterBufferAndPrint [18:50:01]line Счет N : (3)176517 [18:50:01]line ИНН: 02508201610067 [18:50:01]line Контрольно-Кассовый Чек [18:50:01]line ПРОДАЖА [18:50:01]line Товар: 4700000160211 [18:50:01]line Вода Легенда 0,5л [18:50:01]line 1.000 * 40.00 [18:50:01]line = 40.00 [18:50:01]line НДС 12% НСП 1% [18:50:01]line > о реализуемом товаре [18:50:01]line ИТОГО: 40.00 [18:50:01]line НСП 1% : 0.35 [18:50:01]line НДС 12% : 4.25 [18:50:01]line Наличными: 40.00 [18:50:01]line Безнал.: 0.00 [18:50:01]line Место: АЗС № 63 "Партнер Нефть" [18:50:01]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:50:01]line СНО: Общий режим [18:50:01]line Чек 76 03.06.2024 18:50 [18:50:01]line Смена: 376 ФФД: 1.0 [18:50:01]line ЗНМ: 0300000037 [18:50:01]line РНМ: 0000000000092680 [18:50:01]line Версия ККМ: 001 [18:50:01]line ФМ: 0000000000874882 [18:50:01]line ФД: 39958 [18:50:01]line ФПД: 122872569521675 [18:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185003&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39958&fm=122872569521675&tin=02508201610067®Number=0000000000092680&sum=4000 [18:50:01]line 0 [18:50:01]written 0, free lines is 4095 [18:50:01]Connected sock=10 [18:50:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 6C A8 1B 01 9A E8 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5B 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 16 9C 00 00 35 04 06 00 6F C0 7F DB E6 0B 9E 08 56 27 C4 68 DD E9 [18:50:02]Write to MH i2c: 01 00 00 E5 14 F9 [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 12 0D 1F [18:50:02]RasterBufferAndPrint [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]written 0, free lines is 3352 [18:50:02]MH_Cut [18:50:02]Write to MH i2c: D1 01 00 EC 14 01 D2 [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 01 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 01 00 EC 14 00 D1 [18:50:02]Write to MH i2c: 01 00 00 ED 14 01 [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 F7 E0 47 00 EE 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 16 9C 00 00 F4 03 04 00 07 B9 5D 66 B6 04 01 00 00 AB 81 6F 4F AB DE C7 6E [18:50:02]CommunicateWithHost err = 0 [18:50:02]CheckOFDResponse [18:50:02]1017 (14) - 77093643461234 [18:50:02]1041 (16) - 0000000000874882 [18:50:02]1040 (4) - 39958 [18:50:02]1012 (4) - 03.06.2024 12:37 [18:50:02]1206 (1) - 0 [18:50:02]OFD Sender: Remove packet 39958 [18:50:02]ProducePacketName [18:50:02]name=ofd_packets/00039958 [18:50:02]NVStorageDeleteData [18:50:02]OFD Sender: No OFD packet to send [18:50:02]*** Cut start [18:50:02]*** Partial cut [18:50:02]*** CUTSNS_PIN = 1 [18:50:02]*** CUTSNS_PIN = 0 [18:50:03]*** Brake cut motor [18:50:03]Read from MH i2c: 01 [18:50:03]MH_I2C_Read... [18:50:03]*** Stop cut motor [18:50:03]*** Cut end [18:50:03]Read from MH i2c: 01 07 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: 01 07 00 ED 14 00 00 00 00 00 FF 0F 16 [18:50:03]process_action close_receipt done [18:50:03]requested_data is exist [18:50:03]produce_requested_data [18:50:03]requested_item fm.sn is exist - process it [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 11 00 00 [18:50:03]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D4 [18:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:50:03]wFMCommunicate OK [18:50:03]requested_item fd.num is exist - process it [18:50:03]SAM_PROTO_GetFieldsCounters [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 00 00 [18:50:03]Write to MH i2c: E2 08 00 EF 14 80 13 00 00 00 00 00 00 7F [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 EF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 16 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 16 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetFieldsCounters done [18:50:03]requested_item shift.num is exist - process it [18:50:03]requested_item shift.opened is exist - process it [18:50:03]req_shift_opened [18:50:03]FM_GetShiftState [18:50:03]SAM_PROTO_GetShiftState [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 01 00 [18:50:03]Write to MH i2c: E2 08 00 F0 14 80 13 01 00 00 00 00 00 81 [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 0E 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 0E 00 F0 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A4 [18:50:03]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetShiftState done [18:50:03]FM_GetShiftState done [18:50:03]req_shift_opened done [18:50:03]requested_item shift.open_date is exist - process it [18:50:03]req_shift_open_date [18:50:03]req_shift_open_date done [18:50:03]produce_requested_data done [18:50:03]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39958,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:50:03]process_action_free close_receipt [18:50:03]json_value_free [18:50:03]json_value_free done [18:50:03]process_json_proto returns [18:50:03]Send response to host [18:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39958,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:50:03]free response buf [18:50:03]execute_script done [18:50:03]execute_script returns [18:50:03]free content buf [18:50:03]Sock 8.Close socket [18:50:03]Sock 8.Thread stoped [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:53]accept exits with 9 [18:51:53]New connection [18:51:53]New thread 3067325796 created [18:51:53]Thread 3067182436 joined [18:51:53]Waiting for new connection... [18:51:53] Sock 9.Parse request [18:51:53]Sock 9.Check first char [18:51:53]Sock 9.First char is OK [18:51:53]request: POST /json_proto HTTP/1.0 [18:51:53]Method: POST [18:51:53]URL: /json_proto [18:51:53]Method is POST - this is cgi request [18:51:53]url: /json_proto [18:51:53]query_string will be loaded in cgi processing [18:51:53]execute_cgi json_proto POST (null) [18:51:53]execute_cgi path=json_proto method=POST [18:51:53]POST find Content-Length [18:51:53]Host: 172.17.36.199:8080 [18:51:53]Content-Length: 621 [18:51:53]Content-Type: application/json [18:51:53] [18:51:53]POST finish read [18:51:53]Found Content-Length = 621 [18:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176518", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:53]execute_script... [18:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176518", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:53]POST & json_proto [18:51:53]process_json_proto [18:51:53]json parsed OK: [18:51:53]protocol is kg_v1.0 [18:51:53]action value=close_receipt [18:51:53]process_action close_receipt [18:51:53]cmd_close_receipt [18:51:53]MH_GetDate [18:51:53]Write to MH i2c: F0 00 00 F1 14 F4 [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 09 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 09 00 F1 14 00 CC 10 5E 66 91 46 04 65 DD [18:51:53]GetLastDocTimeStamp 1717440603 [18:51:53]current date 1717440716 [18:51:53]FM_GetShiftState [18:51:53]SAM_PROTO_GetShiftState [18:51:53]wFMCommunicate request_size=4 [18:51:53]MH_SAM_APDU [18:51:53]CAPDU: 80 13 01 00 [18:51:53]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:53]Read from MH i2c: E2 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 0E 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 0E 00 F2 14 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A6 [18:51:53]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:51:53]wFMCommunicate OK [18:51:53]SAM_PROTO_GetShiftState done [18:51:53]FM_GetShiftState done [18:51:53]opened in 1717373769 [18:51:53]opened+sec_in_day 1717460169 [18:51:53]quantity*price = 14000 [18:51:53]sum+1 = 14001 [18:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 77 03.06.2024 18:51 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39959 ФПД: 29717210195960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185156&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39959&fm=29717210195960&tin=02508201610067®Number=0000000000092680&sum=14000 0 [18:51:54]StoreToDocumentArchive [18:51:54]shift 376 fd 39959 [18:51:54]save to /storage/0376/doc_00039959 [18:51:54]save last doc name /storage/0376/doc_00039959 to /storage/kkm_last_doc_name [18:51:54]save OK [18:51:54]Clear old archive folders... [18:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:51:54]tlvbuf is 00E2F2B0 [18:51:54]SAM_PROTO_ClearQueue [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 09 00 00 [18:51:54]Write to MH i2c: E2 08 00 FF 14 80 09 00 00 00 00 00 00 85 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_ClearQueue done [18:51:54]KKMCreateOFDPacket [18:51:54]OFDProtocolAddRootSTLVToBuf [18:51:54]FM_MakeSignedData [18:51:54]FM_MakeSignedData [18:51:54]SAM_PROTO_SignData [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 01 02 [18:51:54]Write to MH i2c: E2 08 00 00 15 80 0D 01 02 00 00 00 00 8E [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=255 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CC 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [18:51:54]Write to MH i2c: E2 02 01 01 15 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CC 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 E9 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=32 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 17 9C 00 00 35 04 06 00 1B 07 13 C1 E7 F8 [18:51:54]Write to MH i2c: E2 23 00 02 15 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 17 9C 00 00 35 04 06 00 1B 07 13 C1 E7 F8 00 00 7B [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 03 02 [18:51:54]Write to MH i2c: E2 08 00 03 15 80 0D 03 02 00 00 00 00 93 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0B 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0B 00 03 15 00 EA B8 00 43 3D 17 67 30 90 00 64 [18:51:54]RAPDU: EA B8 00 43 3D 17 67 30 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_SignData done [18:51:54]FM_MakeSignedData done [18:51:54]CreateOFDProtocolMessage [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 11 00 00 [18:51:54]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 EB [18:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:51:54]wFMCommunicate OK [18:51:54]CreateOFDProtocolMessage done [18:51:54]OFDSenderStorePacket 39959 [18:51:54]StoreOFDPacket docnum=39959 [18:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 D6 1E 1D 01 8A D3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CC 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 17 9C 00 00 35 04 06 00 1B 07 13 C1 E7 F8 EA B8 00 43 3D 17 67 30 [18:51:54]CheckFolder [18:51:54]dirname=/storage/ofd_packets [18:51:54]CheckFolder done [18:51:54]ProducePacketName [18:51:54]name=ofd_packets/00039959 [18:51:54]NVStorageSaveData ofd_packets/00039959 [18:51:54]File name is /storage/ofd_packets/00039959 [18:51:54]Write 323 bytes [18:51:54]NVStorageSaveData done [18:51:54]OFDSenderStorePacket done [18:51:54]KKMCreateOFDPacket done [18:51:54]NVStorageSaveData kkm_last_timestamp [18:51:54]File name is /storage/kkm_last_timestamp [18:51:54]Write 4 bytes [18:51:54]NVStorageSaveData done [18:51:54]ExternCall_PrintAddStr [18:51:54]wPrintStart [18:51:54]Write to MH i2c: 01 00 00 05 15 1A [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [18:51:54]RasterBufferAndPrint [18:51:54]line Счет N : (3)176518 [18:51:54]line ИНН: 02508201610067 [18:51:54]line Контрольно-Кассовый Чек [18:51:54]line ПРОДАЖА [18:51:54]line Товар: 48743570 [18:51:54]line Сигареты Winston XStyle Blue [18:51:54]line 1.000 * 140.00 [18:51:54]line = 140.00 [18:51:54]line НДС 12% НСП 1% [18:51:54]line > о реализуемом товаре [18:51:54]line ИТОГО: 140.00 [18:51:54]line НСП 1% : 1.24 [18:51:54]line НДС 12% : 14.87 [18:51:54]line Наличными: 140.00 [18:51:54]line Безнал.: 0.00 [18:51:54]line Место: АЗС № 63 "Партнер Нефть" [18:51:54]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:51:54]line СНО: Общий режим [18:51:54]line Чек 77 03.06.2024 18:51 [18:51:54]line Смена: 376 ФФД: 1.0 [18:51:54]line ЗНМ: 0300000037 [18:51:54]line РНМ: 0000000000092680 [18:51:54]line Версия ККМ: 001 [18:51:54]line ФМ: 0000000000874882 [18:51:54]line ФД: 39959 [18:51:54]line ФПД: 29717210195960 [18:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185156&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39959&fm=29717210195960&tin=02508201610067®Number=0000000000092680&sum=14000 [18:51:55]line 0 [18:51:55]OFD Sender: Processing packet 39959 [packets to send 5, broken 4] [18:51:55]ProducePacketName [18:51:55]name=ofd_packets/00039959 [18:51:55]OFD Sender: To server: pG, [18:51:55]CommunicateWithHost lk.salyk.kg:30040 [18:51:55]ConnectInit lk.salyk.kg [18:51:55]written 0, free lines is 4095 [18:51:55]Connected sock=10 [18:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 D6 1E 1D 01 8A D3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CC 10 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 17 9C 00 00 35 04 06 00 1B 07 13 C1 E7 F8 EA B8 00 43 3D 17 67 30 [18:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 83 79 47 00 0B 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 17 9C 00 00 F4 03 04 00 78 B9 5D 66 B6 04 01 00 00 18 B1 CC BA 0E 3A 0F B8 [18:51:55]CommunicateWithHost err = 0 [18:51:55]CheckOFDResponse [18:51:55]1017 (14) - 77093643461234 [18:51:55]1041 (16) - 0000000000874882 [18:51:55]1040 (4) - 39959 [18:51:55]1012 (4) - 03.06.2024 12:39 [18:51:55]1206 (1) - 0 [18:51:55]OFD Sender: Remove packet 39959 [18:51:55]ProducePacketName [18:51:55]name=ofd_packets/00039959 [18:51:55]NVStorageDeleteData [18:51:55]Write to MH i2c: 01 00 00 2D 15 42 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 07 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 08 0D 5E [18:51:55]RasterBufferAndPrint [18:51:55]line [18:51:55]line [18:51:55]line [18:51:55]line [18:51:55]line [18:51:55]written 0, free lines is 3342 [18:51:55]MH_Cut [18:51:55]Write to MH i2c: D1 01 00 34 15 01 1B [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: D1 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: D1 01 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: D1 01 00 34 15 00 1A [18:51:55]Write to MH i2c: 01 00 00 35 15 4A [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]OFD Sender: No OFD packet to send [18:51:56]*** Cut start [18:51:56]*** Partial cut [18:51:56]*** CUTSNS_PIN = 1 [18:51:56]*** CUTSNS_PIN = 0 [18:51:56]*** Brake cut motor [18:51:56]Read from MH i2c: 01 [18:51:56]MH_I2C_Read... [18:51:56]*** Stop cut motor [18:51:56]*** Cut end [18:51:56]Read from MH i2c: 01 07 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [18:51:56]process_action close_receipt done [18:51:56]requested_data is exist [18:51:56]produce_requested_data [18:51:56]requested_item fm.sn is exist - process it [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 11 00 00 [18:51:56]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 17 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1D [18:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:51:56]wFMCommunicate OK [18:51:56]requested_item fd.num is exist - process it [18:51:56]SAM_PROTO_GetFieldsCounters [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 13 00 00 [18:51:56]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 62 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 62 00 37 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 17 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 17 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_GetFieldsCounters done [18:51:57]requested_item shift.num is exist - process it [18:51:57]requested_item shift.opened is exist - process it [18:51:57]req_shift_opened [18:51:57]FM_GetShiftState [18:51:57]SAM_PROTO_GetShiftState [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 13 01 00 [18:51:57]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:57]Read from MH i2c: E2 0E 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 ED [18:51:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_GetShiftState done [18:51:57]FM_GetShiftState done [18:51:57]req_shift_opened done [18:51:57]requested_item shift.open_date is exist - process it [18:51:57]req_shift_open_date [18:51:57]req_shift_open_date done [18:51:57]produce_requested_data done [18:51:57]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39959,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:51:57]process_action_free close_receipt [18:51:57]json_value_free [18:51:57]json_value_free done [18:51:57]process_json_proto returns [18:51:57]Send response to host [18:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39959,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:51:57]free response buf [18:51:57]execute_script done [18:51:57]execute_script returns [18:51:57]free content buf [18:51:57]Sock 9.Close socket [18:51:57]Sock 9.Thread stoped [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:52]accept exits with 8 [18:57:52]New connection [18:57:52]New thread 3067182436 created [18:57:52]Thread 3067325796 joined [18:57:52]Waiting for new connection... [18:57:52] Sock 8.Parse request [18:57:52]Sock 8.Check first char [18:57:52]Sock 8.First char is OK [18:57:52]request: POST /json_proto HTTP/1.0 [18:57:52]Method: POST [18:57:52]URL: /json_proto [18:57:52]Method is POST - this is cgi request [18:57:52]url: /json_proto [18:57:52]query_string will be loaded in cgi processing [18:57:52]execute_cgi json_proto POST (null) [18:57:52]execute_cgi path=json_proto method=POST [18:57:52]POST find Content-Length [18:57:52]Host: 172.17.36.199:8080 [18:57:52]Content-Length: 833 [18:57:52]Content-Type: application/json [18:57:52] [18:57:52]POST finish read [18:57:52]Found Content-Length = 833 [18:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176519", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:52]execute_script... [18: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 : (3)176519", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:52]POST & json_proto [18:57:52]process_json_proto [18:57:52]json parsed OK: [18:57:52]protocol is kg_v1.0 [18:57:52]action value=close_receipt [18:57:52]process_action close_receipt [18:57:52]cmd_close_receipt [18:57:52]MH_GetDate [18:57:52]Write to MH i2c: F0 00 00 39 15 3D [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: F0 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: F0 09 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: F0 09 00 39 15 00 33 12 5E 66 91 46 04 65 8F [18:57:52]GetLastDocTimeStamp 1717440716 [18:57:52]current date 1717441075 [18:57:52]FM_GetShiftState [18:57:52]SAM_PROTO_GetShiftState [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 01 00 [18:57:52]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 EF [18:57:52]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetShiftState done [18:57:52]FM_GetShiftState done [18:57:52]opened in 1717373769 [18:57:52]opened+sec_in_day 1717460169 [18:57:52]quantity*price = 6000 [18:57:52]sum+1 = 6001 [18:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 78 03.06.2024 18:57 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39960 ФПД: 148586558563363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185755&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39960&fm=148586558563363&tin=02508201610067®Number=0000000000092680&sum=6000 0 [18:57:53]StoreToDocumentArchive [18:57:53]shift 376 fd 39960 [18:57:53]save to /storage/0376/doc_00039960 [18:57:53]save last doc name /storage/0376/doc_00039960 to /storage/kkm_last_doc_name [18:57:53]save OK [18:57:53]Clear old archive folders... [18:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:57:53]tlvbuf is 00E68230 [18:57:53]SAM_PROTO_ClearQueue [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 09 00 00 [18:57:53]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [18:57:53]RAPDU: 90 00 [18:57:53]wFMCommunicate OK [18:57:53]SAM_PROTO_ClearQueue done [18:57:53]KKMCreateOFDPacket [18:57:53]OFDProtocolAddRootSTLVToBuf [18:57:53]FM_MakeSignedData [18:57:53]FM_MakeSignedData [18:57:53]SAM_PROTO_SignData [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 0D 01 02 [18:57:53]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [18:57:53]RAPDU: 90 00 [18:57:53]wFMCommunicate OK [18:57:53]wFMCommunicate request_size=255 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 33 12 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:57:53]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 33 12 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D5 [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [18:57:53]RAPDU: 90 00 [18:57:53]wFMCommunicate OK [18:57:53]wFMCommunicate request_size=30 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 18 9C 00 00 35 04 06 00 87 23 81 0A A4 23 [18:57:53]Write to MH i2c: E2 21 00 4A 15 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 18 9C 00 00 35 04 06 00 87 23 81 0A A4 23 00 00 87 [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [18:57:53]RAPDU: 90 00 [18:57:53]wFMCommunicate OK [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 0D 03 02 [18:57:53]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0B 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0B 00 4B 15 00 6B 6E EB 7A BA F8 CF 6D 90 00 08 [18:57:53]RAPDU: 6B 6E EB 7A BA F8 CF 6D 90 00 [18:57:53]wFMCommunicate OK [18:57:53]SAM_PROTO_SignData done [18:57:53]FM_MakeSignedData done [18:57:53]CreateOFDProtocolMessage [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 11 00 00 [18:57:53]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 17 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 33 [18:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:57:53]wFMCommunicate OK [18:57:53]CreateOFDProtocolMessage done [18:57:53]OFDSenderStorePacket 39960 [18:57:53]StoreOFDPacket docnum=39960 [18:57:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 85 8D 1B 01 ED A0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 33 12 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 18 9C 00 00 35 04 06 00 87 23 81 0A A4 23 6B 6E EB 7A BA F8 CF 6D [18:57:53]CheckFolder [18:57:53]dirname=/storage/ofd_packets [18:57:53]CheckFolder done [18:57:53]ProducePacketName [18:57:53]name=ofd_packets/00039960 [18:57:53]NVStorageSaveData ofd_packets/00039960 [18:57:53]File name is /storage/ofd_packets/00039960 [18:57:53]Write 321 bytes [18:57:53]NVStorageSaveData done [18:57:53]OFDSenderStorePacket done [18:57:53]KKMCreateOFDPacket done [18:57:53]NVStorageSaveData kkm_last_timestamp [18:57:53]File name is /storage/kkm_last_timestamp [18:57:53]Write 4 bytes [18:57:53]NVStorageSaveData done [18:57:53]ExternCall_PrintAddStr [18:57:53]wPrintStart [18:57:53]Write to MH i2c: 01 00 00 4D 15 62 [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: 01 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: 01 07 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [18:57:53]RasterBufferAndPrint [18:57:53]line Счет N : (3)176519 [18:57:53]line ИНН: 02508201610067 [18:57:53]line Контрольно-Кассовый Чек [18:57:53]line ПРОДАЖА [18:57:53]line Товар: 4700000160204 [18:57:53]line Вода Легенда 1,5л [18:57:53]line 1.000 * 60.00 [18:57:53]line = 60.00 [18:57:53]line НДС 12% НСП 1% [18:57:53]line > о реализуемом товаре [18:57:53]line ИТОГО: 60.00 [18:57:53]line НСП 1% : 0.53 [18:57:53]line НДС 12% : 6.37 [18:57:53]line Наличными: 0.00 [18:57:53]line Безнал.: 60.00 [18:57:53]line Место: АЗС № 63 "Партнер Нефть" [18:57:53]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [18:57:53]line СНО: Общий режим [18:57:53]line Чек 78 03.06.2024 18:57 [18:57:53]line Смена: 376 ФФД: 1.0 [18:57:53]line ЗНМ: 0300000037 [18:57:53]line РНМ: 0000000000092680 [18:57:53]line Версия ККМ: 001 [18:57:53]line Платежная система: АКБ Кыргызстан [18:57:53]line ФМ: 0000000000874882 [18:57:53]line ФД: 39960 [18:57:53]line ФПД: 148586558563363 [18:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185755&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39960&fm=148586558563363&tin=02508201610067®Number=0000000000092680&sum=6000 [18:57:54]line 0 [18:57:54]OFD Sender: Processing packet 39960 [packets to send 5, broken 4] [18:57:54]ProducePacketName [18:57:54]name=ofd_packets/00039960 [18:57:54]OFD Sender: To server: pG, [18:57:54]CommunicateWithHost lk.salyk.kg:30040 [18:57:54]ConnectInit lk.salyk.kg [18:57:54]written 0, free lines is 4095 [18:57:54]Connected sock=10 [18:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 85 8D 1B 01 ED A0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 33 12 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 18 9C 00 00 35 04 06 00 87 23 81 0A A4 23 6B 6E EB 7A BA F8 CF 6D [18:57:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 BB 66 47 00 A3 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 38 37 34 38 38 32 10 04 04 00 18 9C 00 00 F4 03 04 00 DF BA 5D 66 B6 04 01 00 00 E7 74 EA 77 46 30 C0 96 [18:57:54]CommunicateWithHost err = 0 [18:57:54]CheckOFDResponse [18:57:54]1017 (14) - 77093643461234 [18:57:54]1041 (16) - 0000000000874882 [18:57:54]1040 (4) - 39960 [18:57:54]1012 (4) - 03.06.2024 12:45 [18:57:54]1206 (1) - 0 [18:57:54]OFD Sender: Remove packet 39960 [18:57:54]ProducePacketName [18:57:54]name=ofd_packets/00039960 [18:57:54]NVStorageDeleteData [18:57:54]Write to MH i2c: 01 00 00 77 15 8C [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 07 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 0F 0D AF [18:57:54]RasterBufferAndPrint [18:57:54]line [18:57:54]line [18:57:54]line [18:57:54]line [18:57:54]line [18:57:54]written 0, free lines is 3350 [18:57:54]MH_Cut [18:57:54]Write to MH i2c: D1 01 00 7E 15 01 65 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: D1 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: D1 01 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: D1 01 00 7E 15 00 64 [18:57:54]Write to MH i2c: 01 00 00 7F 15 94 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]OFD Sender: No OFD packet to send [18:57:55]*** Cut start [18:57:55]*** Partial cut [18:57:55]*** CUTSNS_PIN = 1 [18:57:55]*** CUTSNS_PIN = 0 [18:57:55]*** Brake cut motor [18:57:55]Read from MH i2c: 01 [18:57:55]MH_I2C_Read... [18:57:55]*** Stop cut motor [18:57:55]*** Cut end [18:57:55]Read from MH i2c: 01 07 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 7F 15 00 00 00 00 00 FF 0F A9 [18:57:55]process_action close_receipt done [18:57:55]requested_data is exist [18:57:55]produce_requested_data [18:57:55]requested_item fm.sn is exist - process it [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 11 00 00 [18:57:55]Write to MH i2c: E2 08 00 80 15 80 11 00 00 00 00 00 00 0F [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 80 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 67 [18:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [18:57:55]wFMCommunicate OK [18:57:55]requested_item fd.num is exist - process it [18:57:55]SAM_PROTO_GetFieldsCounters [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 13 00 00 [18:57:55]Write to MH i2c: E2 08 00 81 15 80 13 00 00 00 00 00 00 12 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 62 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 62 00 81 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 18 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:57:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 18 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetFieldsCounters done [18:57:56]requested_item shift.num is exist - process it [18:57:56]requested_item shift.opened is exist - process it [18:57:56]req_shift_opened [18:57:56]FM_GetShiftState [18:57:56]SAM_PROTO_GetShiftState [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 01 00 [18:57:56]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 37 [18:57:56]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetShiftState done [18:57:56]FM_GetShiftState done [18:57:56]req_shift_opened done [18:57:56]requested_item shift.open_date is exist - process it [18:57:56]req_shift_open_date [18:57:56]req_shift_open_date done [18:57:56]produce_requested_data done [18:57:56]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39960,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [18:57:56]process_action_free close_receipt [18:57:56]json_value_free [18:57:56]json_value_free done [18:57:56]process_json_proto returns [18:57:56]Send response to host [18:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39960,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [18:57:56]free response buf [18:57:56]execute_script done [18:57:56]execute_script returns [18:57:56]free content buf [18:57:56]Sock 8.Close socket [18:57:56]Sock 8.Thread stoped [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]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:50]accept exits with 9 [19:46:50]New connection [19:46:50]New thread 3067325796 created [19:46:50]Thread 3067182436 joined [19:46:50]Waiting for new connection... [19:46:50] Sock 9.Parse request [19:46:50]Sock 9.Check first char [19:46:50]Sock 9.First char is OK [19:46:50]request: POST /json_proto HTTP/1.0 [19:46:50]Method: POST [19:46:50]URL: /json_proto [19:46:50]Method is POST - this is cgi request [19:46:50]url: /json_proto [19:46:50]query_string will be loaded in cgi processing [19:46:50]execute_cgi json_proto POST (null) [19:46:50]execute_cgi path=json_proto method=POST [19:46:50]POST find Content-Length [19:46:50]Host: 172.17.36.199:8080 [19:46:50]Content-Length: 797 [19:46:50]Content-Type: application/json [19:46:50] [19:46:50]POST finish read [19:46:50]Found Content-Length = 797 [19:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176520", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:50]execute_script... [19:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176520", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:50]POST & json_proto [19:46:50]process_json_proto [19:46:50]json parsed OK: [19:46:50]protocol is kg_v1.0 [19:46:50]action value=close_receipt [19:46:50]process_action close_receipt [19:46:50]cmd_close_receipt [19:46:50]MH_GetDate [19:46:50]Write to MH i2c: F0 00 00 83 15 87 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 09 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 09 00 83 15 00 AE 1D 5E 66 91 46 04 65 5F [19:46:50]GetLastDocTimeStamp 1717441075 [19:46:50]current date 1717444014 [19:46:50]FM_GetShiftState [19:46:50]SAM_PROTO_GetShiftState [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 13 01 00 [19:46:50]Write to MH i2c: E2 08 00 84 15 80 13 01 00 00 00 00 00 16 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 84 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 39 [19:46:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_GetShiftState done [19:46:50]FM_GetShiftState done [19:46:50]opened in 1717373769 [19:46:50]opened+sec_in_day 1717460169 [19:46:50]quantity*price = 13500 [19:46:50]sum+1 = 13501 [19:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 79 03.06.2024 19:46 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39961 ФПД: 38533949376639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194654&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39961&fm=38533949376639&tin=02508201610067®Number=0000000000092680&sum=13500 0 [19:46:51]StoreToDocumentArchive [19:46:51]shift 376 fd 39961 [19:46:51]save to /storage/0376/doc_00039961 [19:46:51]save last doc name /storage/0376/doc_00039961 to /storage/kkm_last_doc_name [19:46:51]save OK [19:46:51]Clear old archive folders... [19:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:46:51]tlvbuf is 00E55FF0 [19:46:51]SAM_PROTO_ClearQueue [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 09 00 00 [19:46:51]Write to MH i2c: E2 08 00 91 15 80 09 00 00 00 00 00 00 18 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]SAM_PROTO_ClearQueue done [19:46:51]KKMCreateOFDPacket [19:46:51]OFDProtocolAddRootSTLVToBuf [19:46:51]FM_MakeSignedData [19:46:51]FM_MakeSignedData [19:46:51]SAM_PROTO_SignData [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 01 02 [19:46:51]Write to MH i2c: E2 08 00 92 15 80 0D 01 02 00 00 00 00 20 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]wFMCommunicate request_size=255 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 AE 1D 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [19:46:51]Write to MH i2c: E2 02 01 93 15 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 AE 1D 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 32 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]wFMCommunicate request_size=31 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 19 9C 00 00 35 04 06 00 23 0B E2 5D 48 7F [19:46:51]Write to MH i2c: E2 22 00 94 15 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 19 9C 00 00 35 04 06 00 23 0B E2 5D 48 7F 00 00 3C [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 03 02 [19:46:51]Write to MH i2c: E2 08 00 95 15 80 0D 03 02 00 00 00 00 25 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 0B 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 0B 00 95 15 00 B2 17 B9 49 3B 3B 02 27 90 00 90 [19:46:51]RAPDU: B2 17 B9 49 3B 3B 02 27 90 00 [19:46:51]wFMCommunicate OK [19:46:51]SAM_PROTO_SignData done [19:46:51]FM_MakeSignedData done [19:46:51]CreateOFDProtocolMessage [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 11 00 00 [19:46:51]Write to MH i2c: E2 08 00 96 15 80 11 00 00 00 00 00 00 25 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 17 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 17 00 96 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 7D [19:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:46:51]wFMCommunicate OK [19:46:51]CreateOFDProtocolMessage done [19:46:51]OFDSenderStorePacket 39961 [19:46:51]StoreOFDPacket docnum=39961 [19:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 3F 84 1C 01 A1 25 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 AE 1D 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 19 9C 00 00 35 04 06 00 23 0B E2 5D 48 7F B2 17 B9 49 3B 3B 02 27 [19:46:51]CheckFolder [19:46:51]dirname=/storage/ofd_packets [19:46:51]CheckFolder done [19:46:51]ProducePacketName [19:46:51]name=ofd_packets/00039961 [19:46:51]NVStorageSaveData ofd_packets/00039961 [19:46:51]File name is /storage/ofd_packets/00039961 [19:46:51]Write 322 bytes [19:46:51]NVStorageSaveData done [19:46:51]OFDSenderStorePacket done [19:46:51]KKMCreateOFDPacket done [19:46:51]NVStorageSaveData kkm_last_timestamp [19:46:51]File name is /storage/kkm_last_timestamp [19:46:51]Write 4 bytes [19:46:51]NVStorageSaveData done [19:46:51]ExternCall_PrintAddStr [19:46:51]wPrintStart [19:46:51]Write to MH i2c: 01 00 00 97 15 AC [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 FF 0F C1 [19:46:51]RasterBufferAndPrint [19:46:51]line Счет N : (3)176520 [19:46:51]line ИНН: 02508201610067 [19:46:51]line Контрольно-Кассовый Чек [19:46:51]line ПРОДАЖА [19:46:51]line Товар: 48745000 [19:46:51]line Сигареты Winston Purple Mix [19:46:51]line 1.000 * 135.00 [19:46:51]line = 135.00 [19:46:51]line НДС 12% НСП 1% [19:46:51]line > о реализуемом товаре [19:46:51]line ИТОГО: 135.00 [19:46:51]line НСП 1% : 1.19 [19:46:51]line НДС 12% : 14.34 [19:46:51]line Наличными: 0.00 [19:46:51]line Безнал.: 135.00 [19:46:51]line Место: АЗС № 63 "Партнер Нефть" [19:46:51]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [19:46:51]line СНО: Общий режим [19:46:51]line Чек 79 03.06.2024 19:46 [19:46:51]line Смена: 376 ФФД: 1.0 [19:46:51]line ЗНМ: 0300000037 [19:46:51]line РНМ: 0000000000092680 [19:46:51]line Версия ККМ: 001 [19:46:51]line Платежная система: Бакай Банк [19:46:51]line ФМ: 0000000000874882 [19:46:51]line ФД: 39961 [19:46:51]line ФПД: 38533949376639 [19:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194654&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39961&fm=38533949376639&tin=02508201610067®Number=0000000000092680&sum=13500 [19:46:52]OFD Sender: Processing packet 39961 [packets to send 5, broken 4] [19:46:52]ProducePacketName [19:46:52]name=ofd_packets/00039961 [19:46:52]OFD Sender: To server: pG, [19:46:52]CommunicateWithHost lk.salyk.kg:30040 [19:46:52]ConnectInit lk.salyk.kg [19:46:52]line 0 [19:46:52]written 0, free lines is 4095 [19:46:52]Connected sock=11 [19:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 3F 84 1C 01 A1 25 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 AE 1D 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 19 9C 00 00 35 04 06 00 23 0B E2 5D 48 7F B2 17 B9 49 3B 3B 02 27 [19:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 AF 8D 47 00 83 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 19 9C 00 00 F4 03 04 00 59 C6 5D 66 B6 04 01 00 00 D6 E1 7C C1 30 6D 91 07 [19:46:52]CommunicateWithHost err = 0 [19:46:52]CheckOFDResponse [19:46:52]1017 (14) - 77093643461234 [19:46:52]1041 (16) - 0000000000874882 [19:46:52]1040 (4) - 39961 [19:46:52]1012 (4) - 03.06.2024 13:34 [19:46:52]1206 (1) - 0 [19:46:52]OFD Sender: Remove packet 39961 [19:46:52]ProducePacketName [19:46:52]name=ofd_packets/00039961 [19:46:52]NVStorageDeleteData [19:46:52]Write to MH i2c: 01 00 00 C1 15 D6 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 08 0D F2 [19:46:52]RasterBufferAndPrint [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]written 0, free lines is 3345 [19:46:52]MH_Cut [19:46:52]Write to MH i2c: D1 01 00 C8 15 01 AF [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 01 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 01 00 C8 15 00 AE [19:46:52]Write to MH i2c: 01 00 00 C9 15 DE [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:53]OFD Sender: No OFD packet to send [19:46:53]*** Cut start [19:46:53]*** Partial cut [19:46:53]*** CUTSNS_PIN = 1 [19:46:53]*** CUTSNS_PIN = 0 [19:46:53]*** Brake cut motor [19:46:53]Read from MH i2c: 01 [19:46:53]MH_I2C_Read... [19:46:53]*** Stop cut motor [19:46:53]*** Cut end [19:46:53]Read from MH i2c: 01 07 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 FF 0F F3 [19:46:53]process_action close_receipt done [19:46:53]requested_data is exist [19:46:53]produce_requested_data [19:46:53]requested_item fm.sn is exist - process it [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 11 00 00 [19:46:53]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B1 [19:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:46:54]wFMCommunicate OK [19:46:54]requested_item fd.num is exist - process it [19:46:54]SAM_PROTO_GetFieldsCounters [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 13 00 00 [19:46:54]Write to MH i2c: E2 08 00 CB 15 80 13 00 00 00 00 00 00 5C [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 62 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 62 00 CB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 19 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 19 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_GetFieldsCounters done [19:46:54]requested_item shift.num is exist - process it [19:46:54]requested_item shift.opened is exist - process it [19:46:54]req_shift_opened [19:46:54]FM_GetShiftState [19:46:54]SAM_PROTO_GetShiftState [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 13 01 00 [19:46:54]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0E 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 81 [19:46:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_GetShiftState done [19:46:54]FM_GetShiftState done [19:46:54]req_shift_opened done [19:46:54]requested_item shift.open_date is exist - process it [19:46:54]req_shift_open_date [19:46:54]req_shift_open_date done [19:46:54]produce_requested_data done [19:46:54]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39961,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [19:46:54]process_action_free close_receipt [19:46:54]json_value_free [19:46:54]json_value_free done [19:46:54]process_json_proto returns [19:46:54]Send response to host [19:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39961,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [19:46:54]free response buf [19:46:54]execute_script done [19:46:54]execute_script returns [19:46:54]free content buf [19:46:54]Sock 9.Close socket [19:46:54]Sock 9.Thread stoped [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:55]accept exits with 10 [19:53:55]New connection [19:53:55]New thread 3067182436 created [19:53:55]Thread 3067325796 joined [19:53:55]Waiting for new connection... [19:53:55] Sock 10.Parse request [19:53:55]Sock 10.Check first char [19:53:55]Sock 10.First char is OK [19:53:55]request: POST /json_proto HTTP/1.0 [19:53:55]Method: POST [19:53:55]URL: /json_proto [19:53:55]Method is POST - this is cgi request [19:53:55]url: /json_proto [19:53:55]query_string will be loaded in cgi processing [19:53:55]execute_cgi json_proto POST (null) [19:53:55]execute_cgi path=json_proto method=POST [19:53:55]POST find Content-Length [19:53:55]Host: 172.17.36.199:8080 [19:53:55]Content-Length: 620 [19:53:55]Content-Type: application/json [19:53:55] [19:53:55]POST finish read [19:53:55]Found Content-Length = 620 [19:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176522", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:55]execute_script... [19:53:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176522", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:55]POST & json_proto [19:53:55]process_json_proto [19:53:55]json parsed OK: [19:53:55]protocol is kg_v1.0 [19:53:55]action value=close_receipt [19:53:55]process_action close_receipt [19:53:55]cmd_close_receipt [19:53:55]MH_GetDate [19:53:55]Write to MH i2c: F0 00 00 CD 15 D1 [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: F0 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: F0 09 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: F0 09 00 CD 15 00 57 1F 5E 66 91 46 04 65 54 [19:53:55]GetLastDocTimeStamp 1717444014 [19:53:55]current date 1717444439 [19:53:55]FM_GetShiftState [19:53:55]SAM_PROTO_GetShiftState [19:53:55]wFMCommunicate request_size=4 [19:53:55]MH_SAM_APDU [19:53:55]CAPDU: 80 13 01 00 [19:53:55]Write to MH i2c: E2 08 00 CE 15 80 13 01 00 00 00 00 00 60 [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:55]Read from MH i2c: E2 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 0E 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 0E 00 CE 15 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 83 [19:53:55]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:53:55]wFMCommunicate OK [19:53:55]SAM_PROTO_GetShiftState done [19:53:55]FM_GetShiftState done [19:53:55]opened in 1717373769 [19:53:55]opened+sec_in_day 1717460169 [19:53:55]quantity*price = 13800 [19:53:55]sum+1 = 13801 [19:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 80 03.06.2024 19:53 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39962 ФПД: 8086393000441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195359&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39962&fm=8086393000441&tin=02508201610067®Number=0000000000092680&sum=13800 0 [19:53:56]StoreToDocumentArchive [19:53:56]shift 376 fd 39962 [19:53:56]save to /storage/0376/doc_00039962 [19:53:56]save last doc name /storage/0376/doc_00039962 to /storage/kkm_last_doc_name [19:53:56]save OK [19:53:56]Clear old archive folders... [19:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:53:56]tlvbuf is 00DE95F0 [19:53:56]SAM_PROTO_ClearQueue [19:53:56]wFMCommunicate request_size=4 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 09 00 00 [19:53:56]Write to MH i2c: E2 08 00 DB 15 80 09 00 00 00 00 00 00 62 [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:56]Read from MH i2c: E2 03 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [19:53:56]RAPDU: 90 00 [19:53:56]wFMCommunicate OK [19:53:56]SAM_PROTO_ClearQueue done [19:53:56]KKMCreateOFDPacket [19:53:56]OFDProtocolAddRootSTLVToBuf [19:53:56]FM_MakeSignedData [19:53:56]FM_MakeSignedData [19:53:56]SAM_PROTO_SignData [19:53:56]wFMCommunicate request_size=4 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 0D 01 02 [19:53:56]Write to MH i2c: E2 08 00 DC 15 80 0D 01 02 00 00 00 00 6A [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [19:53:56]RAPDU: 90 00 [19:53:56]wFMCommunicate OK [19:53:56]wFMCommunicate request_size=255 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [19:53:56]Write to MH i2c: E2 02 01 DD 15 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 95 [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [19:53:56]RAPDU: 90 00 [19:53:56]wFMCommunicate OK [19:53:56]wFMCommunicate request_size=31 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 1A 9C 00 00 35 04 06 00 07 5A C2 95 11 F9 [19:53:56]Write to MH i2c: E2 22 00 DE 15 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 1A 9C 00 00 35 04 06 00 07 5A C2 95 11 F9 00 00 15 [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [19:53:56]RAPDU: 90 00 [19:53:56]wFMCommunicate OK [19:53:56]wFMCommunicate request_size=4 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 0D 03 02 [19:53:56]Write to MH i2c: E2 08 00 DF 15 80 0D 03 02 00 00 00 00 6F [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 0B 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 0B 00 DF 15 00 8D 1C F6 EC 7C 8C 2B 7D 90 00 AB [19:53:56]RAPDU: 8D 1C F6 EC 7C 8C 2B 7D 90 00 [19:53:56]wFMCommunicate OK [19:53:56]SAM_PROTO_SignData done [19:53:56]FM_MakeSignedData done [19:53:56]CreateOFDProtocolMessage [19:53:56]wFMCommunicate request_size=4 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 11 00 00 [19:53:56]Write to MH i2c: E2 08 00 E0 15 80 11 00 00 00 00 00 00 6F [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 17 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 17 00 E0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C7 [19:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:53:56]wFMCommunicate OK [19:53:56]CreateOFDProtocolMessage done [19:53:56]OFDSenderStorePacket 39962 [19:53:56]StoreOFDPacket docnum=39962 [19:53:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 BC 68 1C 01 B5 EC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1A 9C 00 00 35 04 06 00 07 5A C2 95 11 F9 8D 1C F6 EC 7C 8C 2B 7D [19:53:56]CheckFolder [19:53:56]dirname=/storage/ofd_packets [19:53:56]CheckFolder done [19:53:56]ProducePacketName [19:53:56]name=ofd_packets/00039962 [19:53:56]NVStorageSaveData ofd_packets/00039962 [19:53:56]File name is /storage/ofd_packets/00039962 [19:53:56]Write 322 bytes [19:53:56]NVStorageSaveData done [19:53:56]OFDSenderStorePacket done [19:53:56]KKMCreateOFDPacket done [19:53:56]NVStorageSaveData kkm_last_timestamp [19:53:56]File name is /storage/kkm_last_timestamp [19:53:56]Write 4 bytes [19:53:56]NVStorageSaveData done [19:53:56]ExternCall_PrintAddStr [19:53:56]wPrintStart [19:53:56]Write to MH i2c: 01 00 00 E1 15 F6 [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 FF 0F 0B [19:53:56]RasterBufferAndPrint [19:53:56]line Счет N : (3)176522 [19:53:56]line ИНН: 02508201610067 [19:53:56]line Контрольно-Кассовый Чек [19:53:56]line ПРОДАЖА [19:53:56]line Товар: 4640030091607 [19:53:56]line Сигареты ESSE Exchange [19:53:56]line 1.000 * 138.00 [19:53:56]line = 138.00 [19:53:56]line НДС 12% НСП 1% [19:53:56]line > о реализуемом товаре [19:53:56]line ИТОГО: 138.00 [19:53:56]line НСП 1% : 1.22 [19:53:56]line НДС 12% : 14.65 [19:53:56]line Наличными: 138.00 [19:53:56]line Безнал.: 0.00 [19:53:56]line Место: АЗС № 63 "Партнер Нефть" [19:53:56]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [19:53:56]line СНО: Общий режим [19:53:56]line Чек 80 03.06.2024 19:53 [19:53:56]line Смена: 376 ФФД: 1.0 [19:53:56]line ЗНМ: 0300000037 [19:53:56]line РНМ: 0000000000092680 [19:53:56]line Версия ККМ: 001 [19:53:56]line ФМ: 0000000000874882 [19:53:56]line ФД: 39962 [19:53:56]line ФПД: 8086393000441 [19:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195359&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39962&fm=8086393000441&tin=02508201610067®Number=0000000000092680&sum=13800 [19:53:57]OFD Sender: Processing packet 39962 [packets to send 5, broken 4] [19:53:57]ProducePacketName [19:53:57]name=ofd_packets/00039962 [19:53:57]OFD Sender: To server: pG, [19:53:57]CommunicateWithHost lk.salyk.kg:30040 [19:53:57]ConnectInit lk.salyk.kg [19:53:57]line 0 [19:53:57]written 0, free lines is 4095 [19:53:57]Connected sock=9 [19:53:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 BC 68 1C 01 B5 EC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1A 9C 00 00 35 04 06 00 07 5A C2 95 11 F9 8D 1C F6 EC 7C 8C 2B 7D [19:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 A7 BC 47 00 E4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1A 9C 00 00 F4 03 04 00 02 C8 5D 66 B6 04 01 00 00 8A F6 F1 B9 8C 61 8B A5 [19:53:57]CommunicateWithHost err = 0 [19:53:57]CheckOFDResponse [19:53:57]1017 (14) - 77093643461234 [19:53:57]1041 (16) - 0000000000874882 [19:53:57]1040 (4) - 39962 [19:53:57]1012 (4) - 03.06.2024 13:41 [19:53:57]1206 (1) - 0 [19:53:57]OFD Sender: Remove packet 39962 [19:53:57]ProducePacketName [19:53:57]name=ofd_packets/00039962 [19:53:57]NVStorageDeleteData [19:53:57]Write to MH i2c: 01 00 00 09 16 1F [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 07 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 07 00 09 16 00 00 00 00 00 25 0D 58 [19:53:57]RasterBufferAndPrint [19:53:57]line [19:53:57]line [19:53:57]line [19:53:57]line [19:53:57]line [19:53:57]written 0, free lines is 3374 [19:53:57]MH_Cut [19:53:57]Write to MH i2c: D1 01 00 10 16 01 F8 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: D1 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: D1 01 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: D1 01 00 10 16 00 F7 [19:53:57]Write to MH i2c: 01 00 00 11 16 27 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:58]OFD Sender: No OFD packet to send [19:53:58]*** Cut start [19:53:58]*** Partial cut [19:53:58]*** CUTSNS_PIN = 1 [19:53:58]*** CUTSNS_PIN = 0 [19:53:58]*** Brake cut motor [19:53:58]Read from MH i2c: 01 [19:53:58]MH_I2C_Read... [19:53:58]*** Stop cut motor [19:53:58]*** Cut end [19:53:58]Read from MH i2c: 01 07 00 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 FF 0F 3C [19:53:58]process_action close_receipt done [19:53:58]requested_data is exist [19:53:58]produce_requested_data [19:53:58]requested_item fm.sn is exist - process it [19:53:58]wFMCommunicate request_size=4 [19:53:58]MH_SAM_APDU [19:53:58]CAPDU: 80 11 00 00 [19:53:58]Write to MH i2c: E2 08 00 12 16 80 11 00 00 00 00 00 00 A2 [19:53:58]Write i2c OK [19:53:58]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 12 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 FA [19:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:53:59]wFMCommunicate OK [19:53:59]requested_item fd.num is exist - process it [19:53:59]SAM_PROTO_GetFieldsCounters [19:53:59]wFMCommunicate request_size=4 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 13 00 00 [19:53:59]Write to MH i2c: E2 08 00 13 16 80 13 00 00 00 00 00 00 A5 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 62 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 62 00 13 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [19:53:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:59]wFMCommunicate OK [19:53:59]SAM_PROTO_GetFieldsCounters done [19:53:59]requested_item shift.num is exist - process it [19:53:59]requested_item shift.opened is exist - process it [19:53:59]req_shift_opened [19:53:59]FM_GetShiftState [19:53:59]SAM_PROTO_GetShiftState [19:53:59]wFMCommunicate request_size=4 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 13 01 00 [19:53:59]Write to MH i2c: E2 08 00 14 16 80 13 01 00 00 00 00 00 A7 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 0E 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 0E 00 14 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CA [19:53:59]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:53:59]wFMCommunicate OK [19:53:59]SAM_PROTO_GetShiftState done [19:53:59]FM_GetShiftState done [19:53:59]req_shift_opened done [19:53:59]requested_item shift.open_date is exist - process it [19:53:59]req_shift_open_date [19:53:59]req_shift_open_date done [19:53:59]produce_requested_data done [19:53:59]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39962,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [19:53:59]process_action_free close_receipt [19:53:59]json_value_free [19:53:59]json_value_free done [19:53:59]process_json_proto returns [19:53:59]Send response to host [19:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39962,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [19:53:59]free response buf [19:53:59]execute_script done [19:53:59]execute_script returns [19:53:59]free content buf [19:53:59]Sock 10.Close socket [19:53:59]Sock 10.Thread stoped [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:05]accept exits with 8 [19:55:05]New connection [19:55:05]New thread 3067325796 created [19:55:05]Thread 3067182436 joined [19:55:05]Waiting for new connection... [19:55:05] Sock 8.Parse request [19:55:05]Sock 8.Check first char [19:55:05]Sock 8.First char is OK [19:55:05]request: POST /json_proto HTTP/1.0 [19:55:05]Method: POST [19:55:05]URL: /json_proto [19:55:05]Method is POST - this is cgi request [19:55:05]url: /json_proto [19:55:05]query_string will be loaded in cgi processing [19:55:05]execute_cgi json_proto POST (null) [19:55:05]execute_cgi path=json_proto method=POST [19:55:05]POST find Content-Length [19:55:05]Host: 172.17.36.199:8080 [19:55:05]Content-Length: 702 [19:55:05]Content-Type: application/json [19:55:05] [19:55:05]POST finish read [19:55:05]Found Content-Length = 702 [19:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176523", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:05]execute_script... [19:55:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176523", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:05]POST & json_proto [19:55:05]process_json_proto [19:55:05]json parsed OK: [19:55:05]protocol is kg_v1.0 [19:55:05]action value=close_receipt [19:55:05]process_action close_receipt [19:55:05]cmd_close_receipt [19:55:05]MH_GetDate [19:55:05]Write to MH i2c: F0 00 00 15 16 1A [19:55:05]Write i2c OK [19:55:05]MH_I2C_Read... [19:55:05]Read from MH i2c: F0 [19:55:05]MH_I2C_Read... [19:55:05]Read from MH i2c: F0 09 00 [19:55:05]MH_I2C_Read... [19:55:05]Read from MH i2c: F0 09 00 15 16 00 9D 1F 5E 66 91 46 04 65 E3 [19:55:05]GetLastDocTimeStamp 1717444439 [19:55:05]current date 1717444509 [19:55:05]FM_GetShiftState [19:55:05]SAM_PROTO_GetShiftState [19:55:05]wFMCommunicate request_size=4 [19:55:05]MH_SAM_APDU [19:55:05]CAPDU: 80 13 01 00 [19:55:05]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [19:55:05]Write i2c OK [19:55:05]MH_I2C_Read... [19:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:05]Read from MH i2c: E2 [19:55:05]MH_I2C_Read... [19:55:05]Read from MH i2c: E2 0E 00 [19:55:05]MH_I2C_Read... [19:55:05]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CC [19:55:05]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:55:05]wFMCommunicate OK [19:55:05]SAM_PROTO_GetShiftState done [19:55:05]FM_GetShiftState done [19:55:05]opened in 1717373769 [19:55:05]opened+sec_in_day 1717460169 [19:55:05]quantity*price = 12500 [19:55:05]sum+1 = 12501 [19:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 81 03.06.2024 19:55 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39963 ФПД: 240392108319296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195509&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39963&fm=240392108319296&tin=02508201610067®Number=0000000000092680&sum=12500 0 [19:55:06]StoreToDocumentArchive [19:55:06]shift 376 fd 39963 [19:55:06]save to /storage/0376/doc_00039963 [19:55:06]save last doc name /storage/0376/doc_00039963 to /storage/kkm_last_doc_name [19:55:06]save OK [19:55:06]Clear old archive folders... [19:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=298 [19:55:06]tlvbuf is 00E2F410 [19:55:06]SAM_PROTO_ClearQueue [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 09 00 00 [19:55:06]Write to MH i2c: E2 08 00 23 16 80 09 00 00 00 00 00 00 AB [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [19:55:06]RAPDU: 90 00 [19:55:06]wFMCommunicate OK [19:55:06]SAM_PROTO_ClearQueue done [19:55:06]KKMCreateOFDPacket [19:55:06]OFDProtocolAddRootSTLVToBuf [19:55:06]FM_MakeSignedData [19:55:06]FM_MakeSignedData [19:55:06]SAM_PROTO_SignData [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 0D 01 02 [19:55:06]Write to MH i2c: E2 08 00 24 16 80 0D 01 02 00 00 00 00 B3 [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [19:55:06]RAPDU: 90 00 [19:55:06]wFMCommunicate OK [19:55:06]wFMCommunicate request_size=255 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 9D 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [19:55:06]Write to MH i2c: E2 02 01 25 16 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 9D 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 61 [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [19:55:06]RAPDU: 90 00 [19:55:06]wFMCommunicate OK [19:55:06]wFMCommunicate request_size=57 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1B 9C 00 00 35 04 06 00 DA A2 A6 39 22 40 [19:55:06]Write to MH i2c: E2 3C 00 26 16 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1B 9C 00 00 35 04 06 00 DA A2 A6 39 22 40 00 00 EC [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [19:55:06]RAPDU: 90 00 [19:55:06]wFMCommunicate OK [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 0D 03 02 [19:55:06]Write to MH i2c: E2 08 00 27 16 80 0D 03 02 00 00 00 00 B8 [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 0B 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 0B 00 27 16 00 09 49 4E 40 AE 10 93 1A 90 00 04 [19:55:06]RAPDU: 09 49 4E 40 AE 10 93 1A 90 00 [19:55:06]wFMCommunicate OK [19:55:06]SAM_PROTO_SignData done [19:55:06]FM_MakeSignedData done [19:55:06]CreateOFDProtocolMessage [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 11 00 00 [19:55:06]Write to MH i2c: E2 08 00 28 16 80 11 00 00 00 00 00 00 B8 [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 17 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 17 00 28 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 10 [19:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:55:06]wFMCommunicate OK [19:55:06]CreateOFDProtocolMessage done [19:55:06]OFDSenderStorePacket 39963 [19:55:06]StoreOFDPacket docnum=39963 [19:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3E 01 00 00 8E 01 36 01 16 29 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 9D 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1B 9C 00 00 35 04 06 00 DA A2 A6 39 22 40 09 49 4E 40 AE 10 93 1A [19:55:06]CheckFolder [19:55:06]dirname=/storage/ofd_packets [19:55:06]CheckFolder done [19:55:06]ProducePacketName [19:55:06]name=ofd_packets/00039963 [19:55:06]NVStorageSaveData ofd_packets/00039963 [19:55:06]File name is /storage/ofd_packets/00039963 [19:55:06]Write 348 bytes [19:55:06]NVStorageSaveData done [19:55:06]OFDSenderStorePacket done [19:55:06]KKMCreateOFDPacket done [19:55:06]NVStorageSaveData kkm_last_timestamp [19:55:06]File name is /storage/kkm_last_timestamp [19:55:06]Write 4 bytes [19:55:06]NVStorageSaveData done [19:55:06]ExternCall_PrintAddStr [19:55:06]wPrintStart [19:55:06]Write to MH i2c: 01 00 00 29 16 3F [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: 01 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: 01 07 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 FF 0F 54 [19:55:06]RasterBufferAndPrint [19:55:06]line Счет N : (3)176523 [19:55:06]line ИНН: 02508201610067 [19:55:06]line Контрольно-Кассовый Чек [19:55:06]line ПРОДАЖА [19:55:06]line Товар: 4870202522701 [19:55:06]line Напиток Maxi Чай черный Малина 1,2 [19:55:06]line 1.000 * 125.00 [19:55:06]line = 125.00 [19:55:06]line НДС 12% НСП 1% [19:55:06]line > о реализуемом товаре [19:55:06]line ИТОГО: 125.00 [19:55:06]line НСП 1% : 1.11 [19:55:06]line НДС 12% : 13.27 [19:55:06]line Наличными: 125.00 [19:55:06]line Безнал.: 0.00 [19:55:06]line Место: АЗС № 63 "Партнер Нефть" [19:55:06]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [19:55:06]line СНО: Общий режим [19:55:06]line Чек 81 03.06.2024 19:55 [19:55:06]line Смена: 376 ФФД: 1.0 [19:55:06]line ЗНМ: 0300000037 [19:55:06]line РНМ: 0000000000092680 [19:55:06]line Версия ККМ: 001 [19:55:06]line ФМ: 0000000000874882 [19:55:06]line ФД: 39963 [19:55:06]line ФПД: 240392108319296 [19:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195509&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39963&fm=240392108319296&tin=02508201610067®Number=0000000000092680&sum=12500 [19:55:07]line 0 [19:55:07]OFD Sender: Processing packet 39963 [packets to send 5, broken 4] [19:55:07]ProducePacketName [19:55:07]name=ofd_packets/00039963 [19:55:07]OFD Sender: To server: pG, [19:55:07]CommunicateWithHost lk.salyk.kg:30040 [19:55:07]ConnectInit lk.salyk.kg [19:55:07]written 0, free lines is 4095 [19:55:07]Connected sock=10 [19:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3E 01 00 00 8E 01 36 01 16 29 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 9D 1F 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1B 9C 00 00 35 04 06 00 DA A2 A6 39 22 40 09 49 4E 40 AE 10 93 1A [19:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 36 5F 47 00 76 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1B 9C 00 00 F4 03 04 00 48 C8 5D 66 B6 04 01 00 00 0E 02 11 5A 54 B6 4B D0 [19:55:07]CommunicateWithHost err = 0 [19:55:07]CheckOFDResponse [19:55:07]1017 (14) - 77093643461234 [19:55:07]1041 (16) - 0000000000874882 [19:55:07]1040 (4) - 39963 [19:55:07]1012 (4) - 03.06.2024 13:42 [19:55:07]1206 (1) - 0 [19:55:07]OFD Sender: Remove packet 39963 [19:55:07]ProducePacketName [19:55:07]name=ofd_packets/00039963 [19:55:07]NVStorageDeleteData [19:55:07]Write to MH i2c: 01 00 00 52 16 68 [19:55:07]Write i2c OK [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: 01 [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: 01 07 00 [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: 01 07 00 52 16 00 00 00 00 00 1F 0D 9B [19:55:07]RasterBufferAndPrint [19:55:07]line [19:55:07]line [19:55:07]line [19:55:07]line [19:55:07]line [19:55:07]written 0, free lines is 3365 [19:55:07]MH_Cut [19:55:07]Write to MH i2c: D1 01 00 59 16 01 41 [19:55:07]Write i2c OK [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: D1 [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: D1 01 00 [19:55:07]MH_I2C_Read... [19:55:07]Read from MH i2c: D1 01 00 59 16 00 40 [19:55:07]Write to MH i2c: 01 00 00 5A 16 70 [19:55:07]Write i2c OK [19:55:07]MH_I2C_Read... [19:55:08]OFD Sender: No OFD packet to send [19:55:08]*** Cut start [19:55:08]*** Partial cut [19:55:08]*** CUTSNS_PIN = 1 [19:55:08]*** CUTSNS_PIN = 0 [19:55:08]*** Brake cut motor [19:55:08]Read from MH i2c: 01 [19:55:08]MH_I2C_Read... [19:55:08]*** Stop cut motor [19:55:08]*** Cut end [19:55:08]Read from MH i2c: 01 07 00 [19:55:08]MH_I2C_Read... [19:55:08]Read from MH i2c: 01 07 00 5A 16 00 00 00 00 00 FF 0F 85 [19:55:08]process_action close_receipt done [19:55:08]requested_data is exist [19:55:08]produce_requested_data [19:55:08]requested_item fm.sn is exist - process it [19:55:08]wFMCommunicate request_size=4 [19:55:08]MH_SAM_APDU [19:55:08]CAPDU: 80 11 00 00 [19:55:08]Write to MH i2c: E2 08 00 5B 16 80 11 00 00 00 00 00 00 EB [19:55:08]Write i2c OK [19:55:08]MH_I2C_Read... [19:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:09]Read from MH i2c: E2 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 17 00 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 17 00 5B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 43 [19:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:55:09]wFMCommunicate OK [19:55:09]requested_item fd.num is exist - process it [19:55:09]SAM_PROTO_GetFieldsCounters [19:55:09]wFMCommunicate request_size=4 [19:55:09]MH_SAM_APDU [19:55:09]CAPDU: 80 13 00 00 [19:55:09]Write to MH i2c: E2 08 00 5C 16 80 13 00 00 00 00 00 00 EE [19:55:09]Write i2c OK [19:55:09]MH_I2C_Read... [19:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:09]Read from MH i2c: E2 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 62 00 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 62 00 5C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:09]wFMCommunicate OK [19:55:09]SAM_PROTO_GetFieldsCounters done [19:55:09]requested_item shift.num is exist - process it [19:55:09]requested_item shift.opened is exist - process it [19:55:09]req_shift_opened [19:55:09]FM_GetShiftState [19:55:09]SAM_PROTO_GetShiftState [19:55:09]wFMCommunicate request_size=4 [19:55:09]MH_SAM_APDU [19:55:09]CAPDU: 80 13 01 00 [19:55:09]Write to MH i2c: E2 08 00 5D 16 80 13 01 00 00 00 00 00 F0 [19:55:09]Write i2c OK [19:55:09]MH_I2C_Read... [19:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:09]Read from MH i2c: E2 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 0E 00 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 0E 00 5D 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 13 [19:55:09]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:55:09]wFMCommunicate OK [19:55:09]SAM_PROTO_GetShiftState done [19:55:09]FM_GetShiftState done [19:55:09]req_shift_opened done [19:55:09]requested_item shift.open_date is exist - process it [19:55:09]req_shift_open_date [19:55:09]req_shift_open_date done [19:55:09]produce_requested_data done [19:55:09]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39963,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [19:55:09]process_action_free close_receipt [19:55:09]json_value_free [19:55:09]json_value_free done [19:55:09]process_json_proto returns [19:55:09]Send response to host [19:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39963,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [19:55:09]free response buf [19:55:09]execute_script done [19:55:09]execute_script returns [19:55:09]free content buf [19:55:09]Sock 8.Close socket [19:55:09]Sock 8.Thread stoped [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:32]accept exits with 9 [19:58:32]New connection [19:58:32]New thread 3067182436 created [19:58:32]Thread 3067325796 joined [19:58:32]Waiting for new connection... [19:58:32] Sock 9.Parse request [19:58:32]Sock 9.Check first char [19:58:32]Sock 9.First char is OK [19:58:32]request: POST /json_proto HTTP/1.0 [19:58:32]Method: POST [19:58:32]URL: /json_proto [19:58:32]Method is POST - this is cgi request [19:58:32]url: /json_proto [19:58:32]query_string will be loaded in cgi processing [19:58:32]execute_cgi json_proto POST (null) [19:58:32]execute_cgi path=json_proto method=POST [19:58:32]POST find Content-Length [19:58:32]Host: 172.17.36.199:8080 [19:58:32]Content-Length: 658 [19:58:32]Content-Type: application/json [19:58:32] [19:58:32]POST finish read [19:58:32]Found Content-Length = 658 [19:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176524", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:32]execute_script... [19:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176524", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:32]POST & json_proto [19:58:32]process_json_proto [19:58:32]json parsed OK: [19:58:32]protocol is kg_v1.0 [19:58:32]action value=close_receipt [19:58:32]process_action close_receipt [19:58:32]cmd_close_receipt [19:58:32]MH_GetDate [19:58:32]Write to MH i2c: F0 00 00 5E 16 63 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: F0 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: F0 09 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: F0 09 00 5E 16 00 6C 20 5E 66 91 46 04 65 FC [19:58:32]GetLastDocTimeStamp 1717444509 [19:58:32]current date 1717444716 [19:58:32]FM_GetShiftState [19:58:32]SAM_PROTO_GetShiftState [19:58:32]wFMCommunicate request_size=4 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 13 01 00 [19:58:32]Write to MH i2c: E2 08 00 5F 16 80 13 01 00 00 00 00 00 F2 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 0E 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 0E 00 5F 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 15 [19:58:32]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:58:32]wFMCommunicate OK [19:58:32]SAM_PROTO_GetShiftState done [19:58:32]FM_GetShiftState done [19:58:32]opened in 1717373769 [19:58:32]opened+sec_in_day 1717460169 [19:58:32]quantity*price = 12500 [19:58:32]sum+1 = 12501 [19:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 82 03.06.2024 19:58 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39964 ФПД: 52975306996507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195836&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39964&fm=52975306996507&tin=02508201610067®Number=0000000000092680&sum=12500 0 [19:58:33]StoreToDocumentArchive [19:58:33]shift 376 fd 39964 [19:58:33]save to /storage/0376/doc_00039964 [19:58:33]save last doc name /storage/0376/doc_00039964 to /storage/kkm_last_doc_name [19:58:33]save OK [19:58:33]Clear old archive folders... [19:58:33]OFD Sender: No OFD packet to send [19:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:58:33]tlvbuf is 00E2F0E0 [19:58:33]SAM_PROTO_ClearQueue [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 09 00 00 [19:58:33]Write to MH i2c: E2 08 00 6C 16 80 09 00 00 00 00 00 00 F4 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [19:58:33]RAPDU: 90 00 [19:58:33]wFMCommunicate OK [19:58:33]SAM_PROTO_ClearQueue done [19:58:33]KKMCreateOFDPacket [19:58:33]OFDProtocolAddRootSTLVToBuf [19:58:33]FM_MakeSignedData [19:58:33]FM_MakeSignedData [19:58:33]SAM_PROTO_SignData [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 0D 01 02 [19:58:33]Write to MH i2c: E2 08 00 6D 16 80 0D 01 02 00 00 00 00 FC [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [19:58:33]RAPDU: 90 00 [19:58:33]wFMCommunicate OK [19:58:33]wFMCommunicate request_size=255 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 [19:58:33]Write to MH i2c: E2 02 01 6E 16 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 00 00 C3 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 6E 16 00 90 00 F8 [19:58:33]RAPDU: 90 00 [19:58:33]wFMCommunicate OK [19:58:33]wFMCommunicate request_size=37 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1C 9C 00 00 35 04 06 00 30 2E 46 5A FB 1B [19:58:33]Write to MH i2c: E2 28 00 6F 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1C 9C 00 00 35 04 06 00 30 2E 46 5A FB 1B 00 00 27 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [19:58:33]RAPDU: 90 00 [19:58:33]wFMCommunicate OK [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 0D 03 02 [19:58:33]Write to MH i2c: E2 08 00 70 16 80 0D 03 02 00 00 00 00 01 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0B 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0B 00 70 16 00 F1 6F 33 99 2C 9A 04 DC 90 00 D4 [19:58:33]RAPDU: F1 6F 33 99 2C 9A 04 DC 90 00 [19:58:33]wFMCommunicate OK [19:58:33]SAM_PROTO_SignData done [19:58:33]FM_MakeSignedData done [19:58:33]CreateOFDProtocolMessage [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 11 00 00 [19:58:33]Write to MH i2c: E2 08 00 71 16 80 11 00 00 00 00 00 00 01 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 17 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 17 00 71 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 59 [19:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:58:33]wFMCommunicate OK [19:58:33]CreateOFDProtocolMessage done [19:58:33]OFDSenderStorePacket 39964 [19:58:33]StoreOFDPacket docnum=39964 [19:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2A 01 00 00 28 F1 22 01 0C 74 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1C 9C 00 00 35 04 06 00 30 2E 46 5A FB 1B F1 6F 33 99 2C 9A 04 DC [19:58:33]CheckFolder [19:58:33]dirname=/storage/ofd_packets [19:58:33]CheckFolder done [19:58:33]ProducePacketName [19:58:33]name=ofd_packets/00039964 [19:58:33]NVStorageSaveData ofd_packets/00039964 [19:58:33]File name is /storage/ofd_packets/00039964 [19:58:33]Write 328 bytes [19:58:33]NVStorageSaveData done [19:58:33]OFDSenderStorePacket done [19:58:33]KKMCreateOFDPacket done [19:58:33]NVStorageSaveData kkm_last_timestamp [19:58:33]File name is /storage/kkm_last_timestamp [19:58:33]Write 4 bytes [19:58:33]NVStorageSaveData done [19:58:33]ExternCall_PrintAddStr [19:58:33]wPrintStart [19:58:33]Write to MH i2c: 01 00 00 72 16 88 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 07 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 07 00 72 16 00 00 00 00 00 FF 0F 9D [19:58:33]RasterBufferAndPrint [19:58:33]line Счет N : (3)176524 [19:58:33]line ИНН: 02508201610067 [19:58:33]line Контрольно-Кассовый Чек [19:58:33]line ПРОДАЖА [19:58:33]line Товар: 5449000054227 [19:58:33]line Напиток Кока-Кола 1л [19:58:33]line 1.000 * 125.00 [19:58:33]line = 125.00 [19:58:33]line НДС 12% НСП 1% [19:58:33]line > о реализуемом товаре [19:58:33]line ИТОГО: 125.00 [19:58:33]line НСП 1% : 1.11 [19:58:33]line НДС 12% : 13.27 [19:58:33]line Наличными: 125.00 [19:58:33]line Безнал.: 0.00 [19:58:33]line Место: АЗС № 63 "Партнер Нефть" [19:58:33]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [19:58:33]line СНО: Общий режим [19:58:33]line Чек 82 03.06.2024 19:58 [19:58:33]line Смена: 376 ФФД: 1.0 [19:58:33]line ЗНМ: 0300000037 [19:58:33]line РНМ: 0000000000092680 [19:58:33]line Версия ККМ: 001 [19:58:33]line ФМ: 0000000000874882 [19:58:33]line ФД: 39964 [19:58:33]line ФПД: 52975306996507 [19:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195836&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39964&fm=52975306996507&tin=02508201610067®Number=0000000000092680&sum=12500 [19:58:34]OFD Sender: Processing packet 39964 [packets to send 5, broken 4] [19:58:34]ProducePacketName [19:58:34]name=ofd_packets/00039964 [19:58:34]OFD Sender: To server: pG, [19:58:34]CommunicateWithHost lk.salyk.kg:30040 [19:58:34]ConnectInit lk.salyk.kg [19:58:34]line 0 [19:58:34]written 0, free lines is 4095 [19:58:34]Connected sock=10 [19:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2A 01 00 00 28 F1 22 01 0C 74 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1C 9C 00 00 35 04 06 00 30 2E 46 5A FB 1B F1 6F 33 99 2C 9A 04 DC [19:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 A0 71 47 00 52 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1C 9C 00 00 F4 03 04 00 17 C9 5D 66 B6 04 01 00 00 56 ED 53 C5 13 77 10 A5 [19:58:34]CommunicateWithHost err = 0 [19:58:34]CheckOFDResponse [19:58:34]1017 (14) - 77093643461234 [19:58:34]1041 (16) - 0000000000874882 [19:58:34]1040 (4) - 39964 [19:58:34]1012 (4) - 03.06.2024 13:45 [19:58:34]1206 (1) - 0 [19:58:34]OFD Sender: Remove packet 39964 [19:58:34]ProducePacketName [19:58:34]name=ofd_packets/00039964 [19:58:34]NVStorageDeleteData [19:58:34]Write to MH i2c: 01 00 00 9A 16 B0 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: 01 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: 01 07 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 13 0D D7 [19:58:34]RasterBufferAndPrint [19:58:34]line [19:58:34]line [19:58:34]line [19:58:34]line [19:58:34]line [19:58:34]written 0, free lines is 3354 [19:58:34]MH_Cut [19:58:34]Write to MH i2c: D1 01 00 A1 16 01 89 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: D1 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: D1 01 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: D1 01 00 A1 16 00 88 [19:58:34]Write to MH i2c: 01 00 00 A2 16 B8 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]OFD Sender: No OFD packet to send [19:58:35]*** Cut start [19:58:35]*** Partial cut [19:58:35]*** CUTSNS_PIN = 1 [19:58:35]*** CUTSNS_PIN = 0 [19:58:35]*** Brake cut motor [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]*** Stop cut motor [19:58:35]*** Cut end [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 A2 16 00 00 00 00 00 FF 0F CD [19:58:35]process_action close_receipt done [19:58:35]requested_data is exist [19:58:35]produce_requested_data [19:58:35]requested_item fm.sn is exist - process it [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 11 00 00 [19:58:35]Write to MH i2c: E2 08 00 A3 16 80 11 00 00 00 00 00 00 33 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 A3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8B [19:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [19:58:35]wFMCommunicate OK [19:58:35]requested_item fd.num is exist - process it [19:58:35]SAM_PROTO_GetFieldsCounters [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 13 00 00 [19:58:35]Write to MH i2c: E2 08 00 A4 16 80 13 00 00 00 00 00 00 36 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 62 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 62 00 A4 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [19:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_GetFieldsCounters done [19:58:35]requested_item shift.num is exist - process it [19:58:35]requested_item shift.opened is exist - process it [19:58:35]req_shift_opened [19:58:35]FM_GetShiftState [19:58:35]SAM_PROTO_GetShiftState [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 13 01 00 [19:58:35]Write to MH i2c: E2 08 00 A5 16 80 13 01 00 00 00 00 00 38 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:36]Read from MH i2c: E2 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: E2 0E 00 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: E2 0E 00 A5 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5B [19:58:36]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [19:58:36]wFMCommunicate OK [19:58:36]SAM_PROTO_GetShiftState done [19:58:36]FM_GetShiftState done [19:58:36]req_shift_opened done [19:58:36]requested_item shift.open_date is exist - process it [19:58:36]req_shift_open_date [19:58:36]req_shift_open_date done [19:58:36]produce_requested_data done [19:58:36]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39964,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [19:58:36]process_action_free close_receipt [19:58:36]json_value_free [19:58:36]json_value_free done [19:58:36]process_json_proto returns [19:58:36]Send response to host [19:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39964,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [19:58:36]free response buf [19:58:36]execute_script done [19:58:36]execute_script returns [19:58:36]free content buf [19:58:36]Sock 9.Close socket [19:58:36]Sock 9.Thread stoped [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:27:57]accept exits with 8 [20:27:57]New connection [20:27:57]New thread 3067325796 created [20:27:57]Thread 3067182436 joined [20:27:57]Waiting for new connection... [20:27:57] Sock 8.Parse request [20:27:57]Sock 8.Check first char [20:27:57]Sock 8.First char is OK [20:27:57]request: POST /json_proto HTTP/1.0 [20:27:57]Method: POST [20:27:57]URL: /json_proto [20:27:57]Method is POST - this is cgi request [20:27:57]url: /json_proto [20:27:57]query_string will be loaded in cgi processing [20:27:57]execute_cgi json_proto POST (null) [20:27:57]execute_cgi path=json_proto method=POST [20:27:57]POST find Content-Length [20:27:57]Host: 172.17.36.199:8080 [20:27:57]Content-Length: 733 [20:27:57]Content-Type: application/json [20:27:57] [20:27:57]POST finish read [20:27:57]Found Content-Length = 733 [20:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176525", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:57]execute_script... [20:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176525", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:57]POST & json_proto [20:27:57]process_json_proto [20:27:57]json parsed OK: [20:27:57]protocol is kg_v1.0 [20:27:57]action value=close_receipt [20:27:57]process_action close_receipt [20:27:57]cmd_close_receipt [20:27:57]MH_GetDate [20:27:57]Write to MH i2c: F0 00 00 A6 16 AB [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 09 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 09 00 A6 16 00 51 27 5E 66 91 46 04 65 30 [20:27:57]GetLastDocTimeStamp 1717444716 [20:27:57]current date 1717446481 [20:27:57]FM_GetShiftState [20:27:57]SAM_PROTO_GetShiftState [20:27:57]wFMCommunicate request_size=4 [20:27:57]MH_SAM_APDU [20:27:57]CAPDU: 80 13 01 00 [20:27:57]Write to MH i2c: E2 08 00 A7 16 80 13 01 00 00 00 00 00 3A [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0E 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0E 00 A7 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5D [20:27:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:27:57]wFMCommunicate OK [20:27:57]SAM_PROTO_GetShiftState done [20:27:57]FM_GetShiftState done [20:27:57]opened in 1717373769 [20:27:57]opened+sec_in_day 1717460169 [20:27:57]quantity*price = 12000 [20:27:57]sum+1 = 12001 [20:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 83 03.06.2024 20:28 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39965 ФПД: 192101735787975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T202801&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39965&fm=192101735787975&tin=02508201610067®Number=0000000000092680&sum=12000 0 [20:27:58]StoreToDocumentArchive [20:27:58]shift 376 fd 39965 [20:27:58]save to /storage/0376/doc_00039965 [20:27:58]save last doc name /storage/0376/doc_00039965 to /storage/kkm_last_doc_name [20:27:58]save OK [20:27:58]Clear old archive folders... [20:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=305 [20:27:58]tlvbuf is 00E537E0 [20:27:58]SAM_PROTO_ClearQueue [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 09 00 00 [20:27:58]Write to MH i2c: E2 08 00 B4 16 80 09 00 00 00 00 00 00 3C [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]SAM_PROTO_ClearQueue done [20:27:58]KKMCreateOFDPacket [20:27:58]OFDProtocolAddRootSTLVToBuf [20:27:58]FM_MakeSignedData [20:27:58]FM_MakeSignedData [20:27:58]SAM_PROTO_SignData [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 01 02 [20:27:58]Write to MH i2c: E2 08 00 B5 16 80 0D 01 02 00 00 00 00 44 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]wFMCommunicate request_size=255 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 51 27 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 [20:27:58]Write to MH i2c: E2 02 01 B6 16 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 51 27 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 00 00 1C [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]wFMCommunicate request_size=64 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1D 9C 00 00 35 04 06 00 AE B7 2B B8 ED C7 [20:27:58]Write to MH i2c: E2 43 00 B7 16 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1D 9C 00 00 35 04 06 00 AE B7 2B B8 ED C7 00 00 4E [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 03 02 [20:27:58]Write to MH i2c: E2 08 00 B8 16 80 0D 03 02 00 00 00 00 49 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 0B 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 0B 00 B8 16 00 FD AC B2 D6 61 11 6A 49 90 00 A0 [20:27:58]RAPDU: FD AC B2 D6 61 11 6A 49 90 00 [20:27:58]wFMCommunicate OK [20:27:58]SAM_PROTO_SignData done [20:27:58]FM_MakeSignedData done [20:27:58]CreateOFDProtocolMessage [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 11 00 00 [20:27:58]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 17 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A1 [20:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:27:58]wFMCommunicate OK [20:27:58]CreateOFDProtocolMessage done [20:27:58]OFDSenderStorePacket 39965 [20:27:58]StoreOFDPacket docnum=39965 [20:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 45 01 00 00 36 04 3D 01 18 D7 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 51 27 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1D 9C 00 00 35 04 06 00 AE B7 2B B8 ED C7 FD AC B2 D6 61 11 6A 49 [20:27:58]CheckFolder [20:27:58]dirname=/storage/ofd_packets [20:27:58]CheckFolder done [20:27:58]ProducePacketName [20:27:58]name=ofd_packets/00039965 [20:27:58]NVStorageSaveData ofd_packets/00039965 [20:27:58]File name is /storage/ofd_packets/00039965 [20:27:58]Write 355 bytes [20:27:58]NVStorageSaveData done [20:27:58]OFDSenderStorePacket done [20:27:58]KKMCreateOFDPacket done [20:27:58]NVStorageSaveData kkm_last_timestamp [20:27:58]File name is /storage/kkm_last_timestamp [20:27:58]Write 4 bytes [20:27:58]NVStorageSaveData done [20:27:58]ExternCall_PrintAddStr [20:27:58]wPrintStart [20:27:58]Write to MH i2c: 01 00 00 BA 16 D0 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 07 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 FF 0F E5 [20:27:58]RasterBufferAndPrint [20:27:58]line Счет N : (3)176525 [20:27:58]line ИНН: 02508201610067 [20:27:58]line Контрольно-Кассовый Чек [20:27:58]line ПРОДАЖА [20:27:58]line Товар: 4630007401201 [20:27:58]line Семечки соленые ДЖИНН Великан 100гр [20:27:58]line 1.000 * 120.00 [20:27:58]line = 120.00 [20:27:58]line НДС 12% НСП 1% [20:27:58]line > о реализуемом товаре [20:27:58]line ИТОГО: 120.00 [20:27:58]line НСП 1% : 1.06 [20:27:58]line НДС 12% : 12.74 [20:27:58]line Наличными: 120.00 [20:27:58]line Безнал.: 0.00 [20:27:58]line Место: АЗС № 63 "Партнер Нефть" [20:27:58]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [20:27:58]line СНО: Общий режим [20:27:58]line Чек 83 03.06.2024 20:28 [20:27:58]line Смена: 376 ФФД: 1.0 [20:27:58]line ЗНМ: 0300000037 [20:27:58]line РНМ: 0000000000092680 [20:27:58]line Версия ККМ: 001 [20:27:58]line ФМ: 0000000000874882 [20:27:58]line ФД: 39965 [20:27:58]line ФПД: 192101735787975 [20:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T202801&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39965&fm=192101735787975&tin=02508201610067®Number=0000000000092680&sum=12000 [20:27:59]line 0 [20:27:59]OFD Sender: Processing packet 39965 [packets to send 5, broken 4] [20:27:59]ProducePacketName [20:27:59]name=ofd_packets/00039965 [20:27:59]OFD Sender: To server: pG, [20:27:59]CommunicateWithHost lk.salyk.kg:30040 [20:27:59]ConnectInit lk.salyk.kg [20:27:59]written 0, free lines is 4095 [20:27:59]Connected sock=10 [20:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 45 01 00 00 36 04 3D 01 18 D7 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 51 27 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1D 9C 00 00 35 04 06 00 AE B7 2B B8 ED C7 FD AC B2 D6 61 11 6A 49 [20:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CB B3 47 00 04 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1D 9C 00 00 F4 03 04 00 FC CF 5D 66 B6 04 01 00 00 0C 91 61 5F 9F 67 E6 93 [20:27:59]CommunicateWithHost err = 0 [20:27:59]CheckOFDResponse [20:27:59]1017 (14) - 77093643461234 [20:27:59]1041 (16) - 0000000000874882 [20:27:59]1040 (4) - 39965 [20:27:59]1012 (4) - 03.06.2024 14:15 [20:27:59]1206 (1) - 0 [20:27:59]OFD Sender: Remove packet 39965 [20:27:59]ProducePacketName [20:27:59]name=ofd_packets/00039965 [20:27:59]NVStorageDeleteData [20:27:59]Write to MH i2c: 01 00 00 E3 16 F9 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 E3 16 00 00 00 00 00 12 0D 1F [20:27:59]RasterBufferAndPrint [20:27:59]line [20:27:59]line [20:27:59]line [20:27:59]line [20:27:59]line [20:27:59]written 0, free lines is 3357 [20:27:59]MH_Cut [20:27:59]Write to MH i2c: D1 01 00 EA 16 01 D2 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: D1 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: D1 01 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: D1 01 00 EA 16 00 D1 [20:27:59]Write to MH i2c: 01 00 00 EB 16 01 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:28:00]OFD Sender: No OFD packet to send [20:28:00]*** Cut start [20:28:00]*** Partial cut [20:28:00]*** CUTSNS_PIN = 1 [20:28:00]*** CUTSNS_PIN = 0 [20:28:00]*** Brake cut motor [20:28:00]Read from MH i2c: 01 [20:28:00]MH_I2C_Read... [20:28:00]*** Stop cut motor [20:28:00]*** Cut end [20:28:00]Read from MH i2c: 01 07 00 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 FF 0F 16 [20:28:00]process_action close_receipt done [20:28:00]requested_data is exist [20:28:00]produce_requested_data [20:28:00]requested_item fm.sn is exist - process it [20:28:00]wFMCommunicate request_size=4 [20:28:00]MH_SAM_APDU [20:28:00]CAPDU: 80 11 00 00 [20:28:00]Write to MH i2c: E2 08 00 EC 16 80 11 00 00 00 00 00 00 7C [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:01]Read from MH i2c: E2 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 17 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 17 00 EC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D4 [20:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:28:01]wFMCommunicate OK [20:28:01]requested_item fd.num is exist - process it [20:28:01]SAM_PROTO_GetFieldsCounters [20:28:01]wFMCommunicate request_size=4 [20:28:01]MH_SAM_APDU [20:28:01]CAPDU: 80 13 00 00 [20:28:01]Write to MH i2c: E2 08 00 ED 16 80 13 00 00 00 00 00 00 7F [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:01]Read from MH i2c: E2 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 62 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 62 00 ED 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [20:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:01]wFMCommunicate OK [20:28:01]SAM_PROTO_GetFieldsCounters done [20:28:01]requested_item shift.num is exist - process it [20:28:01]requested_item shift.opened is exist - process it [20:28:01]req_shift_opened [20:28:01]FM_GetShiftState [20:28:01]SAM_PROTO_GetShiftState [20:28:01]wFMCommunicate request_size=4 [20:28:01]MH_SAM_APDU [20:28:01]CAPDU: 80 13 01 00 [20:28:01]Write to MH i2c: E2 08 00 EE 16 80 13 01 00 00 00 00 00 81 [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:01]Read from MH i2c: E2 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 0E 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 0E 00 EE 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A4 [20:28:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:28:01]wFMCommunicate OK [20:28:01]SAM_PROTO_GetShiftState done [20:28:01]FM_GetShiftState done [20:28:01]req_shift_opened done [20:28:01]requested_item shift.open_date is exist - process it [20:28:01]req_shift_open_date [20:28:01]req_shift_open_date done [20:28:01]produce_requested_data done [20:28:01]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39965,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [20:28:01]process_action_free close_receipt [20:28:01]json_value_free [20:28:01]json_value_free done [20:28:01]process_json_proto returns [20:28:01]Send response to host [20:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39965,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [20:28:01]free response buf [20:28:01]execute_script done [20:28:01]execute_script returns [20:28:01]free content buf [20:28:01]Sock 8.Close socket [20:28:01]Sock 8.Thread stoped [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:19]accept exits with 9 [20:36:19]New connection [20:36:19]New thread 3067182436 created [20:36:19]Thread 3067325796 joined [20:36:19]Waiting for new connection... [20:36:19] Sock 9.Parse request [20:36:19]Sock 9.Check first char [20:36:19]Sock 9.First char is OK [20:36:19]request: POST /json_proto HTTP/1.0 [20:36:19]Method: POST [20:36:19]URL: /json_proto [20:36:19]Method is POST - this is cgi request [20:36:19]url: /json_proto [20:36:19]query_string will be loaded in cgi processing [20:36:19]execute_cgi json_proto POST (null) [20:36:19]execute_cgi path=json_proto method=POST [20:36:19]POST find Content-Length [20:36:19]Host: 172.17.36.199:8080 [20:36:19]Content-Length: 634 [20:36:19]Content-Type: application/json [20:36:19] [20:36:19]POST finish read [20:36:19]Found Content-Length = 634 [20:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176526", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:19]execute_script... [20:36:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176526", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:19]POST & json_proto [20:36:19]process_json_proto [20:36:19]json parsed OK: [20:36:19]protocol is kg_v1.0 [20:36:19]action value=close_receipt [20:36:19]process_action close_receipt [20:36:19]cmd_close_receipt [20:36:19]MH_GetDate [20:36:19]Write to MH i2c: F0 00 00 EF 16 F4 [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 09 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 09 00 EF 16 00 47 29 5E 66 91 46 04 65 71 [20:36:19]GetLastDocTimeStamp 1717446481 [20:36:19]current date 1717446983 [20:36:19]FM_GetShiftState [20:36:19]SAM_PROTO_GetShiftState [20:36:19]wFMCommunicate request_size=4 [20:36:19]MH_SAM_APDU [20:36:19]CAPDU: 80 13 01 00 [20:36:19]Write to MH i2c: E2 08 00 F0 16 80 13 01 00 00 00 00 00 83 [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:19]Read from MH i2c: E2 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: E2 0E 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: E2 0E 00 F0 16 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A6 [20:36:19]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:36:19]wFMCommunicate OK [20:36:19]SAM_PROTO_GetShiftState done [20:36:19]FM_GetShiftState done [20:36:19]opened in 1717373769 [20:36:19]opened+sec_in_day 1717460169 [20:36:19]quantity*price = 12000 [20:36:19]sum+1 = 12001 [20:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 84 03.06.2024 20:36 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39966 ФПД: 190456112162044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203623&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39966&fm=190456112162044&tin=02508201610067®Number=0000000000092680&sum=12000 0 [20:36:20]StoreToDocumentArchive [20:36:20]shift 376 fd 39966 [20:36:20]save to /storage/0376/doc_00039966 [20:36:20]save last doc name /storage/0376/doc_00039966 to /storage/kkm_last_doc_name [20:36:20]save OK [20:36:20]Clear old archive folders... [20:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=271 [20:36:20]tlvbuf is 00E32320 [20:36:20]SAM_PROTO_ClearQueue [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 09 00 00 [20:36:20]Write to MH i2c: E2 08 00 FD 16 80 09 00 00 00 00 00 00 85 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_ClearQueue done [20:36:20]KKMCreateOFDPacket [20:36:20]OFDProtocolAddRootSTLVToBuf [20:36:20]FM_MakeSignedData [20:36:20]FM_MakeSignedData [20:36:20]SAM_PROTO_SignData [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 01 02 [20:36:20]Write to MH i2c: E2 08 00 FE 16 80 0D 01 02 00 00 00 00 8D [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=255 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 47 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:36:20]Write to MH i2c: E2 02 01 FF 16 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 47 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 09 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]OFD Sender: No OFD packet to send [20:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=30 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 1E 9C 00 00 35 04 06 00 AD 38 04 E9 24 FC [20:36:20]Write to MH i2c: E2 21 00 00 17 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 1E 9C 00 00 35 04 06 00 AD 38 04 E9 24 FC 00 00 3B [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 03 02 [20:36:20]Write to MH i2c: E2 08 00 01 17 80 0D 03 02 00 00 00 00 93 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0B 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0B 00 01 17 00 26 4C B9 AE 67 48 B4 D0 90 00 A0 [20:36:20]RAPDU: 26 4C B9 AE 67 48 B4 D0 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_SignData done [20:36:20]FM_MakeSignedData done [20:36:20]CreateOFDProtocolMessage [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 11 00 00 [20:36:20]Write to MH i2c: E2 08 00 02 17 80 11 00 00 00 00 00 00 93 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 02 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 EB [20:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:36:20]wFMCommunicate OK [20:36:20]CreateOFDProtocolMessage done [20:36:20]OFDSenderStorePacket 39966 [20:36:20]StoreOFDPacket docnum=39966 [20:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 E9 C9 1B 01 BE 6F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 47 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1E 9C 00 00 35 04 06 00 AD 38 04 E9 24 FC 26 4C B9 AE 67 48 B4 D0 [20:36:20]CheckFolder [20:36:20]dirname=/storage/ofd_packets [20:36:20]CheckFolder done [20:36:20]ProducePacketName [20:36:20]name=ofd_packets/00039966 [20:36:20]NVStorageSaveData ofd_packets/00039966 [20:36:20]File name is /storage/ofd_packets/00039966 [20:36:20]Write 321 bytes [20:36:20]NVStorageSaveData done [20:36:20]OFDSenderStorePacket done [20:36:20]KKMCreateOFDPacket done [20:36:20]NVStorageSaveData kkm_last_timestamp [20:36:20]File name is /storage/kkm_last_timestamp [20:36:20]Write 4 bytes [20:36:20]NVStorageSaveData done [20:36:20]ExternCall_PrintAddStr [20:36:20]wPrintStart [20:36:20]Write to MH i2c: 01 00 00 03 17 1A [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: 01 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: 01 07 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 FF 0F 2F [20:36:20]RasterBufferAndPrint [20:36:20]line Счет N : (3)176526 [20:36:20]line ИНН: 02508201610067 [20:36:20]line Контрольно-Кассовый Чек [20:36:20]line ПРОДАЖА [20:36:20]line Товар: 4700025314002 [20:36:20]line ВОДКА МЯГКАЯ 0,1л [20:36:20]line 2.000 * 60.00 [20:36:20]line = 120.00 [20:36:20]line НДС 12% НСП 1% [20:36:20]line > о реализуемом товаре [20:36:20]line ИТОГО: 120.00 [20:36:20]line НСП 1% : 1.06 [20:36:20]line НДС 12% : 12.74 [20:36:20]line Наличными: 120.00 [20:36:20]line Безнал.: 0.00 [20:36:20]line Место: АЗС № 63 "Партнер Нефть" [20:36:20]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [20:36:20]line СНО: Общий режим [20:36:20]line Чек 84 03.06.2024 20:36 [20:36:20]line Смена: 376 ФФД: 1.0 [20:36:20]line ЗНМ: 0300000037 [20:36:20]line РНМ: 0000000000092680 [20:36:20]line Версия ККМ: 001 [20:36:20]line ФМ: 0000000000874882 [20:36:20]line ФД: 39966 [20:36:20]line ФПД: 190456112162044 [20:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203623&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39966&fm=190456112162044&tin=02508201610067®Number=0000000000092680&sum=12000 [20:36:21]line 0 [20:36:21]OFD Sender: Processing packet 39966 [packets to send 5, broken 4] [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00039966 [20:36:21]OFD Sender: To server: pG, [20:36:21]CommunicateWithHost lk.salyk.kg:30040 [20:36:21]ConnectInit lk.salyk.kg [20:36:21]written 0, free lines is 4095 [20:36:21]Connected sock=10 [20:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 E9 C9 1B 01 BE 6F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 47 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1E 9C 00 00 35 04 06 00 AD 38 04 E9 24 FC 26 4C B9 AE 67 48 B4 D0 [20:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 D1 D2 47 00 E7 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1E 9C 00 00 F4 03 04 00 F2 D1 5D 66 B6 04 01 00 00 62 BF 92 FF DF AA 27 94 [20:36:21]CommunicateWithHost err = 0 [20:36:21]CheckOFDResponse [20:36:21]1017 (14) - 77093643461234 [20:36:21]1041 (16) - 0000000000874882 [20:36:21]1040 (4) - 39966 [20:36:21]1012 (4) - 03.06.2024 14:23 [20:36:21]1206 (1) - 0 [20:36:21]OFD Sender: Remove packet 39966 [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00039966 [20:36:21]NVStorageDeleteData [20:36:21]Write to MH i2c: 01 00 00 2B 17 42 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 1D 0D 73 [20:36:21]RasterBufferAndPrint [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]written 0, free lines is 3362 [20:36:21]MH_Cut [20:36:21]Write to MH i2c: D1 01 00 32 17 01 1B [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: D1 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: D1 01 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: D1 01 00 32 17 00 1A [20:36:21]Write to MH i2c: 01 00 00 33 17 4A [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]OFD Sender: No OFD packet to send [20:36:22]*** Cut start [20:36:22]*** Partial cut [20:36:22]*** CUTSNS_PIN = 1 [20:36:22]*** CUTSNS_PIN = 0 [20:36:22]*** Brake cut motor [20:36:22]Read from MH i2c: 01 [20:36:22]MH_I2C_Read... [20:36:22]*** Stop cut motor [20:36:22]*** Cut end [20:36:22]Read from MH i2c: 01 07 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: 01 07 00 33 17 00 00 00 00 00 FF 0F 5F [20:36:22]process_action close_receipt done [20:36:22]requested_data is exist [20:36:22]produce_requested_data [20:36:22]requested_item fm.sn is exist - process it [20:36:22]wFMCommunicate request_size=4 [20:36:22]MH_SAM_APDU [20:36:22]CAPDU: 80 11 00 00 [20:36:22]Write to MH i2c: E2 08 00 34 17 80 11 00 00 00 00 00 00 C5 [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:22]Read from MH i2c: E2 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 17 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 17 00 34 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1D [20:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:36:22]wFMCommunicate OK [20:36:22]requested_item fd.num is exist - process it [20:36:22]SAM_PROTO_GetFieldsCounters [20:36:22]wFMCommunicate request_size=4 [20:36:22]MH_SAM_APDU [20:36:22]CAPDU: 80 13 00 00 [20:36:22]Write to MH i2c: E2 08 00 35 17 80 13 00 00 00 00 00 00 C8 [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:22]Read from MH i2c: E2 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 62 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 62 00 35 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [20:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:22]wFMCommunicate OK [20:36:22]SAM_PROTO_GetFieldsCounters done [20:36:22]requested_item shift.num is exist - process it [20:36:22]requested_item shift.opened is exist - process it [20:36:22]req_shift_opened [20:36:22]FM_GetShiftState [20:36:22]SAM_PROTO_GetShiftState [20:36:22]wFMCommunicate request_size=4 [20:36:22]MH_SAM_APDU [20:36:22]CAPDU: 80 13 01 00 [20:36:22]Write to MH i2c: E2 08 00 36 17 80 13 01 00 00 00 00 00 CA [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:23]Read from MH i2c: E2 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 0E 00 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 0E 00 36 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 ED [20:36:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:36:23]wFMCommunicate OK [20:36:23]SAM_PROTO_GetShiftState done [20:36:23]FM_GetShiftState done [20:36:23]req_shift_opened done [20:36:23]requested_item shift.open_date is exist - process it [20:36:23]req_shift_open_date [20:36:23]req_shift_open_date done [20:36:23]produce_requested_data done [20:36:23]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39966,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [20:36:23]process_action_free close_receipt [20:36:23]json_value_free [20:36:23]json_value_free done [20:36:23]process_json_proto returns [20:36:23]Send response to host [20:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39966,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [20:36:23]free response buf [20:36:23]execute_script done [20:36:23]execute_script returns [20:36:23]free content buf [20:36:23]Sock 9.Close socket [20:36:23]Sock 9.Thread stoped [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:29]accept exits with 8 [20:37:29]New connection [20:37:29]New thread 3067325796 created [20:37:29]Thread 3067182436 joined [20:37:29]Waiting for new connection... [20:37:29] Sock 8.Parse request [20:37:29]Sock 8.Check first char [20:37:29]Sock 8.First char is OK [20:37:29]request: POST /json_proto HTTP/1.0 [20:37:29]Method: POST [20:37:29]URL: /json_proto [20:37:29]Method is POST - this is cgi request [20:37:29]url: /json_proto [20:37:29]query_string will be loaded in cgi processing [20:37:29]execute_cgi json_proto POST (null) [20:37:29]execute_cgi path=json_proto method=POST [20:37:29]POST find Content-Length [20:37:29]Host: 172.17.36.199:8080 [20:37:29]Content-Length: 1556 [20:37:29]Content-Type: application/json [20:37:29] [20:37:29]POST finish read [20:37:29]Found Content-Length = 1556 [20:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176527", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193114", "name": "\u041E\u0440\u0435\u043E \u0421\u0435\u043D\u0434\u0432\u0438\u0447 135\u0433", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:29]execute_script... [20:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176527", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193114", "name": "\u041E\u0440\u0435\u043E \u0421\u0435\u043D\u0434\u0432\u0438\u0447 135\u0433", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:29]POST & json_proto [20:37:29]process_json_proto [20:37:29]json parsed OK: [20:37:29]protocol is kg_v1.0 [20:37:29]action value=close_receipt [20:37:29]process_action close_receipt [20:37:29]cmd_close_receipt [20:37:29]MH_GetDate [20:37:29]Write to MH i2c: F0 00 00 37 17 3D [20:37:29]Write i2c OK [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: F0 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: F0 09 00 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: F0 09 00 37 17 00 8D 29 5E 66 91 46 04 65 00 [20:37:30]GetLastDocTimeStamp 1717446983 [20:37:30]current date 1717447053 [20:37:30]FM_GetShiftState [20:37:30]SAM_PROTO_GetShiftState [20:37:30]wFMCommunicate request_size=4 [20:37:30]MH_SAM_APDU [20:37:30]CAPDU: 80 13 01 00 [20:37:30]Write to MH i2c: E2 08 00 38 17 80 13 01 00 00 00 00 00 CC [20:37:30]Write i2c OK [20:37:30]MH_I2C_Read... [20:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:30]Read from MH i2c: E2 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: E2 0E 00 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: E2 0E 00 38 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 EF [20:37:30]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:37:30]wFMCommunicate OK [20:37:30]SAM_PROTO_GetShiftState done [20:37:30]FM_GetShiftState done [20:37:30]opened in 1717373769 [20:37:30]opened+sec_in_day 1717460169 [20:37:30]quantity*price = 8500 [20:37:30]sum+1 = 8501 [20:37:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021193114 Орео Сендвич 135г 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.09 НДС 12% : 37.17 Наличными: 0.00 Безнал.: 350.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 85 03.06.2024 20:37 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39967 ФПД: 177412568940528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203734&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39967&fm=177412568940528&tin=02508201610067®Number=0000000000092680&sum=35000 0 [20:37:31]StoreToDocumentArchive [20:37:31]shift 376 fd 39967 [20:37:31]save to /storage/0376/doc_00039967 [20:37:31]save last doc name /storage/0376/doc_00039967 to /storage/kkm_last_doc_name [20:37:31]save OK [20:37:31]Clear old archive folders... [20:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=583 [20:37:31]tlvbuf is 00E2F990 [20:37:31]SAM_PROTO_ClearQueue [20:37:31]wFMCommunicate request_size=4 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 09 00 00 [20:37:31]Write to MH i2c: E2 08 00 45 17 80 09 00 00 00 00 00 00 CE [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]SAM_PROTO_ClearQueue done [20:37:31]KKMCreateOFDPacket [20:37:31]OFDProtocolAddRootSTLVToBuf [20:37:31]FM_MakeSignedData [20:37:31]FM_MakeSignedData [20:37:31]SAM_PROTO_SignData [20:37:31]wFMCommunicate request_size=4 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 0D 01 02 [20:37:31]Write to MH i2c: E2 08 00 46 17 80 0D 01 02 00 00 00 00 D6 [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]wFMCommunicate request_size=255 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 0D 02 02 FA 03 00 47 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 31 34 06 04 1D 00 D0 9E D1 [20:37:31]Write to MH i2c: E2 02 01 47 17 80 0D 02 02 FA 00 03 00 47 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 31 34 06 04 1D 00 D0 9E D1 00 00 7C [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]wFMCommunicate request_size=255 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 0D 02 02 FA 80 D0 B5 D0 BE 20 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 31 33 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 [20:37:31]Write to MH i2c: E2 02 01 48 17 80 0D 02 02 FA 00 80 D0 B5 D0 BE 20 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 31 33 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 00 00 1C [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]wFMCommunicate request_size=92 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 0D 02 02 57 12 04 04 00 55 00 00 00 F4 03 04 00 8E 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1F 9C 00 00 35 04 06 00 A1 5B 15 26 7F F0 [20:37:31]Write to MH i2c: E2 5F 00 49 17 80 0D 02 02 57 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1F 9C 00 00 35 04 06 00 A1 5B 15 26 7F F0 00 00 F7 [20:37:31]OFD Sender: No OFD packet to send [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [20:37:32]RAPDU: 90 00 [20:37:32]wFMCommunicate OK [20:37:32]wFMCommunicate request_size=4 [20:37:32]MH_SAM_APDU [20:37:32]CAPDU: 80 0D 03 02 [20:37:32]Write to MH i2c: E2 08 00 4A 17 80 0D 03 02 00 00 00 00 DC [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 0B 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 0B 00 4A 17 00 78 33 BB C7 96 CD 44 20 90 00 D1 [20:37:32]RAPDU: 78 33 BB C7 96 CD 44 20 90 00 [20:37:32]wFMCommunicate OK [20:37:32]SAM_PROTO_SignData done [20:37:32]FM_MakeSignedData done [20:37:32]CreateOFDProtocolMessage [20:37:32]wFMCommunicate request_size=4 [20:37:32]MH_SAM_APDU [20:37:32]CAPDU: 80 11 00 00 [20:37:32]Write to MH i2c: E2 08 00 4B 17 80 11 00 00 00 00 00 00 DC [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 17 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 17 00 4B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 34 [20:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:37:32]wFMCommunicate OK [20:37:32]CreateOFDProtocolMessage done [20:37:32]OFDSenderStorePacket 39967 [20:37:32]StoreOFDPacket docnum=39967 [20:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 5B 02 00 00 FA 64 53 02 9A 78 5A 03 01 00 03 00 47 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 31 34 06 04 1D 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 31 33 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1F 9C 00 00 35 04 06 00 A1 5B 15 26 7F F0 78 33 BB C7 96 CD 44 20 [20:37:32]CheckFolder [20:37:32]dirname=/storage/ofd_packets [20:37:32]CheckFolder done [20:37:32]ProducePacketName [20:37:32]name=ofd_packets/00039967 [20:37:32]NVStorageSaveData ofd_packets/00039967 [20:37:32]File name is /storage/ofd_packets/00039967 [20:37:32]Write 633 bytes [20:37:32]NVStorageSaveData done [20:37:32]OFDSenderStorePacket done [20:37:32]KKMCreateOFDPacket done [20:37:32]NVStorageSaveData kkm_last_timestamp [20:37:32]File name is /storage/kkm_last_timestamp [20:37:32]Write 4 bytes [20:37:32]NVStorageSaveData done [20:37:32]ExternCall_PrintAddStr [20:37:32]wPrintStart [20:37:32]Write to MH i2c: 01 00 00 4C 17 63 [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 07 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FF 0F 78 [20:37:32]RasterBufferAndPrint [20:37:32]line Счет N : (3)176527 [20:37:32]line ИНН: 02508201610067 [20:37:32]line Контрольно-Кассовый Чек [20:37:32]line ПРОДАЖА [20:37:32]line Товар: 4650075420409 [20:37:32]line Сок Rich Вишня 0,2 [20:37:32]line 1.000 * 85.00 [20:37:32]line = 85.00 [20:37:32]line НДС 12% НСП 1% [20:37:32]line > о реализуемом товаре [20:37:32]line Товар: 4870112002775 [20:37:32]line Шок батончик ALBENI BITES 80гр [20:37:32]line 1.000 * 60.00 [20:37:32]line = 60.00 [20:37:32]line НДС 12% НСП 1% [20:37:32]line > о реализуемом товаре [20:37:32]line Товар: 4620021193114 [20:37:32]line Орео Сендвич 135г [20:37:32]line 1.000 * 155.00 [20:37:32]line = 155.00 [20:37:32]line НДС 12% НСП 1% [20:37:32]line > о реализуемом товаре [20:37:32]line Товар: 4700000160358 [20:37:32]line Вода Легенда 1л [20:37:32]line 1.000 * 50.00 [20:37:32]line = 50.00 [20:37:32]line НДС 12% НСП 1% [20:37:32]line > о реализуемом товаре [20:37:32]line ИТОГО: 350.00 [20:37:32]line НСП 1% : 3.09 [20:37:32]line НДС 12% : 37.17 [20:37:32]line Наличными: 0.00 [20:37:32]line Безнал.: 350.00 [20:37:32]line Место: АЗС № 63 "Партнер Нефть" [20:37:32]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [20:37:32]line СНО: Общий режим [20:37:32]line Чек 85 03.06.2024 20:37 [20:37:32]line Смена: 376 ФФД: 1.0 [20:37:32]line ЗНМ: 0300000037 [20:37:32]line РНМ: 0000000000092680 [20:37:32]line Версия ККМ: 001 [20:37:32]line Платежная система: Бакай Банк [20:37:32]line ФМ: 0000000000874882 [20:37:32]line ФД: 39967 [20:37:32]line ФПД: 177412568940528 [20:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203734&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39967&fm=177412568940528&tin=02508201610067®Number=0000000000092680&sum=35000 [20:37:32]line 0 [20:37:32]OFD Sender: Processing packet 39967 [packets to send 5, broken 4] [20:37:32]ProducePacketName [20:37:32]name=ofd_packets/00039967 [20:37:32]OFD Sender: To server: pG, [20:37:32]CommunicateWithHost lk.salyk.kg:30040 [20:37:32]ConnectInit lk.salyk.kg [20:37:32]written 0, free lines is 4095 [20:37:32]Connected sock=10 [20:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 5B 02 00 00 FA 64 53 02 9A 78 5A 03 01 00 03 00 47 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 31 34 06 04 1D 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 31 33 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 29 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1F 9C 00 00 35 04 06 00 A1 5B 15 26 7F F0 78 33 BB C7 96 CD 44 20 [20:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 69 DB 47 00 89 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 1F 9C 00 00 F4 03 04 00 39 D2 5D 66 B6 04 01 00 00 8C 69 02 0C 35 FD 33 1A [20:37:32]CommunicateWithHost err = 0 [20:37:32]CheckOFDResponse [20:37:32]1017 (14) - 77093643461234 [20:37:32]1041 (16) - 0000000000874882 [20:37:32]1040 (4) - 39967 [20:37:32]1012 (4) - 03.06.2024 14:24 [20:37:32]1206 (1) - 0 [20:37:32]OFD Sender: Remove packet 39967 [20:37:32]ProducePacketName [20:37:32]name=ofd_packets/00039967 [20:37:32]NVStorageDeleteData [20:37:33]Write to MH i2c: 01 00 00 89 17 A0 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 07 00 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 2B 0C DE [20:37:33]RasterBufferAndPrint [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]written 0, free lines is 3124 [20:37:33]MH_Cut [20:37:33]Write to MH i2c: D1 01 00 90 17 01 79 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 01 00 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 01 00 90 17 00 78 [20:37:33]Write to MH i2c: 01 00 00 91 17 A8 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]OFD Sender: No OFD packet to send [20:37:34]*** Cut start [20:37:34]*** Partial cut [20:37:34]*** CUTSNS_PIN = 1 [20:37:34]*** CUTSNS_PIN = 0 [20:37:34]*** Brake cut motor [20:37:34]Read from MH i2c: 01 [20:37:34]MH_I2C_Read... [20:37:34]*** Stop cut motor [20:37:34]*** Cut end [20:37:34]Read from MH i2c: 01 07 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: 01 07 00 91 17 00 00 00 00 00 FF 0F BD [20:37:34]process_action close_receipt done [20:37:34]requested_data is exist [20:37:34]produce_requested_data [20:37:34]requested_item fm.sn is exist - process it [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 11 00 00 [20:37:34]Write to MH i2c: E2 08 00 92 17 80 11 00 00 00 00 00 00 23 [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:34]Read from MH i2c: E2 17 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 17 00 92 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 7B [20:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:37:34]wFMCommunicate OK [20:37:34]requested_item fd.num is exist - process it [20:37:34]SAM_PROTO_GetFieldsCounters [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 13 00 00 [20:37:34]Write to MH i2c: E2 08 00 93 17 80 13 00 00 00 00 00 00 26 [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 62 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 62 00 93 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 1F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:34]wFMCommunicate OK [20:37:34]SAM_PROTO_GetFieldsCounters done [20:37:34]requested_item shift.num is exist - process it [20:37:34]requested_item shift.opened is exist - process it [20:37:34]req_shift_opened [20:37:34]FM_GetShiftState [20:37:34]SAM_PROTO_GetShiftState [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 13 01 00 [20:37:34]Write to MH i2c: E2 08 00 94 17 80 13 01 00 00 00 00 00 28 [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 0E 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 0E 00 94 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 4B [20:37:34]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:37:34]wFMCommunicate OK [20:37:34]SAM_PROTO_GetShiftState done [20:37:34]FM_GetShiftState done [20:37:34]req_shift_opened done [20:37:34]requested_item shift.open_date is exist - process it [20:37:34]req_shift_open_date [20:37:34]req_shift_open_date done [20:37:34]produce_requested_data done [20:37:34]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39967,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [20:37:34]process_action_free close_receipt [20:37:34]json_value_free [20:37:34]json_value_free done [20:37:34]process_json_proto returns [20:37:34]Send response to host [20:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39967,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [20:37:34]free response buf [20:37:34]execute_script done [20:37:34]execute_script returns [20:37:34]free content buf [20:37:34]Sock 8.Close socket [20:37:34]Sock 8.Thread stoped [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:35]accept exits with 9 [20:41:35]New connection [20:41:35]New thread 3067182436 created [20:41:35]Thread 3067325796 joined [20:41:35]Waiting for new connection... [20:41:35] Sock 9.Parse request [20:41:35]Sock 9.Check first char [20:41:35]Sock 9.First char is OK [20:41:35]request: POST /json_proto HTTP/1.0 [20:41:35]Method: POST [20:41:35]URL: /json_proto [20:41:35]Method is POST - this is cgi request [20:41:35]url: /json_proto [20:41:35]query_string will be loaded in cgi processing [20:41:35]execute_cgi json_proto POST (null) [20:41:35]execute_cgi path=json_proto method=POST [20:41:35]POST find Content-Length [20:41:35]Host: 172.17.36.199:8080 [20:41:35]Content-Length: 673 [20:41:35]Content-Type: application/json [20:41:35] [20:41:35]POST finish read [20:41:35]Found Content-Length = 673 [20:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176528", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]execute_script... [20:41:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176528", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]POST & json_proto [20:41:35]process_json_proto [20:41:35]json parsed OK: [20:41:35]protocol is kg_v1.0 [20:41:35]action value=close_receipt [20:41:35]process_action close_receipt [20:41:35]cmd_close_receipt [20:41:35]MH_GetDate [20:41:35]Write to MH i2c: F0 00 00 95 17 9B [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 95 17 00 83 2A 5E 66 91 46 04 65 55 [20:41:35]GetLastDocTimeStamp 1717447054 [20:41:35]current date 1717447299 [20:41:35]FM_GetShiftState [20:41:35]SAM_PROTO_GetShiftState [20:41:35]wFMCommunicate request_size=4 [20:41:35]MH_SAM_APDU [20:41:35]CAPDU: 80 13 01 00 [20:41:35]Write to MH i2c: E2 08 00 96 17 80 13 01 00 00 00 00 00 2A [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:35]Read from MH i2c: E2 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 96 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 4D [20:41:35]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:41:35]wFMCommunicate OK [20:41:35]SAM_PROTO_GetShiftState done [20:41:35]FM_GetShiftState done [20:41:35]opened in 1717373769 [20:41:35]opened+sec_in_day 1717460169 [20:41:35]quantity*price = 700 [20:41:35]sum+1 = 701 [20:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 86 03.06.2024 20:41 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39968 ФПД: 69431033111932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204139&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39968&fm=69431033111932&tin=02508201610067®Number=0000000000092680&sum=700 0 [20:41:36]StoreToDocumentArchive [20:41:36]shift 376 fd 39968 [20:41:36]save to /storage/0376/doc_00039968 [20:41:36]save last doc name /storage/0376/doc_00039968 to /storage/kkm_last_doc_name [20:41:36]save OK [20:41:36]Clear old archive folders... [20:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:41:36]tlvbuf is 00E1FD20 [20:41:36]SAM_PROTO_ClearQueue [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 09 00 00 [20:41:36]Write to MH i2c: E2 08 00 A3 17 80 09 00 00 00 00 00 00 2C [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_ClearQueue done [20:41:36]KKMCreateOFDPacket [20:41:36]OFDProtocolAddRootSTLVToBuf [20:41:36]FM_MakeSignedData [20:41:36]FM_MakeSignedData [20:41:36]SAM_PROTO_SignData [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 01 02 [20:41:36]Write to MH i2c: E2 08 00 A4 17 80 0D 01 02 00 00 00 00 34 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=255 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 83 2A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [20:41:36]Write to MH i2c: E2 02 01 A5 17 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 83 2A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 B0 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 A5 17 00 90 00 30 [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=46 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 29 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 20 9C 00 00 35 04 06 00 3F 25 AC 10 A5 7C [20:41:36]Write to MH i2c: E2 31 00 A6 17 80 0D 02 02 29 00 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 20 9C 00 00 35 04 06 00 3F 25 AC 10 A5 7C 00 00 C5 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 A6 17 00 90 00 31 [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 03 02 [20:41:36]Write to MH i2c: E2 08 00 A7 17 80 0D 03 02 00 00 00 00 39 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 A7 17 00 0E E9 16 E6 93 CB 15 62 90 00 02 [20:41:36]RAPDU: 0E E9 16 E6 93 CB 15 62 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_SignData done [20:41:36]FM_MakeSignedData done [20:41:36]CreateOFDProtocolMessage [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 11 00 00 [20:41:36]Write to MH i2c: E2 08 00 A8 17 80 11 00 00 00 00 00 00 39 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 A8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 91 [20:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:41:36]wFMCommunicate OK [20:41:36]CreateOFDProtocolMessage done [20:41:36]OFDSenderStorePacket 39968 [20:41:36]StoreOFDPacket docnum=39968 [20:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 29 61 2B 01 B1 EB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 83 2A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 20 9C 00 00 35 04 06 00 3F 25 AC 10 A5 7C 0E E9 16 E6 93 CB 15 62 [20:41:36]CheckFolder [20:41:36]dirname=/storage/ofd_packets [20:41:36]CheckFolder done [20:41:36]ProducePacketName [20:41:36]name=ofd_packets/00039968 [20:41:36]NVStorageSaveData ofd_packets/00039968 [20:41:36]File name is /storage/ofd_packets/00039968 [20:41:36]Write 337 bytes [20:41:36]NVStorageSaveData done [20:41:36]OFDSenderStorePacket done [20:41:36]KKMCreateOFDPacket done [20:41:36]NVStorageSaveData kkm_last_timestamp [20:41:36]File name is /storage/kkm_last_timestamp [20:41:36]Write 4 bytes [20:41:36]NVStorageSaveData done [20:41:36]ExternCall_PrintAddStr [20:41:36]wPrintStart [20:41:36]Write to MH i2c: 01 00 00 A9 17 C0 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 A9 17 00 00 00 00 00 FF 0F D5 [20:41:36]RasterBufferAndPrint [20:41:36]line Счет N : (3)176528 [20:41:36]line ИНН: 02508201610067 [20:41:36]line Контрольно-Кассовый Чек [20:41:36]line ПРОДАЖА [20:41:36]line Товар: 2000053020015 [20:41:36]line Бумажные стаканы 250мл 1шт [20:41:36]line 1.000 * 7.00 [20:41:36]line = 7.00 [20:41:36]line НДС 12% НСП 1% [20:41:36]line > о реализуемом товаре [20:41:36]line ИТОГО: 7.00 [20:41:36]line НСП 1% : 0.06 [20:41:36]line НДС 12% : 0.74 [20:41:36]line Наличными: 7.00 [20:41:36]line Безнал.: 0.00 [20:41:36]line Место: АЗС № 63 "Партнер Нефть" [20:41:36]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [20:41:37]line СНО: Общий режим [20:41:37]line Чек 86 03.06.2024 20:41 [20:41:37]line Смена: 376 ФФД: 1.0 [20:41:37]line ЗНМ: 0300000037 [20:41:37]line РНМ: 0000000000092680 [20:41:37]line Версия ККМ: 001 [20:41:37]line ФМ: 0000000000874882 [20:41:37]line ФД: 39968 [20:41:37]line ФПД: 69431033111932 [20:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204139&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39968&fm=69431033111932&tin=02508201610067®Number=0000000000092680&sum=700 [20:41:37]line 0 [20:41:37]OFD Sender: Processing packet 39968 [packets to send 5, broken 4] [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00039968 [20:41:37]OFD Sender: To server: pG, [20:41:37]CommunicateWithHost lk.salyk.kg:30040 [20:41:37]ConnectInit lk.salyk.kg [20:41:37]written 0, free lines is 4095 [20:41:37]Connected sock=10 [20:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 29 61 2B 01 B1 EB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 83 2A 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 20 9C 00 00 35 04 06 00 3F 25 AC 10 A5 7C 0E E9 16 E6 93 CB 15 62 [20:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CF 05 47 00 69 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 20 9C 00 00 F4 03 04 00 2E D3 5D 66 B6 04 01 00 00 05 D7 F4 21 4A EA D3 68 [20:41:37]CommunicateWithHost err = 0 [20:41:37]CheckOFDResponse [20:41:37]1017 (14) - 77093643461234 [20:41:37]1041 (16) - 0000000000874882 [20:41:37]1040 (4) - 39968 [20:41:37]1012 (4) - 03.06.2024 14:29 [20:41:37]1206 (1) - 0 [20:41:37]OFD Sender: Remove packet 39968 [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00039968 [20:41:37]NVStorageDeleteData [20:41:37]Write to MH i2c: 01 00 00 D2 17 E9 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 F4 0C F0 [20:41:37]RasterBufferAndPrint [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]written 0, free lines is 3324 [20:41:37]MH_Cut [20:41:37]Write to MH i2c: D1 01 00 D9 17 01 C2 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 01 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 01 00 D9 17 00 C1 [20:41:37]Write to MH i2c: 01 00 00 DA 17 F1 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]OFD Sender: No OFD packet to send [20:41:38]*** Cut start [20:41:38]*** Partial cut [20:41:38]*** CUTSNS_PIN = 1 [20:41:38]*** CUTSNS_PIN = 0 [20:41:38]*** Brake cut motor [20:41:38]Read from MH i2c: 01 [20:41:38]MH_I2C_Read... [20:41:38]*** Stop cut motor [20:41:38]*** Cut end [20:41:38]Read from MH i2c: 01 07 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 FF 0F 06 [20:41:38]process_action close_receipt done [20:41:38]requested_data is exist [20:41:38]produce_requested_data [20:41:38]requested_item fm.sn is exist - process it [20:41:38]wFMCommunicate request_size=4 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 11 00 00 [20:41:38]Write to MH i2c: E2 08 00 DB 17 80 11 00 00 00 00 00 00 6C [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 17 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 17 00 DB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C4 [20:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:41:38]wFMCommunicate OK [20:41:38]requested_item fd.num is exist - process it [20:41:38]SAM_PROTO_GetFieldsCounters [20:41:38]wFMCommunicate request_size=4 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 13 00 00 [20:41:38]Write to MH i2c: E2 08 00 DC 17 80 13 00 00 00 00 00 00 6F [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 62 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 62 00 DC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 20 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [20:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 20 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_GetFieldsCounters done [20:41:39]requested_item shift.num is exist - process it [20:41:39]requested_item shift.opened is exist - process it [20:41:39]req_shift_opened [20:41:39]FM_GetShiftState [20:41:39]SAM_PROTO_GetShiftState [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 13 01 00 [20:41:39]Write to MH i2c: E2 08 00 DD 17 80 13 01 00 00 00 00 00 71 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 0E 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 0E 00 DD 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 94 [20:41:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_GetShiftState done [20:41:39]FM_GetShiftState done [20:41:39]req_shift_opened done [20:41:39]requested_item shift.open_date is exist - process it [20:41:39]req_shift_open_date [20:41:39]req_shift_open_date done [20:41:39]produce_requested_data done [20:41:39]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39968,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [20:41:39]process_action_free close_receipt [20:41:39]json_value_free [20:41:39]json_value_free done [20:41:39]process_json_proto returns [20:41:39]Send response to host [20:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39968,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [20:41:39]free response buf [20:41:39]execute_script done [20:41:39]execute_script returns [20:41:39]free content buf [20:41:39]Sock 9.Close socket [20:41:39]Sock 9.Thread stoped [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:01]accept exits with 8 [20:51:01]New connection [20:51:01]New thread 3067325796 created [20:51:01]Thread 3067182436 joined [20:51:01]Waiting for new connection... [20:51:01] Sock 8.Parse request [20:51:01]Sock 8.Check first char [20:51:01]Sock 8.First char is OK [20:51:01]request: POST /json_proto HTTP/1.0 [20:51:01]Method: POST [20:51:01]URL: /json_proto [20:51:01]Method is POST - this is cgi request [20:51:01]url: /json_proto [20:51:01]query_string will be loaded in cgi processing [20:51:01]execute_cgi json_proto POST (null) [20:51:01]execute_cgi path=json_proto method=POST [20:51:01]POST find Content-Length [20:51:01]Host: 172.17.36.199:8080 [20:51:01]Content-Length: 654 [20:51:01]Content-Type: application/json [20:51:01] [20:51:01]POST finish read [20:51:01]Found Content-Length = 654 [20:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176529", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:01]execute_script... [20:51:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176529", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:01]POST & json_proto [20:51:01]process_json_proto [20:51:01]json parsed OK: [20:51:01]protocol is kg_v1.0 [20:51:01]action value=close_receipt [20:51:01]process_action close_receipt [20:51:01]cmd_close_receipt [20:51:01]MH_GetDate [20:51:01]Write to MH i2c: F0 00 00 DE 17 E4 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: F0 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: F0 09 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: F0 09 00 DE 17 00 B9 2C 5E 66 91 46 04 65 D6 [20:51:01]GetLastDocTimeStamp 1717447299 [20:51:01]current date 1717447865 [20:51:01]FM_GetShiftState [20:51:01]SAM_PROTO_GetShiftState [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 13 01 00 [20:51:01]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0E 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 96 [20:51:01]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:51:01]wFMCommunicate OK [20:51:01]SAM_PROTO_GetShiftState done [20:51:01]FM_GetShiftState done [20:51:01]opened in 1717373769 [20:51:01]opened+sec_in_day 1717460169 [20:51:01]quantity*price = 9500 [20:51:01]sum+1 = 9501 [20:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 87 03.06.2024 20:51 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39969 ФПД: 28159267681192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205105&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39969&fm=28159267681192&tin=02508201610067®Number=0000000000092680&sum=9500 0 [20:51:02]StoreToDocumentArchive [20:51:02]shift 376 fd 39969 [20:51:02]save to /storage/0376/doc_00039969 [20:51:02]save last doc name /storage/0376/doc_00039969 to /storage/kkm_last_doc_name [20:51:02]save OK [20:51:02]Clear old archive folders... [20:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:51:02]tlvbuf is 00E06970 [20:51:02]SAM_PROTO_ClearQueue [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 09 00 00 [20:51:02]Write to MH i2c: E2 08 00 EC 17 80 09 00 00 00 00 00 00 75 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:02]Read from MH i2c: E2 03 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [20:51:02]RAPDU: 90 00 [20:51:02]wFMCommunicate OK [20:51:02]SAM_PROTO_ClearQueue done [20:51:02]KKMCreateOFDPacket [20:51:02]OFDProtocolAddRootSTLVToBuf [20:51:02]FM_MakeSignedData [20:51:02]FM_MakeSignedData [20:51:02]SAM_PROTO_SignData [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 0D 01 02 [20:51:02]Write to MH i2c: E2 08 00 ED 17 80 0D 01 02 00 00 00 00 7D [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 ED 17 00 90 00 78 [20:51:02]RAPDU: 90 00 [20:51:02]wFMCommunicate OK [20:51:02]wFMCommunicate request_size=255 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B9 2C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:51:02]Write to MH i2c: E2 02 01 EE 17 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B9 2C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 96 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:02]Read from MH i2c: E2 03 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [20:51:02]RAPDU: 90 00 [20:51:02]wFMCommunicate OK [20:51:02]wFMCommunicate request_size=52 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 21 9C 00 00 35 04 06 00 19 9C 57 25 B3 A8 [20:51:02]Write to MH i2c: E2 37 00 EF 17 80 0D 02 02 2F 00 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 21 9C 00 00 35 04 06 00 19 9C 57 25 B3 A8 00 00 91 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [20:51:02]RAPDU: 90 00 [20:51:02]wFMCommunicate OK [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 0D 03 02 [20:51:02]Write to MH i2c: E2 08 00 F0 17 80 0D 03 02 00 00 00 00 82 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 0B 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 0B 00 F0 17 00 4F A3 15 CF DF 23 4E F3 90 00 9C [20:51:02]RAPDU: 4F A3 15 CF DF 23 4E F3 90 00 [20:51:02]wFMCommunicate OK [20:51:02]SAM_PROTO_SignData done [20:51:02]FM_MakeSignedData done [20:51:02]CreateOFDProtocolMessage [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 11 00 00 [20:51:02]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 17 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DA [20:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:51:02]wFMCommunicate OK [20:51:02]CreateOFDProtocolMessage done [20:51:02]OFDSenderStorePacket 39969 [20:51:02]StoreOFDPacket docnum=39969 [20:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 D8 AA 31 01 83 39 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B9 2C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 21 9C 00 00 35 04 06 00 19 9C 57 25 B3 A8 4F A3 15 CF DF 23 4E F3 [20:51:02]CheckFolder [20:51:02]dirname=/storage/ofd_packets [20:51:02]CheckFolder done [20:51:02]ProducePacketName [20:51:02]name=ofd_packets/00039969 [20:51:02]NVStorageSaveData ofd_packets/00039969 [20:51:02]File name is /storage/ofd_packets/00039969 [20:51:02]Write 343 bytes [20:51:02]NVStorageSaveData done [20:51:02]OFDSenderStorePacket done [20:51:02]KKMCreateOFDPacket done [20:51:02]NVStorageSaveData kkm_last_timestamp [20:51:02]File name is /storage/kkm_last_timestamp [20:51:02]Write 4 bytes [20:51:02]NVStorageSaveData done [20:51:02]ExternCall_PrintAddStr [20:51:02]wPrintStart [20:51:02]Write to MH i2c: 01 00 00 F2 17 09 [20:51:02]OFD Sender: Processing packet 39969 [packets to send 5, broken 4] [20:51:02]ProducePacketName [20:51:02]name=ofd_packets/00039969 [20:51:02]OFD Sender: To server: pG, [20:51:03]CommunicateWithHost lk.salyk.kg:30040 [20:51:03]ConnectInit lk.salyk.kg [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 07 00 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [20:51:03]RasterBufferAndPrint [20:51:03]line Счет N : (3)176529 [20:51:03]line ИНН: 02508201610067 [20:51:03]line Контрольно-Кассовый Чек [20:51:03]line ПРОДАЖА [20:51:03]line Товар: 4700000480050 [20:51:03]line Напиток Nitro Energy эн green ж/б 0,45л [20:51:03]line 1.000 * 95.00 [20:51:03]line = 95.00 [20:51:03]line НДС 12% НСП 1% [20:51:03]line > о реализуемом товаре [20:51:03]line ИТОГО: 95.00 [20:51:03]line НСП 1% : 0.84 [20:51:03]line НДС 12% : 10.09 [20:51:03]line Наличными: 95.00 [20:51:03]line Безнал.: 0.00 [20:51:03]line Место: АЗС № 63 "Партнер Нефть" [20:51:03]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [20:51:03]line СНО: Общий режим [20:51:03]line Чек 87 03.06.2024 20:51 [20:51:03]line Смена: 376 ФФД: 1.0 [20:51:03]line ЗНМ: 0300000037 [20:51:03]line РНМ: 0000000000092680 [20:51:03]line Версия ККМ: 001 [20:51:03]line ФМ: 0000000000874882 [20:51:03]line ФД: 39969 [20:51:03]line ФПД: 28159267681192 [20:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205105&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39969&fm=28159267681192&tin=02508201610067®Number=0000000000092680&sum=9500 [20:51:03]line 0 [20:51:03]written 0, free lines is 4095 [20:51:03]Connected sock=10 [20:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 39 01 00 00 D8 AA 31 01 83 39 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B9 2C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 21 9C 00 00 35 04 06 00 19 9C 57 25 B3 A8 4F A3 15 CF DF 23 4E F3 [20:51:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 B2 59 47 00 7E 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 21 9C 00 00 F4 03 04 00 64 D5 5D 66 B6 04 01 00 00 9B 49 51 9A 23 05 36 02 [20:51:03]CommunicateWithHost err = 0 [20:51:03]CheckOFDResponse [20:51:03]1017 (14) - 77093643461234 [20:51:03]1041 (16) - 0000000000874882 [20:51:03]1040 (4) - 39969 [20:51:03]1012 (4) - 03.06.2024 14:38 [20:51:03]1206 (1) - 0 [20:51:03]OFD Sender: Remove packet 39969 [20:51:03]ProducePacketName [20:51:03]name=ofd_packets/00039969 [20:51:03]NVStorageDeleteData [20:51:03]Write to MH i2c: 01 00 00 1B 18 33 [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 07 00 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 07 00 1B 18 00 00 00 00 00 04 0D 4B [20:51:03]RasterBufferAndPrint [20:51:03]line [20:51:03]line [20:51:03]line [20:51:03]line [20:51:03]line [20:51:03]written 0, free lines is 3338 [20:51:03]MH_Cut [20:51:03]Write to MH i2c: D1 01 00 22 18 01 0C [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: D1 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: D1 01 00 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: D1 01 00 22 18 00 0B [20:51:03]Write to MH i2c: 01 00 00 23 18 3B [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]OFD Sender: No OFD packet to send [20:51:04]*** Cut start [20:51:04]*** Partial cut [20:51:04]*** CUTSNS_PIN = 1 [20:51:04]*** CUTSNS_PIN = 0 [20:51:04]*** Brake cut motor [20:51:04]Read from MH i2c: 01 [20:51:04]MH_I2C_Read... [20:51:04]*** Stop cut motor [20:51:04]*** Cut end [20:51:04]Read from MH i2c: 01 07 00 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: 01 07 00 23 18 00 00 00 00 00 FF 0F 50 [20:51:04]process_action close_receipt done [20:51:04]requested_data is exist [20:51:04]produce_requested_data [20:51:04]requested_item fm.sn is exist - process it [20:51:04]wFMCommunicate request_size=4 [20:51:04]MH_SAM_APDU [20:51:04]CAPDU: 80 11 00 00 [20:51:04]Write to MH i2c: E2 08 00 24 18 80 11 00 00 00 00 00 00 B6 [20:51:04]Write i2c OK [20:51:04]MH_I2C_Read... [20:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:04]Read from MH i2c: E2 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 17 00 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 17 00 24 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 0E [20:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [20:51:04]wFMCommunicate OK [20:51:04]requested_item fd.num is exist - process it [20:51:04]SAM_PROTO_GetFieldsCounters [20:51:04]wFMCommunicate request_size=4 [20:51:04]MH_SAM_APDU [20:51:04]CAPDU: 80 13 00 00 [20:51:04]Write to MH i2c: E2 08 00 25 18 80 13 00 00 00 00 00 00 B9 [20:51:04]Write i2c OK [20:51:04]MH_I2C_Read... [20:51:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:04]Read from MH i2c: E2 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 62 00 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 62 00 25 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 21 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [20:51:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 21 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:04]wFMCommunicate OK [20:51:04]SAM_PROTO_GetFieldsCounters done [20:51:04]requested_item shift.num is exist - process it [20:51:04]requested_item shift.opened is exist - process it [20:51:04]req_shift_opened [20:51:04]FM_GetShiftState [20:51:04]SAM_PROTO_GetShiftState [20:51:04]wFMCommunicate request_size=4 [20:51:04]MH_SAM_APDU [20:51:04]CAPDU: 80 13 01 00 [20:51:04]Write to MH i2c: E2 08 00 26 18 80 13 01 00 00 00 00 00 BB [20:51:04]Write i2c OK [20:51:04]MH_I2C_Read... [20:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:04]Read from MH i2c: E2 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 0E 00 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 0E 00 26 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DE [20:51:04]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [20:51:04]wFMCommunicate OK [20:51:04]SAM_PROTO_GetShiftState done [20:51:04]FM_GetShiftState done [20:51:04]req_shift_opened done [20:51:04]requested_item shift.open_date is exist - process it [20:51:04]req_shift_open_date [20:51:04]req_shift_open_date done [20:51:04]produce_requested_data done [20:51:04]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39969,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [20:51:04]process_action_free close_receipt [20:51:04]json_value_free [20:51:04]json_value_free done [20:51:04]process_json_proto returns [20:51:04]Send response to host [20:51:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39969,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [20:51:05]free response buf [20:51:05]execute_script done [20:51:05]execute_script returns [20:51:05]free content buf [20:51:05]Sock 8.Close socket [20:51:05]Sock 8.Thread stoped [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]accept exits with 9 [21:09:39]New connection [21:09:39]New thread 3067182436 created [21:09:39]Thread 3067325796 joined [21:09:39]Waiting for new connection... [21:09:39] Sock 9.Parse request [21:09:39]Sock 9.Check first char [21:09:39]Sock 9.First char is OK [21:09:39]request: POST /json_proto HTTP/1.0 [21:09:39]Method: POST [21:09:39]URL: /json_proto [21:09:39]Method is POST - this is cgi request [21:09:39]url: /json_proto [21:09:39]query_string will be loaded in cgi processing [21:09:39]execute_cgi json_proto POST (null) [21:09:39]execute_cgi path=json_proto method=POST [21:09:39]POST find Content-Length [21:09:39]Host: 172.17.36.199:8080 [21:09:39]Content-Length: 646 [21:09:39]Content-Type: application/json [21:09:39] [21:09:39]POST finish read [21:09:39]Found Content-Length = 646 [21:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176530", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:39]execute_script... [21:09:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176530", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:39]POST & json_proto [21:09:39]process_json_proto [21:09:39]json parsed OK: [21:09:39]protocol is kg_v1.0 [21:09:39]action value=close_receipt [21:09:39]process_action close_receipt [21:09:39]cmd_close_receipt [21:09:39]MH_GetDate [21:09:39]Write to MH i2c: F0 00 00 27 18 2E [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: F0 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: F0 09 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: F0 09 00 27 18 00 17 31 5E 66 91 46 04 65 83 [21:09:39]GetLastDocTimeStamp 1717447865 [21:09:39]current date 1717448983 [21:09:39]FM_GetShiftState [21:09:39]SAM_PROTO_GetShiftState [21:09:39]wFMCommunicate request_size=4 [21:09:39]MH_SAM_APDU [21:09:39]CAPDU: 80 13 01 00 [21:09:39]Write to MH i2c: E2 08 00 28 18 80 13 01 00 00 00 00 00 BD [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:39]Read from MH i2c: E2 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 28 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 E0 [21:09:39]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:09:39]wFMCommunicate OK [21:09:39]SAM_PROTO_GetShiftState done [21:09:39]FM_GetShiftState done [21:09:39]opened in 1717373769 [21:09:39]opened+sec_in_day 1717460169 [21:09:39]quantity*price = 12500 [21:09:39]sum+1 = 12501 [21:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 88 03.06.2024 21:09 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39970 ФПД: 81051331142737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210943&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39970&fm=81051331142737&tin=02508201610067®Number=0000000000092680&sum=12500 0 [21:09:40]StoreToDocumentArchive [21:09:40]shift 376 fd 39970 [21:09:40]save to /storage/0376/doc_00039970 [21:09:40]save last doc name /storage/0376/doc_00039970 to /storage/kkm_last_doc_name [21:09:40]save OK [21:09:40]Clear old archive folders... [21:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:09:40]tlvbuf is B6F1C860 [21:09:40]SAM_PROTO_ClearQueue [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 09 00 00 [21:09:40]Write to MH i2c: E2 08 00 35 18 80 09 00 00 00 00 00 00 BF [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 35 18 00 90 00 C1 [21:09:40]RAPDU: 90 00 [21:09:40]wFMCommunicate OK [21:09:40]SAM_PROTO_ClearQueue done [21:09:40]KKMCreateOFDPacket [21:09:40]OFDProtocolAddRootSTLVToBuf [21:09:40]FM_MakeSignedData [21:09:40]FM_MakeSignedData [21:09:40]SAM_PROTO_SignData [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 0D 01 02 [21:09:40]Write to MH i2c: E2 08 00 36 18 80 0D 01 02 00 00 00 00 C7 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [21:09:40]RAPDU: 90 00 [21:09:40]wFMCommunicate OK [21:09:40]wFMCommunicate request_size=255 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 17 31 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 [21:09:40]Write to MH i2c: E2 02 01 37 18 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 17 31 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 00 00 A2 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [21:09:40]RAPDU: 90 00 [21:09:40]wFMCommunicate OK [21:09:40]wFMCommunicate request_size=41 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 22 9C 00 00 35 04 06 00 49 B7 3B CD 24 51 [21:09:40]Write to MH i2c: E2 2C 00 38 18 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 22 9C 00 00 35 04 06 00 49 B7 3B CD 24 51 00 00 D9 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [21:09:40]RAPDU: 90 00 [21:09:40]wFMCommunicate OK [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 0D 03 02 [21:09:40]Write to MH i2c: E2 08 00 39 18 80 0D 03 02 00 00 00 00 CC [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 0B 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 0B 00 39 18 00 7F 3A E1 1C 9E CD E0 34 90 00 02 [21:09:40]RAPDU: 7F 3A E1 1C 9E CD E0 34 90 00 [21:09:40]wFMCommunicate OK [21:09:40]SAM_PROTO_SignData done [21:09:40]FM_MakeSignedData done [21:09:40]CreateOFDProtocolMessage [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 11 00 00 [21:09:40]Write to MH i2c: E2 08 00 3A 18 80 11 00 00 00 00 00 00 CC [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 17 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 17 00 3A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 24 [21:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:09:40]wFMCommunicate OK [21:09:40]CreateOFDProtocolMessage done [21:09:40]OFDSenderStorePacket 39970 [21:09:40]StoreOFDPacket docnum=39970 [21:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 71 FA 26 01 B5 6F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 17 31 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 22 9C 00 00 35 04 06 00 49 B7 3B CD 24 51 7F 3A E1 1C 9E CD E0 34 [21:09:40]CheckFolder [21:09:40]dirname=/storage/ofd_packets [21:09:40]CheckFolder done [21:09:40]ProducePacketName [21:09:40]name=ofd_packets/00039970 [21:09:40]NVStorageSaveData ofd_packets/00039970 [21:09:40]File name is /storage/ofd_packets/00039970 [21:09:40]Write 332 bytes [21:09:40]NVStorageSaveData done [21:09:40]OFDSenderStorePacket done [21:09:40]KKMCreateOFDPacket done [21:09:40]NVStorageSaveData kkm_last_timestamp [21:09:40]File name is /storage/kkm_last_timestamp [21:09:40]Write 4 bytes [21:09:40]NVStorageSaveData done [21:09:40]ExternCall_PrintAddStr [21:09:40]wPrintStart [21:09:40]Write to MH i2c: 01 00 00 3B 18 53 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 07 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [21:09:40]RasterBufferAndPrint [21:09:40]line Счет N : (3)176530 [21:09:40]line ИНН: 02508201610067 [21:09:40]line Контрольно-Кассовый Чек [21:09:40]line ПРОДАЖА [21:09:40]line Товар: 2000036220012 [21:09:40]line Кофе Капучино XL(GABB TRADE) [21:09:40]line 1.000 * 125.00 [21:09:40]line = 125.00 [21:09:40]line НДС 12% НСП 1% [21:09:40]line > о реализуемом товаре [21:09:40]line ИТОГО: 125.00 [21:09:40]line НСП 1% : 1.11 [21:09:40]line НДС 12% : 13.27 [21:09:40]line Наличными: 125.00 [21:09:40]line Безнал.: 0.00 [21:09:40]line Место: АЗС № 63 "Партнер Нефть" [21:09:40]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:09:40]line СНО: Общий режим [21:09:40]line Чек 88 03.06.2024 21:09 [21:09:40]line Смена: 376 ФФД: 1.0 [21:09:40]line ЗНМ: 0300000037 [21:09:40]line РНМ: 0000000000092680 [21:09:40]line Версия ККМ: 001 [21:09:40]line ФМ: 0000000000874882 [21:09:40]line ФД: 39970 [21:09:40]line ФПД: 81051331142737 [21:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210943&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39970&fm=81051331142737&tin=02508201610067®Number=0000000000092680&sum=12500 [21:09:41]OFD Sender: Processing packet 39970 [packets to send 5, broken 4] [21:09:41]ProducePacketName [21:09:41]name=ofd_packets/00039970 [21:09:41]OFD Sender: To server: pG, [21:09:41]CommunicateWithHost lk.salyk.kg:30040 [21:09:41]ConnectInit lk.salyk.kg [21:09:41]line 0 [21:09:41]written 0, free lines is 4095 [21:09:41]Connected sock=10 [21:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 71 FA 26 01 B5 6F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 17 31 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 22 9C 00 00 35 04 06 00 49 B7 3B CD 24 51 7F 3A E1 1C 9E CD E0 34 [21:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 2C EF 47 00 71 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 22 9C 00 00 F4 03 04 00 C2 D9 5D 66 B6 04 01 00 00 7B 46 D1 63 7F 55 E5 C5 [21:09:41]CommunicateWithHost err = 0 [21:09:41]CheckOFDResponse [21:09:41]1017 (14) - 77093643461234 [21:09:41]1041 (16) - 0000000000874882 [21:09:41]1040 (4) - 39970 [21:09:41]1012 (4) - 03.06.2024 14:57 [21:09:41]1206 (1) - 0 [21:09:41]OFD Sender: Remove packet 39970 [21:09:41]ProducePacketName [21:09:41]name=ofd_packets/00039970 [21:09:41]NVStorageDeleteData [21:09:41]Write to MH i2c: 01 00 00 64 18 7C [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 07 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 07 00 64 18 00 00 00 00 00 0D 0D 9D [21:09:41]RasterBufferAndPrint [21:09:41]line [21:09:41]line [21:09:41]line [21:09:41]line [21:09:41]line [21:09:41]written 0, free lines is 3350 [21:09:41]MH_Cut [21:09:41]Write to MH i2c: D1 01 00 6B 18 01 55 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: D1 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: D1 01 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: D1 01 00 6B 18 00 54 [21:09:41]Write to MH i2c: 01 00 00 6C 18 84 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:42]OFD Sender: No OFD packet to send [21:09:42]*** Cut start [21:09:42]*** Partial cut [21:09:42]*** CUTSNS_PIN = 1 [21:09:42]*** CUTSNS_PIN = 0 [21:09:42]*** Brake cut motor [21:09:42]Read from MH i2c: 01 [21:09:42]MH_I2C_Read... [21:09:42]*** Stop cut motor [21:09:42]*** Cut end [21:09:42]Read from MH i2c: 01 07 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 FF 0F 99 [21:09:42]process_action close_receipt done [21:09:42]requested_data is exist [21:09:42]produce_requested_data [21:09:42]requested_item fm.sn is exist - process it [21:09:42]wFMCommunicate request_size=4 [21:09:42]MH_SAM_APDU [21:09:42]CAPDU: 80 11 00 00 [21:09:42]Write to MH i2c: E2 08 00 6D 18 80 11 00 00 00 00 00 00 FF [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 6D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 57 [21:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:09:43]wFMCommunicate OK [21:09:43]requested_item fd.num is exist - process it [21:09:43]SAM_PROTO_GetFieldsCounters [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 13 00 00 [21:09:43]Write to MH i2c: E2 08 00 6E 18 80 13 00 00 00 00 00 00 02 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 62 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 62 00 6E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 22 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 22 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_GetFieldsCounters done [21:09:43]requested_item shift.num is exist - process it [21:09:43]requested_item shift.opened is exist - process it [21:09:43]req_shift_opened [21:09:43]FM_GetShiftState [21:09:43]SAM_PROTO_GetShiftState [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 13 01 00 [21:09:43]Write to MH i2c: E2 08 00 6F 18 80 13 01 00 00 00 00 00 04 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0E 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0E 00 6F 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 27 [21:09:43]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_GetShiftState done [21:09:43]FM_GetShiftState done [21:09:43]req_shift_opened done [21:09:43]requested_item shift.open_date is exist - process it [21:09:43]req_shift_open_date [21:09:43]req_shift_open_date done [21:09:43]produce_requested_data done [21:09:43]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39970,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:09:43]process_action_free close_receipt [21:09:43]json_value_free [21:09:43]json_value_free done [21:09:43]process_json_proto returns [21:09:43]Send response to host [21:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39970,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:09:43]free response buf [21:09:43]execute_script done [21:09:43]execute_script returns [21:09:43]free content buf [21:09:43]Sock 9.Close socket [21:09:43]Sock 9.Thread stoped [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:27]accept exits with 8 [21:14:27]New connection [21:14:27]New thread 3067325796 created [21:14:27]Thread 3067182436 joined [21:14:27]Waiting for new connection... [21:14:27] Sock 8.Parse request [21:14:27]Sock 8.Check first char [21:14:27]Sock 8.First char is OK [21:14:27]request: POST /json_proto HTTP/1.0 [21:14:27]Method: POST [21:14:27]URL: /json_proto [21:14:27]Method is POST - this is cgi request [21:14:27]url: /json_proto [21:14:27]query_string will be loaded in cgi processing [21:14:27]execute_cgi json_proto POST (null) [21:14:27]execute_cgi path=json_proto method=POST [21:14:27]POST find Content-Length [21:14:27]Host: 172.17.36.199:8080 [21:14:27]Content-Length: 1149 [21:14:27]Content-Type: application/json [21:14:27] [21:14:27]POST finish read [21:14:27]Found Content-Length = 1149 [21:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176531", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4036021101156", "name": "\u041C\u041C Mannol Diesel Extra 10W40 1\u043B", "price" : 690.00, "quantity" : 1.000, "sum" : 690.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" : 770.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:27]execute_script... [21:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176531", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4036021101156", "name": "\u041C\u041C Mannol Diesel Extra 10W40 1\u043B", "price" : 690.00, "quantity" : 1.000, "sum" : 690.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" : 770.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:27]POST & json_proto [21:14:27]process_json_proto [21:14:27]json parsed OK: [21:14:27]protocol is kg_v1.0 [21:14:27]action value=close_receipt [21:14:27]process_action close_receipt [21:14:27]cmd_close_receipt [21:14:27]MH_GetDate [21:14:27]Write to MH i2c: F0 00 00 70 18 77 [21:14:27]Write i2c OK [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 09 00 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 09 00 70 18 00 37 32 5E 66 91 46 04 65 ED [21:14:27]GetLastDocTimeStamp 1717448983 [21:14:27]current date 1717449271 [21:14:27]FM_GetShiftState [21:14:27]SAM_PROTO_GetShiftState [21:14:27]wFMCommunicate request_size=4 [21:14:27]MH_SAM_APDU [21:14:27]CAPDU: 80 13 01 00 [21:14:27]Write to MH i2c: E2 08 00 71 18 80 13 01 00 00 00 00 00 06 [21:14:27]Write i2c OK [21:14:27]MH_I2C_Read... [21:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:27]Read from MH i2c: E2 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: E2 0E 00 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: E2 0E 00 71 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 29 [21:14:27]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:14:27]wFMCommunicate OK [21:14:27]SAM_PROTO_GetShiftState done [21:14:27]FM_GetShiftState done [21:14:27]opened in 1717373769 [21:14:27]opened+sec_in_day 1717460169 [21:14:27]quantity*price = 8000 [21:14:27]sum+1 = 8001 [21:14:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4036021101156 ММ Mannol Diesel Extra 10W40 1л 1.000 * 690.00 = 690.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 770.00 НСП 1% : 6.82 НДС 12% : 81.77 Наличными: 0.00 Безнал.: 770.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 89 03.06.2024 21:14 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39971 ФПД: 109675735653678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211431&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39971&fm=109675735653678&tin=02508201610067®Number=0000000000092680&sum=77000 0 [21:14:28]StoreToDocumentArchive [21:14:28]shift 376 fd 39971 [21:14:28]save to /storage/0376/doc_00039971 [21:14:28]save last doc name /storage/0376/doc_00039971 to /storage/kkm_last_doc_name [21:14:28]save OK [21:14:28]Clear old archive folders... [21:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=412 [21:14:28]tlvbuf is B6F1C600 [21:14:28]SAM_PROTO_ClearQueue [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 09 00 00 [21:14:28]Write to MH i2c: E2 08 00 7E 18 80 09 00 00 00 00 00 00 08 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]SAM_PROTO_ClearQueue done [21:14:28]KKMCreateOFDPacket [21:14:28]OFDProtocolAddRootSTLVToBuf [21:14:28]FM_MakeSignedData [21:14:28]FM_MakeSignedData [21:14:28]SAM_PROTO_SignData [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 01 02 [21:14:28]Write to MH i2c: E2 08 00 7F 18 80 0D 01 02 00 00 00 00 10 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 7F 18 00 90 00 0B [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]wFMCommunicate request_size=255 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 31 35 36 06 04 22 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 0D 01 00 00 00 13 04 06 00 88 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [21:14:28]Write to MH i2c: E2 02 01 80 18 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 31 35 36 06 04 22 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 0D 01 00 00 00 13 04 06 00 88 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 22 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 80 18 00 90 00 0C [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]wFMCommunicate request_size=171 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 37 32 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 23 9C 00 00 35 04 06 00 63 BF DF 43 9D 2E [21:14:28]Write to MH i2c: E2 AE 00 81 18 80 0D 02 02 A6 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 37 32 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 23 9C 00 00 35 04 06 00 63 BF DF 43 9D 2E 00 00 1A [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 81 18 00 90 00 0D [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 03 02 [21:14:28]Write to MH i2c: E2 08 00 82 18 80 0D 03 02 00 00 00 00 15 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:29]Read from MH i2c: E2 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 0B 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 0B 00 82 18 00 89 BD 0B 44 FC 7D 63 C9 90 00 50 [21:14:29]RAPDU: 89 BD 0B 44 FC 7D 63 C9 90 00 [21:14:29]wFMCommunicate OK [21:14:29]SAM_PROTO_SignData done [21:14:29]FM_MakeSignedData done [21:14:29]CreateOFDProtocolMessage [21:14:29]wFMCommunicate request_size=4 [21:14:29]MH_SAM_APDU [21:14:29]CAPDU: 80 11 00 00 [21:14:29]Write to MH i2c: E2 08 00 83 18 80 11 00 00 00 00 00 00 15 [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:29]Read from MH i2c: E2 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 17 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 17 00 83 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 6D [21:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:14:29]wFMCommunicate OK [21:14:29]CreateOFDProtocolMessage done [21:14:29]OFDSenderStorePacket 39971 [21:14:29]StoreOFDPacket docnum=39971 [21:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B0 01 00 00 EA 6F A8 01 41 35 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 31 35 36 06 04 22 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 0D 01 00 00 00 13 04 06 00 88 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 37 32 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 23 9C 00 00 35 04 06 00 63 BF DF 43 9D 2E 89 BD 0B 44 FC 7D 63 C9 [21:14:29]CheckFolder [21:14:29]dirname=/storage/ofd_packets [21:14:29]CheckFolder done [21:14:29]ProducePacketName [21:14:29]name=ofd_packets/00039971 [21:14:29]NVStorageSaveData ofd_packets/00039971 [21:14:29]File name is /storage/ofd_packets/00039971 [21:14:29]Write 462 bytes [21:14:29]NVStorageSaveData done [21:14:29]OFDSenderStorePacket done [21:14:29]KKMCreateOFDPacket done [21:14:29]NVStorageSaveData kkm_last_timestamp [21:14:29]File name is /storage/kkm_last_timestamp [21:14:29]Write 4 bytes [21:14:29]NVStorageSaveData done [21:14:29]ExternCall_PrintAddStr [21:14:29]wPrintStart [21:14:29]Write to MH i2c: 01 00 00 84 18 9C [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 84 18 00 00 00 00 00 FF 0F B1 [21:14:29]RasterBufferAndPrint [21:14:29]line Счет N : (3)176531 [21:14:29]line ИНН: 02508201610067 [21:14:29]line Контрольно-Кассовый Чек [21:14:29]line ПРОДАЖА [21:14:29]line Товар: 4600338001623 [21:14:29]line Вода Фруто НЯНЯ негазир д/детей 0,33л [21:14:29]line 1.000 * 80.00 [21:14:29]line = 80.00 [21:14:29]line НДС 12% НСП 1% [21:14:29]line > о реализуемом товаре [21:14:29]line Товар: 4036021101156 [21:14:29]line ММ Mannol Diesel Extra 10W40 1л [21:14:29]line 1.000 * 690.00 [21:14:29]line = 690.00 [21:14:29]line НДС 12% НСП 1% [21:14:29]line > о реализуемом товаре [21:14:29]line ИТОГО: 770.00 [21:14:29]line НСП 1% : 6.82 [21:14:29]line НДС 12% : 81.77 [21:14:29]line Наличными: 0.00 [21:14:29]line Безнал.: 770.00 [21:14:29]line Место: АЗС № 63 "Партнер Нефть" [21:14:29]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:14:29]line СНО: Общий режим [21:14:29]line Чек 89 03.06.2024 21:14 [21:14:29]line Смена: 376 ФФД: 1.0 [21:14:29]line ЗНМ: 0300000037 [21:14:29]line РНМ: 0000000000092680 [21:14:29]line Версия ККМ: 001 [21:14:29]line Платежная система: АКБ Кыргызстан [21:14:29]line ФМ: 0000000000874882 [21:14:29]line ФД: 39971 [21:14:29]line ФПД: 109675735653678 [21:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211431&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39971&fm=109675735653678&tin=02508201610067®Number=0000000000092680&sum=77000 [21:14:29]line 0 [21:14:29]written 0, free lines is 4095 [21:14:29]OFD Sender: Processing packet 39971 [packets to send 5, broken 4] [21:14:29]ProducePacketName [21:14:29]name=ofd_packets/00039971 [21:14:29]OFD Sender: To server: pG, [21:14:29]CommunicateWithHost lk.salyk.kg:30040 [21:14:29]ConnectInit lk.salyk.kg [21:14:29]Connected sock=10 [21:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B0 01 00 00 EA 6F A8 01 41 35 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 31 35 36 06 04 22 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 0D 01 00 00 00 13 04 06 00 88 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 37 32 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 23 9C 00 00 35 04 06 00 63 BF DF 43 9D 2E 89 BD 0B 44 FC 7D 63 C9 [21:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CE 9E 47 00 CB D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 23 9C 00 00 F4 03 04 00 E2 DA 5D 66 B6 04 01 00 00 B4 76 F8 38 F5 63 E8 38 [21:14:29]CommunicateWithHost err = 0 [21:14:29]CheckOFDResponse [21:14:29]1017 (14) - 77093643461234 [21:14:29]1041 (16) - 0000000000874882 [21:14:29]1040 (4) - 39971 [21:14:29]1012 (4) - 03.06.2024 15:01 [21:14:29]1206 (1) - 0 [21:14:29]OFD Sender: Remove packet 39971 [21:14:29]ProducePacketName [21:14:29]name=ofd_packets/00039971 [21:14:29]NVStorageDeleteData [21:14:29]Write to MH i2c: 01 00 00 B6 18 CE [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 A7 0C 88 [21:14:29]RasterBufferAndPrint [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]written 0, free lines is 3248 [21:14:29]MH_Cut [21:14:29]Write to MH i2c: D1 01 00 BD 18 01 A7 [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 01 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 01 00 BD 18 00 A6 [21:14:29]Write to MH i2c: 01 00 00 BE 18 D6 [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:30]OFD Sender: No OFD packet to send [21:14:30]*** Cut start [21:14:30]*** Partial cut [21:14:30]*** CUTSNS_PIN = 1 [21:14:30]*** CUTSNS_PIN = 0 [21:14:30]*** Brake cut motor [21:14:31]Read from MH i2c: 01 [21:14:31]MH_I2C_Read... [21:14:31]*** Stop cut motor [21:14:31]*** Cut end [21:14:31]Read from MH i2c: 01 07 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [21:14:31]process_action close_receipt done [21:14:31]requested_data is exist [21:14:31]produce_requested_data [21:14:31]requested_item fm.sn is exist - process it [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 11 00 00 [21:14:31]Write to MH i2c: E2 08 00 BF 18 80 11 00 00 00 00 00 00 51 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 17 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 17 00 BF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A9 [21:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:14:31]wFMCommunicate OK [21:14:31]requested_item fd.num is exist - process it [21:14:31]SAM_PROTO_GetFieldsCounters [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 00 00 [21:14:31]Write to MH i2c: E2 08 00 C0 18 80 13 00 00 00 00 00 00 54 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 62 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 62 00 C0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 23 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [21:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 23 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetFieldsCounters done [21:14:31]requested_item shift.num is exist - process it [21:14:31]requested_item shift.opened is exist - process it [21:14:31]req_shift_opened [21:14:31]FM_GetShiftState [21:14:31]SAM_PROTO_GetShiftState [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 01 00 [21:14:31]Write to MH i2c: E2 08 00 C1 18 80 13 01 00 00 00 00 00 56 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 C1 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 79 [21:14:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetShiftState done [21:14:31]FM_GetShiftState done [21:14:31]req_shift_opened done [21:14:31]requested_item shift.open_date is exist - process it [21:14:31]req_shift_open_date [21:14:31]req_shift_open_date done [21:14:31]produce_requested_data done [21:14:31]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39971,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:14:31]process_action_free close_receipt [21:14:31]json_value_free [21:14:31]json_value_free done [21:14:31]process_json_proto returns [21:14:31]Send response to host [21:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39971,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:14:31]free response buf [21:14:31]execute_script done [21:14:31]execute_script returns [21:14:31]free content buf [21:14:31]Sock 8.Close socket [21:14:31]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:09]accept exits with 9 [21:18:09]New connection [21:18:09]New thread 3067182436 created [21:18:09]Thread 3067325796 joined [21:18:09]Waiting for new connection... [21:18:09] Sock 9.Parse request [21:18:09]Sock 9.Check first char [21:18:09]Sock 9.First char is OK [21:18:09]request: POST /json_proto HTTP/1.0 [21:18:09]Method: POST [21:18:09]URL: /json_proto [21:18:09]Method is POST - this is cgi request [21:18:09]url: /json_proto [21:18:09]query_string will be loaded in cgi processing [21:18:09]execute_cgi json_proto POST (null) [21:18:09]execute_cgi path=json_proto method=POST [21:18:09]POST find Content-Length [21:18:09]Host: 172.17.36.199:8080 [21:18:09]Content-Length: 1448 [21:18:09]Content-Type: application/json [21:18:09] [21:18:09]POST finish read [21:18:09]Found Content-Length = 1448 [21:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176532", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:09]execute_script... [21: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 : (3)176532", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:09]POST & json_proto [21:18:09]process_json_proto [21:18:09]json parsed OK: [21:18:09]protocol is kg_v1.0 [21:18:09]action value=close_receipt [21:18:09]process_action close_receipt [21:18:09]cmd_close_receipt [21:18:09]MH_GetDate [21:18:09]Write to MH i2c: F0 00 00 C2 18 C9 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: F0 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: F0 09 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: F0 09 00 C2 18 00 15 33 5E 66 91 46 04 65 1E [21:18:09]GetLastDocTimeStamp 1717449271 [21:18:09]current date 1717449493 [21:18:09]FM_GetShiftState [21:18:09]SAM_PROTO_GetShiftState [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 01 00 [21:18:09]Write to MH i2c: E2 08 00 C3 18 80 13 01 00 00 00 00 00 58 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 C3 18 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 7B [21:18:10]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetShiftState done [21:18:10]FM_GetShiftState done [21:18:10]opened in 1717373769 [21:18:10]opened+sec_in_day 1717460169 [21:18:10]quantity*price = 13000 [21:18:10]sum+1 = 13001 [21:18:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620016307540 Салфетки Absolut Nat FITOGUARD алоэ 20 ш 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.50 Наличными: 0.00 Безнал.: 325.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 90 03.06.2024 21:18 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39972 ФПД: 212911684925456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211814&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39972&fm=212911684925456&tin=02508201610067®Number=0000000000092680&sum=32500 0 [21:18:11]StoreToDocumentArchive [21:18:11]shift 376 fd 39972 [21:18:11]save to /storage/0376/doc_00039972 [21:18:11]save last doc name /storage/0376/doc_00039972 to /storage/kkm_last_doc_name [21:18:11]save OK [21:18:11]Clear old archive folders... [21:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=550 [21:18:11]tlvbuf is 00DE9440 [21:18:11]SAM_PROTO_ClearQueue [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 09 00 00 [21:18:11]Write to MH i2c: E2 08 00 D0 18 80 09 00 00 00 00 00 00 5A [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [21:18:11]RAPDU: 90 00 [21:18:11]wFMCommunicate OK [21:18:11]SAM_PROTO_ClearQueue done [21:18:11]KKMCreateOFDPacket [21:18:11]OFDProtocolAddRootSTLVToBuf [21:18:11]FM_MakeSignedData [21:18:11]FM_MakeSignedData [21:18:11]SAM_PROTO_SignData [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 0D 01 02 [21:18:11]Write to MH i2c: E2 08 00 D1 18 80 0D 01 02 00 00 00 00 62 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [21:18:11]RAPDU: 90 00 [21:18:11]wFMCommunicate OK [21:18:11]wFMCommunicate request_size=255 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 0D 02 02 FA 03 00 26 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 [21:18:11]Write to MH i2c: E2 02 01 D2 18 80 0D 02 02 FA 00 03 00 26 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 00 00 40 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 D2 18 00 90 00 5E [21:18:11]RAPDU: 90 00 [21:18:11]wFMCommunicate OK [21:18:11]wFMCommunicate request_size=255 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 16 33 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 [21:18:11]Write to MH i2c: E2 02 01 D3 18 80 0D 02 02 FA 00 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 16 33 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 34 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 D3 18 00 90 00 5F [21:18:11]RAPDU: 90 00 [21:18:11]wFMCommunicate OK [21:18:11]wFMCommunicate request_size=59 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 24 9C 00 00 35 04 06 00 C1 A4 5D 59 38 10 [21:18:11]Write to MH i2c: E2 3E 00 D4 18 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 24 9C 00 00 35 04 06 00 C1 A4 5D 59 38 10 00 00 AF [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 03 00 D4 18 00 90 00 60 [21:18:11]RAPDU: 90 00 [21:18:11]wFMCommunicate OK [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 0D 03 02 [21:18:11]Write to MH i2c: E2 08 00 D5 18 80 0D 03 02 00 00 00 00 68 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0B 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0B 00 D5 18 00 70 C4 47 1C 1A 11 80 2C 90 00 D7 [21:18:11]RAPDU: 70 C4 47 1C 1A 11 80 2C 90 00 [21:18:11]wFMCommunicate OK [21:18:11]SAM_PROTO_SignData done [21:18:11]FM_MakeSignedData done [21:18:11]CreateOFDProtocolMessage [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 11 00 00 [21:18:11]Write to MH i2c: E2 08 00 D6 18 80 11 00 00 00 00 00 00 68 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 17 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 17 00 D6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C0 [21:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:18:11]wFMCommunicate OK [21:18:11]CreateOFDProtocolMessage done [21:18:11]OFDSenderStorePacket 39972 [21:18:11]StoreOFDPacket docnum=39972 [21:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3A 02 00 00 D4 66 32 02 BE A7 5A 03 01 00 03 00 26 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 16 33 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 24 9C 00 00 35 04 06 00 C1 A4 5D 59 38 10 70 C4 47 1C 1A 11 80 2C [21:18:11]CheckFolder [21:18:11]dirname=/storage/ofd_packets [21:18:11]CheckFolder done [21:18:11]ProducePacketName [21:18:11]name=ofd_packets/00039972 [21:18:11]NVStorageSaveData ofd_packets/00039972 [21:18:11]File name is /storage/ofd_packets/00039972 [21:18:11]Write 600 bytes [21:18:11]NVStorageSaveData done [21:18:11]OFDSenderStorePacket done [21:18:11]KKMCreateOFDPacket done [21:18:11]NVStorageSaveData kkm_last_timestamp [21:18:11]File name is /storage/kkm_last_timestamp [21:18:11]Write 4 bytes [21:18:11]NVStorageSaveData done [21:18:11]ExternCall_PrintAddStr [21:18:11]wPrintStart [21:18:11]Write to MH i2c: 01 00 00 D7 18 EF [21:18:11]OFD Sender: Processing packet 39972 [packets to send 5, broken 4] [21:18:11]ProducePacketName [21:18:11]name=ofd_packets/00039972 [21:18:11]OFD Sender: To server: pG, [21:18:11]CommunicateWithHost lk.salyk.kg:30040 [21:18:11]ConnectInit lk.salyk.kg [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 D7 18 00 00 00 00 00 FF 0F 04 [21:18:11]RasterBufferAndPrint [21:18:11]line Счет N : (3)176532 [21:18:11]line ИНН: 02508201610067 [21:18:11]line Контрольно-Кассовый Чек [21:18:11]line ПРОДАЖА [21:18:11]line Товар: 4870002329951 [21:18:11]line Напиток Lipton IceTea 1л зел чай Regular [21:18:11]line 1.000 * 130.00 [21:18:11]line = 130.00 [21:18:11]line НДС 12% НСП 1% [21:18:11]line > о реализуемом товаре [21:18:11]line Товар: 4620016307540 [21:18:11]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [21:18:11]line 1.000 * 65.00 [21:18:11]line = 65.00 [21:18:11]line НДС 12% НСП 1% [21:18:12]line > о реализуемом товаре [21:18:12]line Товар: 2000032780015 [21:18:12]line Слойка DC треугольная курица 110г [21:18:12]line 2.000 * 65.00 [21:18:12]line = 130.00 [21:18:12]line НДС 12% НСП 1% [21:18:12]line > о реализуемом товаре [21:18:12]line ИТОГО: 325.00 [21:18:12]line НСП 1% : 2.87 [21:18:12]line НДС 12% : 34.50 [21:18:12]line Наличными: 0.00 [21:18:12]line Безнал.: 325.00 [21:18:12]line Место: АЗС № 63 "Партнер Нефть" [21:18:12]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:18:12]line СНО: Общий режим [21:18:12]line Чек 90 03.06.2024 21:18 [21:18:12]line Смена: 376 ФФД: 1.0 [21:18:12]line ЗНМ: 0300000037 [21:18:12]line РНМ: 0000000000092680 [21:18:12]line Версия ККМ: 001 [21:18:12]line Платежная система: Бакай Банк [21:18:12]line ФМ: 0000000000874882 [21:18:12]line ФД: 39972 [21:18:12]line ФПД: 212911684925456 [21:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211814&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39972&fm=212911684925456&tin=02508201610067®Number=0000000000092680&sum=32500 [21:18:12]line 0 [21:18:12]Connected sock=10 [21:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3A 02 00 00 D4 66 32 02 BE A7 5A 03 01 00 03 00 26 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 written 0, free lines is 4095 [21:18:12]F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 16 33 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 24 9C 00 00 35 04 06 00 C1 A4 5D 59 38 10 70 C4 47 1C 1A 11 80 2C [21:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 DC E9 47 00 BC 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 24 9C 00 00 F4 03 04 00 C1 DB 5D 66 B6 04 01 00 00 77 A8 B9 FC E5 3F C3 F6 [21:18:12]CommunicateWithHost err = 0 [21:18:12]CheckOFDResponse [21:18:12]1017 (14) - 77093643461234 [21:18:12]1041 (16) - 0000000000874882 [21:18:12]1040 (4) - 39972 [21:18:12]1012 (4) - 03.06.2024 15:05 [21:18:12]1206 (1) - 0 [21:18:12]OFD Sender: Remove packet 39972 [21:18:12]ProducePacketName [21:18:12]name=ofd_packets/00039972 [21:18:12]NVStorageDeleteData [21:18:12]Write to MH i2c: 01 00 00 10 19 29 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 53 0C 8F [21:18:12]RasterBufferAndPrint [21:18:12]line [21:18:12]line [21:18:12]line [21:18:12]line [21:18:12]line [21:18:12]written 0, free lines is 3164 [21:18:12]MH_Cut [21:18:12]Write to MH i2c: D1 01 00 17 19 01 02 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: D1 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: D1 01 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: D1 01 00 17 19 00 01 [21:18:12]Write to MH i2c: 01 00 00 18 19 31 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]OFD Sender: No OFD packet to send [21:18:13]*** Cut start [21:18:13]*** Partial cut [21:18:13]*** CUTSNS_PIN = 1 [21:18:13]*** CUTSNS_PIN = 0 [21:18:14]*** Brake cut motor [21:18:14]Read from MH i2c: 01 [21:18:14]MH_I2C_Read... [21:18:14]*** Stop cut motor [21:18:14]*** Cut end [21:18:14]Read from MH i2c: 01 07 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 FF 0F 46 [21:18:14]process_action close_receipt done [21:18:14]requested_data is exist [21:18:14]produce_requested_data [21:18:14]requested_item fm.sn is exist - process it [21:18:14]wFMCommunicate request_size=4 [21:18:14]MH_SAM_APDU [21:18:14]CAPDU: 80 11 00 00 [21:18:14]Write to MH i2c: E2 08 00 19 19 80 11 00 00 00 00 00 00 AC [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:14]Read from MH i2c: E2 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 17 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 17 00 19 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 04 [21:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:18:14]wFMCommunicate OK [21:18:14]requested_item fd.num is exist - process it [21:18:14]SAM_PROTO_GetFieldsCounters [21:18:14]wFMCommunicate request_size=4 [21:18:14]MH_SAM_APDU [21:18:14]CAPDU: 80 13 00 00 [21:18:14]Write to MH i2c: E2 08 00 1A 19 80 13 00 00 00 00 00 00 AF [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:14]Read from MH i2c: E2 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 62 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 62 00 1A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 24 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [21:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 24 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:14]wFMCommunicate OK [21:18:14]SAM_PROTO_GetFieldsCounters done [21:18:14]requested_item shift.num is exist - process it [21:18:14]requested_item shift.opened is exist - process it [21:18:14]req_shift_opened [21:18:14]FM_GetShiftState [21:18:14]SAM_PROTO_GetShiftState [21:18:14]wFMCommunicate request_size=4 [21:18:14]MH_SAM_APDU [21:18:14]CAPDU: 80 13 01 00 [21:18:14]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:14]Read from MH i2c: E2 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 0E 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D4 [21:18:14]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:18:14]wFMCommunicate OK [21:18:14]SAM_PROTO_GetShiftState done [21:18:14]FM_GetShiftState done [21:18:14]req_shift_opened done [21:18:14]requested_item shift.open_date is exist - process it [21:18:14]req_shift_open_date [21:18:14]req_shift_open_date done [21:18:14]produce_requested_data done [21:18:14]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39972,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:18:14]process_action_free close_receipt [21:18:14]json_value_free [21:18:14]json_value_free done [21:18:14]process_json_proto returns [21:18:14]Send response to host [21:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39972,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:18:14]free response buf [21:18:14]execute_script done [21:18:14]execute_script returns [21:18:14]free content buf [21:18:14]Sock 9.Close socket [21:18:14]Sock 9.Thread stoped [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:09]accept exits with 8 [21:28:09]New connection [21:28:09]New thread 3067325796 created [21:28:09]Thread 3067182436 joined [21:28:09]Waiting for new connection... [21:28:09] Sock 8.Parse request [21:28:09]Sock 8.Check first char [21:28:09]Sock 8.First char is OK [21:28:09]request: POST /json_proto HTTP/1.0 [21:28:09]Method: POST [21:28:09]URL: /json_proto [21:28:09]Method is POST - this is cgi request [21:28:09]url: /json_proto [21:28:09]query_string will be loaded in cgi processing [21:28:09]execute_cgi json_proto POST (null) [21:28:09]execute_cgi path=json_proto method=POST [21:28:09]POST find Content-Length [21:28:09]Host: 172.17.36.199:8080 [21:28:09]Content-Length: 852 [21:28:09]Content-Type: application/json [21:28:09] [21:28:09]POST finish read [21:28:09]Found Content-Length = 852 [21:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176533", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:09]execute_script... [21:28:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176533", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:09]POST & json_proto [21:28:09]process_json_proto [21:28:09]json parsed OK: [21:28:09]protocol is kg_v1.0 [21:28:09]action value=close_receipt [21:28:09]process_action close_receipt [21:28:09]cmd_close_receipt [21:28:09]MH_GetDate [21:28:09]Write to MH i2c: F0 00 00 1C 19 24 [21:28:09]Write i2c OK [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: F0 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: F0 09 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: F0 09 00 1C 19 00 6D 35 5E 66 91 46 04 65 D3 [21:28:09]GetLastDocTimeStamp 1717449494 [21:28:09]current date 1717450093 [21:28:09]FM_GetShiftState [21:28:09]SAM_PROTO_GetShiftState [21:28:09]wFMCommunicate request_size=4 [21:28:09]MH_SAM_APDU [21:28:09]CAPDU: 80 13 01 00 [21:28:09]Write to MH i2c: E2 08 00 1D 19 80 13 01 00 00 00 00 00 B3 [21:28:09]Write i2c OK [21:28:09]MH_I2C_Read... [21:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:09]Read from MH i2c: E2 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 0E 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 0E 00 1D 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 D6 [21:28:09]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:28:09]wFMCommunicate OK [21:28:09]SAM_PROTO_GetShiftState done [21:28:09]FM_GetShiftState done [21:28:09]opened in 1717373769 [21:28:09]opened+sec_in_day 1717460169 [21:28:09]quantity*price = 14100 [21:28:09]sum+1 = 14101 [21:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 0.00 Безнал.: 141.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 91 03.06.2024 21:28 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39973 ФПД: 254580128542773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T212813&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39973&fm=254580128542773&tin=02508201610067®Number=0000000000092680&sum=14100 0 [21:28:10]StoreToDocumentArchive [21:28:10]shift 376 fd 39973 [21:28:10]save to /storage/0376/doc_00039973 [21:28:10]save last doc name /storage/0376/doc_00039973 to /storage/kkm_last_doc_name [21:28:10]save OK [21:28:10]Clear old archive folders... [21:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=287 [21:28:10]tlvbuf is 00E09300 [21:28:10]SAM_PROTO_ClearQueue [21:28:10]wFMCommunicate request_size=4 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 09 00 00 [21:28:10]Write to MH i2c: E2 08 00 2A 19 80 09 00 00 00 00 00 00 B5 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [21:28:10]RAPDU: 90 00 [21:28:10]wFMCommunicate OK [21:28:10]SAM_PROTO_ClearQueue done [21:28:10]KKMCreateOFDPacket [21:28:10]OFDProtocolAddRootSTLVToBuf [21:28:10]FM_MakeSignedData [21:28:10]FM_MakeSignedData [21:28:10]SAM_PROTO_SignData [21:28:10]wFMCommunicate request_size=4 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 0D 01 02 [21:28:10]Write to MH i2c: E2 08 00 2B 19 80 0D 01 02 00 00 00 00 BD [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [21:28:10]RAPDU: 90 00 [21:28:10]wFMCommunicate OK [21:28:10]wFMCommunicate request_size=255 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6D 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [21:28:10]Write to MH i2c: E2 02 01 2C 19 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6D 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 E8 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [21:28:10]RAPDU: 90 00 [21:28:10]wFMCommunicate OK [21:28:10]wFMCommunicate request_size=46 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 0D 02 02 29 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 25 9C 00 00 35 04 06 00 E7 8A 0E 20 F0 35 [21:28:10]Write to MH i2c: E2 31 00 2D 19 80 0D 02 02 29 00 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 25 9C 00 00 35 04 06 00 E7 8A 0E 20 F0 35 00 00 D6 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [21:28:10]RAPDU: 90 00 [21:28:10]wFMCommunicate OK [21:28:10]wFMCommunicate request_size=4 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 0D 03 02 [21:28:10]Write to MH i2c: E2 08 00 2E 19 80 0D 03 02 00 00 00 00 C2 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 0B 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 0B 00 2E 19 00 47 86 3C 98 8D 13 14 CB 90 00 E3 [21:28:10]RAPDU: 47 86 3C 98 8D 13 14 CB 90 00 [21:28:10]wFMCommunicate OK [21:28:10]SAM_PROTO_SignData done [21:28:10]FM_MakeSignedData done [21:28:10]CreateOFDProtocolMessage [21:28:10]wFMCommunicate request_size=4 [21:28:10]MH_SAM_APDU [21:28:10]CAPDU: 80 11 00 00 [21:28:10]Write to MH i2c: E2 08 00 2F 19 80 11 00 00 00 00 00 00 C2 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:10]Read from MH i2c: E2 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 17 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: E2 17 00 2F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 1A [21:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:28:10]wFMCommunicate OK [21:28:10]CreateOFDProtocolMessage done [21:28:10]OFDSenderStorePacket 39973 [21:28:10]StoreOFDPacket docnum=39973 [21:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 AB 25 2B 01 D5 53 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6D 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 25 9C 00 00 35 04 06 00 E7 8A 0E 20 F0 35 47 86 3C 98 8D 13 14 CB [21:28:10]CheckFolder [21:28:10]dirname=/storage/ofd_packets [21:28:10]CheckFolder done [21:28:10]ProducePacketName [21:28:10]name=ofd_packets/00039973 [21:28:10]NVStorageSaveData ofd_packets/00039973 [21:28:10]File name is /storage/ofd_packets/00039973 [21:28:10]Write 337 bytes [21:28:10]NVStorageSaveData done [21:28:10]OFDSenderStorePacket done [21:28:10]KKMCreateOFDPacket done [21:28:10]NVStorageSaveData kkm_last_timestamp [21:28:10]File name is /storage/kkm_last_timestamp [21:28:10]Write 4 bytes [21:28:10]NVStorageSaveData done [21:28:10]ExternCall_PrintAddStr [21:28:10]wPrintStart [21:28:10]Write to MH i2c: 01 00 00 30 19 49 [21:28:10]Write i2c OK [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: 01 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: 01 07 00 [21:28:10]MH_I2C_Read... [21:28:10]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 FF 0F 5E [21:28:10]RasterBufferAndPrint [21:28:10]line Счет N : (3)176533 [21:28:10]line ИНН: 02508201610067 [21:28:10]line Контрольно-Кассовый Чек [21:28:10]line ПРОДАЖА [21:28:10]line Товар: 4870216765088 [21:28:10]line Нагр.Таб.Палоч. HEETS Purple Wave [21:28:10]line 1.000 * 141.00 [21:28:10]line = 141.00 [21:28:10]line НДС 12% НСП 1% [21:28:10]line > о реализуемом товаре [21:28:10]line ИТОГО: 141.00 [21:28:10]line НСП 1% : 1.25 [21:28:10]line НДС 12% : 14.97 [21:28:10]line Наличными: 0.00 [21:28:10]line Безнал.: 141.00 [21:28:10]line Место: АЗС № 63 "Партнер Нефть" [21:28:10]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:28:10]line СНО: Общий режим [21:28:10]line Чек 91 03.06.2024 21:28 [21:28:10]line Смена: 376 ФФД: 1.0 [21:28:10]line ЗНМ: 0300000037 [21:28:11]line РНМ: 0000000000092680 [21:28:11]line Версия ККМ: 001 [21:28:11]line Платежная система: АКБ Кыргызстан [21:28:11]line ФМ: 0000000000874882 [21:28:11]line ФД: 39973 [21:28:11]line ФПД: 254580128542773 [21:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T212813&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39973&fm=254580128542773&tin=02508201610067®Number=0000000000092680&sum=14100 [21:28:11]line 0 [21:28:11]OFD Sender: Processing packet 39973 [packets to send 5, broken 4] [21:28:11]ProducePacketName [21:28:11]name=ofd_packets/00039973 [21:28:11]OFD Sender: To server: pG, [21:28:11]CommunicateWithHost lk.salyk.kg:30040 [21:28:11]ConnectInit lk.salyk.kg [21:28:11]written 0, free lines is 4095 [21:28:11]Connected sock=10 [21:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 AB 25 2B 01 D5 53 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6D 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 25 9C 00 00 35 04 06 00 E7 8A 0E 20 F0 35 47 86 3C 98 8D 13 14 CB [21:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 4E E8 47 00 93 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 25 9C 00 00 F4 03 04 00 18 DE 5D 66 B6 04 01 00 00 6B 9C 34 05 2C 2A FC 89 [21:28:11]CommunicateWithHost err = 0 [21:28:11]CheckOFDResponse [21:28:11]1017 (14) - 77093643461234 [21:28:11]1041 (16) - 0000000000874882 [21:28:11]1040 (4) - 39973 [21:28:11]1012 (4) - 03.06.2024 15:15 [21:28:11]1206 (1) - 0 [21:28:11]OFD Sender: Remove packet 39973 [21:28:11]ProducePacketName [21:28:11]name=ofd_packets/00039973 [21:28:11]NVStorageDeleteData [21:28:11]Write to MH i2c: 01 00 00 5B 19 74 [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: 01 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: 01 07 00 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 EF 0C 76 [21:28:11]RasterBufferAndPrint [21:28:11]line [21:28:11]line [21:28:11]line [21:28:11]line [21:28:11]line [21:28:11]written 0, free lines is 3318 [21:28:11]MH_Cut [21:28:11]Write to MH i2c: D1 01 00 62 19 01 4D [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: D1 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: D1 01 00 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: D1 01 00 62 19 00 4C [21:28:11]Write to MH i2c: 01 00 00 63 19 7C [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:12]OFD Sender: No OFD packet to send [21:28:12]*** Cut start [21:28:12]*** Partial cut [21:28:12]*** CUTSNS_PIN = 1 [21:28:12]*** CUTSNS_PIN = 0 [21:28:12]*** Brake cut motor [21:28:12]Read from MH i2c: 01 [21:28:12]MH_I2C_Read... [21:28:12]*** Stop cut motor [21:28:13]*** Cut end [21:28:13]Read from MH i2c: 01 07 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 FF 0F 91 [21:28:13]process_action close_receipt done [21:28:13]requested_data is exist [21:28:13]produce_requested_data [21:28:13]requested_item fm.sn is exist - process it [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 11 00 00 [21:28:13]Write to MH i2c: E2 08 00 64 19 80 11 00 00 00 00 00 00 F7 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 64 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 4F [21:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:28:13]wFMCommunicate OK [21:28:13]requested_item fd.num is exist - process it [21:28:13]SAM_PROTO_GetFieldsCounters [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 13 00 00 [21:28:13]Write to MH i2c: E2 08 00 65 19 80 13 00 00 00 00 00 00 FA [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 62 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 62 00 65 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 25 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [21:28:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 25 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:13]wFMCommunicate OK [21:28:13]SAM_PROTO_GetFieldsCounters done [21:28:13]requested_item shift.num is exist - process it [21:28:13]requested_item shift.opened is exist - process it [21:28:13]req_shift_opened [21:28:13]FM_GetShiftState [21:28:13]SAM_PROTO_GetShiftState [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 13 01 00 [21:28:13]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0E 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 1F [21:28:13]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:28:13]wFMCommunicate OK [21:28:13]SAM_PROTO_GetShiftState done [21:28:13]FM_GetShiftState done [21:28:13]req_shift_opened done [21:28:13]requested_item shift.open_date is exist - process it [21:28:13]req_shift_open_date [21:28:13]req_shift_open_date done [21:28:13]produce_requested_data done [21:28:13]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39973,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:28:13]process_action_free close_receipt [21:28:13]json_value_free [21:28:13]json_value_free done [21:28:13]process_json_proto returns [21:28:13]Send response to host [21:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39973,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:28:13]free response buf [21:28:13]execute_script done [21:28:13]execute_script returns [21:28:13]free content buf [21:28:13]Sock 8.Close socket [21:28:13]Sock 8.Thread stoped [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:26]accept exits with 9 [21:29:26]New connection [21:29:26]New thread 3067182436 created [21:29:26]Thread 3067325796 joined [21:29:26]Waiting for new connection... [21:29:26] Sock 9.Parse request [21:29:26]Sock 9.Check first char [21:29:26]Sock 9.First char is OK [21:29:26]request: POST /json_proto HTTP/1.0 [21:29:26]Method: POST [21:29:26]URL: /json_proto [21:29:26]Method is POST - this is cgi request [21:29:26]url: /json_proto [21:29:26]query_string will be loaded in cgi processing [21:29:26]execute_cgi json_proto POST (null) [21:29:26]execute_cgi path=json_proto method=POST [21:29:26]POST find Content-Length [21:29:26]Host: 172.17.36.199:8080 [21:29:26]Content-Length: 622 [21:29:26]Content-Type: application/json [21:29:26] [21:29:26]POST finish read [21:29:26]Found Content-Length = 622 [21:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176534", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:26]execute_script... [21:29:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176534", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:26]POST & json_proto [21:29:26]process_json_proto [21:29:26]json parsed OK: [21:29:26]protocol is kg_v1.0 [21:29:26]action value=close_receipt [21:29:26]process_action close_receipt [21:29:26]cmd_close_receipt [21:29:26]MH_GetDate [21:29:26]Write to MH i2c: F0 00 00 67 19 6F [21:29:26]Write i2c OK [21:29:26]MH_I2C_Read... [21:29:26]Read from MH i2c: F0 [21:29:26]MH_I2C_Read... [21:29:26]Read from MH i2c: F0 09 00 [21:29:26]MH_I2C_Read... [21:29:26]Read from MH i2c: F0 09 00 67 19 00 BA 35 5E 66 91 46 04 65 6B [21:29:26]GetLastDocTimeStamp 1717450093 [21:29:26]current date 1717450170 [21:29:26]FM_GetShiftState [21:29:26]SAM_PROTO_GetShiftState [21:29:26]wFMCommunicate request_size=4 [21:29:26]MH_SAM_APDU [21:29:26]CAPDU: 80 13 01 00 [21:29:26]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [21:29:26]Write i2c OK [21:29:26]MH_I2C_Read... [21:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:26]Read from MH i2c: E2 [21:29:26]MH_I2C_Read... [21:29:26]Read from MH i2c: E2 0E 00 [21:29:26]MH_I2C_Read... [21:29:26]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 21 [21:29:26]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:29:26]wFMCommunicate OK [21:29:26]SAM_PROTO_GetShiftState done [21:29:26]FM_GetShiftState done [21:29:26]opened in 1717373769 [21:29:26]opened+sec_in_day 1717460169 [21:29:26]quantity*price = 13800 [21:29:26]sum+1 = 13801 [21:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 92 03.06.2024 21:29 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39974 ФПД: 49637278423246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T212930&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39974&fm=49637278423246&tin=02508201610067®Number=0000000000092680&sum=13800 0 [21:29:27]StoreToDocumentArchive [21:29:27]shift 376 fd 39974 [21:29:27]save to /storage/0376/doc_00039974 [21:29:27]save last doc name /storage/0376/doc_00039974 to /storage/kkm_last_doc_name [21:29:27]save OK [21:29:27]Clear old archive folders... [21:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:29:27]tlvbuf is B6F1CEE0 [21:29:27]SAM_PROTO_ClearQueue [21:29:27]wFMCommunicate request_size=4 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 09 00 00 [21:29:27]Write to MH i2c: E2 08 00 75 19 80 09 00 00 00 00 00 00 00 [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [21:29:27]RAPDU: 90 00 [21:29:27]wFMCommunicate OK [21:29:27]SAM_PROTO_ClearQueue done [21:29:27]KKMCreateOFDPacket [21:29:27]OFDProtocolAddRootSTLVToBuf [21:29:27]FM_MakeSignedData [21:29:27]FM_MakeSignedData [21:29:27]SAM_PROTO_SignData [21:29:27]wFMCommunicate request_size=4 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 0D 01 02 [21:29:27]Write to MH i2c: E2 08 00 76 19 80 0D 01 02 00 00 00 00 08 [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [21:29:27]RAPDU: 90 00 [21:29:27]wFMCommunicate OK [21:29:27]wFMCommunicate request_size=255 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BA 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [21:29:27]Write to MH i2c: E2 02 01 77 19 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BA 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 D1 [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [21:29:27]RAPDU: 90 00 [21:29:27]wFMCommunicate OK [21:29:27]wFMCommunicate request_size=33 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 26 9C 00 00 35 04 06 00 2D 25 14 59 18 CE [21:29:27]Write to MH i2c: E2 24 00 78 19 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 26 9C 00 00 35 04 06 00 2D 25 14 59 18 CE 00 00 06 [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [21:29:27]RAPDU: 90 00 [21:29:27]wFMCommunicate OK [21:29:27]wFMCommunicate request_size=4 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 0D 03 02 [21:29:27]Write to MH i2c: E2 08 00 79 19 80 0D 03 02 00 00 00 00 0D [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 0B 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 0B 00 79 19 00 40 9A 02 C1 68 FA 9E 21 90 00 CC [21:29:27]RAPDU: 40 9A 02 C1 68 FA 9E 21 90 00 [21:29:27]wFMCommunicate OK [21:29:27]SAM_PROTO_SignData done [21:29:27]FM_MakeSignedData done [21:29:27]CreateOFDProtocolMessage [21:29:27]wFMCommunicate request_size=4 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 11 00 00 [21:29:27]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 17 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 65 [21:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:29:27]wFMCommunicate OK [21:29:27]CreateOFDProtocolMessage done [21:29:27]OFDSenderStorePacket 39974 [21:29:27]StoreOFDPacket docnum=39974 [21:29:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 43 88 1E 01 C9 FC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BA 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 26 9C 00 00 35 04 06 00 2D 25 14 59 18 CE 40 9A 02 C1 68 FA 9E 21 [21:29:27]CheckFolder [21:29:27]dirname=/storage/ofd_packets [21:29:27]CheckFolder done [21:29:27]ProducePacketName [21:29:27]name=ofd_packets/00039974 [21:29:27]NVStorageSaveData ofd_packets/00039974 [21:29:27]File name is /storage/ofd_packets/00039974 [21:29:27]Write 324 bytes [21:29:27]NVStorageSaveData done [21:29:27]OFDSenderStorePacket done [21:29:27]KKMCreateOFDPacket done [21:29:27]NVStorageSaveData kkm_last_timestamp [21:29:27]File name is /storage/kkm_last_timestamp [21:29:27]Write 4 bytes [21:29:27]NVStorageSaveData done [21:29:27]ExternCall_PrintAddStr [21:29:27]wPrintStart [21:29:27]Write to MH i2c: 01 00 00 7B 19 94 [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: 01 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: 01 07 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [21:29:27]RasterBufferAndPrint [21:29:27]line Счет N : (3)176534 [21:29:27]line ИНН: 02508201610067 [21:29:27]line Контрольно-Кассовый Чек [21:29:27]line ПРОДАЖА [21:29:27]line Товар: 4640030090136 [21:29:27]line Сигареты ESSE Exchange W [21:29:27]line 1.000 * 138.00 [21:29:27]line = 138.00 [21:29:27]line НДС 12% НСП 1% [21:29:27]line > о реализуемом товаре [21:29:27]line ИТОГО: 138.00 [21:29:27]line НСП 1% : 1.22 [21:29:27]line НДС 12% : 14.65 [21:29:27]line Наличными: 138.00 [21:29:27]line Безнал.: 0.00 [21:29:27]line Место: АЗС № 63 "Партнер Нефть" [21:29:27]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:29:27]line СНО: Общий режим [21:29:27]line Чек 92 03.06.2024 21:29 [21:29:27]line Смена: 376 ФФД: 1.0 [21:29:27]line ЗНМ: 0300000037 [21:29:27]line РНМ: 0000000000092680 [21:29:27]line Версия ККМ: 001 [21:29:27]line ФМ: 0000000000874882 [21:29:27]line ФД: 39974 [21:29:27]line ФПД: 49637278423246 [21:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T212930&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39974&fm=49637278423246&tin=02508201610067®Number=0000000000092680&sum=13800 [21:29:28]line 0 [21:29:28]OFD Sender: Processing packet 39974 [packets to send 5, broken 4] [21:29:28]ProducePacketName [21:29:28]name=ofd_packets/00039974 [21:29:28]OFD Sender: To server: pG, [21:29:28]CommunicateWithHost lk.salyk.kg:30040 [21:29:28]ConnectInit lk.salyk.kg [21:29:28]written 0, free lines is 4095 [21:29:28]Connected sock=10 [21:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 43 88 1E 01 C9 FC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BA 35 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 26 9C 00 00 35 04 06 00 2D 25 14 59 18 CE 40 9A 02 C1 68 FA 9E 21 [21:29:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 01 01 47 00 4D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 26 9C 00 00 F4 03 04 00 65 DE 5D 66 B6 04 01 00 00 9D F2 57 5C C0 1E 97 FE [21:29:28]CommunicateWithHost err = 0 [21:29:28]CheckOFDResponse [21:29:28]1017 (14) - 77093643461234 [21:29:28]1041 (16) - 0000000000874882 [21:29:28]1040 (4) - 39974 [21:29:28]1012 (4) - 03.06.2024 15:16 [21:29:28]1206 (1) - 0 [21:29:28]OFD Sender: Remove packet 39974 [21:29:28]ProducePacketName [21:29:28]name=ofd_packets/00039974 [21:29:28]NVStorageDeleteData [21:29:28]Write to MH i2c: 01 00 00 A3 19 BC [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 20 0D F0 [21:29:28]RasterBufferAndPrint [21:29:28]line [21:29:28]line [21:29:28]line [21:29:28]line [21:29:28]line [21:29:28]written 0, free lines is 3369 [21:29:28]MH_Cut [21:29:28]Write to MH i2c: D1 01 00 AA 19 01 95 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: D1 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: D1 01 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: D1 01 00 AA 19 00 94 [21:29:28]Write to MH i2c: 01 00 00 AB 19 C4 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]OFD Sender: No OFD packet to send [21:29:29]*** Cut start [21:29:29]*** Partial cut [21:29:29]*** CUTSNS_PIN = 1 [21:29:29]*** CUTSNS_PIN = 0 [21:29:29]*** Brake cut motor [21:29:29]Read from MH i2c: 01 [21:29:29]MH_I2C_Read... [21:29:29]*** Stop cut motor [21:29:29]*** Cut end [21:29:29]Read from MH i2c: 01 07 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [21:29:29]process_action close_receipt done [21:29:29]requested_data is exist [21:29:29]produce_requested_data [21:29:29]requested_item fm.sn is exist - process it [21:29:29]wFMCommunicate request_size=4 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 11 00 00 [21:29:29]Write to MH i2c: E2 08 00 AC 19 80 11 00 00 00 00 00 00 3F [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:29]Read from MH i2c: E2 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 17 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 17 00 AC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 97 [21:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:29:29]wFMCommunicate OK [21:29:29]requested_item fd.num is exist - process it [21:29:29]SAM_PROTO_GetFieldsCounters [21:29:29]wFMCommunicate request_size=4 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 13 00 00 [21:29:29]Write to MH i2c: E2 08 00 AD 19 80 13 00 00 00 00 00 00 42 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:30]Read from MH i2c: E2 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 62 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 62 00 AD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 26 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [21:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 26 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:30]wFMCommunicate OK [21:29:30]SAM_PROTO_GetFieldsCounters done [21:29:30]requested_item shift.num is exist - process it [21:29:30]requested_item shift.opened is exist - process it [21:29:30]req_shift_opened [21:29:30]FM_GetShiftState [21:29:30]SAM_PROTO_GetShiftState [21:29:30]wFMCommunicate request_size=4 [21:29:30]MH_SAM_APDU [21:29:30]CAPDU: 80 13 01 00 [21:29:30]Write to MH i2c: E2 08 00 AE 19 80 13 01 00 00 00 00 00 44 [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:30]Read from MH i2c: E2 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 0E 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 0E 00 AE 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 67 [21:29:30]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:29:30]wFMCommunicate OK [21:29:30]SAM_PROTO_GetShiftState done [21:29:30]FM_GetShiftState done [21:29:30]req_shift_opened done [21:29:30]requested_item shift.open_date is exist - process it [21:29:30]req_shift_open_date [21:29:30]req_shift_open_date done [21:29:30]produce_requested_data done [21:29:30]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39974,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:29:30]process_action_free close_receipt [21:29:30]json_value_free [21:29:30]json_value_free done [21:29:30]process_json_proto returns [21:29:30]Send response to host [21:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39974,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:29:30]free response buf [21:29:30]execute_script done [21:29:30]execute_script returns [21:29:30]free content buf [21:29:30]Sock 9.Close socket [21:29:30]Sock 9.Thread stoped [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:03]accept exits with 8 [21:35:03]New connection [21:35:03]New thread 3067325796 created [21:35:03]Thread 3067182436 joined [21:35:03]Waiting for new connection... [21:35:03] Sock 8.Parse request [21:35:03]Sock 8.Check first char [21:35:03]Sock 8.First char is OK [21:35:03]request: POST /json_proto HTTP/1.0 [21:35:03]Method: POST [21:35:03]URL: /json_proto [21:35:03]Method is POST - this is cgi request [21:35:03]url: /json_proto [21:35:03]query_string will be loaded in cgi processing [21:35:03]execute_cgi json_proto POST (null) [21:35:03]execute_cgi path=json_proto method=POST [21:35:03]POST find Content-Length [21:35:03]Host: 172.17.36.199:8080 [21:35:03]Content-Length: 634 [21:35:03]Content-Type: application/json [21:35:03] [21:35:03]POST finish read [21:35:03]Found Content-Length = 634 [21:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176535", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:03]execute_script... [21:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176535", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:03]POST & json_proto [21:35:03]process_json_proto [21:35:03]json parsed OK: [21:35:03]protocol is kg_v1.0 [21:35:03]action value=close_receipt [21:35:03]process_action close_receipt [21:35:03]cmd_close_receipt [21:35:03]MH_GetDate [21:35:03]Write to MH i2c: F0 00 00 AF 19 B7 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 09 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 09 00 AF 19 00 0B 37 5E 66 91 46 04 65 06 [21:35:03]GetLastDocTimeStamp 1717450170 [21:35:03]current date 1717450507 [21:35:03]FM_GetShiftState [21:35:03]SAM_PROTO_GetShiftState [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 13 01 00 [21:35:03]Write to MH i2c: E2 08 00 B0 19 80 13 01 00 00 00 00 00 46 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0E 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0E 00 B0 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 69 [21:35:03]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_GetShiftState done [21:35:03]FM_GetShiftState done [21:35:03]opened in 1717373769 [21:35:03]opened+sec_in_day 1717460169 [21:35:03]quantity*price = 12000 [21:35:03]sum+1 = 12001 [21:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 93 03.06.2024 21:35 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39975 ФПД: 118322580347457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213507&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39975&fm=118322580347457&tin=02508201610067®Number=0000000000092680&sum=12000 0 [21:35:04]StoreToDocumentArchive [21:35:04]shift 376 fd 39975 [21:35:04]save to /storage/0376/doc_00039975 [21:35:04]save last doc name /storage/0376/doc_00039975 to /storage/kkm_last_doc_name [21:35:04]save OK [21:35:04]Clear old archive folders... [21:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:35:04]tlvbuf is 00E8B5C0 [21:35:04]SAM_PROTO_ClearQueue [21:35:04]wFMCommunicate request_size=4 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 09 00 00 [21:35:04]Write to MH i2c: E2 08 00 BD 19 80 09 00 00 00 00 00 00 48 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:04]Read from MH i2c: E2 03 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [21:35:04]RAPDU: 90 00 [21:35:04]wFMCommunicate OK [21:35:04]SAM_PROTO_ClearQueue done [21:35:04]KKMCreateOFDPacket [21:35:04]OFDProtocolAddRootSTLVToBuf [21:35:04]FM_MakeSignedData [21:35:04]FM_MakeSignedData [21:35:04]SAM_PROTO_SignData [21:35:04]wFMCommunicate request_size=4 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 0D 01 02 [21:35:04]Write to MH i2c: E2 08 00 BE 19 80 0D 01 02 00 00 00 00 50 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [21:35:04]RAPDU: 90 00 [21:35:04]wFMCommunicate OK [21:35:04]wFMCommunicate request_size=255 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0B 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:35:04]Write to MH i2c: E2 02 01 BF 19 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0B 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A7 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [21:35:04]RAPDU: 90 00 [21:35:04]wFMCommunicate OK [21:35:04]wFMCommunicate request_size=30 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 0D 02 02 19 30 38 37 34 38 38 32 10 04 04 00 27 9C 00 00 35 04 06 00 6B 9D 1F 5E DA 41 [21:35:04]Write to MH i2c: E2 21 00 C0 19 80 0D 02 02 19 00 30 38 37 34 38 38 32 10 04 04 00 27 9C 00 00 35 04 06 00 6B 9D 1F 5E DA 41 00 00 B4 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 03 00 C0 19 00 90 00 4D [21:35:04]RAPDU: 90 00 [21:35:04]wFMCommunicate OK [21:35:04]wFMCommunicate request_size=4 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 0D 03 02 [21:35:04]Write to MH i2c: E2 08 00 C1 19 80 0D 03 02 00 00 00 00 55 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 0B 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 0B 00 C1 19 00 05 E4 EC 3C 32 28 6C 67 90 00 94 [21:35:04]RAPDU: 05 E4 EC 3C 32 28 6C 67 90 00 [21:35:04]wFMCommunicate OK [21:35:04]SAM_PROTO_SignData done [21:35:04]FM_MakeSignedData done [21:35:04]CreateOFDProtocolMessage [21:35:04]wFMCommunicate request_size=4 [21:35:04]MH_SAM_APDU [21:35:04]CAPDU: 80 11 00 00 [21:35:04]Write to MH i2c: E2 08 00 C2 19 80 11 00 00 00 00 00 00 55 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:04]Read from MH i2c: E2 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 17 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: E2 17 00 C2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 AD [21:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:35:04]wFMCommunicate OK [21:35:04]CreateOFDProtocolMessage done [21:35:04]OFDSenderStorePacket 39975 [21:35:04]StoreOFDPacket docnum=39975 [21:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 AE 3F 1B 01 D4 C8 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0B 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 27 9C 00 00 35 04 06 00 6B 9D 1F 5E DA 41 05 E4 EC 3C 32 28 6C 67 [21:35:04]CheckFolder [21:35:04]dirname=/storage/ofd_packets [21:35:04]CheckFolder done [21:35:04]ProducePacketName [21:35:04]name=ofd_packets/00039975 [21:35:04]NVStorageSaveData ofd_packets/00039975 [21:35:04]File name is /storage/ofd_packets/00039975 [21:35:04]Write 321 bytes [21:35:04]NVStorageSaveData done [21:35:04]OFDSenderStorePacket done [21:35:04]KKMCreateOFDPacket done [21:35:04]NVStorageSaveData kkm_last_timestamp [21:35:04]File name is /storage/kkm_last_timestamp [21:35:04]Write 4 bytes [21:35:04]NVStorageSaveData done [21:35:04]ExternCall_PrintAddStr [21:35:04]wPrintStart [21:35:04]Write to MH i2c: 01 00 00 C3 19 DC [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 C3 19 00 00 00 00 00 FF 0F F1 [21:35:04]RasterBufferAndPrint [21:35:04]line Счет N : (3)176535 [21:35:04]line ИНН: 02508201610067 [21:35:04]line Контрольно-Кассовый Чек [21:35:04]line ПРОДАЖА [21:35:04]line Товар: 4700025314002 [21:35:04]line ВОДКА МЯГКАЯ 0,1л [21:35:04]line 2.000 * 60.00 [21:35:04]line = 120.00 [21:35:04]line НДС 12% НСП 1% [21:35:04]line > о реализуемом товаре [21:35:04]line ИТОГО: 120.00 [21:35:04]line НСП 1% : 1.06 [21:35:04]line НДС 12% : 12.74 [21:35:04]line Наличными: 120.00 [21:35:04]line Безнал.: 0.00 [21:35:04]line Место: АЗС № 63 "Партнер Нефть" [21:35:04]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:35:04]line СНО: Общий режим [21:35:04]line Чек 93 03.06.2024 21:35 [21:35:04]line Смена: 376 ФФД: 1.0 [21:35:04]line ЗНМ: 0300000037 [21:35:04]line РНМ: 0000000000092680 [21:35:04]line Версия ККМ: 001 [21:35:04]line ФМ: 0000000000874882 [21:35:04]line ФД: 39975 [21:35:04]line ФПД: 118322580347457 [21:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213507&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39975&fm=118322580347457&tin=02508201610067®Number=0000000000092680&sum=12000 [21:35:05]OFD Sender: Processing packet 39975 [packets to send 5, broken 4] [21:35:05]ProducePacketName [21:35:05]name=ofd_packets/00039975 [21:35:05]OFD Sender: To server: pG, [21:35:05]CommunicateWithHost lk.salyk.kg:30040 [21:35:05]ConnectInit lk.salyk.kg [21:35:05]line 0 [21:35:05]written 0, free lines is 4095 [21:35:05]Connected sock=10 [21:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 23 01 00 00 AE 3F 1B 01 D4 C8 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0B 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 27 9C 00 00 35 04 06 00 6B 9D 1F 5E DA 41 05 E4 EC 3C 32 28 6C 67 [21:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 F7 61 47 00 F8 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 27 9C 00 00 F4 03 04 00 B6 DF 5D 66 B6 04 01 00 00 DD 74 5E C5 6E 92 8C 7E [21:35:05]CommunicateWithHost err = 0 [21:35:05]CheckOFDResponse [21:35:05]1017 (14) - 77093643461234 [21:35:05]1041 (16) - 0000000000874882 [21:35:05]1040 (4) - 39975 [21:35:05]1012 (4) - 03.06.2024 15:22 [21:35:05]1206 (1) - 0 [21:35:05]OFD Sender: Remove packet 39975 [21:35:05]ProducePacketName [21:35:05]name=ofd_packets/00039975 [21:35:05]NVStorageDeleteData [21:35:05]Write to MH i2c: 01 00 00 EB 19 04 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 07 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 23 0D 3B [21:35:05]RasterBufferAndPrint [21:35:05]line [21:35:05]line [21:35:05]line [21:35:05]line [21:35:05]line [21:35:05]written 0, free lines is 3370 [21:35:05]MH_Cut [21:35:05]Write to MH i2c: D1 01 00 F2 19 01 DD [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: D1 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: D1 01 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: D1 01 00 F2 19 00 DC [21:35:05]Write to MH i2c: 01 00 00 F3 19 0C [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]OFD Sender: No OFD packet to send [21:35:06]*** Cut start [21:35:06]*** Partial cut [21:35:06]*** CUTSNS_PIN = 1 [21:35:06]*** CUTSNS_PIN = 0 [21:35:06]*** Brake cut motor [21:35:06]Read from MH i2c: 01 [21:35:06]MH_I2C_Read... [21:35:06]*** Stop cut motor [21:35:06]*** Cut end [21:35:06]Read from MH i2c: 01 07 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [21:35:06]process_action close_receipt done [21:35:06]requested_data is exist [21:35:06]produce_requested_data [21:35:06]requested_item fm.sn is exist - process it [21:35:06]wFMCommunicate request_size=4 [21:35:06]MH_SAM_APDU [21:35:06]CAPDU: 80 11 00 00 [21:35:06]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:06]Read from MH i2c: E2 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 17 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DF [21:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:35:06]wFMCommunicate OK [21:35:06]requested_item fd.num is exist - process it [21:35:06]SAM_PROTO_GetFieldsCounters [21:35:06]wFMCommunicate request_size=4 [21:35:06]MH_SAM_APDU [21:35:06]CAPDU: 80 13 00 00 [21:35:06]Write to MH i2c: E2 08 00 F5 19 80 13 00 00 00 00 00 00 8A [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:07]Read from MH i2c: E2 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 62 00 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 62 00 F5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 27 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [21:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 27 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:07]wFMCommunicate OK [21:35:07]SAM_PROTO_GetFieldsCounters done [21:35:07]requested_item shift.num is exist - process it [21:35:07]requested_item shift.opened is exist - process it [21:35:07]req_shift_opened [21:35:07]FM_GetShiftState [21:35:07]SAM_PROTO_GetShiftState [21:35:07]wFMCommunicate request_size=4 [21:35:07]MH_SAM_APDU [21:35:07]CAPDU: 80 13 01 00 [21:35:07]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [21:35:07]Write i2c OK [21:35:07]MH_I2C_Read... [21:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:07]Read from MH i2c: E2 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 0E 00 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 AF [21:35:07]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:35:07]wFMCommunicate OK [21:35:07]SAM_PROTO_GetShiftState done [21:35:07]FM_GetShiftState done [21:35:07]req_shift_opened done [21:35:07]requested_item shift.open_date is exist - process it [21:35:07]req_shift_open_date [21:35:07]req_shift_open_date done [21:35:07]produce_requested_data done [21:35:07]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39975,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:35:07]process_action_free close_receipt [21:35:07]json_value_free [21:35:07]json_value_free done [21:35:07]process_json_proto returns [21:35:07]Send response to host [21:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39975,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:35:07]free response buf [21:35:07]execute_script done [21:35:07]execute_script returns [21:35:07]free content buf [21:35:07]Sock 8.Close socket [21:35:07]Sock 8.Thread stoped [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:24]accept exits with 9 [21:35:24]New connection [21:35:24]New thread 3067182436 created [21:35:24]Thread 3067325796 joined [21:35:24]Waiting for new connection... [21:35:24] Sock 9.Parse request [21:35:24]Sock 9.Check first char [21:35:24]Sock 9.First char is OK [21:35:24]request: POST /json_proto HTTP/1.0 [21:35:24]Method: POST [21:35:24]URL: /json_proto [21:35:24]Method is POST - this is cgi request [21:35:24]url: /json_proto [21:35:24]query_string will be loaded in cgi processing [21:35:24]execute_cgi json_proto POST (null) [21:35:24]execute_cgi path=json_proto method=POST [21:35:24]POST find Content-Length [21:35:24]Host: 172.17.36.199:8080 [21:35:24]Content-Length: 608 [21:35:24]Content-Type: application/json [21:35:24] [21:35:24]POST finish read [21:35:24]Found Content-Length = 608 [21:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176536", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]execute_script... [21:35:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176536", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]POST & json_proto [21:35:24]process_json_proto [21:35:24]json parsed OK: [21:35:24]protocol is kg_v1.0 [21:35:24]action value=close_receipt [21:35:24]process_action close_receipt [21:35:24]cmd_close_receipt [21:35:24]MH_GetDate [21:35:24]Write to MH i2c: F0 00 00 F7 19 FF [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 09 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 09 00 F7 19 00 20 37 5E 66 91 46 04 65 63 [21:35:24]GetLastDocTimeStamp 1717450507 [21:35:24]current date 1717450528 [21:35:24]FM_GetShiftState [21:35:24]SAM_PROTO_GetShiftState [21:35:24]wFMCommunicate request_size=4 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 13 01 00 [21:35:24]Write to MH i2c: E2 08 00 F8 19 80 13 01 00 00 00 00 00 8E [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0E 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0E 00 F8 19 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B1 [21:35:24]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:35:24]wFMCommunicate OK [21:35:24]SAM_PROTO_GetShiftState done [21:35:24]FM_GetShiftState done [21:35:24]opened in 1717373769 [21:35:24]opened+sec_in_day 1717460169 [21:35:24]quantity*price = 1000 [21:35:24]sum+1 = 1001 [21:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 94 03.06.2024 21:35 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39976 ФПД: 133212614502378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213528&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39976&fm=133212614502378&tin=02508201610067®Number=0000000000092680&sum=1000 0 [21:35:25]StoreToDocumentArchive [21:35:25]shift 376 fd 39976 [21:35:25]save to /storage/0376/doc_00039976 [21:35:25]save last doc name /storage/0376/doc_00039976 to /storage/kkm_last_doc_name [21:35:25]save OK [21:35:25]Clear old archive folders... [21:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=267 [21:35:25]tlvbuf is 00E55B40 [21:35:25]SAM_PROTO_ClearQueue [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 09 00 00 [21:35:25]Write to MH i2c: E2 08 00 05 1A 80 09 00 00 00 00 00 00 91 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:25]Read from MH i2c: E2 03 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [21:35:25]RAPDU: 90 00 [21:35:25]wFMCommunicate OK [21:35:25]SAM_PROTO_ClearQueue done [21:35:25]KKMCreateOFDPacket [21:35:25]OFDProtocolAddRootSTLVToBuf [21:35:25]FM_MakeSignedData [21:35:25]FM_MakeSignedData [21:35:25]SAM_PROTO_SignData [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 0D 01 02 [21:35:25]Write to MH i2c: E2 08 00 06 1A 80 0D 01 02 00 00 00 00 99 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [21:35:25]RAPDU: 90 00 [21:35:25]wFMCommunicate OK [21:35:25]wFMCommunicate request_size=255 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 20 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [21:35:25]Write to MH i2c: E2 02 01 07 1A 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 20 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 21 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [21:35:25]RAPDU: 90 00 [21:35:25]wFMCommunicate OK [21:35:25]wFMCommunicate request_size=26 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 0D 02 02 15 38 38 32 10 04 04 00 28 9C 00 00 35 04 06 00 79 27 FA 91 27 EA [21:35:25]Write to MH i2c: E2 1D 00 08 1A 80 0D 02 02 15 00 38 38 32 10 04 04 00 28 9C 00 00 35 04 06 00 79 27 FA 91 27 EA 00 00 BF [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [21:35:25]RAPDU: 90 00 [21:35:25]wFMCommunicate OK [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 0D 03 02 [21:35:25]Write to MH i2c: E2 08 00 09 1A 80 0D 03 02 00 00 00 00 9E [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 0B 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 0B 00 09 1A 00 13 E7 EF E4 D1 8F 54 B5 90 00 D5 [21:35:25]RAPDU: 13 E7 EF E4 D1 8F 54 B5 90 00 [21:35:25]wFMCommunicate OK [21:35:25]SAM_PROTO_SignData done [21:35:25]FM_MakeSignedData done [21:35:25]CreateOFDProtocolMessage [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 11 00 00 [21:35:25]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 17 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F6 [21:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:35:25]wFMCommunicate OK [21:35:25]CreateOFDProtocolMessage done [21:35:25]OFDSenderStorePacket 39976 [21:35:25]StoreOFDPacket docnum=39976 [21:35:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1F 01 00 00 8B 9E 17 01 8F 18 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 20 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 28 9C 00 00 35 04 06 00 79 27 FA 91 27 EA 13 E7 EF E4 D1 8F 54 B5 [21:35:25]CheckFolder [21:35:25]dirname=/storage/ofd_packets [21:35:25]CheckFolder done [21:35:25]ProducePacketName [21:35:25]name=ofd_packets/00039976 [21:35:25]NVStorageSaveData ofd_packets/00039976 [21:35:25]File name is /storage/ofd_packets/00039976 [21:35:25]Write 317 bytes [21:35:25]NVStorageSaveData done [21:35:25]OFDSenderStorePacket done [21:35:25]KKMCreateOFDPacket done [21:35:25]NVStorageSaveData kkm_last_timestamp [21:35:25]File name is /storage/kkm_last_timestamp [21:35:25]Write 4 bytes [21:35:25]NVStorageSaveData done [21:35:25]ExternCall_PrintAddStr [21:35:25]wPrintStart [21:35:25]Write to MH i2c: 01 00 00 0B 1A 25 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 07 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [21:35:25]RasterBufferAndPrint [21:35:25]line Счет N : (3)176536 [21:35:25]line ИНН: 02508201610067 [21:35:25]line Контрольно-Кассовый Чек [21:35:25]line ПРОДАЖА [21:35:25]line Товар: 46231529 [21:35:25]line Mentos ПФ Арбуз 6*100*2 [21:35:25]line 1.000 * 10.00 [21:35:25]line = 10.00 [21:35:25]line НДС 12% НСП 1% [21:35:25]line > о реализуемом товаре [21:35:25]line ИТОГО: 10.00 [21:35:25]line НСП 1% : 0.09 [21:35:25]line НДС 12% : 1.06 [21:35:25]line Наличными: 10.00 [21:35:25]line Безнал.: 0.00 [21:35:25]line Место: АЗС № 63 "Партнер Нефть" [21:35:25]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:35:25]line СНО: Общий режим [21:35:25]line Чек 94 03.06.2024 21:35 [21:35:25]line Смена: 376 ФФД: 1.0 [21:35:25]line ЗНМ: 0300000037 [21:35:25]line РНМ: 0000000000092680 [21:35:25]line Версия ККМ: 001 [21:35:25]line ФМ: 0000000000874882 [21:35:25]line ФД: 39976 [21:35:25]line ФПД: 133212614502378 [21:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213528&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39976&fm=133212614502378&tin=02508201610067®Number=0000000000092680&sum=1000 [21:35:26]line 0 [21:35:26]OFD Sender: Processing packet 39976 [packets to send 5, broken 4] [21:35:26]ProducePacketName [21:35:26]name=ofd_packets/00039976 [21:35:26]OFD Sender: To server: pG, [21:35:26]CommunicateWithHost lk.salyk.kg:30040 [21:35:26]ConnectInit lk.salyk.kg [21:35:26]written 0, free lines is 4095 [21:35:26]Connected sock=10 [21:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1F 01 00 00 8B 9E 17 01 8F 18 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 20 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 28 9C 00 00 35 04 06 00 79 27 FA 91 27 EA 13 E7 EF E4 D1 8F 54 B5 [21:35:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 09 78 47 00 EE D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 28 9C 00 00 F4 03 04 00 CB DF 5D 66 B6 04 01 00 00 84 CB 89 46 9E 84 04 EB [21:35:26]CommunicateWithHost err = 0 [21:35:26]CheckOFDResponse [21:35:26]1017 (14) - 77093643461234 [21:35:26]1041 (16) - 0000000000874882 [21:35:26]1040 (4) - 39976 [21:35:26]1012 (4) - 03.06.2024 15:22 [21:35:26]1206 (1) - 0 [21:35:26]OFD Sender: Remove packet 39976 [21:35:26]ProducePacketName [21:35:26]name=ofd_packets/00039976 [21:35:26]NVStorageDeleteData [21:35:26]Write to MH i2c: 01 00 00 33 1A 4D [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 07 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 07 00 33 1A 00 00 00 00 00 24 0D 85 [21:35:26]RasterBufferAndPrint [21:35:26]line [21:35:26]line [21:35:26]line [21:35:26]line [21:35:26]line [21:35:26]written 0, free lines is 3370 [21:35:26]MH_Cut [21:35:26]Write to MH i2c: D1 01 00 3A 1A 01 26 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: D1 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: D1 01 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: D1 01 00 3A 1A 00 25 [21:35:26]Write to MH i2c: 01 00 00 3B 1A 55 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]OFD Sender: No OFD packet to send [21:35:27]*** Cut start [21:35:27]*** Partial cut [21:35:27]*** CUTSNS_PIN = 1 [21:35:27]*** CUTSNS_PIN = 0 [21:35:27]*** Brake cut motor [21:35:27]Read from MH i2c: 01 [21:35:27]MH_I2C_Read... [21:35:27]*** Stop cut motor [21:35:27]*** Cut end [21:35:27]Read from MH i2c: 01 07 00 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [21:35:27]process_action close_receipt done [21:35:27]requested_data is exist [21:35:27]produce_requested_data [21:35:27]requested_item fm.sn is exist - process it [21:35:27]wFMCommunicate request_size=4 [21:35:27]MH_SAM_APDU [21:35:27]CAPDU: 80 11 00 00 [21:35:27]Write to MH i2c: E2 08 00 3C 1A 80 11 00 00 00 00 00 00 D0 [21:35:27]Write i2c OK [21:35:27]MH_I2C_Read... [21:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:27]Read from MH i2c: E2 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: E2 17 00 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: E2 17 00 3C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 28 [21:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:35:27]wFMCommunicate OK [21:35:27]requested_item fd.num is exist - process it [21:35:27]SAM_PROTO_GetFieldsCounters [21:35:27]wFMCommunicate request_size=4 [21:35:27]MH_SAM_APDU [21:35:27]CAPDU: 80 13 00 00 [21:35:27]Write to MH i2c: E2 08 00 3D 1A 80 13 00 00 00 00 00 00 D3 [21:35:27]Write i2c OK [21:35:27]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 3D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 28 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 28 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:28]wFMCommunicate OK [21:35:28]SAM_PROTO_GetFieldsCounters done [21:35:28]requested_item shift.num is exist - process it [21:35:28]requested_item shift.opened is exist - process it [21:35:28]req_shift_opened [21:35:28]FM_GetShiftState [21:35:28]SAM_PROTO_GetShiftState [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 13 01 00 [21:35:28]Write to MH i2c: E2 08 00 3E 1A 80 13 01 00 00 00 00 00 D5 [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 0E 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 0E 00 3E 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 F8 [21:35:28]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:35:28]wFMCommunicate OK [21:35:28]SAM_PROTO_GetShiftState done [21:35:28]FM_GetShiftState done [21:35:28]req_shift_opened done [21:35:28]requested_item shift.open_date is exist - process it [21:35:28]req_shift_open_date [21:35:28]req_shift_open_date done [21:35:28]produce_requested_data done [21:35:28]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39976,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:35:28]process_action_free close_receipt [21:35:28]json_value_free [21:35:28]json_value_free done [21:35:28]process_json_proto returns [21:35:28]Send response to host [21:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39976,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:35:28]free response buf [21:35:28]execute_script done [21:35:28]execute_script returns [21:35:28]free content buf [21:35:28]Sock 9.Close socket [21:35:28]Sock 9.Thread stoped [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:12]accept exits with 8 [21:36:12]New connection [21:36:12]New thread 3067325796 created [21:36:12]Thread 3067182436 joined [21:36:12]Waiting for new connection... [21:36:12] Sock 8.Parse request [21:36:12]Sock 8.Check first char [21:36:12]Sock 8.First char is OK [21:36:12]request: POST /json_proto HTTP/1.0 [21:36:12]Method: POST [21:36:12]URL: /json_proto [21:36:12]Method is POST - this is cgi request [21:36:12]url: /json_proto [21:36:12]query_string will be loaded in cgi processing [21:36:12]execute_cgi json_proto POST (null) [21:36:12]execute_cgi path=json_proto method=POST [21:36:12]POST find Content-Length [21:36:12]Host: 172.17.36.199:8080 [21:36:12]Content-Length: 621 [21:36:12]Content-Type: application/json [21:36:12] [21:36:12]POST finish read [21:36:12]Found Content-Length = 621 [21:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176537", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:12]execute_script... [21:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176537", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:12]POST & json_proto [21:36:12]process_json_proto [21:36:12]json parsed OK: [21:36:12]protocol is kg_v1.0 [21:36:12]action value=close_receipt [21:36:12]process_action close_receipt [21:36:12]cmd_close_receipt [21:36:12]MH_GetDate [21:36:12]Write to MH i2c: F0 00 00 3F 1A 48 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 09 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 09 00 3F 1A 00 50 37 5E 66 91 46 04 65 DC [21:36:12]GetLastDocTimeStamp 1717450528 [21:36:12]current date 1717450576 [21:36:12]FM_GetShiftState [21:36:12]SAM_PROTO_GetShiftState [21:36:12]wFMCommunicate request_size=4 [21:36:12]MH_SAM_APDU [21:36:12]CAPDU: 80 13 01 00 [21:36:12]Write to MH i2c: E2 08 00 40 1A 80 13 01 00 00 00 00 00 D7 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:12]Read from MH i2c: E2 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 40 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 FA [21:36:12]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:36:12]wFMCommunicate OK [21:36:12]SAM_PROTO_GetShiftState done [21:36:12]FM_GetShiftState done [21:36:12]opened in 1717373769 [21:36:12]opened+sec_in_day 1717460169 [21:36:12]quantity*price = 14000 [21:36:12]sum+1 = 14001 [21:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 95 03.06.2024 21:36 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39977 ФПД: 60974443722136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213616&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39977&fm=60974443722136&tin=02508201610067®Number=0000000000092680&sum=14000 0 [21:36:13]StoreToDocumentArchive [21:36:13]shift 376 fd 39977 [21:36:13]save to /storage/0376/doc_00039977 [21:36:13]save last doc name /storage/0376/doc_00039977 to /storage/kkm_last_doc_name [21:36:13]save OK [21:36:13]Clear old archive folders... [21:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:36:13]tlvbuf is 00E6AB80 [21:36:13]SAM_PROTO_ClearQueue [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 09 00 00 [21:36:13]Write to MH i2c: E2 08 00 4D 1A 80 09 00 00 00 00 00 00 D9 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_ClearQueue done [21:36:13]KKMCreateOFDPacket [21:36:13]OFDProtocolAddRootSTLVToBuf [21:36:13]FM_MakeSignedData [21:36:13]FM_MakeSignedData [21:36:13]SAM_PROTO_SignData [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 01 02 [21:36:13]Write to MH i2c: E2 08 00 4E 1A 80 0D 01 02 00 00 00 00 E1 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=255 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 50 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [21:36:13]Write to MH i2c: E2 02 01 4F 1A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 50 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 E5 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=32 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 29 9C 00 00 35 04 06 00 37 74 B8 0E F5 98 [21:36:13]Write to MH i2c: E2 23 00 50 1A 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 29 9C 00 00 35 04 06 00 37 74 B8 0E F5 98 00 00 09 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 03 02 [21:36:13]Write to MH i2c: E2 08 00 51 1A 80 0D 03 02 00 00 00 00 E6 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 51 1A 00 6D 56 4B 94 52 BA 6F 4F 90 00 53 [21:36:13]RAPDU: 6D 56 4B 94 52 BA 6F 4F 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_SignData done [21:36:13]FM_MakeSignedData done [21:36:13]CreateOFDProtocolMessage [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 11 00 00 [21:36:13]Write to MH i2c: E2 08 00 52 1A 80 11 00 00 00 00 00 00 E6 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 52 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 3E [21:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:36:13]wFMCommunicate OK [21:36:13]CreateOFDProtocolMessage done [21:36:13]OFDSenderStorePacket 39977 [21:36:13]StoreOFDPacket docnum=39977 [21:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 67 B2 1D 01 67 BD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 50 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 29 9C 00 00 35 04 06 00 37 74 B8 0E F5 98 6D 56 4B 94 52 BA 6F 4F [21:36:13]CheckFolder [21:36:13]dirname=/storage/ofd_packets [21:36:13]CheckFolder done [21:36:13]ProducePacketName [21:36:13]name=ofd_packets/00039977 [21:36:13]NVStorageSaveData ofd_packets/00039977 [21:36:13]File name is /storage/ofd_packets/00039977 [21:36:13]Write 323 bytes [21:36:13]NVStorageSaveData done [21:36:13]OFDSenderStorePacket done [21:36:13]KKMCreateOFDPacket done [21:36:13]NVStorageSaveData kkm_last_timestamp [21:36:13]File name is /storage/kkm_last_timestamp [21:36:13]Write 4 bytes [21:36:13]NVStorageSaveData done [21:36:13]ExternCall_PrintAddStr [21:36:13]wPrintStart [21:36:13]Write to MH i2c: 01 00 00 53 1A 6D [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FF 0F 82 [21:36:13]RasterBufferAndPrint [21:36:13]line Счет N : (3)176537 [21:36:13]line ИНН: 02508201610067 [21:36:13]line Контрольно-Кассовый Чек [21:36:13]line ПРОДАЖА [21:36:13]line Товар: 48747059 [21:36:13]line Сигареты Winston Legend Blue [21:36:13]line 1.000 * 140.00 [21:36:13]line = 140.00 [21:36:13]line НДС 12% НСП 1% [21:36:13]line > о реализуемом товаре [21:36:13]line ИТОГО: 140.00 [21:36:13]line НСП 1% : 1.24 [21:36:13]line НДС 12% : 14.87 [21:36:13]line Наличными: 140.00 [21:36:13]line Безнал.: 0.00 [21:36:13]line Место: АЗС № 63 "Партнер Нефть" [21:36:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:36:13]line СНО: Общий режим [21:36:13]line Чек 95 03.06.2024 21:36 [21:36:13]line Смена: 376 ФФД: 1.0 [21:36:13]line ЗНМ: 0300000037 [21:36:13]line РНМ: 0000000000092680 [21:36:13]line Версия ККМ: 001 [21:36:13]line ФМ: 0000000000874882 [21:36:13]line ФД: 39977 [21:36:13]line ФПД: 60974443722136 [21:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213616&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39977&fm=60974443722136&tin=02508201610067®Number=0000000000092680&sum=14000 [21:36:14]line 0 [21:36:14]OFD Sender: Processing packet 39977 [packets to send 5, broken 4] [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00039977 [21:36:14]OFD Sender: To server: pG, [21:36:14]CommunicateWithHost lk.salyk.kg:30040 [21:36:14]ConnectInit lk.salyk.kg [21:36:14]written 0, free lines is 4095 [21:36:14]Connected sock=10 [21:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 67 B2 1D 01 67 BD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 50 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 29 9C 00 00 35 04 06 00 37 74 B8 0E F5 98 6D 56 4B 94 52 BA 6F 4F [21:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 3F EE 47 00 37 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 29 9C 00 00 F4 03 04 00 FB DF 5D 66 B6 04 01 00 00 A4 6F EB 9A 5B 1A 12 F8 [21:36:14]CommunicateWithHost err = 0 [21:36:14]CheckOFDResponse [21:36:14]1017 (14) - 77093643461234 [21:36:14]1041 (16) - 0000000000874882 [21:36:14]1040 (4) - 39977 [21:36:14]1012 (4) - 03.06.2024 15:23 [21:36:14]1206 (1) - 0 [21:36:14]OFD Sender: Remove packet 39977 [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00039977 [21:36:14]NVStorageDeleteData [21:36:14]Write to MH i2c: 01 00 00 7C 1A 96 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 07 0D B1 [21:36:14]RasterBufferAndPrint [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]written 0, free lines is 3342 [21:36:14]MH_Cut [21:36:14]Write to MH i2c: D1 01 00 83 1A 01 6F [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 83 1A 00 6E [21:36:14]Write to MH i2c: 01 00 00 84 1A 9E [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]OFD Sender: No OFD packet to send [21:36:15]*** Cut start [21:36:15]*** Partial cut [21:36:15]*** CUTSNS_PIN = 1 [21:36:15]*** CUTSNS_PIN = 0 [21:36:15]*** Brake cut motor [21:36:15]Read from MH i2c: 01 [21:36:15]MH_I2C_Read... [21:36:15]*** Stop cut motor [21:36:15]*** Cut end [21:36:15]Read from MH i2c: 01 07 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [21:36:15]process_action close_receipt done [21:36:15]requested_data is exist [21:36:15]produce_requested_data [21:36:15]requested_item fm.sn is exist - process it [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 11 00 00 [21:36:15]Write to MH i2c: E2 08 00 85 1A 80 11 00 00 00 00 00 00 19 [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:15]Read from MH i2c: E2 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 17 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 17 00 85 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 71 [21:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:36:15]wFMCommunicate OK [21:36:15]requested_item fd.num is exist - process it [21:36:15]SAM_PROTO_GetFieldsCounters [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 13 00 00 [21:36:15]Write to MH i2c: E2 08 00 86 1A 80 13 00 00 00 00 00 00 1C [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:15]Read from MH i2c: E2 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 62 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 62 00 86 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 29 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 29 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetFieldsCounters done [21:36:16]requested_item shift.num is exist - process it [21:36:16]requested_item shift.opened is exist - process it [21:36:16]req_shift_opened [21:36:16]FM_GetShiftState [21:36:16]SAM_PROTO_GetShiftState [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 01 00 [21:36:16]Write to MH i2c: E2 08 00 87 1A 80 13 01 00 00 00 00 00 1E [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 87 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 41 [21:36:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetShiftState done [21:36:16]FM_GetShiftState done [21:36:16]req_shift_opened done [21:36:16]requested_item shift.open_date is exist - process it [21:36:16]req_shift_open_date [21:36:16]req_shift_open_date done [21:36:16]produce_requested_data done [21:36:16]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39977,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:36:16]process_action_free close_receipt [21:36:16]json_value_free [21:36:16]json_value_free done [21:36:16]process_json_proto returns [21:36:16]Send response to host [21:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39977,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:36:16]free response buf [21:36:16]execute_script done [21:36:16]execute_script returns [21:36:16]free content buf [21:36:16]Sock 8.Close socket [21:36:16]Sock 8.Thread stoped [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]accept exits with 9 [21:37:24]New connection [21:37:24]New thread 3067182436 created [21:37:24]Thread 3067325796 joined [21:37:24]Waiting for new connection... [21:37:24] Sock 9.Parse request [21:37:24]Sock 9.Check first char [21:37:24]Sock 9.First char is OK [21:37:24]request: POST /json_proto HTTP/1.0 [21:37:24]Method: POST [21:37:24]URL: /json_proto [21:37:24]Method is POST - this is cgi request [21:37:24]url: /json_proto [21:37:24]query_string will be loaded in cgi processing [21:37:24]execute_cgi json_proto POST (null) [21:37:24]execute_cgi path=json_proto method=POST [21:37:24]POST find Content-Length [21:37:24]Host: 172.17.36.199:8080 [21:37:24]Content-Length: 976 [21:37:24]Content-Type: application/json [21:37:24] [21:37:24]POST finish read [21:37:24]Found Content-Length = 976 [21:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176538", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:24]execute_script... [21:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176538", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:24]POST & json_proto [21:37:24]process_json_proto [21:37:24]json parsed OK: [21:37:24]protocol is kg_v1.0 [21:37:24]action value=close_receipt [21:37:24]process_action close_receipt [21:37:24]cmd_close_receipt [21:37:24]MH_GetDate [21:37:24]Write to MH i2c: F0 00 00 88 1A 91 [21:37:24]Write i2c OK [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 09 00 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 09 00 88 1A 00 98 37 5E 66 91 46 04 65 6D [21:37:24]GetLastDocTimeStamp 1717450576 [21:37:24]current date 1717450648 [21:37:24]FM_GetShiftState [21:37:24]SAM_PROTO_GetShiftState [21:37:24]wFMCommunicate request_size=4 [21:37:24]MH_SAM_APDU [21:37:24]CAPDU: 80 13 01 00 [21:37:24]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [21:37:24]Write i2c OK [21:37:24]MH_I2C_Read... [21:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:24]Read from MH i2c: E2 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: E2 0E 00 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 43 [21:37:24]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:37:24]wFMCommunicate OK [21:37:24]SAM_PROTO_GetShiftState done [21:37:24]FM_GetShiftState done [21:37:24]opened in 1717373769 [21:37:24]opened+sec_in_day 1717460169 [21:37:24]quantity*price = 6500 [21:37:24]sum+1 = 6501 [21:37:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.14 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 96 03.06.2024 21:37 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39978 ФПД: 7373774339000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213728&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39978&fm=7373774339000&tin=02508201610067®Number=0000000000092680&sum=13000 0 [21:37:25]StoreToDocumentArchive [21:37:25]shift 376 fd 39978 [21:37:25]save to /storage/0376/doc_00039978 [21:37:25]save last doc name /storage/0376/doc_00039978 to /storage/kkm_last_doc_name [21:37:25]save OK [21:37:25]Clear old archive folders... [21:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=406 [21:37:25]tlvbuf is 00E56060 [21:37:25]SAM_PROTO_ClearQueue [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 09 00 00 [21:37:25]Write to MH i2c: E2 08 00 96 1A 80 09 00 00 00 00 00 00 22 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]SAM_PROTO_ClearQueue done [21:37:25]KKMCreateOFDPacket [21:37:25]OFDProtocolAddRootSTLVToBuf [21:37:25]FM_MakeSignedData [21:37:25]FM_MakeSignedData [21:37:25]SAM_PROTO_SignData [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 01 02 [21:37:25]Write to MH i2c: E2 08 00 97 1A 80 0D 01 02 00 00 00 00 2A [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=255 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 [21:37:25]Write to MH i2c: E2 02 01 98 1A 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 42 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=165 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 02 02 A0 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2A 9C 00 00 35 04 06 00 06 B4 D7 33 3B B8 [21:37:25]Write to MH i2c: E2 A8 00 99 1A 80 0D 02 02 A0 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2A 9C 00 00 35 04 06 00 06 B4 D7 33 3B B8 00 00 9F [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 03 02 [21:37:25]Write to MH i2c: E2 08 00 9A 1A 80 0D 03 02 00 00 00 00 2F [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:26]Read from MH i2c: E2 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: E2 0B 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: E2 0B 00 9A 1A 00 E9 31 F1 A1 E6 D4 3D 55 90 00 28 [21:37:26]RAPDU: E9 31 F1 A1 E6 D4 3D 55 90 00 [21:37:26]wFMCommunicate OK [21:37:26]SAM_PROTO_SignData done [21:37:26]FM_MakeSignedData done [21:37:26]CreateOFDProtocolMessage [21:37:26]wFMCommunicate request_size=4 [21:37:26]MH_SAM_APDU [21:37:26]CAPDU: 80 11 00 00 [21:37:26]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:26]Read from MH i2c: E2 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: E2 17 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 87 [21:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:37:26]wFMCommunicate OK [21:37:26]CreateOFDProtocolMessage done [21:37:26]OFDSenderStorePacket 39978 [21:37:26]StoreOFDPacket docnum=39978 [21:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 AA 01 00 00 DB 4D A2 01 82 57 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2A 9C 00 00 35 04 06 00 06 B4 D7 33 3B B8 E9 31 F1 A1 E6 D4 3D 55 [21:37:26]CheckFolder [21:37:26]dirname=/storage/ofd_packets [21:37:26]CheckFolder done [21:37:26]ProducePacketName [21:37:26]name=ofd_packets/00039978 [21:37:26]NVStorageSaveData ofd_packets/00039978 [21:37:26]File name is /storage/ofd_packets/00039978 [21:37:26]Write 456 bytes [21:37:26]NVStorageSaveData done [21:37:26]OFDSenderStorePacket done [21:37:26]KKMCreateOFDPacket done [21:37:26]NVStorageSaveData kkm_last_timestamp [21:37:26]File name is /storage/kkm_last_timestamp [21:37:26]Write 4 bytes [21:37:26]NVStorageSaveData done [21:37:26]ExternCall_PrintAddStr [21:37:26]wPrintStart [21:37:26]Write to MH i2c: 01 00 00 9C 1A B6 [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 9C 1A 00 00 00 00 00 FF 0F CB [21:37:26]RasterBufferAndPrint [21:37:26]line Счет N : (3)176538 [21:37:26]line ИНН: 02508201610067 [21:37:26]line Контрольно-Кассовый Чек [21:37:26]line ПРОДАЖА [21:37:26]line Товар: 4870001571023 [21:37:26]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [21:37:26]line 1.000 * 65.00 [21:37:26]line = 65.00 [21:37:26]line НДС 12% НСП 1% [21:37:26]line > о реализуемом товаре [21:37:26]line Товар: 47011656 [21:37:26]line Водка Пшеничная 0,1л [21:37:26]line 1.000 * 65.00 [21:37:26]line = 65.00 [21:37:26]line НДС 12% НСП 1% [21:37:26]line > о реализуемом товаре [21:37:26]line ИТОГО: 130.00 [21:37:26]line НСП 1% : 1.14 [21:37:26]line НДС 12% : 13.80 [21:37:26]line Наличными: 130.00 [21:37:26]line Безнал.: 0.00 [21:37:26]line Место: АЗС № 63 "Партнер Нефть" [21:37:26]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:37:26]line СНО: Общий режим [21:37:26]line Чек 96 03.06.2024 21:37 [21:37:26]line Смена: 376 ФФД: 1.0 [21:37:26]line ЗНМ: 0300000037 [21:37:26]line РНМ: 0000000000092680 [21:37:26]line Версия ККМ: 001 [21:37:26]line ФМ: 0000000000874882 [21:37:26]line ФД: 39978 [21:37:26]line ФПД: 7373774339000 [21:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213728&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39978&fm=7373774339000&tin=02508201610067®Number=0000000000092680&sum=13000 [21:37:26]OFD Sender: Processing packet 39978 [packets to send 5, broken 4] [21:37:26]ProducePacketName [21:37:26]name=ofd_packets/00039978 [21:37:26]OFD Sender: To server: pG, [21:37:26]CommunicateWithHost lk.salyk.kg:30040 [21:37:26]ConnectInit lk.salyk.kg [21:37:26]line 0 [21:37:26]written 0, free lines is 4095 [21:37:26]Connected sock=10 [21:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 AA 01 00 00 DB 4D A2 01 82 57 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2A 9C 00 00 35 04 06 00 06 B4 D7 33 3B B8 E9 31 F1 A1 E6 D4 3D 55 [21:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 A5 CA 47 00 71 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2A 9C 00 00 F4 03 04 00 43 E0 5D 66 B6 04 01 00 00 6B 57 49 B8 B2 69 F0 0B [21:37:26]CommunicateWithHost err = 0 [21:37:26]CheckOFDResponse [21:37:26]1017 (14) - 77093643461234 [21:37:26]1041 (16) - 0000000000874882 [21:37:26]1040 (4) - 39978 [21:37:26]1012 (4) - 03.06.2024 15:24 [21:37:26]1206 (1) - 0 [21:37:26]OFD Sender: Remove packet 39978 [21:37:26]ProducePacketName [21:37:26]name=ofd_packets/00039978 [21:37:26]NVStorageDeleteData [21:37:26]Write to MH i2c: 01 00 00 CB 1A E5 [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 C8 0C C0 [21:37:26]RasterBufferAndPrint [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]written 0, free lines is 3281 [21:37:26]MH_Cut [21:37:26]Write to MH i2c: D1 01 00 D2 1A 01 BE [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 01 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 01 00 D2 1A 00 BD [21:37:26]Write to MH i2c: 01 00 00 D3 1A ED [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:27]OFD Sender: No OFD packet to send [21:37:27]*** Cut start [21:37:27]*** Partial cut [21:37:27]*** CUTSNS_PIN = 1 [21:37:27]*** CUTSNS_PIN = 0 [21:37:27]*** Brake cut motor [21:37:28]Read from MH i2c: 01 [21:37:28]MH_I2C_Read... [21:37:28]*** Stop cut motor [21:37:28]*** Cut end [21:37:28]Read from MH i2c: 01 07 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 FF 0F 02 [21:37:28]process_action close_receipt done [21:37:28]requested_data is exist [21:37:28]produce_requested_data [21:37:28]requested_item fm.sn is exist - process it [21:37:28]wFMCommunicate request_size=4 [21:37:28]MH_SAM_APDU [21:37:28]CAPDU: 80 11 00 00 [21:37:28]Write to MH i2c: E2 08 00 D4 1A 80 11 00 00 00 00 00 00 68 [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 17 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 17 00 D4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C0 [21:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:37:28]wFMCommunicate OK [21:37:28]requested_item fd.num is exist - process it [21:37:28]SAM_PROTO_GetFieldsCounters [21:37:28]wFMCommunicate request_size=4 [21:37:28]MH_SAM_APDU [21:37:28]CAPDU: 80 13 00 00 [21:37:28]Write to MH i2c: E2 08 00 D5 1A 80 13 00 00 00 00 00 00 6B [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 62 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 62 00 D5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [21:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2A 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:28]wFMCommunicate OK [21:37:28]SAM_PROTO_GetFieldsCounters done [21:37:28]requested_item shift.num is exist - process it [21:37:28]requested_item shift.opened is exist - process it [21:37:28]req_shift_opened [21:37:28]FM_GetShiftState [21:37:28]SAM_PROTO_GetShiftState [21:37:28]wFMCommunicate request_size=4 [21:37:28]MH_SAM_APDU [21:37:28]CAPDU: 80 13 01 00 [21:37:28]Write to MH i2c: E2 08 00 D6 1A 80 13 01 00 00 00 00 00 6D [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 0E 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 0E 00 D6 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 90 [21:37:28]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:37:28]wFMCommunicate OK [21:37:28]SAM_PROTO_GetShiftState done [21:37:28]FM_GetShiftState done [21:37:28]req_shift_opened done [21:37:28]requested_item shift.open_date is exist - process it [21:37:28]req_shift_open_date [21:37:28]req_shift_open_date done [21:37:28]produce_requested_data done [21:37:28]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39978,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:37:28]process_action_free close_receipt [21:37:28]json_value_free [21:37:28]json_value_free done [21:37:28]process_json_proto returns [21:37:28]Send response to host [21:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39978,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:37:28]free response buf [21:37:28]execute_script done [21:37:28]execute_script returns [21:37:28]free content buf [21:37:28]Sock 9.Close socket [21:37:28]Sock 9.Thread stoped [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:50]accept exits with 8 [21:37:50]New connection [21:37:50]New thread 3067325796 created [21:37:50]Thread 3067182436 joined [21:37:50]Waiting for new connection... [21:37:50] Sock 8.Parse request [21:37:50]Sock 8.Check first char [21:37:50]Sock 8.First char is OK [21:37:50]request: POST /json_proto HTTP/1.0 [21:37:50]Method: POST [21:37:50]URL: /json_proto [21:37:50]Method is POST - this is cgi request [21:37:50]url: /json_proto [21:37:50]query_string will be loaded in cgi processing [21:37:50]execute_cgi json_proto POST (null) [21:37:50]execute_cgi path=json_proto method=POST [21:37:50]POST find Content-Length [21:37:50]Host: 172.17.36.199:8080 [21:37:50]Content-Length: 889 [21:37:50]Content-Type: application/json [21:37:50] [21:37:50]POST finish read [21:37:50]Found Content-Length = 889 [21:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176539", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:50]execute_script... [21:37:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176539", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:50]POST & json_proto [21:37:50]process_json_proto [21:37:50]json parsed OK: [21:37:50]protocol is kg_v1.0 [21:37:50]action value=close_receipt [21:37:50]process_action close_receipt [21:37:50]cmd_close_receipt [21:37:50]MH_GetDate [21:37:50]Write to MH i2c: F0 00 00 D7 1A E0 [21:37:50]Write i2c OK [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: F0 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: F0 09 00 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: F0 09 00 D7 1A 00 B2 37 5E 66 91 46 04 65 D6 [21:37:50]GetLastDocTimeStamp 1717450648 [21:37:50]current date 1717450674 [21:37:50]FM_GetShiftState [21:37:50]SAM_PROTO_GetShiftState [21:37:50]wFMCommunicate request_size=4 [21:37:50]MH_SAM_APDU [21:37:50]CAPDU: 80 13 01 00 [21:37:50]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [21:37:50]Write i2c OK [21:37:50]MH_I2C_Read... [21:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:50]Read from MH i2c: E2 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: E2 0E 00 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 92 [21:37:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:37:50]wFMCommunicate OK [21:37:50]SAM_PROTO_GetShiftState done [21:37:50]FM_GetShiftState done [21:37:50]opened in 1717373769 [21:37:50]opened+sec_in_day 1717460169 [21:37:50]quantity*price = 6500 [21:37:50]sum+1 = 6501 [21:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 97 03.06.2024 21:37 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39979 ФПД: 154449405341269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213754&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39979&fm=154449405341269&tin=02508201610067®Number=0000000000092680&sum=6500 0 [21:37:51]StoreToDocumentArchive [21:37:51]shift 376 fd 39979 [21:37:51]save to /storage/0376/doc_00039979 [21:37:51]save last doc name /storage/0376/doc_00039979 to /storage/kkm_last_doc_name [21:37:51]save OK [21:37:51]Clear old archive folders... [21:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=295 [21:37:51]tlvbuf is 00E2F450 [21:37:51]SAM_PROTO_ClearQueue [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 09 00 00 [21:37:51]Write to MH i2c: E2 08 00 E5 1A 80 09 00 00 00 00 00 00 71 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:51]Read from MH i2c: E2 03 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [21:37:51]RAPDU: 90 00 [21:37:51]wFMCommunicate OK [21:37:51]SAM_PROTO_ClearQueue done [21:37:51]KKMCreateOFDPacket [21:37:51]OFDProtocolAddRootSTLVToBuf [21:37:51]FM_MakeSignedData [21:37:51]FM_MakeSignedData [21:37:51]SAM_PROTO_SignData [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 0D 01 02 [21:37:51]Write to MH i2c: E2 08 00 E6 1A 80 0D 01 02 00 00 00 00 79 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [21:37:51]RAPDU: 90 00 [21:37:51]wFMCommunicate OK [21:37:51]wFMCommunicate request_size=255 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [21:37:51]Write to MH i2c: E2 02 01 E7 1A 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 40 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [21:37:51]RAPDU: 90 00 [21:37:51]wFMCommunicate OK [21:37:51]wFMCommunicate request_size=54 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2B 9C 00 00 35 04 06 00 8C 78 8D F0 EE 55 [21:37:51]Write to MH i2c: E2 39 00 E8 1A 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2B 9C 00 00 35 04 06 00 8C 78 8D F0 EE 55 00 00 33 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [21:37:51]RAPDU: 90 00 [21:37:51]wFMCommunicate OK [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 0D 03 02 [21:37:51]Write to MH i2c: E2 08 00 E9 1A 80 0D 03 02 00 00 00 00 7E [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0B 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0B 00 E9 1A 00 2D E1 15 B0 86 54 28 FA 90 00 4E [21:37:51]RAPDU: 2D E1 15 B0 86 54 28 FA 90 00 [21:37:51]wFMCommunicate OK [21:37:51]SAM_PROTO_SignData done [21:37:51]FM_MakeSignedData done [21:37:51]CreateOFDProtocolMessage [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 11 00 00 [21:37:51]Write to MH i2c: E2 08 00 EA 1A 80 11 00 00 00 00 00 00 7E [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 17 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 17 00 EA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D6 [21:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:37:51]wFMCommunicate OK [21:37:51]CreateOFDProtocolMessage done [21:37:51]OFDSenderStorePacket 39979 [21:37:51]StoreOFDPacket docnum=39979 [21:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3B 01 00 00 92 82 33 01 F4 1A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2B 9C 00 00 35 04 06 00 8C 78 8D F0 EE 55 2D E1 15 B0 86 54 28 FA [21:37:51]CheckFolder [21:37:51]dirname=/storage/ofd_packets [21:37:51]CheckFolder done [21:37:51]ProducePacketName [21:37:51]name=ofd_packets/00039979 [21:37:51]NVStorageSaveData ofd_packets/00039979 [21:37:51]File name is /storage/ofd_packets/00039979 [21:37:51]Write 345 bytes [21:37:51]NVStorageSaveData done [21:37:51]OFDSenderStorePacket done [21:37:51]KKMCreateOFDPacket done [21:37:51]NVStorageSaveData kkm_last_timestamp [21:37:51]File name is /storage/kkm_last_timestamp [21:37:51]Write 4 bytes [21:37:51]NVStorageSaveData done [21:37:51]ExternCall_PrintAddStr [21:37:51]wPrintStart [21:37:51]Write to MH i2c: 01 00 00 EB 1A 05 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 07 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 FF 0F 1A [21:37:51]RasterBufferAndPrint [21:37:51]line Счет N : (3)176539 [21:37:51]line ИНН: 02508201610067 [21:37:51]line Контрольно-Кассовый Чек [21:37:51]line ПРОДАЖА [21:37:51]line Товар: 4870002325441 [21:37:51]line Вода ASU пит н.газ лимон ПЭТ 0,5л [21:37:51]line 1.000 * 65.00 [21:37:51]line = 65.00 [21:37:51]line НДС 12% НСП 1% [21:37:51]line > о реализуемом товаре [21:37:51]line ИТОГО: 65.00 [21:37:51]line НСП 1% : 0.57 [21:37:51]line НДС 12% : 6.90 [21:37:51]line Наличными: 0.00 [21:37:51]line Безнал.: 65.00 [21:37:51]line Место: АЗС № 63 "Партнер Нефть" [21:37:51]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:37:51]line СНО: Общий режим [21:37:51]line Чек 97 03.06.2024 21:37 [21:37:51]line Смена: 376 ФФД: 1.0 [21:37:51]line ЗНМ: 0300000037 [21:37:51]line РНМ: 0000000000092680 [21:37:51]line Версия ККМ: 001 [21:37:51]line Платежная система: АКБ Кыргызстан [21:37:51]line ФМ: 0000000000874882 [21:37:51]line ФД: 39979 [21:37:51]line ФПД: 154449405341269 [21:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213754&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39979&fm=154449405341269&tin=02508201610067®Number=0000000000092680&sum=6500 [21:37:52]line 0 [21:37:52]OFD Sender: Processing packet 39979 [packets to send 5, broken 4] [21:37:52]ProducePacketName [21:37:52]name=ofd_packets/00039979 [21:37:52]OFD Sender: To server: pG, [21:37:52]CommunicateWithHost lk.salyk.kg:30040 [21:37:52]ConnectInit lk.salyk.kg [21:37:52]written 0, free lines is 4095 [21:37:52]Connected sock=10 [21:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 3B 01 00 00 92 82 33 01 F4 1A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2B 9C 00 00 35 04 06 00 8C 78 8D F0 EE 55 2D E1 15 B0 86 54 28 FA [21:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 AA A0 47 00 4C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2B 9C 00 00 F4 03 04 00 5D E0 5D 66 B6 04 01 00 00 84 B0 B9 5F D9 F8 85 0F [21:37:52]CommunicateWithHost err = 0 [21:37:52]CheckOFDResponse [21:37:52]1017 (14) - 77093643461234 [21:37:52]1041 (16) - 0000000000874882 [21:37:52]1040 (4) - 39979 [21:37:52]1012 (4) - 03.06.2024 15:25 [21:37:52]1206 (1) - 0 [21:37:52]OFD Sender: Remove packet 39979 [21:37:52]ProducePacketName [21:37:52]name=ofd_packets/00039979 [21:37:52]NVStorageDeleteData [21:37:52]Write to MH i2c: 01 00 00 16 1B 31 [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: 01 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: 01 07 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 EC 0C 30 [21:37:52]RasterBufferAndPrint [21:37:52]line [21:37:52]line [21:37:52]line [21:37:52]line [21:37:52]line [21:37:52]written 0, free lines is 3318 [21:37:52]MH_Cut [21:37:52]Write to MH i2c: D1 01 00 1D 1B 01 0A [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: D1 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: D1 01 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: D1 01 00 1D 1B 00 09 [21:37:52]Write to MH i2c: 01 00 00 1E 1B 39 [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]OFD Sender: No OFD packet to send [21:37:53]*** Cut start [21:37:53]*** Partial cut [21:37:53]*** CUTSNS_PIN = 1 [21:37:53]*** CUTSNS_PIN = 0 [21:37:53]*** Brake cut motor [21:37:53]Read from MH i2c: 01 [21:37:53]MH_I2C_Read... [21:37:53]*** Stop cut motor [21:37:53]*** Cut end [21:37:53]Read from MH i2c: 01 07 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 FF 0F 4E [21:37:53]process_action close_receipt done [21:37:53]requested_data is exist [21:37:53]produce_requested_data [21:37:53]requested_item fm.sn is exist - process it [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 11 00 00 [21:37:53]Write to MH i2c: E2 08 00 1F 1B 80 11 00 00 00 00 00 00 B4 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 1F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 0C [21:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:37:53]wFMCommunicate OK [21:37:53]requested_item fd.num is exist - process it [21:37:53]SAM_PROTO_GetFieldsCounters [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 13 00 00 [21:37:53]Write to MH i2c: E2 08 00 20 1B 80 13 00 00 00 00 00 00 B7 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:54]Read from MH i2c: E2 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 62 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 62 00 20 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2B 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:54]wFMCommunicate OK [21:37:54]SAM_PROTO_GetFieldsCounters done [21:37:54]requested_item shift.num is exist - process it [21:37:54]requested_item shift.opened is exist - process it [21:37:54]req_shift_opened [21:37:54]FM_GetShiftState [21:37:54]SAM_PROTO_GetShiftState [21:37:54]wFMCommunicate request_size=4 [21:37:54]MH_SAM_APDU [21:37:54]CAPDU: 80 13 01 00 [21:37:54]Write to MH i2c: E2 08 00 21 1B 80 13 01 00 00 00 00 00 B9 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:54]Read from MH i2c: E2 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 0E 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 0E 00 21 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DC [21:37:54]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:37:54]wFMCommunicate OK [21:37:54]SAM_PROTO_GetShiftState done [21:37:54]FM_GetShiftState done [21:37:54]req_shift_opened done [21:37:54]requested_item shift.open_date is exist - process it [21:37:54]req_shift_open_date [21:37:54]req_shift_open_date done [21:37:54]produce_requested_data done [21:37:54]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39979,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:37:54]process_action_free close_receipt [21:37:54]json_value_free [21:37:54]json_value_free done [21:37:54]process_json_proto returns [21:37:54]Send response to host [21:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39979,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:37:54]free response buf [21:37:54]execute_script done [21:37:54]execute_script returns [21:37:54]free content buf [21:37:54]Sock 8.Close socket [21:37:54]Sock 8.Thread stoped [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]accept exits with 9 [21:38:22]New connection [21:38:22]New thread 3067182436 created [21:38:22]Thread 3067325796 joined [21:38:22]Waiting for new connection... [21:38:22] Sock 9.Parse request [21:38:22]Sock 9.Check first char [21:38:22]Sock 9.First char is OK [21:38:22]request: POST /json_proto HTTP/1.0 [21:38:22]Method: POST [21:38:22]URL: /json_proto [21:38:22]Method is POST - this is cgi request [21:38:22]url: /json_proto [21:38:22]query_string will be loaded in cgi processing [21:38:22]execute_cgi json_proto POST (null) [21:38:22]execute_cgi path=json_proto method=POST [21:38:22]POST find Content-Length [21:38:22]Host: 172.17.36.199:8080 [21:38:22]Content-Length: 627 [21:38:22]Content-Type: application/json [21:38:22] [21:38:22]POST finish read [21:38:22]Found Content-Length = 627 [21:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176540", "tax_sys" : 0, "items" : [ { "code": "90494406", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:22]execute_script... [21:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176540", "tax_sys" : 0, "items" : [ { "code": "90494406", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:22]POST & json_proto [21:38:22]process_json_proto [21:38:22]json parsed OK: [21:38:22]protocol is kg_v1.0 [21:38:22]action value=close_receipt [21:38:22]process_action close_receipt [21:38:22]cmd_close_receipt [21:38:22]MH_GetDate [21:38:22]Write to MH i2c: F0 00 00 22 1B 2C [21:38:22]Write i2c OK [21:38:22]MH_I2C_Read... [21:38:22]Read from MH i2c: F0 [21:38:22]MH_I2C_Read... [21:38:22]Read from MH i2c: F0 09 00 [21:38:22]MH_I2C_Read... [21:38:22]Read from MH i2c: F0 09 00 22 1B 00 D2 37 5E 66 91 46 04 65 42 [21:38:22]GetLastDocTimeStamp 1717450674 [21:38:22]current date 1717450706 [21:38:22]FM_GetShiftState [21:38:22]SAM_PROTO_GetShiftState [21:38:22]wFMCommunicate request_size=4 [21:38:22]MH_SAM_APDU [21:38:22]CAPDU: 80 13 01 00 [21:38:22]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [21:38:22]Write i2c OK [21:38:22]MH_I2C_Read... [21:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:22]Read from MH i2c: E2 [21:38:22]MH_I2C_Read... [21:38:22]Read from MH i2c: E2 0E 00 [21:38:22]MH_I2C_Read... [21:38:22]Read from MH i2c: E2 0E 00 23 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 DE [21:38:22]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:38:22]wFMCommunicate OK [21:38:22]SAM_PROTO_GetShiftState done [21:38:22]FM_GetShiftState done [21:38:22]opened in 1717373769 [21:38:22]opened+sec_in_day 1717460169 [21:38:22]quantity*price = 4000 [21:38:22]sum+1 = 4001 [21:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 98 03.06.2024 21:38 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39980 ФПД: 16488908762360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213826&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39980&fm=16488908762360&tin=02508201610067®Number=0000000000092680&sum=4000 0 [21:38:23]StoreToDocumentArchive [21:38:23]shift 376 fd 39980 [21:38:23]save to /storage/0376/doc_00039980 [21:38:23]save last doc name /storage/0376/doc_00039980 to /storage/kkm_last_doc_name [21:38:23]save OK [21:38:23]Clear old archive folders... [21:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:38:23]tlvbuf is 00DF9F90 [21:38:23]SAM_PROTO_ClearQueue [21:38:23]wFMCommunicate request_size=4 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 09 00 00 [21:38:23]Write to MH i2c: E2 08 00 30 1B 80 09 00 00 00 00 00 00 BD [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [21:38:23]RAPDU: 90 00 [21:38:23]wFMCommunicate OK [21:38:23]SAM_PROTO_ClearQueue done [21:38:23]KKMCreateOFDPacket [21:38:23]OFDProtocolAddRootSTLVToBuf [21:38:23]FM_MakeSignedData [21:38:23]FM_MakeSignedData [21:38:23]SAM_PROTO_SignData [21:38:23]wFMCommunicate request_size=4 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 0D 01 02 [21:38:23]Write to MH i2c: E2 08 00 31 1B 80 0D 01 02 00 00 00 00 C5 [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [21:38:23]RAPDU: 90 00 [21:38:23]wFMCommunicate OK [21:38:23]wFMCommunicate request_size=255 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 [21:38:23]Write to MH i2c: E2 02 01 32 1B 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 00 00 6B [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [21:38:23]RAPDU: 90 00 [21:38:23]wFMCommunicate OK [21:38:23]wFMCommunicate request_size=25 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 0D 02 02 14 38 32 10 04 04 00 2C 9C 00 00 35 04 06 00 0E FF 1F 8C AC F8 [21:38:23]Write to MH i2c: E2 1C 00 33 1B 80 0D 02 02 14 00 38 32 10 04 04 00 2C 9C 00 00 35 04 06 00 0E FF 1F 8C AC F8 00 00 D5 [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [21:38:23]RAPDU: 90 00 [21:38:23]wFMCommunicate OK [21:38:23]wFMCommunicate request_size=4 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 0D 03 02 [21:38:23]Write to MH i2c: E2 08 00 34 1B 80 0D 03 02 00 00 00 00 CA [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 0B 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 0B 00 34 1B 00 80 F9 1D A7 00 0A 63 92 90 00 07 [21:38:23]RAPDU: 80 F9 1D A7 00 0A 63 92 90 00 [21:38:23]wFMCommunicate OK [21:38:23]SAM_PROTO_SignData done [21:38:23]FM_MakeSignedData done [21:38:23]CreateOFDProtocolMessage [21:38:23]wFMCommunicate request_size=4 [21:38:23]MH_SAM_APDU [21:38:23]CAPDU: 80 11 00 00 [21:38:23]Write to MH i2c: E2 08 00 35 1B 80 11 00 00 00 00 00 00 CA [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:23]Read from MH i2c: E2 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 17 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: E2 17 00 35 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 22 [21:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:38:23]wFMCommunicate OK [21:38:23]CreateOFDProtocolMessage done [21:38:23]OFDSenderStorePacket 39980 [21:38:23]StoreOFDPacket docnum=39980 [21:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 F2 86 16 01 D3 9B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2C 9C 00 00 35 04 06 00 0E FF 1F 8C AC F8 80 F9 1D A7 00 0A 63 92 [21:38:23]CheckFolder [21:38:23]dirname=/storage/ofd_packets [21:38:23]CheckFolder done [21:38:23]ProducePacketName [21:38:23]name=ofd_packets/00039980 [21:38:23]NVStorageSaveData ofd_packets/00039980 [21:38:23]File name is /storage/ofd_packets/00039980 [21:38:23]Write 316 bytes [21:38:23]NVStorageSaveData done [21:38:23]OFDSenderStorePacket done [21:38:23]KKMCreateOFDPacket done [21:38:23]NVStorageSaveData kkm_last_timestamp [21:38:23]File name is /storage/kkm_last_timestamp [21:38:23]Write 4 bytes [21:38:23]NVStorageSaveData done [21:38:23]ExternCall_PrintAddStr [21:38:23]wPrintStart [21:38:23]Write to MH i2c: 01 00 00 36 1B 51 [21:38:23]OFD Sender: Processing packet 39980 [packets to send 5, broken 4] [21:38:23]ProducePacketName [21:38:23]name=ofd_packets/00039980 [21:38:23]OFD Sender: To server: pG, [21:38:23]CommunicateWithHost lk.salyk.kg:30040 [21:38:23]ConnectInit lk.salyk.kg [21:38:23]Write i2c OK [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: 01 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: 01 07 00 [21:38:23]MH_I2C_Read... [21:38:23]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 FF 0F 66 [21:38:23]RasterBufferAndPrint [21:38:23]line Счет N : (3)176540 [21:38:23]line ИНН: 02508201610067 [21:38:23]line Контрольно-Кассовый Чек [21:38:23]line ПРОДАЖА [21:38:23]line Товар: 90494406 [21:38:23]line Вода Бонаква 0,5л [21:38:23]line 1.000 * 40.00 [21:38:23]line = 40.00 [21:38:23]line НДС 12% НСП 1% [21:38:23]line > о реализуемом товаре [21:38:23]line ИТОГО: 40.00 [21:38:23]line НСП 1% : 0.35 [21:38:23]line НДС 12% : 4.25 [21:38:23]line Наличными: 40.00 [21:38:23]line Безнал.: 0.00 [21:38:23]line Место: АЗС № 63 "Партнер Нефть" [21:38:23]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:38:23]line СНО: Общий режим [21:38:23]line Чек 98 03.06.2024 21:38 [21:38:23]line Смена: 376 ФФД: 1.0 [21:38:23]line ЗНМ: 0300000037 [21:38:23]line РНМ: 0000000000092680 [21:38:23]line Версия ККМ: 001 [21:38:23]line ФМ: 0000000000874882 [21:38:23]line ФД: 39980 [21:38:23]line ФПД: 16488908762360 [21:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213826&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39980&fm=16488908762360&tin=02508201610067®Number=0000000000092680&sum=4000 [21:38:24]line 0 [21:38:24]Connected sock=10 [21:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1E 01 00 00 F2 86 16 01 D3 9B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D2 37 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2C 9C 00 00 35 04 06 00 0E FF 1F 8C AC F8 80 F9 1D A7 00 0A 63 92 [21:38:24]written 0, free lines is 4095 [21:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 09 81 47 00 50 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2C 9C 00 00 F4 03 04 00 7D E0 5D 66 B6 04 01 00 00 60 E0 79 F7 21 4D BD B0 [21:38:24]CommunicateWithHost err = 0 [21:38:24]CheckOFDResponse [21:38:24]1017 (14) - 77093643461234 [21:38:24]1041 (16) - 0000000000874882 [21:38:24]1040 (4) - 39980 [21:38:24]1012 (4) - 03.06.2024 15:25 [21:38:24]1206 (1) - 0 [21:38:24]OFD Sender: Remove packet 39980 [21:38:24]ProducePacketName [21:38:24]name=ofd_packets/00039980 [21:38:24]NVStorageDeleteData [21:38:24]Write to MH i2c: 01 00 00 5E 1B 79 [21:38:24]Write i2c OK [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: 01 [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: 01 07 00 [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 1D 0D AA [21:38:24]RasterBufferAndPrint [21:38:24]line [21:38:24]line [21:38:24]line [21:38:24]line [21:38:24]line [21:38:24]written 0, free lines is 3366 [21:38:24]MH_Cut [21:38:24]Write to MH i2c: D1 01 00 65 1B 01 52 [21:38:24]Write i2c OK [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: D1 [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: D1 01 00 [21:38:24]MH_I2C_Read... [21:38:24]Read from MH i2c: D1 01 00 65 1B 00 51 [21:38:24]Write to MH i2c: 01 00 00 66 1B 81 [21:38:24]Write i2c OK [21:38:24]MH_I2C_Read... [21:38:24]OFD Sender: No OFD packet to send [21:38:25]*** Cut start [21:38:25]*** Partial cut [21:38:25]*** CUTSNS_PIN = 1 [21:38:25]*** CUTSNS_PIN = 0 [21:38:25]*** Brake cut motor [21:38:25]Read from MH i2c: 01 [21:38:25]MH_I2C_Read... [21:38:25]*** Stop cut motor [21:38:25]*** Cut end [21:38:26]Read from MH i2c: 01 07 00 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: 01 07 00 66 1B 00 00 00 00 00 FF 0F 96 [21:38:26]process_action close_receipt done [21:38:26]requested_data is exist [21:38:26]produce_requested_data [21:38:26]requested_item fm.sn is exist - process it [21:38:26]wFMCommunicate request_size=4 [21:38:26]MH_SAM_APDU [21:38:26]CAPDU: 80 11 00 00 [21:38:26]Write to MH i2c: E2 08 00 67 1B 80 11 00 00 00 00 00 00 FC [21:38:26]Write i2c OK [21:38:26]MH_I2C_Read... [21:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:26]Read from MH i2c: E2 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 17 00 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 17 00 67 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 54 [21:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:38:26]wFMCommunicate OK [21:38:26]requested_item fd.num is exist - process it [21:38:26]SAM_PROTO_GetFieldsCounters [21:38:26]wFMCommunicate request_size=4 [21:38:26]MH_SAM_APDU [21:38:26]CAPDU: 80 13 00 00 [21:38:26]Write to MH i2c: E2 08 00 68 1B 80 13 00 00 00 00 00 00 FF [21:38:26]Write i2c OK [21:38:26]MH_I2C_Read... [21:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:26]Read from MH i2c: E2 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 62 00 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 62 00 68 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [21:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2C 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:26]wFMCommunicate OK [21:38:26]SAM_PROTO_GetFieldsCounters done [21:38:26]requested_item shift.num is exist - process it [21:38:26]requested_item shift.opened is exist - process it [21:38:26]req_shift_opened [21:38:26]FM_GetShiftState [21:38:26]SAM_PROTO_GetShiftState [21:38:26]wFMCommunicate request_size=4 [21:38:26]MH_SAM_APDU [21:38:26]CAPDU: 80 13 01 00 [21:38:26]Write to MH i2c: E2 08 00 69 1B 80 13 01 00 00 00 00 00 01 [21:38:26]Write i2c OK [21:38:26]MH_I2C_Read... [21:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:26]Read from MH i2c: E2 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 0E 00 [21:38:26]MH_I2C_Read... [21:38:26]Read from MH i2c: E2 0E 00 69 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 24 [21:38:26]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:38:26]wFMCommunicate OK [21:38:26]SAM_PROTO_GetShiftState done [21:38:26]FM_GetShiftState done [21:38:26]req_shift_opened done [21:38:26]requested_item shift.open_date is exist - process it [21:38:26]req_shift_open_date [21:38:26]req_shift_open_date done [21:38:26]produce_requested_data done [21:38:26]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39980,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:38:26]process_action_free close_receipt [21:38:26]json_value_free [21:38:26]json_value_free done [21:38:26]process_json_proto returns [21:38:26]Send response to host [21:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39980,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:38:26]free response buf [21:38:26]execute_script done [21:38:26]execute_script returns [21:38:26]free content buf [21:38:26]Sock 9.Close socket [21:38:26]Sock 9.Thread stoped [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45: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:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:58:56]accept exits with 8 [21:58:56]New connection [21:58:56]New thread 3067325796 created [21:58:56]Thread 3067182436 joined [21:58:56]Waiting for new connection... [21:58:56] Sock 8.Parse request [21:58:56]Sock 8.Check first char [21:58:56]Sock 8.First char is OK [21:58:56]request: POST /json_proto HTTP/1.0 [21:58:56]Method: POST [21:58:56]URL: /json_proto [21:58:56]Method is POST - this is cgi request [21:58:56]url: /json_proto [21:58:56]query_string will be loaded in cgi processing [21:58:56]execute_cgi json_proto POST (null) [21:58:56]execute_cgi path=json_proto method=POST [21:58:56]POST find Content-Length [21:58:56]Host: 172.17.36.199:8080 [21:58:56]Content-Length: 644 [21:58:56]Content-Type: application/json [21:58:56] [21:58:56]POST finish read [21:58:56]Found Content-Length = 644 [21:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176541", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:56]execute_script... [21:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176541", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:56]POST & json_proto [21:58:56]process_json_proto [21:58:56]json parsed OK: [21:58:56]protocol is kg_v1.0 [21:58:56]action value=close_receipt [21:58:56]process_action close_receipt [21:58:56]cmd_close_receipt [21:58:56]MH_GetDate [21:58:56]Write to MH i2c: F0 00 00 6A 1B 74 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: F0 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: F0 09 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: F0 09 00 6A 1B 00 A4 3C 5E 66 91 46 04 65 61 [21:58:56]GetLastDocTimeStamp 1717450706 [21:58:56]current date 1717451940 [21:58:56]FM_GetShiftState [21:58:56]SAM_PROTO_GetShiftState [21:58:56]wFMCommunicate request_size=4 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 13 01 00 [21:58:56]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 0E 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 26 [21:58:56]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:58:56]wFMCommunicate OK [21:58:56]SAM_PROTO_GetShiftState done [21:58:56]FM_GetShiftState done [21:58:56]opened in 1717373769 [21:58:56]opened+sec_in_day 1717460169 [21:58:56]quantity*price = 11500 [21:58:56]sum+1 = 11501 [21:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 99 03.06.2024 21:59 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39981 ФПД: 199851648074598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215900&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39981&fm=199851648074598&tin=02508201610067®Number=0000000000092680&sum=11500 0 [21:58:57]StoreToDocumentArchive [21:58:57]shift 376 fd 39981 [21:58:57]save to /storage/0376/doc_00039981 [21:58:57]save last doc name /storage/0376/doc_00039981 to /storage/kkm_last_doc_name [21:58:57]save OK [21:58:57]Clear old archive folders... [21:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:58:57]tlvbuf is B6F1C770 [21:58:57]SAM_PROTO_ClearQueue [21:58:57]wFMCommunicate request_size=4 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 09 00 00 [21:58:57]Write to MH i2c: E2 08 00 78 1B 80 09 00 00 00 00 00 00 05 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [21:58:57]RAPDU: 90 00 [21:58:57]wFMCommunicate OK [21:58:57]SAM_PROTO_ClearQueue done [21:58:57]KKMCreateOFDPacket [21:58:57]OFDProtocolAddRootSTLVToBuf [21:58:57]FM_MakeSignedData [21:58:57]FM_MakeSignedData [21:58:57]SAM_PROTO_SignData [21:58:57]wFMCommunicate request_size=4 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 0D 01 02 [21:58:57]Write to MH i2c: E2 08 00 79 1B 80 0D 01 02 00 00 00 00 0D [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [21:58:57]RAPDU: 90 00 [21:58:57]wFMCommunicate OK [21:58:57]wFMCommunicate request_size=255 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A4 3C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 [21:58:57]Write to MH i2c: E2 02 01 7A 1B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A4 3C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 00 00 CD [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [21:58:57]RAPDU: 90 00 [21:58:57]wFMCommunicate OK [21:58:57]wFMCommunicate request_size=39 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2D 9C 00 00 35 04 06 00 B5 C3 96 7D C3 66 [21:58:57]Write to MH i2c: E2 2A 00 7B 1B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2D 9C 00 00 35 04 06 00 B5 C3 96 7D C3 66 00 00 4D [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [21:58:57]RAPDU: 90 00 [21:58:57]wFMCommunicate OK [21:58:57]wFMCommunicate request_size=4 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 0D 03 02 [21:58:57]Write to MH i2c: E2 08 00 7C 1B 80 0D 03 02 00 00 00 00 12 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 0B 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 0B 00 7C 1B 00 A5 B6 AC F9 F1 B8 01 88 90 00 45 [21:58:57]RAPDU: A5 B6 AC F9 F1 B8 01 88 90 00 [21:58:57]wFMCommunicate OK [21:58:57]SAM_PROTO_SignData done [21:58:57]FM_MakeSignedData done [21:58:57]CreateOFDProtocolMessage [21:58:57]wFMCommunicate request_size=4 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 11 00 00 [21:58:57]Write to MH i2c: E2 08 00 7D 1B 80 11 00 00 00 00 00 00 12 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 17 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 17 00 7D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 6A [21:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:58:57]wFMCommunicate OK [21:58:57]CreateOFDProtocolMessage done [21:58:57]OFDSenderStorePacket 39981 [21:58:57]StoreOFDPacket docnum=39981 [21:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2C 01 00 00 37 63 24 01 36 36 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A4 3C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2D 9C 00 00 35 04 06 00 B5 C3 96 7D C3 66 A5 B6 AC F9 F1 B8 01 88 [21:58:57]CheckFolder [21:58:57]dirname=/storage/ofd_packets [21:58:57]CheckFolder done [21:58:57]ProducePacketName [21:58:57]name=ofd_packets/00039981 [21:58:57]NVStorageSaveData ofd_packets/00039981 [21:58:57]File name is /storage/ofd_packets/00039981 [21:58:57]Write 330 bytes [21:58:57]NVStorageSaveData done [21:58:57]OFDSenderStorePacket done [21:58:57]KKMCreateOFDPacket done [21:58:57]NVStorageSaveData kkm_last_timestamp [21:58:57]File name is /storage/kkm_last_timestamp [21:58:57]Write 4 bytes [21:58:57]NVStorageSaveData done [21:58:57]ExternCall_PrintAddStr [21:58:57]wPrintStart [21:58:57]Write to MH i2c: 01 00 00 7E 1B 99 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 07 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 07 00 7E 1B 00 00 00 00 00 FF 0F AE [21:58:57]RasterBufferAndPrint [21:58:57]line Счет N : (3)176541 [21:58:57]line ИНН: 02508201610067 [21:58:57]line Контрольно-Кассовый Чек [21:58:57]line ПРОДАЖА [21:58:57]line Товар: 2000036210013 [21:58:57]line Кофе Капучино (GABB TRADE) [21:58:57]line 1.000 * 115.00 [21:58:57]line = 115.00 [21:58:57]line НДС 12% НСП 1% [21:58:57]line > о реализуемом товаре [21:58:57]line ИТОГО: 115.00 [21:58:57]line НСП 1% : 1.02 [21:58:57]line НДС 12% : 12.21 [21:58:57]line Наличными: 115.00 [21:58:57]line Безнал.: 0.00 [21:58:57]line Место: АЗС № 63 "Партнер Нефть" [21:58:57]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [21:58:57]line СНО: Общий режим [21:58:57]line Чек 99 03.06.2024 21:59 [21:58:57]line Смена: 376 ФФД: 1.0 [21:58:57]line ЗНМ: 0300000037 [21:58:57]line РНМ: 0000000000092680 [21:58:57]line Версия ККМ: 001 [21:58:57]line ФМ: 0000000000874882 [21:58:57]line ФД: 39981 [21:58:57]line ФПД: 199851648074598 [21:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215900&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39981&fm=199851648074598&tin=02508201610067®Number=0000000000092680&sum=11500 [21:58:58]line 0 [21:58:58]OFD Sender: Processing packet 39981 [packets to send 5, broken 4] [21:58:58]ProducePacketName [21:58:58]name=ofd_packets/00039981 [21:58:58]OFD Sender: To server: pG, [21:58:58]CommunicateWithHost lk.salyk.kg:30040 [21:58:58]ConnectInit lk.salyk.kg [21:58:58]written 0, free lines is 4095 [21:58:58]Connected sock=10 [21:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2C 01 00 00 37 63 24 01 36 36 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A4 3C 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2D 9C 00 00 35 04 06 00 B5 C3 96 7D C3 66 A5 B6 AC F9 F1 B8 01 88 [21:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 88 53 47 00 6F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2D 9C 00 00 F4 03 04 00 4F E5 5D 66 B6 04 01 00 00 D3 D9 4A 1A 6D A2 CA 31 [21:58:58]CommunicateWithHost err = 0 [21:58:58]CheckOFDResponse [21:58:58]1017 (14) - 77093643461234 [21:58:58]1041 (16) - 0000000000874882 [21:58:58]1040 (4) - 39981 [21:58:58]1012 (4) - 03.06.2024 15:46 [21:58:58]1206 (1) - 0 [21:58:58]OFD Sender: Remove packet 39981 [21:58:58]ProducePacketName [21:58:58]name=ofd_packets/00039981 [21:58:58]NVStorageDeleteData [21:58:58]Write to MH i2c: 01 00 00 A6 1B C1 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: 01 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: 01 07 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 24 0D F9 [21:58:58]RasterBufferAndPrint [21:58:58]line [21:58:58]line [21:58:58]line [21:58:58]line [21:58:58]line [21:58:58]written 0, free lines is 3373 [21:58:58]MH_Cut [21:58:58]Write to MH i2c: D1 01 00 AD 1B 01 9A [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: D1 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: D1 01 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: D1 01 00 AD 1B 00 99 [21:58:58]Write to MH i2c: 01 00 00 AE 1B C9 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:59]OFD Sender: No OFD packet to send [21:58:59]*** Cut start [21:58:59]*** Partial cut [21:58:59]*** CUTSNS_PIN = 1 [21:58:59]*** CUTSNS_PIN = 0 [21:58:59]*** Brake cut motor [21:58:59]Read from MH i2c: 01 [21:58:59]MH_I2C_Read... [21:58:59]*** Stop cut motor [21:58:59]*** Cut end [21:58:59]Read from MH i2c: 01 07 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: 01 07 00 AE 1B 00 00 00 00 00 FF 0F DE [21:58:59]process_action close_receipt done [21:58:59]requested_data is exist [21:58:59]produce_requested_data [21:58:59]requested_item fm.sn is exist - process it [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 11 00 00 [21:58:59]Write to MH i2c: E2 08 00 AF 1B 80 11 00 00 00 00 00 00 44 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 AF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 9C [21:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [21:59:00]wFMCommunicate OK [21:59:00]requested_item fd.num is exist - process it [21:59:00]SAM_PROTO_GetFieldsCounters [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 13 00 00 [21:59:00]Write to MH i2c: E2 08 00 B0 1B 80 13 00 00 00 00 00 00 47 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 62 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 62 00 B0 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [21:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2D 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_GetFieldsCounters done [21:59:00]requested_item shift.num is exist - process it [21:59:00]requested_item shift.opened is exist - process it [21:59:00]req_shift_opened [21:59:00]FM_GetShiftState [21:59:00]SAM_PROTO_GetShiftState [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 13 01 00 [21:59:00]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0E 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6C [21:59:00]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_GetShiftState done [21:59:00]FM_GetShiftState done [21:59:00]req_shift_opened done [21:59:00]requested_item shift.open_date is exist - process it [21:59:00]req_shift_open_date [21:59:00]req_shift_open_date done [21:59:00]produce_requested_data done [21:59:00]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39981,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [21:59:00]process_action_free close_receipt [21:59:00]json_value_free [21:59:00]json_value_free done [21:59:00]process_json_proto returns [21:59:00]Send response to host [21:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39981,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [21:59:00]free response buf [21:59:00]execute_script done [21:59:00]execute_script returns [21:59:00]free content buf [21:59:00]Sock 8.Close socket [21:59:00]Sock 8.Thread stoped [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18: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:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]accept exits with 9 [22:22:25]New connection [22:22:25]New thread 3067182436 created [22:22:25]Thread 3067325796 joined [22:22:25]Waiting for new connection... [22:22:25] Sock 9.Parse request [22:22:25]Sock 9.Check first char [22:22:25]Sock 9.First char is OK [22:22:25]request: POST /json_proto HTTP/1.0 [22:22:25]Method: POST [22:22:25]URL: /json_proto [22:22:25]Method is POST - this is cgi request [22:22:25]url: /json_proto [22:22:25]query_string will be loaded in cgi processing [22:22:25]execute_cgi json_proto POST (null) [22:22:25]execute_cgi path=json_proto method=POST [22:22:25]POST find Content-Length [22:22:25]Host: 172.17.36.199:8080 [22:22:25]Content-Length: 798 [22:22:25]Content-Type: application/json [22:22:25] [22:22:25]POST finish read [22:22:25]Found Content-Length = 798 [22:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176542", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:25]execute_script... [22:22:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176542", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:25]POST & json_proto [22:22:25]process_json_proto [22:22:25]json parsed OK: [22:22:25]protocol is kg_v1.0 [22:22:25]action value=close_receipt [22:22:25]process_action close_receipt [22:22:25]cmd_close_receipt [22:22:25]MH_GetDate [22:22:25]Write to MH i2c: F0 00 00 B2 1B BC [22:22:25]Write i2c OK [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: F0 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: F0 09 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: F0 09 00 B2 1B 00 25 42 5E 66 91 46 04 65 30 [22:22:25]GetLastDocTimeStamp 1717451940 [22:22:25]current date 1717453349 [22:22:25]FM_GetShiftState [22:22:25]SAM_PROTO_GetShiftState [22:22:25]wFMCommunicate request_size=4 [22:22:25]MH_SAM_APDU [22:22:25]CAPDU: 80 13 01 00 [22:22:25]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [22:22:25]Write i2c OK [22:22:25]MH_I2C_Read... [22:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:25]Read from MH i2c: E2 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 0E 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 6E [22:22:25]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:22:25]wFMCommunicate OK [22:22:25]SAM_PROTO_GetShiftState done [22:22:25]FM_GetShiftState done [22:22:25]opened in 1717373769 [22:22:25]opened+sec_in_day 1717460169 [22:22:25]quantity*price = 14000 [22:22:25]sum+1 = 14001 [22:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 100 03.06.2024 22:22 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39982 ФПД: 268733015856734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222229&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39982&fm=268733015856734&tin=02508201610067®Number=0000000000092680&sum=14000 0 [22:22:26]StoreToDocumentArchive [22:22:26]shift 376 fd 39982 [22:22:26]save to /storage/0376/doc_00039982 [22:22:26]save last doc name /storage/0376/doc_00039982 to /storage/kkm_last_doc_name [22:22:26]save OK [22:22:26]Clear old archive folders... [22:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:22:26]tlvbuf is B6F1C380 [22:22:26]SAM_PROTO_ClearQueue [22:22:26]wFMCommunicate request_size=4 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 09 00 00 [22:22:26]Write to MH i2c: E2 08 00 C0 1B 80 09 00 00 00 00 00 00 4D [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [22:22:26]RAPDU: 90 00 [22:22:26]wFMCommunicate OK [22:22:26]SAM_PROTO_ClearQueue done [22:22:26]KKMCreateOFDPacket [22:22:26]OFDProtocolAddRootSTLVToBuf [22:22:26]FM_MakeSignedData [22:22:26]FM_MakeSignedData [22:22:26]SAM_PROTO_SignData [22:22:26]wFMCommunicate request_size=4 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 0D 01 02 [22:22:26]Write to MH i2c: E2 08 00 C1 1B 80 0D 01 02 00 00 00 00 55 [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [22:22:26]RAPDU: 90 00 [22:22:26]wFMCommunicate OK [22:22:26]wFMCommunicate request_size=255 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [22:22:26]Write to MH i2c: E2 02 01 C2 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 52 [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [22:22:26]RAPDU: 90 00 [22:22:26]wFMCommunicate OK [22:22:26]wFMCommunicate request_size=32 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 2E 9C 00 00 35 04 06 00 F4 69 47 F3 16 5E [22:22:26]Write to MH i2c: E2 23 00 C3 1B 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 2E 9C 00 00 35 04 06 00 F4 69 47 F3 16 5E 00 00 8F [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [22:22:26]RAPDU: 90 00 [22:22:26]wFMCommunicate OK [22:22:26]wFMCommunicate request_size=4 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 0D 03 02 [22:22:26]Write to MH i2c: E2 08 00 C4 1B 80 0D 03 02 00 00 00 00 5A [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 0B 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 0B 00 C4 1B 00 B5 3C CC 5D A3 F8 0E 44 90 00 62 [22:22:26]RAPDU: B5 3C CC 5D A3 F8 0E 44 90 00 [22:22:26]wFMCommunicate OK [22:22:26]SAM_PROTO_SignData done [22:22:26]FM_MakeSignedData done [22:22:26]CreateOFDProtocolMessage [22:22:26]wFMCommunicate request_size=4 [22:22:26]MH_SAM_APDU [22:22:26]CAPDU: 80 11 00 00 [22:22:26]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:26]Read from MH i2c: E2 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 17 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 B2 [22:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:22:26]wFMCommunicate OK [22:22:26]CreateOFDProtocolMessage done [22:22:26]OFDSenderStorePacket 39982 [22:22:26]StoreOFDPacket docnum=39982 [22:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 D5 AC 1D 01 E6 B0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2E 9C 00 00 35 04 06 00 F4 69 47 F3 16 5E B5 3C CC 5D A3 F8 0E 44 [22:22:26]CheckFolder [22:22:26]dirname=/storage/ofd_packets [22:22:26]CheckFolder done [22:22:26]ProducePacketName [22:22:26]name=ofd_packets/00039982 [22:22:26]NVStorageSaveData ofd_packets/00039982 [22:22:26]File name is /storage/ofd_packets/00039982 [22:22:26]Write 323 bytes [22:22:26]NVStorageSaveData done [22:22:26]OFDSenderStorePacket done [22:22:26]KKMCreateOFDPacket done [22:22:26]NVStorageSaveData kkm_last_timestamp [22:22:26]File name is /storage/kkm_last_timestamp [22:22:26]Write 4 bytes [22:22:26]NVStorageSaveData done [22:22:26]OFD Sender: Processing packet 39982 [packets to send 5, broken 4] [22:22:26]ProducePacketName [22:22:26]name=ofd_packets/00039982 [22:22:26]OFD Sender: To server: pG, [22:22:26]CommunicateWithHost lk.salyk.kg:30040 [22:22:26]ConnectInit lk.salyk.kg [22:22:26]ExternCall_PrintAddStr [22:22:26]wPrintStart [22:22:26]Write to MH i2c: 01 00 00 C6 1B E1 [22:22:26]Write i2c OK [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: 01 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: 01 07 00 [22:22:26]MH_I2C_Read... [22:22:26]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [22:22:26]RasterBufferAndPrint [22:22:26]line Счет N : (3)176542 [22:22:26]line ИНН: 02508201610067 [22:22:26]line Контрольно-Кассовый Чек [22:22:26]line ПРОДАЖА [22:22:26]line Товар: 48743570 [22:22:26]line Сигареты Winston XStyle Blue [22:22:26]line 1.000 * 140.00 [22:22:26]line = 140.00 [22:22:26]line НДС 12% НСП 1% [22:22:26]line > о реализуемом товаре [22:22:26]line ИТОГО: 140.00 [22:22:26]line НСП 1% : 1.24 [22:22:26]line НДС 12% : 14.87 [22:22:26]line Наличными: 0.00 [22:22:26]line Безнал.: 140.00 [22:22:26]line Место: АЗС № 63 "Партнер Нефть" [22:22:26]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:22:26]line СНО: Общий режим [22:22:26]line Чек 100 03.06.2024 22:22 [22:22:26]line Смена: 376 ФФД: 1.0 [22:22:26]line ЗНМ: 0300000037 [22:22:26]line РНМ: 0000000000092680 [22:22:26]line Версия ККМ: 001 [22:22:26]line Платежная система: Бакай Банк [22:22:26]line ФМ: 0000000000874882 [22:22:26]line ФД: 39982 [22:22:26]line ФПД: 268733015856734 [22:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222229&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39982&fm=268733015856734&tin=02508201610067®Number=0000000000092680&sum=14000 [22:22:27]line 0 [22:22:27]Connected sock=11 [22:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 D5 AC 1D 01 E6 B0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2E 9C 00 00 35 04 06 00 F4 69 47 F3 16 5E B5 3C CC 5D A3 F8 0E 44 [22:22:27]written 0, free lines is 4095 [22:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 0B FB 47 00 BB D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2E 9C 00 00 F4 03 04 00 D0 EA 5D 66 B6 04 01 00 00 8A 91 BC 82 C3 11 CF 9E [22:22:27]CommunicateWithHost err = 0 [22:22:27]CheckOFDResponse [22:22:27]1017 (14) - 77093643461234 [22:22:27]1041 (16) - 0000000000874882 [22:22:27]1040 (4) - 39982 [22:22:27]1012 (4) - 03.06.2024 16:09 [22:22:27]1206 (1) - 0 [22:22:27]OFD Sender: Remove packet 39982 [22:22:27]ProducePacketName [22:22:27]name=ofd_packets/00039982 [22:22:27]NVStorageDeleteData [22:22:27]Write to MH i2c: 01 00 00 F0 1B 0B [22:22:27]Write i2c OK [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: 01 [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: 01 07 00 [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 FD 0C 1B [22:22:27]RasterBufferAndPrint [22:22:27]line [22:22:27]line [22:22:27]line [22:22:27]line [22:22:27]line [22:22:27]written 0, free lines is 3331 [22:22:27]MH_Cut [22:22:27]Write to MH i2c: D1 01 00 F7 1B 01 E4 [22:22:27]Write i2c OK [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: D1 [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: D1 01 00 [22:22:27]MH_I2C_Read... [22:22:27]Read from MH i2c: D1 01 00 F7 1B 00 E3 [22:22:27]Write to MH i2c: 01 00 00 F8 1B 13 [22:22:27]Write i2c OK [22:22:27]MH_I2C_Read... [22:22:27]OFD Sender: No OFD packet to send [22:22:28]*** Cut start [22:22:28]*** Partial cut [22:22:28]*** CUTSNS_PIN = 1 [22:22:28]*** CUTSNS_PIN = 0 [22:22:28]*** Brake cut motor [22:22:28]Read from MH i2c: 01 [22:22:28]MH_I2C_Read... [22:22:28]*** Stop cut motor [22:22:28]*** Cut end [22:22:28]Read from MH i2c: 01 07 00 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 FF 0F 28 [22:22:28]process_action close_receipt done [22:22:28]requested_data is exist [22:22:28]produce_requested_data [22:22:28]requested_item fm.sn is exist - process it [22:22:28]wFMCommunicate request_size=4 [22:22:28]MH_SAM_APDU [22:22:28]CAPDU: 80 11 00 00 [22:22:28]Write to MH i2c: E2 08 00 F9 1B 80 11 00 00 00 00 00 00 8E [22:22:28]Write i2c OK [22:22:28]MH_I2C_Read... [22:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:28]Read from MH i2c: E2 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: E2 17 00 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: E2 17 00 F9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E6 [22:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:22:28]wFMCommunicate OK [22:22:28]requested_item fd.num is exist - process it [22:22:28]SAM_PROTO_GetFieldsCounters [22:22:28]wFMCommunicate request_size=4 [22:22:28]MH_SAM_APDU [22:22:28]CAPDU: 80 13 00 00 [22:22:28]Write to MH i2c: E2 08 00 FA 1B 80 13 00 00 00 00 00 00 91 [22:22:28]Write i2c OK [22:22:28]MH_I2C_Read... [22:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:29]Read from MH i2c: E2 [22:22:29]MH_I2C_Read... [22:22:29]Read from MH i2c: E2 62 00 [22:22:29]MH_I2C_Read... [22:22:29]Read from MH i2c: E2 62 00 FA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [22:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2E 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:29]wFMCommunicate OK [22:22:29]SAM_PROTO_GetFieldsCounters done [22:22:29]requested_item shift.num is exist - process it [22:22:29]requested_item shift.opened is exist - process it [22:22:29]req_shift_opened [22:22:29]FM_GetShiftState [22:22:29]SAM_PROTO_GetShiftState [22:22:29]wFMCommunicate request_size=4 [22:22:29]MH_SAM_APDU [22:22:29]CAPDU: 80 13 01 00 [22:22:29]Write to MH i2c: E2 08 00 FB 1B 80 13 01 00 00 00 00 00 93 [22:22:29]Write i2c OK [22:22:29]MH_I2C_Read... [22:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:29]Read from MH i2c: E2 [22:22:29]MH_I2C_Read... [22:22:29]Read from MH i2c: E2 0E 00 [22:22:29]MH_I2C_Read... [22:22:29]Read from MH i2c: E2 0E 00 FB 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B6 [22:22:29]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:22:29]wFMCommunicate OK [22:22:29]SAM_PROTO_GetShiftState done [22:22:29]FM_GetShiftState done [22:22:29]req_shift_opened done [22:22:29]requested_item shift.open_date is exist - process it [22:22:29]req_shift_open_date [22:22:29]req_shift_open_date done [22:22:29]produce_requested_data done [22:22:29]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39982,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:22:29]process_action_free close_receipt [22:22:29]json_value_free [22:22:29]json_value_free done [22:22:29]process_json_proto returns [22:22:29]Send response to host [22:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39982,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:22:29]free response buf [22:22:29]execute_script done [22:22:29]execute_script returns [22:22:29]free content buf [22:22:29]Sock 9.Close socket [22:22:29]Sock 9.Thread stoped [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:31]accept exits with 8 [22:23:31]New connection [22:23:31]New thread 3067325796 created [22:23:31]Thread 3067182436 joined [22:23:31]Waiting for new connection... [22:23:31] Sock 8.Parse request [22:23:31]Sock 8.Check first char [22:23:31]Sock 8.First char is OK [22:23:31]request: POST /json_proto HTTP/1.0 [22:23:31]Method: POST [22:23:31]URL: /json_proto [22:23:31]Method is POST - this is cgi request [22:23:31]url: /json_proto [22:23:31]query_string will be loaded in cgi processing [22:23:31]execute_cgi json_proto POST (null) [22:23:31]execute_cgi path=json_proto method=POST [22:23:31]POST find Content-Length [22:23:31]Host: 172.17.36.199:8080 [22:23:31]Content-Length: 1246 [22:23:31]Content-Type: application/json [22:23:31] [22:23:31]POST finish read [22:23:31]Found Content-Length = 1246 [22:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176543", "tax_sys" : 0, "items" : [ { "code": "2000039250010", "name": "\u0414\u043E\u043D\u0430\u0442 \u0433\u043B\u0430\u0437\u0443\u0440\u044C \u0448\u043E\u043A\u043E\u043B\u0430\u0434 55\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039240010", "name": "\u0414\u043E\u043D\u0430\u0442 \u0433\u043B\u0430\u0437\u0443\u0440\u044C \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 58\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:31]execute_script... [22: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 : (3)176543", "tax_sys" : 0, "items" : [ { "code": "2000039250010", "name": "\u0414\u043E\u043D\u0430\u0442 \u0433\u043B\u0430\u0437\u0443\u0440\u044C \u0448\u043E\u043A\u043E\u043B\u0430\u0434 55\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039240010", "name": "\u0414\u043E\u043D\u0430\u0442 \u0433\u043B\u0430\u0437\u0443\u0440\u044C \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 58\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:31]POST & json_proto [22:23:31]process_json_proto [22:23:31]json parsed OK: [22:23:31]protocol is kg_v1.0 [22:23:31]action value=close_receipt [22:23:31]process_action close_receipt [22:23:31]cmd_close_receipt [22:23:31]MH_GetDate [22:23:31]Write to MH i2c: F0 00 00 FC 1B 06 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 09 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 09 00 FC 1B 00 68 42 5E 66 91 46 04 65 BD [22:23:31]GetLastDocTimeStamp 1717453349 [22:23:31]current date 1717453416 [22:23:31]FM_GetShiftState [22:23:31]SAM_PROTO_GetShiftState [22:23:31]wFMCommunicate request_size=4 [22:23:31]MH_SAM_APDU [22:23:31]CAPDU: 80 13 01 00 [22:23:31]Write to MH i2c: E2 08 00 FD 1B 80 13 01 00 00 00 00 00 95 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:31]Read from MH i2c: E2 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0E 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0E 00 FD 1B 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 B8 [22:23:31]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:23:31]wFMCommunicate OK [22:23:31]SAM_PROTO_GetShiftState done [22:23:31]FM_GetShiftState done [22:23:31]opened in 1717373769 [22:23:31]opened+sec_in_day 1717460169 [22:23:31]quantity*price = 6900 [22:23:31]sum+1 = 6901 [22:23:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039240010 Донат глазурь клубника 58г 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 263.00 НСП 1% : 2.33 НДС 12% : 27.93 Наличными: 263.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 101 03.06.2024 22:23 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39983 ФПД: 10100496382142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222336&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39983&fm=10100496382142&tin=02508201610067®Number=0000000000092680&sum=26300 0 [22:23:32]StoreToDocumentArchive [22:23:32]shift 376 fd 39983 [22:23:32]save to /storage/0376/doc_00039983 [22:23:32]save last doc name /storage/0376/doc_00039983 to /storage/kkm_last_doc_name [22:23:32]save OK [22:23:32]Clear old archive folders... [22:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=518 [22:23:32]tlvbuf is 00E55A00 [22:23:32]SAM_PROTO_ClearQueue [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 09 00 00 [22:23:32]Write to MH i2c: E2 08 00 0A 1C 80 09 00 00 00 00 00 00 98 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]SAM_PROTO_ClearQueue done [22:23:32]KKMCreateOFDPacket [22:23:32]OFDProtocolAddRootSTLVToBuf [22:23:32]FM_MakeSignedData [22:23:32]FM_MakeSignedData [22:23:32]SAM_PROTO_SignData [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 0D 01 02 [22:23:32]Write to MH i2c: E2 08 00 0B 1C 80 0D 01 02 00 00 00 00 A0 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]OFD Sender: No OFD packet to send [22:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]wFMCommunicate request_size=255 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 33 39 32 35 30 30 31 30 06 04 2D 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 32 30 30 30 30 33 39 32 34 30 30 31 30 06 04 2F 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 35 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A [22:23:33]Write to MH i2c: E2 02 01 0C 1C 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 33 39 32 35 30 30 31 30 06 04 2D 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 32 30 30 30 30 33 39 32 34 30 30 31 30 06 04 2F 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 35 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 00 00 18 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [22:23:33]RAPDU: 90 00 [22:23:33]wFMCommunicate OK [22:23:33]wFMCommunicate request_size=255 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 0D 02 02 FA 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [22:23:33]Write to MH i2c: E2 02 01 0D 1C 80 0D 02 02 FA 00 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 60 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [22:23:33]RAPDU: 90 00 [22:23:33]wFMCommunicate OK [22:23:33]wFMCommunicate request_size=27 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 0D 02 02 16 34 38 38 32 10 04 04 00 2F 9C 00 00 35 04 06 00 09 2F B4 7F B8 BE [22:23:33]Write to MH i2c: E2 1E 00 0E 1C 80 0D 02 02 16 00 34 38 38 32 10 04 04 00 2F 9C 00 00 35 04 06 00 09 2F B4 7F B8 BE 00 00 A9 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [22:23:33]RAPDU: 90 00 [22:23:33]wFMCommunicate OK [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 0D 03 02 [22:23:33]Write to MH i2c: E2 08 00 0F 1C 80 0D 03 02 00 00 00 00 A6 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0B 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0B 00 0F 1C 00 39 BB 4B 35 7C 5A 39 93 90 00 BD [22:23:33]RAPDU: 39 BB 4B 35 7C 5A 39 93 90 00 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_SignData done [22:23:33]FM_MakeSignedData done [22:23:33]CreateOFDProtocolMessage [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 11 00 00 [22:23:33]Write to MH i2c: E2 08 00 10 1C 80 11 00 00 00 00 00 00 A6 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 10 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 FE [22:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:23:33]wFMCommunicate OK [22:23:33]CreateOFDProtocolMessage done [22:23:33]OFDSenderStorePacket 39983 [22:23:33]StoreOFDPacket docnum=39983 [22:23:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1A 02 00 00 6F 29 12 02 0B C8 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 33 39 32 35 30 30 31 30 06 04 2D 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 32 30 30 30 30 33 39 32 34 30 30 31 30 06 04 2F 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 35 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2F 9C 00 00 35 04 06 00 09 2F B4 7F B8 BE 39 BB 4B 35 7C 5A 39 93 [22:23:33]CheckFolder [22:23:33]dirname=/storage/ofd_packets [22:23:33]CheckFolder done [22:23:33]ProducePacketName [22:23:33]name=ofd_packets/00039983 [22:23:33]NVStorageSaveData ofd_packets/00039983 [22:23:33]File name is /storage/ofd_packets/00039983 [22:23:33]Write 568 bytes [22:23:33]NVStorageSaveData done [22:23:33]OFDSenderStorePacket done [22:23:33]KKMCreateOFDPacket done [22:23:33]NVStorageSaveData kkm_last_timestamp [22:23:33]File name is /storage/kkm_last_timestamp [22:23:33]Write 4 bytes [22:23:33]NVStorageSaveData done [22:23:33]ExternCall_PrintAddStr [22:23:33]wPrintStart [22:23:33]Write to MH i2c: 01 00 00 11 1C 2D [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 07 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [22:23:33]RasterBufferAndPrint [22:23:33]line Счет N : (3)176543 [22:23:33]line ИНН: 02508201610067 [22:23:33]line Контрольно-Кассовый Чек [22:23:33]line ПРОДАЖА [22:23:33]line Товар: 2000039250010 [22:23:33]line Донат глазурь шоколад 55г [22:23:33]line 1.000 * 69.00 [22:23:33]line = 69.00 [22:23:33]line НДС 12% НСП 1% [22:23:33]line > о реализуемом товаре [22:23:33]line Товар: 2000039240010 [22:23:33]line Донат глазурь клубника 58г [22:23:33]line 1.000 * 69.00 [22:23:33]line = 69.00 [22:23:33]line НДС 12% НСП 1% [22:23:33]line > о реализуемом товаре [22:23:33]line Товар: 2000036220012 [22:23:33]line Кофе Капучино XL(GABB TRADE) [22:23:33]line 1.000 * 125.00 [22:23:33]line = 125.00 [22:23:33]line НДС 12% НСП 1% [22:23:33]line > о реализуемом товаре [22:23:33]line ИТОГО: 263.00 [22:23:33]line НСП 1% : 2.33 [22:23:33]line НДС 12% : 27.93 [22:23:33]line Наличными: 263.00 [22:23:33]line Безнал.: 0.00 [22:23:33]line Место: АЗС № 63 "Партнер Нефть" [22:23:33]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:23:33]line СНО: Общий режим [22:23:33]line Чек 101 03.06.2024 22:23 [22:23:33]line Смена: 376 ФФД: 1.0 [22:23:33]line ЗНМ: 0300000037 [22:23:33]line РНМ: 0000000000092680 [22:23:33]line Версия ККМ: 001 [22:23:33]line ФМ: 0000000000874882 [22:23:33]line ФД: 39983 [22:23:33]line ФПД: 10100496382142 [22:23:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222336&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39983&fm=10100496382142&tin=02508201610067®Number=0000000000092680&sum=26300 [22:23:33]line 0 [22:23:33]written 0, free lines is 4095 [22:23:33]OFD Sender: Processing packet 39983 [packets to send 5, broken 4] [22:23:33]ProducePacketName [22:23:33]name=ofd_packets/00039983 [22:23:33]OFD Sender: To server: pG, [22:23:33]CommunicateWithHost lk.salyk.kg:30040 [22:23:33]ConnectInit lk.salyk.kg [22:23:34]Connected sock=10 [22:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 1A 02 00 00 6F 29 12 02 0B C8 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 33 39 32 35 30 30 31 30 06 04 2D 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 32 30 30 30 30 33 39 32 34 30 30 31 30 06 04 2F 00 D0 94 D0 BE D0 BD D0 B0 D1 82 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 35 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 42 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2F 9C 00 00 35 04 06 00 09 2F B4 7F B8 BE 39 BB 4B 35 7C 5A 39 93 [22:23:34]Write to MH i2c: 01 00 00 46 1C 62 [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: 01 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: 01 07 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: 01 07 00 46 1C 00 00 00 00 00 85 0C FA [22:23:34]RasterBufferAndPrint [22:23:34]line [22:23:34]line [22:23:34]line [22:23:34]line [22:23:34]line [22:23:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 1D 2D 47 00 3E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 2F 9C 00 00 F4 03 04 00 13 EB 5D 66 B6 04 01 00 00 6D 64 95 AA 68 EE 50 B1 [22:23:34]CommunicateWithHost err = 0 [22:23:34]CheckOFDResponse [22:23:34]1017 (14) - 77093643461234 [22:23:34]1041 (16) - 0000000000874882 [22:23:34]1040 (4) - 39983 [22:23:34]1012 (4) - 03.06.2024 16:10 [22:23:34]1206 (1) - 0 [22:23:34]OFD Sender: Remove packet 39983 [22:23:34]ProducePacketName [22:23:34]name=ofd_packets/00039983 [22:23:34]NVStorageDeleteData [22:23:34]written 0, free lines is 3214 [22:23:34]MH_Cut [22:23:34]Write to MH i2c: D1 01 00 4D 1C 01 3B [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: D1 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: D1 01 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: D1 01 00 4D 1C 00 3A [22:23:34]Write to MH i2c: 01 00 00 4E 1C 6A [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:35]OFD Sender: No OFD packet to send [22:23:35]*** Cut start [22:23:35]*** Partial cut [22:23:35]*** CUTSNS_PIN = 1 [22:23:35]*** CUTSNS_PIN = 0 [22:23:35]*** Brake cut motor [22:23:35]Read from MH i2c: 01 [22:23:35]MH_I2C_Read... [22:23:35]*** Stop cut motor [22:23:35]*** Cut end [22:23:35]Read from MH i2c: 01 07 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: 01 07 00 4E 1C 00 00 00 00 00 FF 0F 7F [22:23:35]process_action close_receipt done [22:23:35]requested_data is exist [22:23:35]produce_requested_data [22:23:35]requested_item fm.sn is exist - process it [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 11 00 00 [22:23:35]Write to MH i2c: E2 08 00 4F 1C 80 11 00 00 00 00 00 00 E5 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 17 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 17 00 4F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 3D [22:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:23:35]wFMCommunicate OK [22:23:35]requested_item fd.num is exist - process it [22:23:35]SAM_PROTO_GetFieldsCounters [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 13 00 00 [22:23:35]Write to MH i2c: E2 08 00 50 1C 80 13 00 00 00 00 00 00 E8 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 62 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 62 00 50 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 2F 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_GetFieldsCounters done [22:23:36]requested_item shift.num is exist - process it [22:23:36]requested_item shift.opened is exist - process it [22:23:36]req_shift_opened [22:23:36]FM_GetShiftState [22:23:36]SAM_PROTO_GetShiftState [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 13 01 00 [22:23:36]Write to MH i2c: E2 08 00 51 1C 80 13 01 00 00 00 00 00 EA [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0E 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0E 00 51 1C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 0D [22:23:36]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_GetShiftState done [22:23:36]FM_GetShiftState done [22:23:36]req_shift_opened done [22:23:36]requested_item shift.open_date is exist - process it [22:23:36]req_shift_open_date [22:23:36]req_shift_open_date done [22:23:36]produce_requested_data done [22:23:36]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39983,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:23:36]process_action_free close_receipt [22:23:36]json_value_free [22:23:36]json_value_free done [22:23:36]process_json_proto returns [22:23:36]Send response to host [22:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39983,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:23:36]free response buf [22:23:36]execute_script done [22:23:36]execute_script returns [22:23:36]free content buf [22:23:36]Sock 8.Close socket [22:23:36]Sock 8.Thread stoped [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:29:57]accept exits with 9 [22:29:57]New connection [22:29:57]New thread 3067182436 created [22:29:57]Thread 3067325796 joined [22:29:57]Waiting for new connection... [22:29:57] Sock 9.Parse request [22:29:57]Sock 9.Check first char [22:29:57]Sock 9.First char is OK [22:29:57]request: POST /json_proto HTTP/1.0 [22:29:57]Method: POST [22:29:57]URL: /json_proto [22:29:57]Method is POST - this is cgi request [22:29:57]url: /json_proto [22:29:57]query_string will be loaded in cgi processing [22:29:57]execute_cgi json_proto POST (null) [22:29:57]execute_cgi path=json_proto method=POST [22:29:57]POST find Content-Length [22:29:57]Host: 172.17.36.199:8080 [22:29:57]Content-Length: 1132 [22:29:57]Content-Type: application/json [22:29:57] [22:29:57]POST finish read [22:29:57]Found Content-Length = 1132 [22:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176544", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:57]execute_script... [22:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176544", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:57]POST & json_proto [22:29:57]process_json_proto [22:29:57]json parsed OK: [22:29:57]protocol is kg_v1.0 [22:29:57]action value=close_receipt [22:29:57]process_action close_receipt [22:29:57]cmd_close_receipt [22:29:57]MH_GetDate [22:29:57]Write to MH i2c: F0 00 00 52 1C 5D [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 09 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 09 00 52 1C 00 EA 43 5E 66 91 46 04 65 97 [22:29:57]GetLastDocTimeStamp 1717453416 [22:29:57]current date 1717453802 [22:29:57]FM_GetShiftState [22:29:57]SAM_PROTO_GetShiftState [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 13 01 00 [22:29:57]Write to MH i2c: E2 08 00 53 1C 80 13 01 00 00 00 00 00 EC [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0E 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0E 00 53 1C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 0F [22:29:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:29:57]wFMCommunicate OK [22:29:57]SAM_PROTO_GetShiftState done [22:29:57]FM_GetShiftState done [22:29:57]opened in 1717373769 [22:29:57]opened+sec_in_day 1717460169 [22:29:57]quantity*price = 12000 [22:29:57]sum+1 = 12001 [22:29:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.74 НДС 12% : 69.02 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 102 03.06.2024 22:30 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39984 ФПД: 233028308444548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223002&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39984&fm=233028308444548&tin=02508201610067®Number=0000000000092680&sum=65000 0 [22:29:58]StoreToDocumentArchive [22:29:58]shift 376 fd 39984 [22:29:58]save to /storage/0376/doc_00039984 [22:29:58]save last doc name /storage/0376/doc_00039984 to /storage/kkm_last_doc_name [22:29:58]save OK [22:29:58]Clear old archive folders... [22:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=489 [22:29:58]tlvbuf is 00E68840 [22:29:58]SAM_PROTO_ClearQueue [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 09 00 00 [22:29:58]Write to MH i2c: E2 08 00 60 1C 80 09 00 00 00 00 00 00 EE [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:58]Read from MH i2c: E2 03 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 60 1C 00 90 00 F0 [22:29:58]RAPDU: 90 00 [22:29:58]wFMCommunicate OK [22:29:58]SAM_PROTO_ClearQueue done [22:29:58]KKMCreateOFDPacket [22:29:58]OFDProtocolAddRootSTLVToBuf [22:29:58]FM_MakeSignedData [22:29:58]FM_MakeSignedData [22:29:58]SAM_PROTO_SignData [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 0D 01 02 [22:29:58]Write to MH i2c: E2 08 00 61 1C 80 0D 01 02 00 00 00 00 F6 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 61 1C 00 90 00 F1 [22:29:58]RAPDU: 90 00 [22:29:58]wFMCommunicate OK [22:29:58]wFMCommunicate request_size=255 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 [22:29:58]Write to MH i2c: E2 02 01 62 1C 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 00 00 63 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 62 1C 00 90 00 F2 [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]wFMCommunicate request_size=248 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 02 02 F3 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 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 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 66 00 00 00 F4 03 04 00 EA 43 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 30 9C 00 00 35 04 06 00 D3 F0 21 8C 25 84 [22:29:59]Write to MH i2c: E2 FB 00 63 1C 80 0D 02 02 F3 00 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 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 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 66 00 00 00 F4 03 04 00 EA 43 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 30 9C 00 00 35 04 06 00 D3 F0 21 8C 25 84 00 00 4E [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 03 02 [22:29:59]Write to MH i2c: E2 08 00 64 1C 80 0D 03 02 00 00 00 00 FB [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0B 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0B 00 64 1C 00 33 A0 7A F0 72 81 57 BE 90 00 41 [22:29:59]RAPDU: 33 A0 7A F0 72 81 57 BE 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_SignData done [22:29:59]FM_MakeSignedData done [22:29:59]CreateOFDProtocolMessage [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 11 00 00 [22:29:59]Write to MH i2c: E2 08 00 65 1C 80 11 00 00 00 00 00 00 FB [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 65 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 53 [22:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:29:59]wFMCommunicate OK [22:29:59]CreateOFDProtocolMessage done [22:29:59]OFDSenderStorePacket 39984 [22:29:59]StoreOFDPacket docnum=39984 [22:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 FD 01 00 00 54 1D F5 01 18 29 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 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 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 66 00 00 00 F4 03 04 00 EA 43 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 30 9C 00 00 35 04 06 00 D3 F0 21 8C 25 84 33 A0 7A F0 72 81 57 BE [22:29:59]CheckFolder [22:29:59]dirname=/storage/ofd_packets [22:29:59]CheckFolder done [22:29:59]ProducePacketName [22:29:59]name=ofd_packets/00039984 [22:29:59]NVStorageSaveData ofd_packets/00039984 [22:29:59]File name is /storage/ofd_packets/00039984 [22:29:59]Write 539 bytes [22:29:59]NVStorageSaveData done [22:29:59]OFDSenderStorePacket done [22:29:59]KKMCreateOFDPacket done [22:29:59]NVStorageSaveData kkm_last_timestamp [22:29:59]File name is /storage/kkm_last_timestamp [22:29:59]Write 4 bytes [22:29:59]NVStorageSaveData done [22:29:59]ExternCall_PrintAddStr [22:29:59]wPrintStart [22:29:59]Write to MH i2c: 01 00 00 66 1C 82 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 66 1C 00 00 00 00 00 FF 0F 97 [22:29:59]RasterBufferAndPrint [22:29:59]line Счет N : (3)176544 [22:29:59]line ИНН: 02508201610067 [22:29:59]line Контрольно-Кассовый Чек [22:29:59]line ПРОДАЖА [22:29:59]line Товар: 2000032780025 [22:29:59]line Сосиска в тесте DC 110г [22:29:59]line 2.000 * 60.00 [22:29:59]line = 120.00 [22:29:59]line НДС 12% НСП 1% [22:29:59]line > о реализуемом товаре [22:29:59]line Товар: 2000036240010 [22:29:59]line Кофе Латте (GABB TRADE) [22:29:59]line 2.000 * 115.00 [22:29:59]line = 230.00 [22:29:59]line НДС 12% НСП 1% [22:29:59]line > о реализуемом товаре [22:29:59]line Товар: 48747073 [22:29:59]line Сигареты Richmond Royal Edition [22:29:59]line 2.000 * 150.00 [22:29:59]line = 300.00 [22:29:59]line НДС 12% НСП 1% [22:29:59]line > о реализуемом товаре [22:29:59]line ИТОГО: 650.00 [22:29:59]line НСП 1% : 5.74 [22:29:59]line НДС 12% : 69.02 [22:29:59]line Наличными: 650.00 [22:29:59]line Безнал.: 0.00 [22:29:59]line Место: АЗС № 63 "Партнер Нефть" [22:29:59]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:29:59]line СНО: Общий режим [22:29:59]line Чек 102 03.06.2024 22:30 [22:29:59]line Смена: 376 ФФД: 1.0 [22:29:59]line ЗНМ: 0300000037 [22:29:59]line РНМ: 0000000000092680 [22:29:59]line Версия ККМ: 001 [22:29:59]line ФМ: 0000000000874882 [22:29:59]line ФД: 39984 [22:29:59]line ФПД: 233028308444548 [22:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223002&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39984&fm=233028308444548&tin=02508201610067®Number=0000000000092680&sum=65000 [22:29:59]line 0 [22:29:59]written 0, free lines is 4095 [22:29:59]OFD Sender: Processing packet 39984 [packets to send 5, broken 4] [22:29:59]ProducePacketName [22:29:59]name=ofd_packets/00039984 [22:29:59]OFD Sender: To server: pG, [22:29:59]CommunicateWithHost lk.salyk.kg:30040 [22:29:59]ConnectInit lk.salyk.kg [22:29:59]Connected sock=10 [22:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 FD 01 00 00 54 1D F5 01 18 29 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 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 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 66 00 00 00 F4 03 04 00 EA 43 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 30 9C 00 00 35 04 06 00 D3 F0 21 8C 25 84 33 A0 7A F0 72 81 57 BE [22:30:00]Write to MH i2c: 01 00 00 9B 1C B7 [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 07 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 70 0C 3A [22:30:00]RasterBufferAndPrint [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]written 0, free lines is 3193 [22:30:00]MH_Cut [22:30:00]Write to MH i2c: D1 01 00 A2 1C 01 90 [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: D1 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: D1 01 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: D1 01 00 A2 1C 00 8F [22:30:00]Write to MH i2c: 01 00 00 A3 1C BF [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 86 0B 47 00 D9 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 30 9C 00 00 F4 03 04 00 95 EC 5D 66 B6 04 01 00 00 88 EF B8 01 6E 8E 91 B0 [22:30:00]CommunicateWithHost err = 0 [22:30:00]CheckOFDResponse [22:30:00]1017 (14) - 77093643461234 [22:30:00]1041 (16) - 0000000000874882 [22:30:00]1040 (4) - 39984 [22:30:00]1012 (4) - 03.06.2024 16:17 [22:30:00]1206 (1) - 0 [22:30:00]OFD Sender: Remove packet 39984 [22:30:00]ProducePacketName [22:30:00]name=ofd_packets/00039984 [22:30:00]NVStorageDeleteData [22:30:00]OFD Sender: No OFD packet to send [22:30:01]*** Cut start [22:30:01]*** Partial cut [22:30:01]*** CUTSNS_PIN = 1 [22:30:01]*** CUTSNS_PIN = 0 [22:30:01]*** Brake cut motor [22:30:01]Read from MH i2c: 01 [22:30:01]MH_I2C_Read... [22:30:01]*** Stop cut motor [22:30:01]*** Cut end [22:30:01]Read from MH i2c: 01 07 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 07 00 A3 1C 00 00 00 00 00 FF 0F D4 [22:30:01]process_action close_receipt done [22:30:01]requested_data is exist [22:30:01]produce_requested_data [22:30:01]requested_item fm.sn is exist - process it [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 11 00 00 [22:30:01]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 17 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 92 [22:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:30:01]wFMCommunicate OK [22:30:01]requested_item fd.num is exist - process it [22:30:01]SAM_PROTO_GetFieldsCounters [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 13 00 00 [22:30:01]Write to MH i2c: E2 08 00 A5 1C 80 13 00 00 00 00 00 00 3D [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 62 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 62 00 A5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 30 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [22:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 30 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:01]wFMCommunicate OK [22:30:01]SAM_PROTO_GetFieldsCounters done [22:30:01]requested_item shift.num is exist - process it [22:30:01]requested_item shift.opened is exist - process it [22:30:01]req_shift_opened [22:30:01]FM_GetShiftState [22:30:01]SAM_PROTO_GetShiftState [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 13 01 00 [22:30:01]Write to MH i2c: E2 08 00 A6 1C 80 13 01 00 00 00 00 00 3F [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:02]Read from MH i2c: E2 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 0E 00 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 0E 00 A6 1C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 62 [22:30:02]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:30:02]wFMCommunicate OK [22:30:02]SAM_PROTO_GetShiftState done [22:30:02]FM_GetShiftState done [22:30:02]req_shift_opened done [22:30:02]requested_item shift.open_date is exist - process it [22:30:02]req_shift_open_date [22:30:02]req_shift_open_date done [22:30:02]produce_requested_data done [22:30:02]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39984,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:30:02]process_action_free close_receipt [22:30:02]json_value_free [22:30:02]json_value_free done [22:30:02]process_json_proto returns [22:30:02]Send response to host [22:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39984,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:30:02]free response buf [22:30:02]execute_script done [22:30:02]execute_script returns [22:30:02]free content buf [22:30:02]Sock 9.Close socket [22:30:02]Sock 9.Thread stoped [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:37]accept exits with 8 [22:34:37]New connection [22:34:37]New thread 3067325796 created [22:34:37]Thread 3067182436 joined [22:34:37]Waiting for new connection... [22:34:37] Sock 8.Parse request [22:34:37]Sock 8.Check first char [22:34:37]Sock 8.First char is OK [22:34:37]request: POST /json_proto HTTP/1.0 [22:34:37]Method: POST [22:34:37]URL: /json_proto [22:34:37]Method is POST - this is cgi request [22:34:37]url: /json_proto [22:34:37]query_string will be loaded in cgi processing [22:34:37]execute_cgi json_proto POST (null) [22:34:37]execute_cgi path=json_proto method=POST [22:34:37]POST find Content-Length [22:34:37]Host: 172.17.36.199:8080 [22:34:37]Content-Length: 2085 [22:34:37]Content-Type: application/json [22:34:37] [22:34:37]POST finish read [22:34:37]Found Content-Length = 2085 [22:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176545", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441018161", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u041A\u0440\u0430\u0431 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 495.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:37]execute_script... [22:34: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 : (3)176545", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441018161", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u041A\u0440\u0430\u0431 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 495.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:37]POST & json_proto [22:34:37]process_json_proto [22:34:37]json parsed OK: [22:34:37]protocol is kg_v1.0 [22:34:37]action value=close_receipt [22:34:37]process_action close_receipt [22:34:37]cmd_close_receipt [22:34:37]MH_GetDate [22:34:37]Write to MH i2c: F0 00 00 A7 1C B2 [22:34:37]Write i2c OK [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 09 00 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 09 00 A7 1C 00 02 45 5E 66 91 46 04 65 06 [22:34:37]GetLastDocTimeStamp 1717453802 [22:34:37]current date 1717454082 [22:34:37]FM_GetShiftState [22:34:37]SAM_PROTO_GetShiftState [22:34:37]wFMCommunicate request_size=4 [22:34:37]MH_SAM_APDU [22:34:37]CAPDU: 80 13 01 00 [22:34:37]Write to MH i2c: E2 08 00 A8 1C 80 13 01 00 00 00 00 00 41 [22:34:37]Write i2c OK [22:34:37]MH_I2C_Read... [22:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:37]Read from MH i2c: E2 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: E2 0E 00 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: E2 0E 00 A8 1C 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 64 [22:34:37]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:34:37]wFMCommunicate OK [22:34:37]SAM_PROTO_GetShiftState done [22:34:37]FM_GetShiftState done [22:34:37]opened in 1717373769 [22:34:37]opened+sec_in_day 1717460169 [22:34:37]quantity*price = 5000 [22:34:37]sum+1 = 5001 [22:34:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681376 ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441018161 Чипсы FRY`S Краб 1/70 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209744502 Сухарики Флинт Сыр 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 4.000 * 15.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039210050 АКЦИЯ Френч-дог Sib говяжья 180г 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 495.00 НСП 1% : 4.38 НДС 12% : 52.57 Наличными: 495.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 103 03.06.2024 22:34 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39985 ФПД: 218897701745090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223442&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39985&fm=218897701745090&tin=02508201610067®Number=0000000000092680&sum=49500 0 [22:34:39]StoreToDocumentArchive [22:34:39]shift 376 fd 39985 [22:34:39]save to /storage/0376/doc_00039985 [22:34:39]save last doc name /storage/0376/doc_00039985 to /storage/kkm_last_doc_name [22:34:39]save OK [22:34:39]Clear old archive folders... [22:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=857 [22:34:39]tlvbuf is 00E06CC0 [22:34:39]SAM_PROTO_ClearQueue [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 09 00 00 [22:34:39]Write to MH i2c: E2 08 00 B5 1C 80 09 00 00 00 00 00 00 43 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]SAM_PROTO_ClearQueue done [22:34:39]KKMCreateOFDPacket [22:34:39]OFDProtocolAddRootSTLVToBuf [22:34:39]FM_MakeSignedData [22:34:39]FM_MakeSignedData [22:34:39]SAM_PROTO_SignData [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 01 02 [22:34:39]Write to MH i2c: E2 08 00 B6 1C 80 0D 01 02 00 00 00 00 4B [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=255 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 FA 03 00 59 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 [22:34:39]Write to MH i2c: E2 02 01 B7 1C 80 0D 02 02 FA 00 03 00 59 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 00 00 3F [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=255 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 FA 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD [22:34:39]Write to MH i2c: E2 02 01 B8 1C 80 0D 02 02 FA 00 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD 00 00 EF [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=255 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 FA D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 [22:34:39]Write to MH i2c: E2 02 01 B9 1C 80 0D 02 02 FA 00 D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 00 00 A4 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=116 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 6F 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 02 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 31 9C 00 00 35 04 06 00 C7 16 17 C1 31 C2 [22:34:39]Write to MH i2c: E2 77 00 BA 1C 80 0D 02 02 6F 00 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 02 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 31 9C 00 00 35 04 06 00 C7 16 17 C1 31 C2 00 00 DF [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 03 02 [22:34:40]Write to MH i2c: E2 08 00 BB 1C 80 0D 03 02 00 00 00 00 52 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 BB 1C 00 60 35 24 38 63 00 C3 F1 90 00 5B [22:34:40]RAPDU: 60 35 24 38 63 00 C3 F1 90 00 [22:34:40]wFMCommunicate OK [22:34:40]SAM_PROTO_SignData done [22:34:40]FM_MakeSignedData done [22:34:40]CreateOFDProtocolMessage [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 11 00 00 [22:34:40]Write to MH i2c: E2 08 00 BC 1C 80 11 00 00 00 00 00 00 52 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 17 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 17 00 BC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 AA [22:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:34:40]wFMCommunicate OK [22:34:40]CreateOFDProtocolMessage done [22:34:40]OFDSenderStorePacket 39985 [22:34:40]StoreOFDPacket docnum=39985 [22:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 6D 03 00 00 B5 A4 65 03 FF 43 5A 03 01 00 03 00 59 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 02 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 31 9C 00 00 35 04 06 00 C7 16 17 C1 31 C2 60 35 24 38 63 00 C3 F1 [22:34:40]CheckFolder [22:34:40]dirname=/storage/ofd_packets [22:34:40]CheckFolder done [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00039985 [22:34:40]NVStorageSaveData ofd_packets/00039985 [22:34:40]File name is /storage/ofd_packets/00039985 [22:34:40]Write 907 bytes [22:34:40]NVStorageSaveData done [22:34:40]OFDSenderStorePacket done [22:34:40]KKMCreateOFDPacket done [22:34:40]NVStorageSaveData kkm_last_timestamp [22:34:40]File name is /storage/kkm_last_timestamp [22:34:40]Write 4 bytes [22:34:40]NVStorageSaveData done [22:34:40]ExternCall_PrintAddStr [22:34:40]wPrintStart [22:34:40]Write to MH i2c: 01 00 00 BD 1C D9 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 FF 0F EE [22:34:40]RasterBufferAndPrint [22:34:40]line Счет N : (3)176545 [22:34:40]line ИНН: 02508201610067 [22:34:40]line Контрольно-Кассовый Чек [22:34:40]line ПРОДАЖА [22:34:40]line Товар: 5449000005489 [22:34:40]line Вода Бонаква 1л б/г [22:34:40]line 1.000 * 50.00 [22:34:40]line = 50.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line Товар: 4870235681376 [22:34:40]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [22:34:40]line 1.000 * 95.00 [22:34:40]line = 95.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line Товар: 4602441018161 [22:34:40]line Чипсы FRY`S Краб 1/70 [22:34:40]line 1.000 * 90.00 [22:34:40]line = 90.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line Товар: 4870209744502 [22:34:40]line Сухарики Флинт Сыр 100 гр [22:34:40]line 1.000 * 60.00 [22:34:40]line = 60.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line Товар: 4700000160013 [22:34:40]line Снек Курут индивидуальный [22:34:40]line 4.000 * 15.00 [22:34:40]line = 60.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line Товар: 2000039210050 [22:34:40]line АКЦИЯ Френч-дог Sib говяжья 180г [22:34:40]line 1.000 * 140.00 [22:34:40]line = 140.00 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line ИТОГО: 495.00 [22:34:40]line НСП 1% : 4.38 [22:34:40]line НДС 12% : 52.57 [22:34:40]line Наличными: 495.00 [22:34:40]line Безнал.: 0.00 [22:34:40]line Место: АЗС № 63 "Партнер Нефть" [22:34:40]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:34:40]line СНО: Общий режим [22:34:40]line Чек 103 03.06.2024 22:34 [22:34:40]line Смена: 376 ФФД: 1.0 [22:34:40]line ЗНМ: 0300000037 [22:34:40]line РНМ: 0000000000092680 [22:34:40]line Версия ККМ: 001 [22:34:40]line ФМ: 0000000000874882 [22:34:40]line ФД: 39985 [22:34:40]line ФПД: 218897701745090 [22:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223442&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39985&fm=218897701745090&tin=02508201610067®Number=0000000000092680&sum=49500 [22:34:40]line 0 [22:34:40]OFD Sender: Processing packet 39985 [packets to send 5, broken 4] [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00039985 [22:34:40]OFD Sender: To server: pG, [22:34:40]CommunicateWithHost lk.salyk.kg:30040 [22:34:40]ConnectInit lk.salyk.kg [22:34:40]written 0, free lines is 4095 [22:34:40]Connected sock=10 [22:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 6D 03 00 00 B5 A4 65 03 FF 43 5A 03 01 00 03 00 59 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 02 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 31 9C 00 00 35 04 06 00 C7 16 17 C1 31 C2 60 35 24 38 63 00 C3 F1 [22:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 7D 17 47 00 1C 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 31 9C 00 00 F4 03 04 00 AE ED 5D 66 B6 04 01 00 00 65 1B CE C3 23 FA E7 B8 [22:34:40]CommunicateWithHost err = 0 [22:34:40]CheckOFDResponse [22:34:40]1017 (14) - 77093643461234 [22:34:40]1041 (16) - 0000000000874882 [22:34:40]1040 (4) - 39985 [22:34:40]1012 (4) - 03.06.2024 16:22 [22:34:40]1206 (1) - 0 [22:34:40]OFD Sender: Remove packet 39985 [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00039985 [22:34:40]NVStorageDeleteData [22:34:41]Write to MH i2c: 01 00 00 05 1D 22 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 05 1D 00 00 00 00 00 B3 0B E7 [22:34:41]RasterBufferAndPrint [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]written 0, free lines is 3007 [22:34:41]MH_Cut [22:34:41]Write to MH i2c: D1 01 00 0C 1D 01 FB [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 0C 1D 00 FA [22:34:41]Write to MH i2c: 01 00 00 0D 1D 2A [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]OFD Sender: No OFD packet to send [22:34:42]*** Cut start [22:34:42]*** Partial cut [22:34:42]*** CUTSNS_PIN = 1 [22:34:42]*** CUTSNS_PIN = 0 [22:34:42]*** Brake cut motor [22:34:42]Read from MH i2c: 01 [22:34:42]MH_I2C_Read... [22:34:42]*** Stop cut motor [22:34:42]*** Cut end [22:34:42]Read from MH i2c: 01 07 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: 01 07 00 0D 1D 00 00 00 00 00 FF 0F 3F [22:34:42]process_action close_receipt done [22:34:42]requested_data is exist [22:34:42]produce_requested_data [22:34:42]requested_item fm.sn is exist - process it [22:34:42]wFMCommunicate request_size=4 [22:34:42]MH_SAM_APDU [22:34:42]CAPDU: 80 11 00 00 [22:34:42]Write to MH i2c: E2 08 00 0E 1D 80 11 00 00 00 00 00 00 A5 [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:42]Read from MH i2c: E2 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 17 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 17 00 0E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 FD [22:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:34:42]wFMCommunicate OK [22:34:42]requested_item fd.num is exist - process it [22:34:42]SAM_PROTO_GetFieldsCounters [22:34:42]wFMCommunicate request_size=4 [22:34:42]MH_SAM_APDU [22:34:42]CAPDU: 80 13 00 00 [22:34:42]Write to MH i2c: E2 08 00 0F 1D 80 13 00 00 00 00 00 00 A8 [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:43]Read from MH i2c: E2 [22:34:43]MH_I2C_Read... [22:34:43]Read from MH i2c: E2 62 00 [22:34:43]MH_I2C_Read... [22:34:43]Read from MH i2c: E2 62 00 0F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 31 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 31 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:43]wFMCommunicate OK [22:34:43]SAM_PROTO_GetFieldsCounters done [22:34:43]requested_item shift.num is exist - process it [22:34:43]requested_item shift.opened is exist - process it [22:34:43]req_shift_opened [22:34:43]FM_GetShiftState [22:34:43]SAM_PROTO_GetShiftState [22:34:43]wFMCommunicate request_size=4 [22:34:43]MH_SAM_APDU [22:34:43]CAPDU: 80 13 01 00 [22:34:43]Write to MH i2c: E2 08 00 10 1D 80 13 01 00 00 00 00 00 AA [22:34:43]Write i2c OK [22:34:43]MH_I2C_Read... [22:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:43]Read from MH i2c: E2 [22:34:43]MH_I2C_Read... [22:34:43]Read from MH i2c: E2 0E 00 [22:34:43]MH_I2C_Read... [22:34:43]Read from MH i2c: E2 0E 00 10 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CD [22:34:43]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:34:43]wFMCommunicate OK [22:34:43]SAM_PROTO_GetShiftState done [22:34:43]FM_GetShiftState done [22:34:43]req_shift_opened done [22:34:43]requested_item shift.open_date is exist - process it [22:34:43]req_shift_open_date [22:34:43]req_shift_open_date done [22:34:43]produce_requested_data done [22:34:43]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39985,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:34:43]process_action_free close_receipt [22:34:43]json_value_free [22:34:43]json_value_free done [22:34:43]process_json_proto returns [22:34:43]Send response to host [22:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39985,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:34:43]free response buf [22:34:43]execute_script done [22:34:43]execute_script returns [22:34:43]free content buf [22:34:43]Sock 8.Close socket [22:34:43]Sock 8.Thread stoped [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:09]accept exits with 9 [22:35:09]New connection [22:35:09]New thread 3067182436 created [22:35:09]Thread 3067325796 joined [22:35:09]Waiting for new connection... [22:35:09] Sock 9.Parse request [22:35:09]Sock 9.Check first char [22:35:09]Sock 9.First char is OK [22:35:09]request: POST /json_proto HTTP/1.0 [22:35:09]Method: POST [22:35:09]URL: /json_proto [22:35:09]Method is POST - this is cgi request [22:35:09]url: /json_proto [22:35:09]query_string will be loaded in cgi processing [22:35:09]execute_cgi json_proto POST (null) [22:35:09]execute_cgi path=json_proto method=POST [22:35:09]POST find Content-Length [22:35:09]Host: 172.17.36.199:8080 [22:35:09]Content-Length: 630 [22:35:09]Content-Type: application/json [22:35:09] [22:35:09]POST finish read [22:35:09]Found Content-Length = 630 [22:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176546", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:09]execute_script... [22:35:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176546", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:09]POST & json_proto [22:35:09]process_json_proto [22:35:09]json parsed OK: [22:35:09]protocol is kg_v1.0 [22:35:09]action value=close_receipt [22:35:09]process_action close_receipt [22:35:09]cmd_close_receipt [22:35:09]MH_GetDate [22:35:09]Write to MH i2c: F0 00 00 11 1D 1D [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: F0 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: F0 09 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: F0 09 00 11 1D 00 21 45 5E 66 91 46 04 65 90 [22:35:09]GetLastDocTimeStamp 1717454082 [22:35:09]current date 1717454113 [22:35:09]FM_GetShiftState [22:35:09]SAM_PROTO_GetShiftState [22:35:09]wFMCommunicate request_size=4 [22:35:09]MH_SAM_APDU [22:35:09]CAPDU: 80 13 01 00 [22:35:09]Write to MH i2c: E2 08 00 12 1D 80 13 01 00 00 00 00 00 AC [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:09]Read from MH i2c: E2 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 0E 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 0E 00 12 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 CF [22:35:09]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:35:09]wFMCommunicate OK [22:35:09]SAM_PROTO_GetShiftState done [22:35:09]FM_GetShiftState done [22:35:09]opened in 1717373769 [22:35:09]opened+sec_in_day 1717460169 [22:35:09]quantity*price = 5000 [22:35:09]sum+1 = 5001 [22:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 104 03.06.2024 22:35 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39986 ФПД: 134795499010136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223513&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39986&fm=134795499010136&tin=02508201610067®Number=0000000000092680&sum=5000 0 [22:35:10]StoreToDocumentArchive [22:35:10]shift 376 fd 39986 [22:35:10]save to /storage/0376/doc_00039986 [22:35:10]save last doc name /storage/0376/doc_00039986 to /storage/kkm_last_doc_name [22:35:10]save OK [22:35:10]Clear old archive folders... [22:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [22:35:10]tlvbuf is 00E20210 [22:35:10]SAM_PROTO_ClearQueue [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 09 00 00 [22:35:10]Write to MH i2c: E2 08 00 1F 1D 80 09 00 00 00 00 00 00 AE [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [22:35:10]RAPDU: 90 00 [22:35:10]wFMCommunicate OK [22:35:10]SAM_PROTO_ClearQueue done [22:35:10]KKMCreateOFDPacket [22:35:10]OFDProtocolAddRootSTLVToBuf [22:35:10]FM_MakeSignedData [22:35:10]FM_MakeSignedData [22:35:10]SAM_PROTO_SignData [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 0D 01 02 [22:35:10]Write to MH i2c: E2 08 00 20 1D 80 0D 01 02 00 00 00 00 B6 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 20 1D 00 90 00 B1 [22:35:10]RAPDU: 90 00 [22:35:10]wFMCommunicate OK [22:35:10]wFMCommunicate request_size=255 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [22:35:10]Write to MH i2c: E2 02 01 21 1D 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D8 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 21 1D 00 90 00 B2 [22:35:10]RAPDU: 90 00 [22:35:10]wFMCommunicate OK [22:35:10]wFMCommunicate request_size=28 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 0D 02 02 17 37 34 38 38 32 10 04 04 00 32 9C 00 00 35 04 06 00 7A 98 85 D5 F8 58 [22:35:10]Write to MH i2c: E2 1F 00 22 1D 80 0D 02 02 17 00 37 34 38 38 32 10 04 04 00 32 9C 00 00 35 04 06 00 7A 98 85 D5 F8 58 00 00 D5 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 03 00 22 1D 00 90 00 B3 [22:35:10]RAPDU: 90 00 [22:35:10]wFMCommunicate OK [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 0D 03 02 [22:35:10]Write to MH i2c: E2 08 00 23 1D 80 0D 03 02 00 00 00 00 BB [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 0B 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 0B 00 23 1D 00 F6 1D C5 EB A0 0B 03 6C 90 00 99 [22:35:10]RAPDU: F6 1D C5 EB A0 0B 03 6C 90 00 [22:35:10]wFMCommunicate OK [22:35:10]SAM_PROTO_SignData done [22:35:10]FM_MakeSignedData done [22:35:10]CreateOFDProtocolMessage [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 11 00 00 [22:35:10]Write to MH i2c: E2 08 00 24 1D 80 11 00 00 00 00 00 00 BB [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 17 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 17 00 24 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 13 [22:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:35:10]wFMCommunicate OK [22:35:10]CreateOFDProtocolMessage done [22:35:10]OFDSenderStorePacket 39986 [22:35:10]StoreOFDPacket docnum=39986 [22:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 21 01 00 00 36 87 19 01 C0 30 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 32 9C 00 00 35 04 06 00 7A 98 85 D5 F8 58 F6 1D C5 EB A0 0B 03 6C [22:35:10]CheckFolder [22:35:10]dirname=/storage/ofd_packets [22:35:10]CheckFolder done [22:35:10]ProducePacketName [22:35:10]name=ofd_packets/00039986 [22:35:10]NVStorageSaveData ofd_packets/00039986 [22:35:10]File name is /storage/ofd_packets/00039986 [22:35:10]Write 319 bytes [22:35:10]NVStorageSaveData done [22:35:10]OFDSenderStorePacket done [22:35:10]KKMCreateOFDPacket done [22:35:10]NVStorageSaveData kkm_last_timestamp [22:35:10]File name is /storage/kkm_last_timestamp [22:35:10]Write 4 bytes [22:35:10]NVStorageSaveData done [22:35:10]ExternCall_PrintAddStr [22:35:10]wPrintStart [22:35:10]Write to MH i2c: 01 00 00 25 1D 42 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 07 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 07 00 25 1D 00 00 00 00 00 FF 0F 57 [22:35:10]RasterBufferAndPrint [22:35:10]line Счет N : (3)176546 [22:35:10]line ИНН: 02508201610067 [22:35:10]line Контрольно-Кассовый Чек [22:35:10]line ПРОДАЖА [22:35:10]line Товар: 4700000160358 [22:35:10]line Вода Легенда 1л [22:35:10]line 1.000 * 50.00 [22:35:10]line = 50.00 [22:35:10]line НДС 12% НСП 1% [22:35:10]line > о реализуемом товаре [22:35:10]line ИТОГО: 50.00 [22:35:10]line НСП 1% : 0.44 [22:35:10]line НДС 12% : 5.31 [22:35:10]line Наличными: 50.00 [22:35:10]line Безнал.: 0.00 [22:35:10]line Место: АЗС № 63 "Партнер Нефть" [22:35:10]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:35:10]line СНО: Общий режим [22:35:10]line Чек 104 03.06.2024 22:35 [22:35:10]line Смена: 376 ФФД: 1.0 [22:35:10]line ЗНМ: 0300000037 [22:35:10]line РНМ: 0000000000092680 [22:35:10]line Версия ККМ: 001 [22:35:10]line ФМ: 0000000000874882 [22:35:10]line ФД: 39986 [22:35:10]line ФПД: 134795499010136 [22:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223513&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39986&fm=134795499010136&tin=02508201610067®Number=0000000000092680&sum=5000 [22:35:11]OFD Sender: Processing packet 39986 [packets to send 5, broken 4] [22:35:11]ProducePacketName [22:35:11]name=ofd_packets/00039986 [22:35:11]OFD Sender: To server: pG, [22:35:11]CommunicateWithHost lk.salyk.kg:30040 [22:35:11]ConnectInit lk.salyk.kg [22:35:11]line 0 [22:35:11]written 0, free lines is 4095 [22:35:11]Connected sock=10 [22:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 21 01 00 00 36 87 19 01 C0 30 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 45 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 32 9C 00 00 35 04 06 00 7A 98 85 D5 F8 58 F6 1D C5 EB A0 0B 03 6C [22:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 C9 5C 47 00 D4 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 32 9C 00 00 F4 03 04 00 CC ED 5D 66 B6 04 01 00 00 26 EF F6 E7 F6 18 A3 3E [22:35:11]CommunicateWithHost err = 0 [22:35:11]CheckOFDResponse [22:35:11]1017 (14) - 77093643461234 [22:35:11]1041 (16) - 0000000000874882 [22:35:11]1040 (4) - 39986 [22:35:11]1012 (4) - 03.06.2024 16:22 [22:35:11]1206 (1) - 0 [22:35:11]OFD Sender: Remove packet 39986 [22:35:11]ProducePacketName [22:35:11]name=ofd_packets/00039986 [22:35:11]NVStorageDeleteData [22:35:11]Write to MH i2c: 01 00 00 4D 1D 6A [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: 01 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: 01 07 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: 01 07 00 4D 1D 00 00 00 00 00 20 0D 9E [22:35:11]RasterBufferAndPrint [22:35:11]line [22:35:11]line [22:35:11]line [22:35:11]line [22:35:11]line [22:35:11]written 0, free lines is 3369 [22:35:11]MH_Cut [22:35:11]Write to MH i2c: D1 01 00 54 1D 01 43 [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: D1 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: D1 01 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: D1 01 00 54 1D 00 42 [22:35:11]Write to MH i2c: 01 00 00 55 1D 72 [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:12]OFD Sender: No OFD packet to send [22:35:12]*** Cut start [22:35:12]*** Partial cut [22:35:12]*** CUTSNS_PIN = 1 [22:35:12]*** CUTSNS_PIN = 0 [22:35:12]*** Brake cut motor [22:35:12]Read from MH i2c: 01 [22:35:12]MH_I2C_Read... [22:35:12]*** Stop cut motor [22:35:12]*** Cut end [22:35:12]Read from MH i2c: 01 07 00 [22:35:12]MH_I2C_Read... [22:35:12]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 FF 0F 87 [22:35:12]process_action close_receipt done [22:35:12]requested_data is exist [22:35:12]produce_requested_data [22:35:12]requested_item fm.sn is exist - process it [22:35:12]wFMCommunicate request_size=4 [22:35:12]MH_SAM_APDU [22:35:12]CAPDU: 80 11 00 00 [22:35:12]Write to MH i2c: E2 08 00 56 1D 80 11 00 00 00 00 00 00 ED [22:35:12]Write i2c OK [22:35:12]MH_I2C_Read... [22:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:12]Read from MH i2c: E2 [22:35:12]MH_I2C_Read... [22:35:12]Read from MH i2c: E2 17 00 [22:35:12]MH_I2C_Read... [22:35:12]Read from MH i2c: E2 17 00 56 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 45 [22:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:35:12]wFMCommunicate OK [22:35:12]requested_item fd.num is exist - process it [22:35:12]SAM_PROTO_GetFieldsCounters [22:35:12]wFMCommunicate request_size=4 [22:35:12]MH_SAM_APDU [22:35:12]CAPDU: 80 13 00 00 [22:35:12]Write to MH i2c: E2 08 00 57 1D 80 13 00 00 00 00 00 00 F0 [22:35:12]Write i2c OK [22:35:12]MH_I2C_Read... [22:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:13]Read from MH i2c: E2 [22:35:13]MH_I2C_Read... [22:35:13]Read from MH i2c: E2 62 00 [22:35:13]MH_I2C_Read... [22:35:13]Read from MH i2c: E2 62 00 57 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 32 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [22:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 32 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:13]wFMCommunicate OK [22:35:13]SAM_PROTO_GetFieldsCounters done [22:35:13]requested_item shift.num is exist - process it [22:35:13]requested_item shift.opened is exist - process it [22:35:13]req_shift_opened [22:35:13]FM_GetShiftState [22:35:13]SAM_PROTO_GetShiftState [22:35:13]wFMCommunicate request_size=4 [22:35:13]MH_SAM_APDU [22:35:13]CAPDU: 80 13 01 00 [22:35:13]Write to MH i2c: E2 08 00 58 1D 80 13 01 00 00 00 00 00 F2 [22:35:13]Write i2c OK [22:35:13]MH_I2C_Read... [22:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:13]Read from MH i2c: E2 [22:35:13]MH_I2C_Read... [22:35:13]Read from MH i2c: E2 0E 00 [22:35:13]MH_I2C_Read... [22:35:13]Read from MH i2c: E2 0E 00 58 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 15 [22:35:13]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:35:13]wFMCommunicate OK [22:35:13]SAM_PROTO_GetShiftState done [22:35:13]FM_GetShiftState done [22:35:13]req_shift_opened done [22:35:13]requested_item shift.open_date is exist - process it [22:35:13]req_shift_open_date [22:35:13]req_shift_open_date done [22:35:13]produce_requested_data done [22:35:13]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39986,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:35:13]process_action_free close_receipt [22:35:13]json_value_free [22:35:13]json_value_free done [22:35:13]process_json_proto returns [22:35:13]Send response to host [22:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39986,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:35:13]free response buf [22:35:13]execute_script done [22:35:13]execute_script returns [22:35:13]free content buf [22:35:13]Sock 9.Close socket [22:35:13]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:19]accept exits with 8 [22:47:19]New connection [22:47:19]New thread 3067325796 created [22:47:19]Thread 3067182436 joined [22:47:19]Waiting for new connection... [22:47:19] Sock 8.Parse request [22:47:19]Sock 8.Check first char [22:47:19]Sock 8.First char is OK [22:47:19]request: POST /json_proto HTTP/1.0 [22:47:19]Method: POST [22:47:19]URL: /json_proto [22:47:19]Method is POST - this is cgi request [22:47:19]url: /json_proto [22:47:19]query_string will be loaded in cgi processing [22:47:19]execute_cgi json_proto POST (null) [22:47:19]execute_cgi path=json_proto method=POST [22:47:19]POST find Content-Length [22:47:19]Host: 172.17.36.199:8080 [22:47:19]Content-Length: 675 [22:47:19]Content-Type: application/json [22:47:19] [22:47:19]POST finish read [22:47:19]Found Content-Length = 675 [22:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176547", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 108.00, "quantity" : 1.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 108.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:19]execute_script... [22:47:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176547", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 108.00, "quantity" : 1.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 108.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:19]POST & json_proto [22:47:19]process_json_proto [22:47:19]json parsed OK: [22:47:19]protocol is kg_v1.0 [22:47:19]action value=close_receipt [22:47:19]process_action close_receipt [22:47:19]cmd_close_receipt [22:47:19]MH_GetDate [22:47:19]Write to MH i2c: F0 00 00 59 1D 65 [22:47:19]Write i2c OK [22:47:19]MH_I2C_Read... [22:47:19]Read from MH i2c: F0 [22:47:19]MH_I2C_Read... [22:47:19]Read from MH i2c: F0 09 00 [22:47:19]MH_I2C_Read... [22:47:19]Read from MH i2c: F0 09 00 59 1D 00 FB 47 5E 66 91 46 04 65 B4 [22:47:19]GetLastDocTimeStamp 1717454113 [22:47:19]current date 1717454843 [22:47:19]FM_GetShiftState [22:47:19]SAM_PROTO_GetShiftState [22:47:19]wFMCommunicate request_size=4 [22:47:19]MH_SAM_APDU [22:47:19]CAPDU: 80 13 01 00 [22:47:19]Write to MH i2c: E2 08 00 5A 1D 80 13 01 00 00 00 00 00 F4 [22:47:19]Write i2c OK [22:47:19]MH_I2C_Read... [22:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:19]Read from MH i2c: E2 [22:47:19]MH_I2C_Read... [22:47:19]Read from MH i2c: E2 0E 00 [22:47:19]MH_I2C_Read... [22:47:19]Read from MH i2c: E2 0E 00 5A 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 17 [22:47:19]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:47:19]wFMCommunicate OK [22:47:19]SAM_PROTO_GetShiftState done [22:47:19]FM_GetShiftState done [22:47:19]opened in 1717373769 [22:47:19]opened+sec_in_day 1717460169 [22:47:19]quantity*price = 10800 [22:47:19]sum+1 = 10801 [22:47:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 108.00 НСП 1% : 0.96 НДС 12% : 11.47 Наличными: 108.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 105 03.06.2024 22:47 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39987 ФПД: 270756899544405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T224723&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39987&fm=270756899544405&tin=02508201610067®Number=0000000000092680&sum=10800 0 [22:47:20]StoreToDocumentArchive [22:47:20]shift 376 fd 39987 [22:47:20]save to /storage/0376/doc_00039987 [22:47:20]save last doc name /storage/0376/doc_00039987 to /storage/kkm_last_doc_name [22:47:20]save OK [22:47:20]Clear old archive folders... [22:47:20]ProcessDocumentItem done err = 0, tmpTLVsize=287 [22:47:20]tlvbuf is 00E55A00 [22:47:20]SAM_PROTO_ClearQueue [22:47:20]wFMCommunicate request_size=4 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 09 00 00 [22:47:20]Write to MH i2c: E2 08 00 67 1D 80 09 00 00 00 00 00 00 F6 [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 67 1D 00 90 00 F8 [22:47:20]RAPDU: 90 00 [22:47:20]wFMCommunicate OK [22:47:20]SAM_PROTO_ClearQueue done [22:47:20]KKMCreateOFDPacket [22:47:20]OFDProtocolAddRootSTLVToBuf [22:47:20]FM_MakeSignedData [22:47:20]FM_MakeSignedData [22:47:20]SAM_PROTO_SignData [22:47:20]wFMCommunicate request_size=4 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 0D 01 02 [22:47:20]Write to MH i2c: E2 08 00 68 1D 80 0D 01 02 00 00 00 00 FE [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [22:47:20]RAPDU: 90 00 [22:47:20]wFMCommunicate OK [22:47:20]wFMCommunicate request_size=255 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FB 47 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [22:47:20]Write to MH i2c: E2 02 01 69 1D 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FB 47 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 92 [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [22:47:20]RAPDU: 90 00 [22:47:20]wFMCommunicate OK [22:47:20]wFMCommunicate request_size=46 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 0D 02 02 29 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 33 9C 00 00 35 04 06 00 F6 40 80 D1 5D 55 [22:47:20]Write to MH i2c: E2 31 00 6A 1D 80 0D 02 02 29 00 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 33 9C 00 00 35 04 06 00 F6 40 80 D1 5D 55 00 00 9A [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [22:47:20]RAPDU: 90 00 [22:47:20]wFMCommunicate OK [22:47:20]wFMCommunicate request_size=4 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 0D 03 02 [22:47:20]Write to MH i2c: E2 08 00 6B 1D 80 0D 03 02 00 00 00 00 03 [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 0B 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 0B 00 6B 1D 00 D8 E1 09 EF 93 F5 A2 9D 90 00 7C [22:47:20]RAPDU: D8 E1 09 EF 93 F5 A2 9D 90 00 [22:47:20]wFMCommunicate OK [22:47:20]SAM_PROTO_SignData done [22:47:20]FM_MakeSignedData done [22:47:20]CreateOFDProtocolMessage [22:47:20]wFMCommunicate request_size=4 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 11 00 00 [22:47:20]Write to MH i2c: E2 08 00 6C 1D 80 11 00 00 00 00 00 00 03 [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 17 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 17 00 6C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 5B [22:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:47:20]wFMCommunicate OK [22:47:20]CreateOFDProtocolMessage done [22:47:20]OFDSenderStorePacket 39987 [22:47:20]StoreOFDPacket docnum=39987 [22:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 02 98 2B 01 A4 2F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FB 47 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 33 9C 00 00 35 04 06 00 F6 40 80 D1 5D 55 D8 E1 09 EF 93 F5 A2 9D [22:47:20]CheckFolder [22:47:20]dirname=/storage/ofd_packets [22:47:20]CheckFolder done [22:47:20]ProducePacketName [22:47:20]name=ofd_packets/00039987 [22:47:20]NVStorageSaveData ofd_packets/00039987 [22:47:20]File name is /storage/ofd_packets/00039987 [22:47:20]Write 337 bytes [22:47:20]NVStorageSaveData done [22:47:20]OFDSenderStorePacket done [22:47:20]KKMCreateOFDPacket done [22:47:20]NVStorageSaveData kkm_last_timestamp [22:47:20]File name is /storage/kkm_last_timestamp [22:47:20]Write 4 bytes [22:47:20]NVStorageSaveData done [22:47:20]ExternCall_PrintAddStr [22:47:20]wPrintStart [22:47:20]Write to MH i2c: 01 00 00 6D 1D 8A [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: 01 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: 01 07 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [22:47:20]RasterBufferAndPrint [22:47:20]line Счет N : (3)176547 [22:47:20]line ИНН: 02508201610067 [22:47:20]line Контрольно-Кассовый Чек [22:47:20]line ПРОДАЖА [22:47:20]line Товар: 5449000189332 [22:47:20]line Холодный чай Fuse персик 1л [22:47:20]line 1.000 * 108.00 [22:47:20]line = 108.00 [22:47:20]line НДС 12% НСП 1% [22:47:20]line > о реализуемом товаре [22:47:20]line ИТОГО: 108.00 [22:47:20]line НСП 1% : 0.96 [22:47:20]line НДС 12% : 11.47 [22:47:20]line Наличными: 108.00 [22:47:20]line Безнал.: 0.00 [22:47:20]line Место: АЗС № 63 "Партнер Нефть" [22:47:20]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [22:47:20]line СНО: Общий режим [22:47:20]line Чек 105 03.06.2024 22:47 [22:47:20]line Смена: 376 ФФД: 1.0 [22:47:20]line ЗНМ: 0300000037 [22:47:20]line РНМ: 0000000000092680 [22:47:20]line Версия ККМ: 001 [22:47:20]line ФМ: 0000000000874882 [22:47:20]line ФД: 39987 [22:47:20]line ФПД: 270756899544405 [22:47:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T224723&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39987&fm=270756899544405&tin=02508201610067®Number=0000000000092680&sum=10800 [22:47:21]line 0 [22:47:21]OFD Sender: Processing packet 39987 [packets to send 5, broken 4] [22:47:21]ProducePacketName [22:47:21]name=ofd_packets/00039987 [22:47:21]OFD Sender: To server: pG, [22:47:21]CommunicateWithHost lk.salyk.kg:30040 [22:47:21]ConnectInit lk.salyk.kg [22:47:21]written 0, free lines is 4095 [22:47:21]Connected sock=10 [22:47:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 33 01 00 00 02 98 2B 01 A4 2F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FB 47 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 33 9C 00 00 35 04 06 00 F6 40 80 D1 5D 55 D8 E1 09 EF 93 F5 A2 9D [22:47:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 8A 83 47 00 3C 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 33 9C 00 00 F4 03 04 00 A6 F0 5D 66 B6 04 01 00 00 F2 E6 0D 7A 80 92 03 E7 [22:47:21]CommunicateWithHost err = 0 [22:47:21]CheckOFDResponse [22:47:21]1017 (14) - 77093643461234 [22:47:21]1041 (16) - 0000000000874882 [22:47:21]1040 (4) - 39987 [22:47:21]1012 (4) - 03.06.2024 16:34 [22:47:21]1206 (1) - 0 [22:47:21]OFD Sender: Remove packet 39987 [22:47:21]ProducePacketName [22:47:21]name=ofd_packets/00039987 [22:47:21]NVStorageDeleteData [22:47:21]Write to MH i2c: 01 00 00 95 1D B2 [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: 01 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: 01 07 00 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: 01 07 00 95 1D 00 00 00 00 00 1D 0D E3 [22:47:21]RasterBufferAndPrint [22:47:21]line [22:47:21]line [22:47:21]line [22:47:21]line [22:47:21]line [22:47:21]written 0, free lines is 3363 [22:47:21]MH_Cut [22:47:21]Write to MH i2c: D1 01 00 9C 1D 01 8B [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: D1 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: D1 01 00 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: D1 01 00 9C 1D 00 8A [22:47:21]Write to MH i2c: 01 00 00 9D 1D BA [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]OFD Sender: No OFD packet to send [22:47:22]*** Cut start [22:47:22]*** Partial cut [22:47:22]*** CUTSNS_PIN = 1 [22:47:22]*** CUTSNS_PIN = 0 [22:47:22]*** Brake cut motor [22:47:22]Read from MH i2c: 01 [22:47:22]MH_I2C_Read... [22:47:22]*** Stop cut motor [22:47:22]*** Cut end [22:47:22]Read from MH i2c: 01 07 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FF 0F CF [22:47:22]process_action close_receipt done [22:47:22]requested_data is exist [22:47:22]produce_requested_data [22:47:22]requested_item fm.sn is exist - process it [22:47:22]wFMCommunicate request_size=4 [22:47:22]MH_SAM_APDU [22:47:22]CAPDU: 80 11 00 00 [22:47:22]Write to MH i2c: E2 08 00 9E 1D 80 11 00 00 00 00 00 00 35 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:22]Read from MH i2c: E2 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 17 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 17 00 9E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8D [22:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [22:47:22]wFMCommunicate OK [22:47:22]requested_item fd.num is exist - process it [22:47:22]SAM_PROTO_GetFieldsCounters [22:47:22]wFMCommunicate request_size=4 [22:47:22]MH_SAM_APDU [22:47:22]CAPDU: 80 13 00 00 [22:47:22]Write to MH i2c: E2 08 00 9F 1D 80 13 00 00 00 00 00 00 38 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:23]Read from MH i2c: E2 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 62 00 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 62 00 9F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 33 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [22:47:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 33 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:23]wFMCommunicate OK [22:47:23]SAM_PROTO_GetFieldsCounters done [22:47:23]requested_item shift.num is exist - process it [22:47:23]requested_item shift.opened is exist - process it [22:47:23]req_shift_opened [22:47:23]FM_GetShiftState [22:47:23]SAM_PROTO_GetShiftState [22:47:23]wFMCommunicate request_size=4 [22:47:23]MH_SAM_APDU [22:47:23]CAPDU: 80 13 01 00 [22:47:23]Write to MH i2c: E2 08 00 A0 1D 80 13 01 00 00 00 00 00 3A [22:47:23]Write i2c OK [22:47:23]MH_I2C_Read... [22:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:23]Read from MH i2c: E2 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 0E 00 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 0E 00 A0 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5D [22:47:23]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [22:47:23]wFMCommunicate OK [22:47:23]SAM_PROTO_GetShiftState done [22:47:23]FM_GetShiftState done [22:47:23]req_shift_opened done [22:47:23]requested_item shift.open_date is exist - process it [22:47:23]req_shift_open_date [22:47:23]req_shift_open_date done [22:47:23]produce_requested_data done [22:47:23]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39987,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [22:47:23]process_action_free close_receipt [22:47:23]json_value_free [22:47:23]json_value_free done [22:47:23]process_json_proto returns [22:47:23]Send response to host [22:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39987,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [22:47:23]free response buf [22:47:23]execute_script done [22:47:23]execute_script returns [22:47:23]free content buf [22:47:23]Sock 8.Close socket [22:47:23]Sock 8.Thread stoped [22:47:26]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:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]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:32]accept exits with 9 [23:55:32]New connection [23:55:32]New thread 3067182436 created [23:55:32]Thread 3067325796 joined [23:55:32]Waiting for new connection... [23:55:32] Sock 9.Parse request [23:55:32]Sock 9.Check first char [23:55:32]Sock 9.First char is OK [23:55:32]request: POST /json_proto HTTP/1.0 [23:55:32]Method: POST [23:55:32]URL: /json_proto [23:55:32]Method is POST - this is cgi request [23:55:32]url: /json_proto [23:55:32]query_string will be loaded in cgi processing [23:55:32]execute_cgi json_proto POST (null) [23:55:32]execute_cgi path=json_proto method=POST [23:55:32]POST find Content-Length [23:55:32]Host: 172.17.36.199:8080 [23:55:32]Content-Length: 622 [23:55:32]Content-Type: application/json [23:55:32] [23:55:32]POST finish read [23:55:32]Found Content-Length = 622 [23:55:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176548", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:32]execute_script... [23:55:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176548", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:32]POST & json_proto [23:55:32]process_json_proto [23:55:32]json parsed OK: [23:55:32]protocol is kg_v1.0 [23:55:32]action value=close_receipt [23:55:32]process_action close_receipt [23:55:32]cmd_close_receipt [23:55:32]MH_GetDate [23:55:32]Write to MH i2c: F0 00 00 A1 1D AD [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 09 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 09 00 A1 1D 00 F8 57 5E 66 91 46 04 65 09 [23:55:32]GetLastDocTimeStamp 1717454843 [23:55:32]current date 1717458936 [23:55:32]FM_GetShiftState [23:55:32]SAM_PROTO_GetShiftState [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 13 01 00 [23:55:32]Write to MH i2c: E2 08 00 A2 1D 80 13 01 00 00 00 00 00 3C [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 A2 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 5F [23:55:32]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [23:55:32]wFMCommunicate OK [23:55:32]SAM_PROTO_GetShiftState done [23:55:32]FM_GetShiftState done [23:55:32]opened in 1717373769 [23:55:32]opened+sec_in_day 1717460169 [23:55:32]quantity*price = 15100 [23:55:32]sum+1 = 15101 [23:55:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 106 03.06.2024 23:55 Смена: 376 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39988 ФПД: 63451777431932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T235537&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39988&fm=63451777431932&tin=02508201610067®Number=0000000000092680&sum=15100 0 [23:55:33]StoreToDocumentArchive [23:55:33]shift 376 fd 39988 [23:55:33]save to /storage/0376/doc_00039988 [23:55:33]save last doc name /storage/0376/doc_00039988 to /storage/kkm_last_doc_name [23:55:33]save OK [23:55:33]Clear old archive folders... [23:55:33]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:55:33]tlvbuf is 00EAADA0 [23:55:33]SAM_PROTO_ClearQueue [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 09 00 00 [23:55:33]Write to MH i2c: E2 08 00 AF 1D 80 09 00 00 00 00 00 00 3E [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 AF 1D 00 90 00 40 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_ClearQueue done [23:55:33]KKMCreateOFDPacket [23:55:33]OFDProtocolAddRootSTLVToBuf [23:55:33]FM_MakeSignedData [23:55:33]FM_MakeSignedData [23:55:33]SAM_PROTO_SignData [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 01 02 [23:55:33]Write to MH i2c: E2 08 00 B0 1D 80 0D 01 02 00 00 00 00 46 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=255 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F9 57 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 [23:55:33]Write to MH i2c: E2 02 01 B1 1D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F9 57 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 06 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=33 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 38 38 32 10 04 04 00 34 9C 00 00 35 04 06 00 39 B5 84 A7 79 7C [23:55:33]Write to MH i2c: E2 24 00 B2 1D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 38 38 32 10 04 04 00 34 9C 00 00 35 04 06 00 39 B5 84 A7 79 7C 00 00 BB [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 03 02 [23:55:33]Write to MH i2c: E2 08 00 B3 1D 80 0D 03 02 00 00 00 00 4B [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 0B 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 0B 00 B3 1D 00 C7 B3 3E 2D 8F C1 A7 F7 90 00 1F [23:55:33]RAPDU: C7 B3 3E 2D 8F C1 A7 F7 90 00 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_SignData done [23:55:33]FM_MakeSignedData done [23:55:33]CreateOFDProtocolMessage [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 11 00 00 [23:55:33]Write to MH i2c: E2 08 00 B4 1D 80 11 00 00 00 00 00 00 4B [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 B4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A3 [23:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [23:55:33]wFMCommunicate OK [23:55:33]CreateOFDProtocolMessage done [23:55:33]OFDSenderStorePacket 39988 [23:55:33]StoreOFDPacket docnum=39988 [23:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 AF 1C 1E 01 90 0F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F9 57 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 34 9C 00 00 35 04 06 00 39 B5 84 A7 79 7C C7 B3 3E 2D 8F C1 A7 F7 [23:55:33]CheckFolder [23:55:33]dirname=/storage/ofd_packets [23:55:33]CheckFolder done [23:55:33]ProducePacketName [23:55:33]name=ofd_packets/00039988 [23:55:33]NVStorageSaveData ofd_packets/00039988 [23:55:33]File name is /storage/ofd_packets/00039988 [23:55:33]Write 324 bytes [23:55:33]NVStorageSaveData done [23:55:33]OFDSenderStorePacket done [23:55:33]KKMCreateOFDPacket done [23:55:33]NVStorageSaveData kkm_last_timestamp [23:55:33]File name is /storage/kkm_last_timestamp [23:55:33]Write 4 bytes [23:55:33]NVStorageSaveData done [23:55:33]ExternCall_PrintAddStr [23:55:33]wPrintStart [23:55:33]Write to MH i2c: 01 00 00 B5 1D D2 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 07 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 07 00 B5 1D 00 00 00 00 00 FF 0F E7 [23:55:33]RasterBufferAndPrint [23:55:33]line Счет N : (3)176548 [23:55:33]line ИНН: 02508201610067 [23:55:33]line Контрольно-Кассовый Чек [23:55:33]line ПРОДАЖА [23:55:33]line Товар: 48741958 [23:55:33]line Сигареты Parliament Aqua Blue [23:55:33]line 1.000 * 151.00 [23:55:33]line = 151.00 [23:55:33]line НДС 12% НСП 1% [23:55:33]line > о реализуемом товаре [23:55:33]line ИТОГО: 151.00 [23:55:33]line НСП 1% : 1.34 [23:55:33]line НДС 12% : 16.03 [23:55:33]line Наличными: 151.00 [23:55:33]line Безнал.: 0.00 [23:55:33]line Место: АЗС № 63 "Партнер Нефть" [23:55:33]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [23:55:33]line СНО: Общий режим [23:55:33]line Чек 106 03.06.2024 23:55 [23:55:33]line Смена: 376 ФФД: 1.0 [23:55:33]line ЗНМ: 0300000037 [23:55:33]line РНМ: 0000000000092680 [23:55:33]line Версия ККМ: 001 [23:55:33]line ФМ: 0000000000874882 [23:55:33]line ФД: 39988 [23:55:33]line ФПД: 63451777431932 [23:55:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T235537&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39988&fm=63451777431932&tin=02508201610067®Number=0000000000092680&sum=15100 [23:55:34]line 0 [23:55:34]OFD Sender: Processing packet 39988 [packets to send 5, broken 4] [23:55:34]ProducePacketName [23:55:34]name=ofd_packets/00039988 [23:55:34]OFD Sender: To server: pG, [23:55:34]CommunicateWithHost lk.salyk.kg:30040 [23:55:34]ConnectInit lk.salyk.kg [23:55:34]written 0, free lines is 4095 [23:55:34]Connected sock=10 [23:55:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 26 01 00 00 AF 1C 1E 01 90 0F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F9 57 5E 66 0E 04 04 00 78 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 34 9C 00 00 35 04 06 00 39 B5 84 A7 79 7C C7 B3 3E 2D 8F C1 A7 F7 [23:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CC AC 47 00 E4 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 38 37 34 38 38 32 10 04 04 00 34 9C 00 00 F4 03 04 00 A3 00 5E 66 B6 04 01 00 00 D8 BD 3E 37 22 46 D2 F5 [23:55:34]CommunicateWithHost err = 0 [23:55:34]CheckOFDResponse [23:55:34]1017 (14) - 77093643461234 [23:55:34]1041 (16) - 0000000000874882 [23:55:34]1040 (4) - 39988 [23:55:34]1012 (4) - 03.06.2024 17:42 [23:55:34]1206 (1) - 0 [23:55:34]OFD Sender: Remove packet 39988 [23:55:34]ProducePacketName [23:55:34]name=ofd_packets/00039988 [23:55:34]NVStorageDeleteData [23:55:34]Write to MH i2c: 01 00 00 DE 1D FB [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 07 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 07 00 DE 1D 00 00 00 00 00 04 0D 13 [23:55:34]RasterBufferAndPrint [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]written 0, free lines is 3341 [23:55:34]MH_Cut [23:55:34]Write to MH i2c: D1 01 00 E5 1D 01 D4 [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 01 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 01 00 E5 1D 00 D3 [23:55:34]Write to MH i2c: 01 00 00 E6 1D 03 [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]OFD Sender: No OFD packet to send [23:55:35]*** Cut start [23:55:35]*** Partial cut [23:55:35]*** CUTSNS_PIN = 1 [23:55:35]*** CUTSNS_PIN = 0 [23:55:35]*** Brake cut motor [23:55:35]Read from MH i2c: 01 [23:55:35]MH_I2C_Read... [23:55:35]*** Stop cut motor [23:55:35]*** Cut end [23:55:35]Read from MH i2c: 01 07 00 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: 01 07 00 E6 1D 00 00 00 00 00 FF 0F 18 [23:55:35]process_action close_receipt done [23:55:35]requested_data is exist [23:55:35]produce_requested_data [23:55:35]requested_item fm.sn is exist - process it [23:55:35]wFMCommunicate request_size=4 [23:55:35]MH_SAM_APDU [23:55:35]CAPDU: 80 11 00 00 [23:55:35]Write to MH i2c: E2 08 00 E7 1D 80 11 00 00 00 00 00 00 7E [23:55:35]Write i2c OK [23:55:35]MH_I2C_Read... [23:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:35]Read from MH i2c: E2 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 17 00 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 17 00 E7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D6 [23:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [23:55:35]wFMCommunicate OK [23:55:35]requested_item fd.num is exist - process it [23:55:35]SAM_PROTO_GetFieldsCounters [23:55:35]wFMCommunicate request_size=4 [23:55:35]MH_SAM_APDU [23:55:35]CAPDU: 80 13 00 00 [23:55:35]Write to MH i2c: E2 08 00 E8 1D 80 13 00 00 00 00 00 00 81 [23:55:35]Write i2c OK [23:55:35]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 62 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 62 00 E8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [23:55:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:36]wFMCommunicate OK [23:55:36]SAM_PROTO_GetFieldsCounters done [23:55:36]requested_item shift.num is exist - process it [23:55:36]requested_item shift.opened is exist - process it [23:55:36]req_shift_opened [23:55:36]FM_GetShiftState [23:55:36]SAM_PROTO_GetShiftState [23:55:36]wFMCommunicate request_size=4 [23:55:36]MH_SAM_APDU [23:55:36]CAPDU: 80 13 01 00 [23:55:36]Write to MH i2c: E2 08 00 E9 1D 80 13 01 00 00 00 00 00 83 [23:55:36]Write i2c OK [23:55:36]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 0E 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 0E 00 E9 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A6 [23:55:36]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [23:55:36]wFMCommunicate OK [23:55:36]SAM_PROTO_GetShiftState done [23:55:36]FM_GetShiftState done [23:55:36]req_shift_opened done [23:55:36]requested_item shift.open_date is exist - process it [23:55:36]req_shift_open_date [23:55:36]req_shift_open_date done [23:55:36]produce_requested_data done [23:55:36]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [23:55:36]process_action_free close_receipt [23:55:36]json_value_free [23:55:36]json_value_free done [23:55:36]process_json_proto returns [23:55:36]Send response to host [23:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [23:55:36]free response buf [23:55:36]execute_script done [23:55:36]execute_script returns [23:55:36]free content buf [23:55:36]Sock 9.Close socket [23:55:36]Sock 9.Thread stoped [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:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:07:57]accept exits with 8 [00:07:57]New connection [00:07:57]New thread 3067325796 created [00:07:57]Thread 3067182436 joined [00:07:57]Waiting for new connection... [00:07:57] Sock 8.Parse request [00:07:57]Sock 8.Check first char [00:07:57]Sock 8.First char is OK [00:07:57]request: POST /json_proto HTTP/1.0 [00:07:57]Method: POST [00:07:57]URL: /json_proto [00:07:57]Method is POST - this is cgi request [00:07:57]url: /json_proto [00:07:57]query_string will be loaded in cgi processing [00:07:57]execute_cgi json_proto POST (null) [00:07:57]execute_cgi path=json_proto method=POST [00:07:57]POST find Content-Length [00:07:57]Host: 172.17.36.199:8080 [00:07:57]Content-Length: 215 [00:07:57]Content-Type: application/json [00:07:57] [00:07:57]POST finish read [00:07:57]Found Content-Length = 215 [00:07: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" ] } } [00:07:57]execute_script... [00:07: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" ] } } [00:07:57]POST & json_proto [00:07:57]process_json_proto [00:07:57]json parsed OK: [00:07:57]protocol is kg_v1.0 [00:07:57]action value=get_value [00:07:57]process_action get_value [00:07:57]cmd_get_value [00:07:57]process_action get_value done [00:07:57]requested_data is exist [00:07:57]produce_requested_data [00:07:57]requested_item kkm.sn is exist - process it [00:07:57]requested_item kkm.ver is exist - process it [00:07:57]requested_item fm.sn is exist - process it [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 11 00 00 [00:07:57]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 17 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D9 [00:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:07:57]wFMCommunicate OK [00:07:57]requested_item fd.num is exist - process it [00:07:57]SAM_PROTO_GetFieldsCounters [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 13 00 00 [00:07:57]Write to MH i2c: E2 08 00 EB 1D 80 13 00 00 00 00 00 00 84 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 62 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 62 00 EB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [00:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_GetFieldsCounters done [00:07:57]requested_item shift.num is exist - process it [00:07:57]requested_item shift.opened is exist - process it [00:07:57]req_shift_opened [00:07:57]FM_GetShiftState [00:07:57]SAM_PROTO_GetShiftState [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 13 01 00 [00:07:57]Write to MH i2c: E2 08 00 EC 1D 80 13 01 00 00 00 00 00 86 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 0E 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 0E 00 EC 1D 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 A9 [00:07:57]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_GetShiftState done [00:07:57]FM_GetShiftState done [00:07:57]req_shift_opened done [00:07:57]requested_item shift.open_date is exist - process it [00:07:57]req_shift_open_date [00:07:57]req_shift_open_date done [00:07:57]produce_requested_data done [00:07:57]produce_requested_data return {"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [00:07:57]process_action_free get_value [00:07:57]json_value_free [00:07:57]json_value_free done [00:07:57]process_json_proto returns [00:07:57]Send response to host [00:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [00:07:57]free response buf [00:07:57]execute_script done [00:07:57]execute_script returns [00:07:57]free content buf [00:07:57]Sock 8.Close socket [00:07:57]Sock 8.Thread stoped [00:07:57]accept exits with 9 [00:07:57]New connection [00:07:57]New thread 3067182436 created [00:07:57]Thread 3067325796 joined [00:07:57]Waiting for new connection... [00:07:57] Sock 9.Parse request [00:07:57]Sock 9.Check first char [00:07:57]Sock 9.First char is OK [00:07:57]request: POST /json_proto HTTP/1.0 [00:07:57]Method: POST [00:07:57]URL: /json_proto [00:07:57]Method is POST - this is cgi request [00:07:57]url: /json_proto [00:07:57]query_string will be loaded in cgi processing [00:07:57]execute_cgi json_proto POST (null) [00:07:57]execute_cgi path=json_proto method=POST [00:07:57]POST find Content-Length [00:07:57]Host: 172.17.36.199:8080 [00:07:57]Content-Length: 331 [00:07:57]Content-Type: application/json [00:07:57] [00:07:57]POST finish read [00:07:57]Found Content-Length = 331 [00:07: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" ] } } [00:07:57]execute_script... [00:07: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" ] } } [00:07:58]POST & json_proto [00:07:58]process_json_proto [00:07:58]json parsed OK: [00:07:58]protocol is kg_v1.0 [00:07:58]action value=get_value [00:07:58]process_action get_value [00:07:58]cmd_get_value [00:07:58]process_action get_value done [00:07:58]requested_data is exist [00:07:58]produce_requested_data [00:07:58]requested_item fm.sale.total is exist - process it [00:07:58]SAM_PROTO_GetFMData [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 13 03 00 [00:07:58]Write to MH i2c: E2 08 00 ED 1D 80 13 03 00 00 00 00 00 89 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 ED 1D 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 AA [00:07:58]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 EE 1D 80 17 00 00 00 00 00 00 8B [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 EE 1D 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 71 [00:07:58]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 EF 1D 80 17 00 00 00 00 00 00 8C [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 EF 1D 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 3A [00:07:59]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 F0 1D 80 17 00 00 00 00 00 00 8D [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 F0 1D 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [00:07:59]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 F1 1D 80 17 00 00 00 00 00 00 8E [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:59]Read from MH i2c: E2 DF 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 DF 00 F1 1D 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6E [00:07:59]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFMData done [00:07:59]requested_item fm.sale_refund.total is exist - process it [00:07:59]requested_item fm.buy.total is exist - process it [00:07:59]requested_item shift.sale.total is exist - process it [00:07:59]SAM_PROTO_GetShiftData [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 02 00 [00:07:59]Write to MH i2c: E2 08 00 F2 1D 80 13 02 00 00 00 00 00 8D [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 F2 1D 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0B [00:08:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 F3 1D 80 17 00 00 00 00 00 00 90 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 F3 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 B2 [00:08:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 F4 1D 80 17 00 00 00 00 00 00 91 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]OFD Sender: No OFD packet to send [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 F4 1D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 48 [00:08:00]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 F5 1D 80 17 00 00 00 00 00 00 92 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 F5 1D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 04 [00:08:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 F6 1D 80 17 00 00 00 00 00 00 93 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 CB 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 CB 00 F6 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7C [00:08:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetShiftData done [00:08:01]requested_item shift.sale.total_cash is exist - process it [00:08:01]requested_item shift.sale_refund.total is exist - process it [00:08:01]requested_item shift.sale_refund.total_cash is exist - process it [00:08:01]requested_item shift.buy.total is exist - process it [00:08:01]requested_item shift.buy.total_cash is exist - process it [00:08:01]produce_requested_data done [00:08:01]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:01]process_action_free get_value [00:08:01]json_value_free [00:08:01]json_value_free done [00:08:01]process_json_proto returns [00:08:01]Send response to host [00:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:01]free response buf [00:08:01]execute_script done [00:08:01]execute_script returns [00:08:01]free content buf [00:08:01]Sock 9.Close socket [00:08:01]Sock 9.Thread stoped [00:08:01]accept exits with 8 [00:08:01]New connection [00:08:01]New thread 3067325796 created [00:08:01]Thread 3067182436 joined [00:08:01]Waiting for new connection... [00:08:01] Sock 8.Parse request [00:08:01]Sock 8.Check first char [00:08:01]Sock 8.First char is OK [00:08:01]request: POST /json_proto HTTP/1.0 [00:08:01]Method: POST [00:08:01]URL: /json_proto [00:08:01]Method is POST - this is cgi request [00:08:01]url: /json_proto [00:08:01]query_string will be loaded in cgi processing [00:08:01]execute_cgi json_proto POST (null) [00:08:01]execute_cgi path=json_proto method=POST [00:08:01]POST find Content-Length [00:08:01]Host: 172.17.36.199:8080 [00:08:01]Content-Length: 331 [00:08:01]Content-Type: application/json [00:08:01] [00:08:01]POST finish read [00:08:01]Found Content-Length = 331 [00:08: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:08:01]execute_script... [00:08: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:08:01]POST & json_proto [00:08:01]process_json_proto [00:08:01]json parsed OK: [00:08:01]protocol is kg_v1.0 [00:08:01]action value=get_value [00:08:01]process_action get_value [00:08:01]cmd_get_value [00:08:01]process_action get_value done [00:08:01]requested_data is exist [00:08:01]produce_requested_data [00:08:01]requested_item fm.sale.total is exist - process it [00:08:01]SAM_PROTO_GetFMData [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 03 00 [00:08:01]Write to MH i2c: E2 08 00 F7 1D 80 13 03 00 00 00 00 00 93 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 F7 1D 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 B4 [00:08:01]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 F8 1D 80 17 00 00 00 00 00 00 95 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 F8 1D 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 7B [00:08:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 F9 1D 80 17 00 00 00 00 00 00 96 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 F9 1D 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 44 [00:08:02]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 FA 1D 80 17 00 00 00 00 00 00 97 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 FA 1D 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:08:02]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 FB 1D 80 17 00 00 00 00 00 00 98 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DF 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DF 00 FB 1D 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [00:08:03]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:03]wFMCommunicate OK [00:08:03]SAM_PROTO_GetFMData done [00:08:03]requested_item fm.sale_refund.total is exist - process it [00:08:03]requested_item fm.buy.total is exist - process it [00:08:03]requested_item shift.sale.total is exist - process it [00:08:03]SAM_PROTO_GetShiftData [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 13 02 00 [00:08:03]Write to MH i2c: E2 08 00 FC 1D 80 13 02 00 00 00 00 00 97 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 FC 1D 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 15 [00:08:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 FD 1D 80 17 00 00 00 00 00 00 9A [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 FD 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BC [00:08:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 FE 1D 80 17 00 00 00 00 00 00 9B [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 FE 1D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 52 [00:08:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 FF 1D 80 17 00 00 00 00 00 00 9C [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 FF 1D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0E [00:08:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 00 1E 80 17 00 00 00 00 00 00 9E [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 CB 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 CB 00 00 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 87 [00:08:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetShiftData done [00:08:05]requested_item shift.sale.total_cash is exist - process it [00:08:05]requested_item shift.sale_refund.total is exist - process it [00:08:05]requested_item shift.sale_refund.total_cash is exist - process it [00:08:05]requested_item shift.buy.total is exist - process it [00:08:05]requested_item shift.buy.total_cash is exist - process it [00:08:05]produce_requested_data done [00:08:05]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:05]process_action_free get_value [00:08:05]json_value_free [00:08:05]json_value_free done [00:08:05]process_json_proto returns [00:08:05]Send response to host [00:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:05]free response buf [00:08:05]execute_script done [00:08:05]execute_script returns [00:08:05]free content buf [00:08:05]Sock 8.Close socket [00:08:05]Sock 8.Thread stoped [00:08:05]accept exits with 9 [00:08:05]New connection [00:08:05]New thread 3067182436 created [00:08:05]Thread 3067325796 joined [00:08:05]Waiting for new connection... [00:08:05] Sock 9.Parse request [00:08:05]Sock 9.Check first char [00:08:05]Sock 9.First char is OK [00:08:05]request: POST /json_proto HTTP/1.0 [00:08:05]Method: POST [00:08:05]URL: /json_proto [00:08:05]Method is POST - this is cgi request [00:08:05]url: /json_proto [00:08:05]query_string will be loaded in cgi processing [00:08:05]execute_cgi json_proto POST (null) [00:08:05]execute_cgi path=json_proto method=POST [00:08:05]POST find Content-Length [00:08:05]Host: 172.17.36.199:8080 [00:08:05]Content-Length: 257 [00:08:05]Content-Type: application/json [00:08:05] [00:08:05]POST finish read [00:08:05]Found Content-Length = 257 [00:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:05]execute_script... [00:08:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:05]POST & json_proto [00:08:05]process_json_proto [00:08:05]json parsed OK: [00:08:05]protocol is kg_v1.0 [00:08:05]action value=x_report [00:08:05]process_action x_report [00:08:05]cmd_x_report [00:08:05]MH_GetDate [00:08:05]Write to MH i2c: F0 00 00 01 1E 0E [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 01 1E 00 EA 5A 5E 66 91 46 04 65 5F [00:08:05]GetLastDocTimeStamp 1717458937 [00:08:05]current date 1717459690 [00:08:05]FM_GetShiftState [00:08:05]SAM_PROTO_GetShiftState [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 13 01 00 [00:08:05]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [00:08:05]OFD Sender: No OFD packet to send [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 0E 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 C0 [00:08:05]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [00:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetShiftState done [00:08:05]FM_GetShiftState done [00:08:05]KKMCreateXReportDocument [00:08:05]Load OK [00:08:05]Malloc new data [00:08:05]MH_GetDate [00:08:05]Write to MH i2c: F0 00 00 03 1E 10 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 03 1E 00 EA 5A 5E 66 91 46 04 65 61 [00:08:05]Malloc new data [00:08:05]Malloc new data [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 11 00 00 [00:08:05]Write to MH i2c: E2 08 00 04 1E 80 11 00 00 00 00 00 00 9C [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 17 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 17 00 04 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F4 [00:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetFieldsCounters [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 13 00 00 [00:08:05]Write to MH i2c: E2 08 00 05 1E 80 13 00 00 00 00 00 00 9F [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 62 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 62 00 05 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [00:08:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetFieldsCounters done [00:08:06]Malloc new data [00:08:06]Malloc new data [00:08:06]Malloc new data [00:08:06]KKMCreateXReportDocument OK [00:08:06]KKMSetXReportData OK [00:08:06]KKMPrepareXReportFMData [00:08:06]SAM_PROTO_GetShiftData [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 02 00 [00:08:06]Write to MH i2c: E2 08 00 06 1E 80 13 02 00 00 00 00 00 A2 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 06 1E 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 20 [00:08:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 07 1E 80 17 00 00 00 00 00 00 A5 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 07 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C7 [00:08:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 08 1E 80 17 00 00 00 00 00 00 A6 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 08 1E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5D [00:08:07]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 09 1E 80 17 00 00 00 00 00 00 A7 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 09 1E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 19 [00:08:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 0A 1E 80 17 00 00 00 00 00 00 A8 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 CB 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 CB 00 0A 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 91 [00:08:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:08]wFMCommunicate OK [00:08:08]SAM_PROTO_GetShiftData done [00:08:08]1194 (1194) - счетчики итогов смены [00:08:08] 1134 (4) - 106 - количество чеков со всеми признаками расчетов [00:08:08] 1129 (155) - счетчики операций «приход» [00:08:08] 1135 (4) - 106 - количество чеков по признаку расчетов [00:08:08] 1201 (3) - 20050.00 - общая итоговая сумма в чеках [00:08:08] 1136 (3) - 13870.00 - итоговая сумма в чеках наличными [00:08:08] 1138 (3) - 6180.00 - итоговая сумма в чеках безналичными [00:08:08] 1024 (122) - суммы налогов [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 0% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1006 (12) - суммы НДС [00:08:08] 1010 (1) - 12% - код ставки НДС [00:08:08] 1011 (3) - 2128.96 - сумма НДС по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (11) - суммы НСП [00:08:08] 1014 (1) - 1% - код ставки НСП [00:08:08] 1015 (2) - 177.35 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 2% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 3% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 5% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1130 (141) - счетчики операций «возврат прихода» [00:08:08] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:08] 1024 (117) - суммы налогов [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 0% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 12% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 2% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 3% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 5% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1131 (141) - счетчики операций «расход» [00:08:08] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:08] 1024 (117) - суммы налогов [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 0% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 12% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 2% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 3% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 5% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1132 (141) - счетчики операций «возврат расхода» [00:08:08] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:08] 1024 (117) - суммы налогов [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 0% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1006 (9) - суммы НДС [00:08:08] 1010 (1) - 12% - код ставки НДС [00:08:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 2% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 3% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 5% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 0,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1007 (9) - суммы НСП [00:08:08] 1014 (1) - 1,50% - код ставки НСП [00:08:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:08] 1133 (588) - - счетчики коррекции - не используются [00:08:08]SetTLVBufToDocument [00:08:08]Processing tag 1194 (04AA) [00:08:08]Load OK [00:08:08]SetTLVBufToDocument [00:08:08]Processing tag 1134 (046E) [00:08:08]Malloc new data [00:08:08]Processing tag 1129 (0469) [00:08:08]Load OK [00:08:08]SetTLVBufToDocument [00:08:08]Processing tag 1135 (046F) [00:08:08]Malloc new data [00:08:08]Processing tag 1201 (04B1) [00:08:08]Malloc new data [00:08:08]Processing tag 1136 (0470) [00:08:08]Malloc new data [00:08:08]Processing tag 1138 (0472) [00:08:08]Malloc new data [00:08:09]Processing tag 1024 (0400) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1130 (046A) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1135 (046F) [00:08:09]Malloc new data [00:08:09]Processing tag 1201 (04B1) [00:08:09]Malloc new data [00:08:09]Processing tag 1136 (0470) [00:08:09]Malloc new data [00:08:09]Processing tag 1138 (0472) [00:08:09]Malloc new data [00:08:09]Processing tag 1024 (0400) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1131 (046B) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1135 (046F) [00:08:09]Malloc new data [00:08:09]Processing tag 1201 (04B1) [00:08:09]Malloc new data [00:08:09]Processing tag 1136 (0470) [00:08:09]Malloc new data [00:08:09]Processing tag 1138 (0472) [00:08:09]Malloc new data [00:08:09]Processing tag 1024 (0400) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1132 (046C) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1135 (046F) [00:08:09]Malloc new data [00:08:09]Processing tag 1201 (04B1) [00:08:09]Malloc new data [00:08:09]Processing tag 1136 (0470) [00:08:09]Malloc new data [00:08:09]Processing tag 1138 (0472) [00:08:09]Malloc new data [00:08:09]Processing tag 1024 (0400) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1006 (03EE) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1010 (03F2) [00:08:09]Malloc new data [00:08:09]Processing tag 1011 (03F3) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1007 (03EF) [00:08:09]Load OK [00:08:09]SetTLVBufToDocument [00:08:09]Processing tag 1014 (03F6) [00:08:09]Malloc new data [00:08:09]Processing tag 1015 (03F7) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Processing tag 1133 (046D) [00:08:09]Malloc new data [00:08:09]SetTLVBufToDocument err=0 [00:08:09]SetTLVBufToDocument err=0 [00:08:09]Malloc new data [00:08:09]SAM_PROTO_GetFMData [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 13 03 00 [00:08:09]Write to MH i2c: E2 08 00 0B 1E 80 13 03 00 00 00 00 00 A8 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 0B 1E 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 C9 [00:08:10]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 0C 1E 80 17 00 00 00 00 00 00 AA [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 0C 1E 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 90 [00:08:10]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 OFD Sender: No OFD packet to send [00:08:10]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 0D 1E 80 17 00 00 00 00 00 00 AB [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 0D 1E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 59 [00:08:11]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 17 00 00 [00:08:11]Write to MH i2c: E2 08 00 0E 1E 80 17 00 00 00 00 00 00 AC [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 0E 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:08:11]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 0F 1E 80 17 00 00 00 00 00 00 AD [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 DF 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 DF 00 0F 1E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8D [00:08:12]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_GetFMData done [00:08:12]FM_GetFMData:85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 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 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:13]oper:6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:13]total:BA DD 32 36 [00:08:13]Malloc new data [00:08:13]oper:6F 04 04 00 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 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 8B 2D 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:08:13]total:70 19 85 [00:08:13]Malloc new data [00:08:13]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:08:13]total: [00:08:13]Malloc new data [00:08:13]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:08:13]total: [00:08:13]Malloc new data [00:08:13]KKMPrepareXReportFMData err=0 [00:08:13]Х отчет ИНН: 02508201610067 Кассир: Жаналиев Р. 04.06.2024 00:08 Смена: 266 РНМ: 0000000000092680 ЗНМ: 0300000037 СНО: Общий режим Всего чеков: 106 ИТОГИ ПРИХОД Чеков: 106 Общий итог: 20050.00 Итого наличными: 13870.00 Итого безнал.: 6180.00 НДС 0% : 0.00 НДС 12% : 2128.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 177.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 13870.00 НС Приход: 9093032.26 НС Возвр.Прихода: 87228.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874882 [00:08:13]StoreToDocumentArchive [00:08:13]MH_GetDate [00:08:13]Write to MH i2c: F0 00 00 10 1E 1D [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: F0 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: F0 09 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: F0 09 00 10 1E 00 F2 5A 5E 66 91 46 04 65 76 [00:08:13]shift 266 fd 1717459698 [00:08:13]Create dir for shift 0266 [00:08:13]save to /storage/0266/doc_1717459698 [00:08:13]save last doc name /storage/0266/doc_1717459698 to /storage/kkm_last_doc_name [00:08:13]save OK [00:08:13]Clear old archive folders... [00:08:13]NVStorageSaveData kkm_last_timestamp [00:08:13]File name is /storage/kkm_last_timestamp [00:08:13]Write 4 bytes [00:08:13]NVStorageSaveData done [00:08:13]ExternCall_PrintAddStr [00:08:13]wPrintStart [00:08:13]Write to MH i2c: 01 00 00 11 1E 2F [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: 01 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: 01 07 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 FF 0F 44 [00:08:13]RasterBufferAndPrint [00:08:13]line Х отчет [00:08:13]line ИНН: 02508201610067 [00:08:13]line Кассир: Жаналиев Р. [00:08:13]line 04.06.2024 00:08 [00:08:13]line Смена: 266 [00:08:13]line РНМ: 0000000000092680 [00:08:13]line ЗНМ: 0300000037 [00:08:13]line СНО: Общий режим [00:08:13]line Всего чеков: 106 [00:08:13]line ИТОГИ ПРИХОД [00:08:13]line Чеков: 106 [00:08:13]line Общий итог: 20050.00 [00:08:13]line Итого наличными: 13870.00 [00:08:13]line Итого безнал.: 6180.00 [00:08:13]line НДС 0% : 0.00 [00:08:13]line НДС 12% : 2128.96 [00:08:13]line НСП 0% : 0.00 [00:08:13]line НСП 1,50% : 0.00 [00:08:13]line НСП 0,50% : 0.00 [00:08:13]line НСП 5% : 0.00 [00:08:13]line НСП 3% : 0.00 [00:08:13]line НСП 2% : 0.00 [00:08:13]line НСП 1% : 177.35 [00:08:13]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:13]line Чеков: 0 [00:08:13]line Общий итог: 0.00 [00:08:13]line Итого наличными: 0.00 [00:08:13]line Итого безнал.: 0.00 [00:08:13]line НДС 0% : 0.00 [00:08:13]line НДС 12% : 0.00 [00:08:13]line НСП 0% : 0.00 [00:08:13]line НСП 1,50% : 0.00 [00:08:13]line НСП 0,50% : 0.00 [00:08:13]line НСП 5% : 0.00 [00:08:13]line НСП 3% : 0.00 [00:08:13]line НСП 2% : 0.00 [00:08:13]line НСП 1% : 0.00 [00:08:13]line ИТОГИ РАСХОД [00:08:13]line Чеков: 0 [00:08:13]line Общий итог: 0.00 [00:08:13]line Итого наличными: 0.00 [00:08:13]line Итого безнал.: 0.00 [00:08:13]line НДС 0% : 0.00 [00:08:13]line НДС 12% : 0.00 [00:08:13]line НСП 0% : 0.00 [00:08:13]line НСП 1,50% : 0.00 [00:08:13]line НСП 0,50% : 0.00 [00:08:13]line НСП 5% : 0.00 [00:08:13]line НСП 3% : 0.00 [00:08:13]line НСП 2% : 0.00 [00:08:13]line НСП 1% : 0.00 [00:08:13]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:13]line Чеков: 0 [00:08:13]line Общий итог: 0.00 [00:08:13]line Итого наличными: 0.00 [00:08:13]line Итого безнал.: 0.00 [00:08:13]line НДС 0% : 0.00 [00:08:13]line НДС 12% : 0.00 [00:08:13]line НСП 0% : 0.00 [00:08:13]line НСП 1,50% : 0.00 [00:08:13]line НСП 0,50% : 0.00 [00:08:13]line НСП 5% : 0.00 [00:08:13]line НСП 3% : 0.00 [00:08:13]line НСП 2% : 0.00 [00:08:13]line НСП 1% : 0.00 [00:08:13]line Сумма внесений: 0.00 [00:08:13]line Сумма выплат: 0.00 [00:08:13]line Нал. в кассе: 13870.00 [00:08:13]line НС Приход: 9093032.26 [00:08:13]line НС Возвр.Прихода: 87228.00 [00:08:13]line НС Расход: 0.00 [00:08:13]line НС Возвр.Расхода: 0.00 [00:08:13]line ФМ: 0000000000874882 [00:08:13]written 0, free lines is 4095 [00:08:14]Write to MH i2c: 01 00 00 5C 1E 7A [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: 01 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: 01 07 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 06 0B 92 [00:08:14]RasterBufferAndPrint [00:08:14]line [00:08:14]line [00:08:14]line [00:08:14]line [00:08:14]line [00:08:14]written 0, free lines is 2861 [00:08:14]MH_Cut [00:08:14]Write to MH i2c: D1 01 00 63 1E 01 53 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: D1 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: D1 01 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: D1 01 00 63 1E 00 52 [00:08:14]Write to MH i2c: 01 00 00 64 1E 82 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:15]*** Cut start [00:08:15]*** Partial cut [00:08:15]*** CUTSNS_PIN = 1 [00:08:15]*** CUTSNS_PIN = 0 [00:08:15]*** Brake cut motor [00:08:15]OFD Sender: No OFD packet to send [00:08:15]Read from MH i2c: 01 [00:08:15]MH_I2C_Read... [00:08:15]*** Stop cut motor [00:08:15]*** Cut end [00:08:15]Read from MH i2c: 01 07 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: 01 07 00 64 1E 00 00 00 00 00 FF 0F 97 [00:08:15]process_action x_report done [00:08:15]requested_data is exist [00:08:15]produce_requested_data [00:08:15]requested_item fd.num is exist - process it [00:08:15]SAM_PROTO_GetFieldsCounters [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 00 00 [00:08:15]Write to MH i2c: E2 08 00 65 1E 80 13 00 00 00 00 00 00 FF [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 62 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 62 00 65 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [00:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetFieldsCounters done [00:08:16]requested_item shift.num is exist - process it [00:08:16]requested_item shift.opened is exist - process it [00:08:16]req_shift_opened [00:08:16]FM_GetShiftState [00:08:16]SAM_PROTO_GetShiftState [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 13 01 00 [00:08:16]Write to MH i2c: E2 08 00 66 1E 80 13 01 00 00 00 00 00 01 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 66 1E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 24 [00:08:16]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetShiftState done [00:08:16]FM_GetShiftState done [00:08:16]req_shift_opened done [00:08:16]requested_item shift.open_date is exist - process it [00:08:16]req_shift_open_date [00:08:16]req_shift_open_date done [00:08:16]produce_requested_data done [00:08:16]produce_requested_data return {"fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [00:08:16]process_action_free x_report [00:08:16]json_value_free [00:08:16]json_value_free done [00:08:16]process_json_proto returns [00:08:16]Send response to host [00:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [00:08:16]free response buf [00:08:16]execute_script done [00:08:16]execute_script returns [00:08:16]free content buf [00:08:16]Sock 9.Close socket [00:08:16]Sock 9.Thread stoped [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]accept exits with 8 [00:08:50]New connection [00:08:50]New thread 3067325796 created [00:08:50]Thread 3067182436 joined [00:08:50]Waiting for new connection... [00:08:50] Sock 8.Parse request [00:08:50]Sock 8.Check first char [00:08:50]Sock 8.First char is OK [00:08:50]request: POST /json_proto HTTP/1.0 [00:08:50]Method: POST [00:08:50]URL: /json_proto [00:08:50]Method is POST - this is cgi request [00:08:50]url: /json_proto [00:08:50]query_string will be loaded in cgi processing [00:08:50]execute_cgi json_proto POST (null) [00:08:50]execute_cgi path=json_proto method=POST [00:08:50]POST find Content-Length [00:08:50]Host: 172.17.36.199:8080 [00:08:50]Content-Length: 215 [00:08:50]Content-Type: application/json [00:08:50] [00:08:50]POST finish read [00:08:50]Found Content-Length = 215 [00:08:50]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:08:50]execute_script... [00:08:50]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:08:50]POST & json_proto [00:08:50]process_json_proto [00:08:50]json parsed OK: [00:08:50]protocol is kg_v1.0 [00:08:50]action value=get_value [00:08:50]process_action get_value [00:08:50]cmd_get_value [00:08:50]process_action get_value done [00:08:50]requested_data is exist [00:08:50]produce_requested_data [00:08:50]requested_item kkm.sn is exist - process it [00:08:50]requested_item kkm.ver is exist - process it [00:08:50]requested_item fm.sn is exist - process it [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 11 00 00 [00:08:50]Write to MH i2c: E2 08 00 67 1E 80 11 00 00 00 00 00 00 FF [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 17 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 17 00 67 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 57 [00:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:08:50]wFMCommunicate OK [00:08:50]requested_item fd.num is exist - process it [00:08:50]SAM_PROTO_GetFieldsCounters [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 13 00 00 [00:08:50]Write to MH i2c: E2 08 00 68 1E 80 13 00 00 00 00 00 00 02 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 62 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 62 00 68 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [00:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 34 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_GetFieldsCounters done [00:08:50]requested_item shift.num is exist - process it [00:08:50]requested_item shift.opened is exist - process it [00:08:50]req_shift_opened [00:08:50]FM_GetShiftState [00:08:50]SAM_PROTO_GetShiftState [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 13 01 00 [00:08:50]Write to MH i2c: E2 08 00 69 1E 80 13 01 00 00 00 00 00 04 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 69 1E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 27 [00:08:50]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_GetShiftState done [00:08:50]FM_GetShiftState done [00:08:50]req_shift_opened done [00:08:50]requested_item shift.open_date is exist - process it [00:08:50]req_shift_open_date [00:08:50]req_shift_open_date done [00:08:50]produce_requested_data done [00:08:50]produce_requested_data return {"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769} [00:08:50]process_action_free get_value [00:08:50]json_value_free [00:08:50]json_value_free done [00:08:50]process_json_proto returns [00:08:50]Send response to host [00:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39988,"shift.num":376,"shift.opened":1,"shift.open_date":1717373769}}} [00:08:50]free response buf [00:08:50]execute_script done [00:08:50]execute_script returns [00:08:50]free content buf [00:08:50]Sock 8.Close socket [00:08:50]Sock 8.Thread stoped [00:08:50]accept exits with 9 [00:08:50]New connection [00:08:50]New thread 3067182436 created [00:08:50]Thread 3067325796 joined [00:08:50]Waiting for new connection... [00:08:50] Sock 9.Parse request [00:08:50]Sock 9.Check first char [00:08:50]Sock 9.First char is OK [00:08:50]request: POST /json_proto HTTP/1.0 [00:08:50]Method: POST [00:08:50]URL: /json_proto [00:08:50]Method is POST - this is cgi request [00:08:50]url: /json_proto [00:08:50]query_string will be loaded in cgi processing [00:08:50]execute_cgi json_proto POST (null) [00:08:50]execute_cgi path=json_proto method=POST [00:08:50]POST find Content-Length [00:08:50]Host: 172.17.36.199:8080 [00:08:50]Content-Length: 331 [00:08:50]Content-Type: application/json [00:08:50] [00:08:50]POST finish read [00:08:50]Found Content-Length = 331 [00:08:50]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:08:50]execute_script... [00:08:50]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:08:50]POST & json_proto [00:08:50]process_json_proto [00:08:50]json parsed OK: [00:08:50]protocol is kg_v1.0 [00:08:50]action value=get_value [00:08:50]process_action get_value [00:08:50]cmd_get_value [00:08:50]process_action get_value done [00:08:50]requested_data is exist [00:08:50]produce_requested_data [00:08:50]requested_item fm.sale.total is exist - process it [00:08:50]SAM_PROTO_GetFMData [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 13 03 00 [00:08:50]Write to MH i2c: E2 08 00 6A 1E 80 13 03 00 00 00 00 00 07 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]OFD Sender: No OFD packet to send [00:08:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 6A 1E 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 28 [00:08:51]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 6B 1E 80 17 00 00 00 00 00 00 09 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 6B 1E 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 EF [00:08:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 6C 1E 80 17 00 00 00 00 00 00 0A [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 6C 1E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 B8 [00:08:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 6D 1E 80 17 00 00 00 00 00 00 0B [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 6D 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [00:08:52]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:52]wFMCommunicate OK [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 17 00 00 [00:08:52]Write to MH i2c: E2 08 00 6E 1E 80 17 00 00 00 00 00 00 0C [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 DF 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 DF 00 6E 1E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:08:52]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:52]wFMCommunicate OK [00:08:52]SAM_PROTO_GetFMData done [00:08:52]requested_item fm.sale_refund.total is exist - process it [00:08:52]requested_item fm.buy.total is exist - process it [00:08:52]requested_item shift.sale.total is exist - process it [00:08:52]SAM_PROTO_GetShiftData [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 13 02 00 [00:08:52]Write to MH i2c: E2 08 00 6F 1E 80 13 02 00 00 00 00 00 0B [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 6F 1E 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 89 [00:08:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:08:52]wFMCommunicate OK [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 17 00 00 [00:08:52]Write to MH i2c: E2 08 00 70 1E 80 17 00 00 00 00 00 00 0E [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 70 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 30 [00:08:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 17 00 00 [00:08:53]Write to MH i2c: E2 08 00 71 1E 80 17 00 00 00 00 00 00 0F [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 71 1E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C6 [00:08:53]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:08:53]wFMCommunicate OK [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 17 00 00 [00:08:53]Write to MH i2c: E2 08 00 72 1E 80 17 00 00 00 00 00 00 10 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 72 1E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 82 [00:08:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:08:53]wFMCommunicate OK [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 17 00 00 [00:08:53]Write to MH i2c: E2 08 00 73 1E 80 17 00 00 00 00 00 00 11 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 CB 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 CB 00 73 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FA [00:08:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:54]wFMCommunicate OK [00:08:54]SAM_PROTO_GetShiftData done [00:08:54]requested_item shift.sale.total_cash is exist - process it [00:08:54]requested_item shift.sale_refund.total is exist - process it [00:08:54]requested_item shift.sale_refund.total_cash is exist - process it [00:08:54]requested_item shift.buy.total is exist - process it [00:08:54]requested_item shift.buy.total_cash is exist - process it [00:08:54]produce_requested_data done [00:08:54]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:54]process_action_free get_value [00:08:54]json_value_free [00:08:54]json_value_free done [00:08:54]process_json_proto returns [00:08:54]Send response to host [00:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:54]free response buf [00:08:54]execute_script done [00:08:54]execute_script returns [00:08:54]free content buf [00:08:54]Sock 9.Close socket [00:08:54]Sock 9.Thread stoped [00:08:54]accept exits with 8 [00:08:54]New connection [00:08:54]New thread 3067325796 created [00:08:54]Thread 3067182436 joined [00:08:54]Waiting for new connection... [00:08:54] Sock 8.Parse request [00:08:54]Sock 8.Check first char [00:08:54]Sock 8.First char is OK [00:08:54]request: POST /json_proto HTTP/1.0 [00:08:54]Method: POST [00:08:54]URL: /json_proto [00:08:54]Method is POST - this is cgi request [00:08:54]url: /json_proto [00:08:54]query_string will be loaded in cgi processing [00:08:54]execute_cgi json_proto POST (null) [00:08:54]execute_cgi path=json_proto method=POST [00:08:54]POST find Content-Length [00:08:54]Host: 172.17.36.199:8080 [00:08:54]Content-Length: 331 [00:08:54]Content-Type: application/json [00:08:54] [00:08:54]POST finish read [00:08:54]Found Content-Length = 331 [00:08:54]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:08:54]execute_script... [00:08:54]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:08:54]POST & json_proto [00:08:54]process_json_proto [00:08:54]json parsed OK: [00:08:54]protocol is kg_v1.0 [00:08:54]action value=get_value [00:08:54]process_action get_value [00:08:54]cmd_get_value [00:08:54]process_action get_value done [00:08:54]requested_data is exist [00:08:54]produce_requested_data [00:08:54]requested_item fm.sale.total is exist - process it [00:08:54]SAM_PROTO_GetFMData [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 13 03 00 [00:08:54]Write to MH i2c: E2 08 00 74 1E 80 13 03 00 00 00 00 00 11 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 74 1E 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 32 [00:08:54]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 75 1E 80 17 00 00 00 00 00 00 13 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 75 1E 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 F9 [00:08:55]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 76 1E 80 17 00 00 00 00 00 00 14 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 76 1E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 C2 [00:08:55]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 77 1E 80 17 00 00 00 00 00 00 15 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:56]OFD Sender: No OFD packet to send [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 77 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [00:08:56]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:56]wFMCommunicate OK [00:08:56]wFMCommunicate request_size=4 [00:08:56]MH_SAM_APDU [00:08:56]CAPDU: 80 17 00 00 [00:08:56]Write to MH i2c: E2 08 00 78 1E 80 17 00 00 00 00 00 00 16 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 DF 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 DF 00 78 1E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F6 [00:08:56]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:56]wFMCommunicate OK [00:08:56]SAM_PROTO_GetFMData done [00:08:56]requested_item fm.sale_refund.total is exist - process it [00:08:56]requested_item fm.buy.total is exist - process it [00:08:56]requested_item shift.sale.total is exist - process it [00:08:56]SAM_PROTO_GetShiftData [00:08:56]wFMCommunicate request_size=4 [00:08:56]MH_SAM_APDU [00:08:56]CAPDU: 80 13 02 00 [00:08:56]Write to MH i2c: E2 08 00 79 1E 80 13 02 00 00 00 00 00 15 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 79 1E 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 93 [00:08:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 7A 1E 80 17 00 00 00 00 00 00 18 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 7A 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3A [00:08:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 7B 1E 80 17 00 00 00 00 00 00 19 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 7B 1E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D0 [00:08:58]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 7C 1E 80 17 00 00 00 00 00 00 1A [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 7C 1E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 8C [00:08:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 7D 1E 80 17 00 00 00 00 00 00 1B [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 CB 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 CB 00 7D 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [00:08:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:59]wFMCommunicate OK [00:08:59]SAM_PROTO_GetShiftData done [00:08:59]requested_item shift.sale.total_cash is exist - process it [00:08:59]requested_item shift.sale_refund.total is exist - process it [00:08:59]requested_item shift.sale_refund.total_cash is exist - process it [00:08:59]requested_item shift.buy.total is exist - process it [00:08:59]requested_item shift.buy.total_cash is exist - process it [00:08:59]produce_requested_data done [00:08:59]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:59]process_action_free get_value [00:08:59]json_value_free [00:08:59]json_value_free done [00:08:59]process_json_proto returns [00:08:59]Send response to host [00:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:08:59]free response buf [00:08:59]execute_script done [00:08:59]execute_script returns [00:08:59]free content buf [00:08:59]Sock 8.Close socket [00:08:59]Sock 8.Thread stoped [00:08:59]accept exits with 9 [00:08:59]New connection [00:08:59]New thread 3067182436 created [00:08:59]Thread 3067325796 joined [00:08:59]Waiting for new connection... [00:08:59] Sock 9.Parse request [00:08:59]Sock 9.Check first char [00:08:59]Sock 9.First char is OK [00:08:59]request: POST /json_proto HTTP/1.0 [00:08:59]Method: POST [00:08:59]URL: /json_proto [00:08:59]Method is POST - this is cgi request [00:08:59]url: /json_proto [00:08:59]query_string will be loaded in cgi processing [00:08:59]execute_cgi json_proto POST (null) [00:08:59]execute_cgi path=json_proto method=POST [00:08:59]POST find Content-Length [00:08:59]Host: 172.17.36.199:8080 [00:08:59]Content-Length: 260 [00:08:59]Content-Type: application/json [00:08:59] [00:08:59]POST finish read [00:08:59]Found Content-Length = 260 [00:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:59]execute_script... [00:08:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:59]POST & json_proto [00:08:59]process_json_proto [00:08:59]json parsed OK: [00:08:59]protocol is kg_v1.0 [00:08:59]action value=close_shift [00:08:59]process_action close_shift [00:08:59]cmd_close_shift [00:08:59]MH_GetDate [00:08:59]Write to MH i2c: F0 00 00 7E 1E 8B [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 09 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 09 00 7E 1E 00 1F 5B 5E 66 91 46 04 65 12 [00:08:59]GetLastDocTimeStamp 1717459690 [00:08:59]current date 1717459743 [00:08:59]FM_GetShiftState [00:08:59]SAM_PROTO_GetShiftState [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 13 01 00 [00:08:59]Write to MH i2c: E2 08 00 7F 1E 80 13 01 00 00 00 00 00 1A [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 0E 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 0E 00 7F 1E 00 09 00 01 49 0B 5D 66 00 00 00 00 90 00 3D [00:08:59]RAPDU: 09 00 01 49 0B 5D 66 00 00 00 00 90 00 [00:08:59]wFMCommunicate OK [00:08:59]SAM_PROTO_GetShiftState done [00:08:59]FM_GetShiftState done [00:08:59]KKMCreateCloseShiftDocument [00:08:59]Load OK [00:08:59]Malloc new data [00:08:59]MH_GetDate [00:08:59]Write to MH i2c: F0 00 00 80 1E 8D [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 09 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: F0 09 00 80 1E 00 20 5B 5E 66 91 46 04 65 15 [00:08:59]Malloc new data [00:08:59]Malloc new data [00:08:59]Malloc new data [00:08:59]Malloc new data [00:08:59]KKMCreateCloseShiftDocument OK [00:08:59]KKMSetCloseShiftData OK [00:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:08:59]tlvbuf is 00EEB9A0 [00:08:59]KKMLoadAndSignCloseShiftData [00:08:59]SAM_PROTO_ProcessDocument [00:08:59]wFMCommunicate request_size=9 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 15 01 00 04 05 00 47 00 [00:08:59]Write to MH i2c: E2 0C 00 81 1E 80 15 01 00 04 00 05 00 47 00 00 00 72 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 81 1E 00 90 00 13 [00:08:59]RAPDU: 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=23 [00:08:59]MH_SAM_APDU [00:08:59]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:08:59]Write to MH i2c: E2 1A 00 82 1E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 15 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 82 1E 00 90 00 14 [00:08:59]RAPDU: 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=30 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 [00:08:59]Write to MH i2c: E2 21 00 83 1E 80 15 02 00 19 00 FD 03 15 00 D0 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 00 00 53 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 83 1E 00 90 00 15 [00:08:59]RAPDU: 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=13 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 15 02 00 08 F4 03 04 00 20 5B 5E 66 [00:08:59]Write to MH i2c: E2 10 00 84 1E 80 15 02 00 08 00 F4 03 04 00 20 5B 5E 66 00 00 6C [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 84 1E 00 90 00 16 [00:08:59]RAPDU: 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=25 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 [00:08:59]Write to MH i2c: E2 1C 00 85 1E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 00 00 85 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 03 00 85 1E 00 90 00 17 [00:08:59]RAPDU: 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 15 03 00 [00:08:59]Write to MH i2c: E2 08 00 86 1E 80 15 03 00 00 00 00 00 25 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:09:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:09:00]Read from MH i2c: E2 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 86 1E 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 67 [00:09:00]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [00:09:00]wFMCommunicate OK [00:09:00]SAM_PROTO_ProcessDocument answer len = 1265 [00:09:00]SAM_PROTO_ProcessDocument remain to read = 1017 [00:09:00]wFMCommunicate request_size=4 [00:09:00]MH_SAM_APDU [00:09:00]CAPDU: 80 17 00 00 [00:09:00]Write to MH i2c: E2 08 00 87 1E 80 17 00 00 00 00 00 00 25 [00:09:00]Write i2c OK [00:09:00]MH_I2C_Read... [00:09:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:00]Read from MH i2c: E2 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 87 1E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 6E [00:09:00]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [00:09:01]wFMCommunicate OK [00:09:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:01]SAM_PROTO_ProcessDocument remain to read = 767 [00:09:01]wFMCommunicate request_size=4 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 17 00 00 [00:09:01]Write to MH i2c: E2 08 00 88 1E 80 17 00 00 00 00 00 00 26 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]OFD Sender: No OFD packet to send [00:09:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 FD 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 FD 00 88 1E 00 01 00 05 F7 03 00 00 EF 03 09 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 90 00 88 [00:09:01]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:09:01]wFMCommunicate OK [00:09:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:01]SAM_PROTO_ProcessDocument remain to read = 517 [00:09:01]wFMCommunicate request_size=4 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 17 00 00 [00:09:01]Write to MH i2c: E2 08 00 89 1E 80 17 00 00 00 00 00 00 27 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 FD 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 FD 00 89 1E 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 B1 [00:09:01]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:09:02]wFMCommunicate OK [00:09:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:02]SAM_PROTO_ProcessDocument remain to read = 267 [00:09:02]wFMCommunicate request_size=4 [00:09:02]MH_SAM_APDU [00:09:02]CAPDU: 80 17 00 00 [00:09:02]Write to MH i2c: E2 08 00 8A 1E 80 17 00 00 00 00 00 00 28 [00:09:02]Write i2c OK [00:09:02]MH_I2C_Read... [00:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:02]Read from MH i2c: E2 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 8A 1E 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 F0 [00:09:02]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:09:02]wFMCommunicate OK [00:09:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:02]SAM_PROTO_ProcessDocument remain to read = 17 [00:09:02]wFMCommunicate request_size=4 [00:09:02]MH_SAM_APDU [00:09:02]CAPDU: 80 17 00 00 [00:09:02]Write to MH i2c: E2 08 00 8B 1E 80 17 00 00 00 00 00 00 29 [00:09:02]Write i2c OK [00:09:02]MH_I2C_Read... [00:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:09:02]Read from MH i2c: E2 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 14 00 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 14 00 8B 1E 00 01 00 06 F7 03 00 00 35 04 06 00 66 0D 24 2F DA B6 90 00 C4 [00:09:02]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 66 0D 24 2F DA B6 90 00 [00:09:02]wFMCommunicate OK [00:09:02]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:09:02]SAM_PROTO_ProcessDocument done [00:09:02]1209 (1) - 1.0 - номер версии ФФД [00:09:02]1041 (16) - 0000000000874882 - номер ФМ [00:09:02]1040 (4) - 39989 - номер ФД [00:09:02]1038 (4) - 376 - номер смены [00:09:02]1118 (4) - 106 - количество кассовых чеков за смену [00:09:02]1111 (4) - 108 - общее количество ФД за смену [00:09:02]1194 (1194) - счетчики итогов смены [00:09:02] 1134 (4) - 106 - количество чеков со всеми признаками расчетов [00:09:02] 1129 (155) - счетчики операций «приход» [00:09:02] 1135 (4) - 106 - количество чеков по признаку расчетов [00:09:02] 1201 (3) - 20050.00 - общая итоговая сумма в чеках [00:09:02] 1136 (3) - 13870.00 - итоговая сумма в чеках наличными [00:09:02] 1138 (3) - 6180.00 - итоговая сумма в чеках безналичными [00:09:02] 1024 (122) - суммы налогов [00:09:02] 1006 (9) - суммы НДС [00:09:02] 1010 (1) - 0% - код ставки НДС [00:09:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:02] 1006 (12) - суммы НДС [00:09:02] 1010 (1) - 12% - код ставки НДС [00:09:02] 1011 (3) - 2128.96 - сумма НДС по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (11) - суммы НСП [00:09:02] 1014 (1) - 1% - код ставки НСП [00:09:02] 1015 (2) - 177.35 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 2% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 3% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 5% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 1,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1130 (141) - счетчики операций «возврат прихода» [00:09:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:02] 1024 (117) - суммы налогов [00:09:02] 1006 (9) - суммы НДС [00:09:02] 1010 (1) - 0% - код ставки НДС [00:09:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:02] 1006 (9) - суммы НДС [00:09:02] 1010 (1) - 12% - код ставки НДС [00:09:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 1% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 2% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 3% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 5% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 1,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1131 (141) - счетчики операций «расход» [00:09:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:02] 1024 (117) - суммы налогов [00:09:02] 1006 (9) - суммы НДС [00:09:02] 1010 (1) - 0% - код ставки НДС [00:09:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:02] 1006 (9) - суммы НДС [00:09:02] 1010 (1) - 12% - код ставки НДС [00:09:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 1% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 2% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 3% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 5% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 0,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1007 (9) - суммы НСП [00:09:02] 1014 (1) - 1,50% - код ставки НСП [00:09:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:02] 1132 (141) - счетчики операций «возврат расхода» [00:09:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:03] 1024 (117) - суммы налогов [00:09:03] 1006 (9) - суммы НДС [00:09:03] 1010 (1) - 0% - код ставки НДС [00:09:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:03] 1006 (9) - суммы НДС [00:09:03] 1010 (1) - 12% - код ставки НДС [00:09:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 0% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 1% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 2% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 3% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 5% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 0,50% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1007 (9) - суммы НСП [00:09:03] 1014 (1) - 1,50% - код ставки НСП [00:09:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:03] 1133 (588) - - счетчики коррекции - не используются [00:09:03]1077 (6) - 112206627723958 - ФПД [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1209 (04B9) [00:09:03]Malloc new data [00:09:03]Processing tag 1041 (0411) [00:09:03]Processing tag 1040 (0410) [00:09:03]Malloc new data [00:09:03]Processing tag 1038 (040E) [00:09:03]Malloc new data [00:09:03]Processing tag 1118 (045E) [00:09:03]Malloc new data [00:09:03]Processing tag 1111 (0457) [00:09:03]Malloc new data [00:09:03]Processing tag 1194 (04AA) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1134 (046E) [00:09:03]Malloc new data [00:09:03]Processing tag 1129 (0469) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1135 (046F) [00:09:03]Malloc new data [00:09:03]Processing tag 1201 (04B1) [00:09:03]Malloc new data [00:09:03]Processing tag 1136 (0470) [00:09:03]Malloc new data [00:09:03]Processing tag 1138 (0472) [00:09:03]Malloc new data [00:09:03]Processing tag 1024 (0400) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1130 (046A) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1135 (046F) [00:09:03]Malloc new data [00:09:03]Processing tag 1201 (04B1) [00:09:03]Malloc new data [00:09:03]Processing tag 1136 (0470) [00:09:03]Malloc new data [00:09:03]Processing tag 1138 (0472) [00:09:03]Malloc new data [00:09:03]Processing tag 1024 (0400) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1131 (046B) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1135 (046F) [00:09:03]Malloc new data [00:09:03]Processing tag 1201 (04B1) [00:09:03]Malloc new data [00:09:03]Processing tag 1136 (0470) [00:09:03]Malloc new data [00:09:03]Processing tag 1138 (0472) [00:09:03]Malloc new data [00:09:03]Processing tag 1024 (0400) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1132 (046C) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1135 (046F) [00:09:03]Malloc new data [00:09:03]Processing tag 1201 (04B1) [00:09:03]Malloc new data [00:09:03]Processing tag 1136 (0470) [00:09:03]Malloc new data [00:09:03]Processing tag 1138 (0472) [00:09:03]Malloc new data [00:09:03]Processing tag 1024 (0400) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1006 (03EE) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1010 (03F2) [00:09:03]Malloc new data [00:09:03]Processing tag 1011 (03F3) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1007 (03EF) [00:09:03]Load OK [00:09:03]SetTLVBufToDocument [00:09:03]Processing tag 1014 (03F6) [00:09:03]Malloc new data [00:09:03]Processing tag 1015 (03F7) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1133 (046D) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Processing tag 1077 (0435) [00:09:03]Malloc new data [00:09:03]SetTLVBufToDocument err=0 [00:09:03]Malloc new data [00:09:03]SAM_PROTO_GetFMData [00:09:03]wFMCommunicate request_size=4 [00:09:03]MH_SAM_APDU [00:09:03]CAPDU: 80 13 03 00 [00:09:03]Write to MH i2c: E2 08 00 8C 1E 80 13 03 00 00 00 00 00 29 [00:09:03]Write i2c OK [00:09:03]MH_I2C_Read... [00:09:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:04]Read from MH i2c: E2 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 8C 1E 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 4A [00:09:04]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:09:04]wFMCommunicate OK [00:09:04]wFMCommunicate request_size=4 [00:09:04]MH_SAM_APDU [00:09:04]CAPDU: 80 17 00 00 [00:09:04]Write to MH i2c: E2 08 00 8D 1E 80 17 00 00 00 00 00 00 2B [00:09:04]Write i2c OK [00:09:04]MH_I2C_Read... [00:09:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:04]Read from MH i2c: E2 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 8D 1E 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 11 [00:09:04]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:09:05]wFMCommunicate OK [00:09:05]wFMCommunicate request_size=4 [00:09:05]MH_SAM_APDU [00:09:05]CAPDU: 80 17 00 00 [00:09:05]Write to MH i2c: E2 08 00 8E 1E 80 17 00 00 00 00 00 00 2C [00:09:05]Write i2c OK [00:09:05]MH_I2C_Read... [00:09:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:05]Read from MH i2c: E2 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 FD 00 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 FD 00 8E 1E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 DA [00:09:05]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:09:05]wFMCommunicate OK [00:09:05]wFMCommunicate request_size=4 [00:09:05]MH_SAM_APDU [00:09:05]CAPDU: 80 17 00 00 [00:09:05]Write to MH i2c: E2 08 00 8F 1E 80 17 00 00 00 00 00 00 2D [00:09:05]Write i2c OK [00:09:05]MH_I2C_Read... [00:09:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:05]Read from MH i2c: E2 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 FD 00 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 FD 00 8F 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [00:09:06]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 17 00 00 [00:09:06]Write to MH i2c: E2 08 00 90 1E 80 17 00 00 00 00 00 00 2E [00:09:06]OFD Sender: No OFD packet to send [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 DF 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 DF 00 90 1E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0E [00:09:06]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:09:06]wFMCommunicate OK [00:09:06]SAM_PROTO_GetFMData done [00:09:06]Malloc new data [00:09:06]Malloc new data [00:09:06]Malloc new data [00:09:06]Malloc new data [00:09:06]KKMLoadAndSignCloseShiftData err=0 [00:09:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Жаналиев Р. 04.06.2024 00:09 Смена: 376 РНМ: 0000000000092680 ЗНМ: 0300000037 СНО: Общий режим Чеков за смену: 106 ФД за смену: 108 Всего чеков: 106 ИТОГИ ПРИХОД Чеков: 106 Общий итог: 20050.00 Итого наличными: 13870.00 Итого безнал.: 6180.00 НДС 0% : 0.00 НДС 12% : 2128.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 177.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 13870.00 НС Приход: 9093032.26 НС Возвр.Прихода: 87228.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 39989 ФМ: 0000000000874882 ФПД: 112206627723958 [00:09:06]StoreToDocumentArchive [00:09:06]shift 376 fd 39989 [00:09:06]save to /storage/0376/doc_00039989 [00:09:06]save last doc name /storage/0376/doc_00039989 to /storage/kkm_last_doc_name [00:09:06]save OK [00:09:06]Clear old archive folders... [00:09:06]Remove dir /storage/0266 [00:09:06]opendir ok [00:09:06]file . [00:09:06]file .. [00:09:06]file doc_1717459698 [00:09:06]remove file /storage/0266/doc_1717459698 [00:09:06]remove dir /storage/0266 [00:09:06]NVStorageSaveData kkm_registers [00:09:06]File name is /storage/kkm_registers [00:09:06]Write 24 bytes [00:09:06]NVStorageSaveData done [00:09:06]NVStorageSaveData kkm_registers [00:09:06]File name is /storage/kkm_registers [00:09:06]Write 24 bytes [00:09:06]NVStorageSaveData done [00:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [00:09:06]tlvbuf is 00E2F5C0 [00:09:06]SAM_PROTO_ClearQueue [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 09 00 00 [00:09:06]Write to MH i2c: E2 08 00 91 1E 80 09 00 00 00 00 00 00 21 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 91 1E 00 90 00 23 [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]SAM_PROTO_ClearQueue done [00:09:06]KKMCreateOFDPacket [00:09:06]OFDProtocolAddRootSTLVToBuf [00:09:06]FM_MakeSignedData [00:09:06]FM_MakeSignedData [00:09:06]SAM_PROTO_SignData [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 0D 01 02 [00:09:06]Write to MH i2c: E2 08 00 92 1E 80 0D 01 02 00 00 00 00 29 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=255 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 0D 02 02 FA 05 00 63 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 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 F4 03 04 00 20 5B 5E 66 0E 04 04 00 78 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 D5 04 6E 04 04 00 6A 00 00 00 69 04 A2 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 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:09:07]Write to MH i2c: E2 02 01 93 1E 80 0D 02 02 FA 00 05 00 63 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 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 F4 03 04 00 20 5B 5E 66 0E 04 04 00 78 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 D5 04 6E 04 04 00 6A 00 00 00 69 04 A2 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 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 37 [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:07]Read from MH i2c: E2 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 03 00 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 03 00 93 1E 00 90 00 25 [00:09:07]RAPDU: 90 00 [00:09:07]wFMCommunicate OK [00:09:07]wFMCommunicate request_size=255 [00:09:07]MH_SAM_APDU [00:09:07]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 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 [00:09:07]Write to MH i2c: E2 02 01 94 1E 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 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 00 00 1A [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 94 1E 00 90 00 26 [00:09:08]RAPDU: 90 00 [00:09:08]wFMCommunicate OK [00:09:08]wFMCommunicate request_size=255 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 0D 02 02 FA 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 [00:09:08]Write to MH i2c: E2 02 01 95 1E 80 0D 02 02 FA 00 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 00 00 FC [00:09:08]Write i2c OK [00:09:08]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 95 1E 00 90 00 27 [00:09:08]RAPDU: 90 00 [00:09:08]wFMCommunicate OK [00:09:08]wFMCommunicate request_size=255 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 0D 02 02 FA 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 [00:09:08]Write to MH i2c: E2 02 01 96 1E 80 0D 02 02 FA 00 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 00 00 F1 [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 96 1E 00 90 00 28 [00:09:09]RAPDU: 90 00 [00:09:09]wFMCommunicate OK [00:09:09]wFMCommunicate request_size=255 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [00:09:09]Write to MH i2c: E2 02 01 97 1E 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 00 00 C2 [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 97 1E 00 90 00 29 [00:09:10]RAPDU: 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=138 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 0D 02 02 85 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 66 0D 24 2F DA B6 [00:09:10]Write to MH i2c: E2 8D 00 98 1E 80 0D 02 02 85 00 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 66 0D 24 2F DA B6 00 00 96 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 98 1E 00 90 00 2A [00:09:10]RAPDU: 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 0D 03 02 [00:09:10]Write to MH i2c: E2 08 00 99 1E 80 0D 03 02 00 00 00 00 32 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 0B 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 0B 00 99 1E 00 86 19 AC BC 35 80 A4 81 90 00 14 [00:09:10]RAPDU: 86 19 AC BC 35 80 A4 81 90 00 [00:09:10]wFMCommunicate OK [00:09:10]SAM_PROTO_SignData done [00:09:10]FM_MakeSignedData done [00:09:10]CreateOFDProtocolMessage [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 11 00 00 [00:09:10]Write to MH i2c: E2 08 00 9A 1E 80 11 00 00 00 00 00 00 32 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 17 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 17 00 9A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8A [00:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:09:10]wFMCommunicate OK [00:09:10]CreateOFDProtocolMessage done [00:09:10]OFDSenderStorePacket 39989 [00:09:10]StoreOFDPacket docnum=39989 [00:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 77 05 00 00 39 6B 6F 05 1D 68 5A 05 01 00 05 00 63 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 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 F4 03 04 00 20 5B 5E 66 0E 04 04 00 78 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 D5 04 6E 04 04 00 6A 00 00 00 69 04 A2 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 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 47 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 35 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 66 0D 24 2F DA B6 86 19 AC BC 35 80 A4 81 [00:09:10]CheckFolder [00:09:10]dirname=/storage/ofd_packets [00:09:10]CheckFolder done [00:09:10]ProducePacketName [00:09:10]name=ofd_packets/00039989 [00:09:10]NVStorageSaveData ofd_packets/00039989 [00:09:10]File name is /storage/ofd_packets/00039989 [00:09:10]Write 1429 bytes [00:09:11]NVStorageSaveData done [00:09:11]OFDSenderStorePacket done [00:09:11]KKMCreateOFDPacket done [00:09:11]NVStorageSaveData kkm_last_timestamp [00:09:11]File name is /storage/kkm_last_timestamp [00:09:11]Write 4 bytes [00:09:11]NVStorageSaveData done [00:09:11]ExternCall_PrintAddStr [00:09:11]wPrintStart [00:09:11]Write to MH i2c: 01 00 00 9B 1E B9 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: 01 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: 01 07 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 FF 0F CE [00:09:11]RasterBufferAndPrint [00:09:11]line Отчет о закрытии смены [00:09:11]line ФФД: 1.0 [00:09:11]line ИНН: 02508201610067 [00:09:11]line Кассир: Жаналиев Р. [00:09:11]line 04.06.2024 00:09 [00:09:11]line Смена: 376 [00:09:11]line РНМ: 0000000000092680 [00:09:11]line ЗНМ: 0300000037 [00:09:11]line СНО: Общий режим [00:09:11]line Чеков за смену: 106 [00:09:11]line ФД за смену: 108 [00:09:11]line Всего чеков: 106 [00:09:11]line ИТОГИ ПРИХОД [00:09:11]line Чеков: 106 [00:09:11]line Общий итог: 20050.00 [00:09:11]line Итого наличными: 13870.00 [00:09:11]line Итого безнал.: 6180.00 [00:09:11]line НДС 0% : 0.00 [00:09:11]line НДС 12% : 2128.96 [00:09:11]line НСП 0% : 0.00 [00:09:11]line НСП 1,50% : 0.00 [00:09:11]line НСП 0,50% : 0.00 [00:09:11]line НСП 5% : 0.00 [00:09:11]line НСП 3% : 0.00 [00:09:11]line НСП 2% : 0.00 [00:09:11]line НСП 1% : 177.35 [00:09:11]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:09:11]line Чеков: 0 [00:09:11]line Общий итог: 0.00 [00:09:11]line Итого наличными: 0.00 [00:09:11]line Итого безнал.: 0.00 [00:09:11]line НДС 0% : 0.00 [00:09:11]line НДС 12% : 0.00 [00:09:11]line НСП 0% : 0.00 [00:09:11]line НСП 1,50% : 0.00 [00:09:11]line НСП 0,50% : 0.00 [00:09:11]line НСП 5% : 0.00 [00:09:11]line НСП 3% : 0.00 [00:09:11]line НСП 2% : 0.00 [00:09:11]line НСП 1% : 0.00 [00:09:11]line ИТОГИ РАСХОД [00:09:11]line Чеков: 0 [00:09:11]line Общий итог: 0.00 [00:09:11]line Итого наличными: 0.00 [00:09:11]line Итого безнал.: 0.00 [00:09:11]line НДС 0% : 0.00 [00:09:11]line НДС 12% : 0.00 [00:09:11]line НСП 0% : 0.00 [00:09:11]line НСП 1,50% : 0.00 [00:09:11]line НСП 0,50% : 0.00 [00:09:11]line НСП 5% : 0.00 [00:09:11]line НСП 3% : 0.00 [00:09:11]line НСП 2% : 0.00 [00:09:11]line НСП 1% : 0.00 [00:09:11]line ИТОГИ ВОЗВРАТ РАСХОДА [00:09:11]line Чеков: 0 [00:09:11]line Общий итог: 0.00 [00:09:11]line Итого наличными: 0.00 [00:09:11]line Итого безнал.: 0.00 [00:09:11]line НДС 0% : 0.00 [00:09:11]line НДС 12% : 0.00 [00:09:11]line НСП 0% : 0.00 [00:09:11]line НСП 1,50% : 0.00 [00:09:11]line НСП 0,50% : 0.00 [00:09:11]line НСП 5% : 0.00 [00:09:11]line НСП 3% : 0.00 [00:09:11]line НСП 2% : 0.00 [00:09:11]line НСП 1% : 0.00 [00:09:11]line Сумма внесений: 0.00 [00:09:11]line Сумма выплат: 0.00 [00:09:11]line Нал. в кассе: 13870.00 [00:09:11]line НС Приход: 9093032.26 [00:09:11]line НС Возвр.Прихода: 87228.00 [00:09:11]line НС Расход: 0.00 [00:09:11]line НС Возвр.Расхода: 0.00 [00:09:11]line ФД: 39989 [00:09:11]line ФМ: 0000000000874882 [00:09:11]line ФПД: 112206627723958 [00:09:11]OFD Sender: Processing packet 39989 [packets to send 5, broken 4] [00:09:11]ProducePacketName [00:09:11]name=ofd_packets/00039989 [00:09:11]OFD Sender: To server: pG, [00:09:11]CommunicateWithHost lk.salyk.kg:30040 [00:09:11]ConnectInit lk.salyk.kg [00:09:11]written 0, free lines is 4095 [00:09:11]Connected sock=10 [00:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 77 05 00 00 39 6B 6F 05 1D 68 5A 05 01 00 05 00 63 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 96 D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 A0 2E 20 F4 03 04 00 20 5B 5E 66 0E 04 04 00 78 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 AA 04 D5 04 6E 04 04 00 6A 00 00 00 69 04 A2 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 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 47 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF Write to MH i2c: 03 01 09 00 00 00 F6 EB 03 1E 01 09 00 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 07 00 [00:09:12]MH_I2C_Read... [00:09:12]02 Read from MH i2c: F7 01 03 07 00 00 00 EB EF 1E 03 00 09 00 00 00 F6 00 03 00 01 AD 00 0B 03 C8 F7 [00:09:12]03 RasterBufferAndPrint [00:09:12]00 line [00:09:12]00 line [00:09:12]EF line [00:09:12]03 line [00:09:12]09 line [00:09:12]written 0, free lines is 3068 [00:09:12]00 F6 03 01 00 04 F7 03 MH_Cut [00:09:12]00 Write to MH i2c: 00 D1 EF 01 00 F2 1E 01 E2 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: D1 [00:09:12]MH_I2C_Read... [00:09:12]03 Read from MH i2c: 09 D1 00 01 F6 00 03 [00:09:12]01 MH_I2C_Read... [00:09:12]00 Read from MH i2c: D1 01 00 F2 1E 00 E1 [00:09:12]Write to MH i2c: 01 00 00 F3 05 1E F7 11 03 [00:09:12]00 00 Write i2c OK [00:09:12]EF MH_I2C_Read... [00:09:12]03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 *** Cut start [00:09:13]00 11 04 10 00 30 30 30 30 *** Partial cut [00:09:13]30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 66 0D 24 2F DA B6 86 19 AC BC 35 80 A4 81 *** CUTSNS_PIN = 1 [00:09:13] [00:09:13]*** CUTSNS_PIN = 0 [00:09:13]*** Brake cut motor [00:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 FA 9F 47 00 49 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 35 9C 00 00 F4 03 04 00 D6 03 5E 66 B6 04 01 00 00 2A 5C 89 F8 DB B1 09 CF [00:09:13]CommunicateWithHost err = 0 [00:09:13]CheckOFDResponse [00:09:13]1017 (14) - 77093643461234 [00:09:13]1041 (16) - 0000000000874882 [00:09:13]1040 (4) - 39989 [00:09:13]1012 (4) - 03.06.2024 17:56 [00:09:13]1206 (1) - 0 [00:09:13]OFD Sender: Remove packet 39989 [00:09:13]ProducePacketName [00:09:13]name=ofd_packets/00039989 [00:09:13]NVStorageDeleteData [00:09:13]Read from MH i2c: 01 [00:09:13]MH_I2C_Read... [00:09:13]*** Stop cut motor [00:09:13]*** Cut end [00:09:13]Read from MH i2c: 01 07 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 07 00 F3 1E 00 00 00 00 00 FF 0F 26 [00:09:13]process_action close_shift done [00:09:13]requested_data is exist [00:09:13]produce_requested_data [00:09:13]requested_item fd.num is exist - process it [00:09:13]SAM_PROTO_GetFieldsCounters [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 13 00 00 [00:09:13]Write to MH i2c: E2 08 00 F4 1E 80 13 00 00 00 00 00 00 8E [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 62 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 62 00 F4 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [00:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:13]wFMCommunicate OK [00:09:13]SAM_PROTO_GetFieldsCounters done [00:09:13]requested_item shift.num is exist - process it [00:09:13]requested_item shift.opened is exist - process it [00:09:13]req_shift_opened [00:09:13]FM_GetShiftState [00:09:13]SAM_PROTO_GetShiftState [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 13 01 00 [00:09:13]Write to MH i2c: E2 08 00 F5 1E 80 13 01 00 00 00 00 00 90 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:14]OFD Sender: No OFD packet to send [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 F5 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [00:09:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_GetShiftState done [00:09:14]FM_GetShiftState done [00:09:14]req_shift_opened done [00:09:14]requested_item shift.open_date is exist - process it [00:09:14]req_shift_open_date [00:09:14]FM_GetShiftState [00:09:14]SAM_PROTO_GetShiftState [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 13 01 00 [00:09:14]Write to MH i2c: E2 08 00 F6 1E 80 13 01 00 00 00 00 00 91 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 F6 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9C [00:09:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_GetShiftState done [00:09:14]FM_GetShiftState done [00:09:14]req_shift_open_date done [00:09:14]produce_requested_data done [00:09:14]produce_requested_data return {"fd.num":39989,"shift.num":376,"shift.opened":0,"shift.open_date":0} [00:09:14]process_action_free close_shift [00:09:14]json_value_free [00:09:14]json_value_free done [00:09:14]process_json_proto returns [00:09:14]Send response to host [00:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":39989,"shift.num":376,"shift.opened":0,"shift.open_date":0}}} [00:09:14]free response buf [00:09:14]execute_script done [00:09:14]execute_script returns [00:09:14]free content buf [00:09:14]Sock 9.Close socket [00:09:14]Sock 9.Thread stoped [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]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]accept exits with 8 [00:18:14]New connection [00:18:14]New thread 3067325796 created [00:18:14]Thread 3067182436 joined [00:18:14]Waiting for new connection... [00:18:14] Sock 8.Parse request [00:18:14]Sock 8.Check first char [00:18:14]Sock 8.First char is OK [00:18:14]request: POST /json_proto HTTP/1.0 [00:18:14]Method: POST [00:18:14]URL: /json_proto [00:18:14]Method is POST - this is cgi request [00:18:14]url: /json_proto [00:18:14]query_string will be loaded in cgi processing [00:18:14]execute_cgi json_proto POST (null) [00:18:14]execute_cgi path=json_proto method=POST [00:18:14]POST find Content-Length [00:18:14]Host: 172.17.36.199:8080 [00:18:14]Content-Length: 215 [00:18:14]Content-Type: application/json [00:18:14] [00:18:14]POST finish read [00:18:14]Found Content-Length = 215 [00:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:14]execute_script... [00:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:14]POST & json_proto [00:18:14]process_json_proto [00:18:14]json parsed OK: [00:18:14]protocol is kg_v1.0 [00:18:14]action value=get_value [00:18:14]process_action get_value [00:18:14]cmd_get_value [00:18:14]process_action get_value done [00:18:14]requested_data is exist [00:18:14]produce_requested_data [00:18:14]requested_item kkm.sn is exist - process it [00:18:14]requested_item kkm.ver is exist - process it [00:18:14]requested_item fm.sn is exist - process it [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 11 00 00 [00:18:14]Write to MH i2c: E2 08 00 F7 1E 80 11 00 00 00 00 00 00 8F [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 F7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 E7 [00:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:18:14]wFMCommunicate OK [00:18:14]requested_item fd.num is exist - process it [00:18:14]SAM_PROTO_GetFieldsCounters [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 00 00 [00:18:14]Write to MH i2c: E2 08 00 F8 1E 80 13 00 00 00 00 00 00 92 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 F8 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 35 9C 00 00 0E 04 04 00 78 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetFieldsCounters done [00:18:14]requested_item shift.num is exist - process it [00:18:14]requested_item shift.opened is exist - process it [00:18:14]req_shift_opened [00:18:14]FM_GetShiftState [00:18:14]SAM_PROTO_GetShiftState [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 01 00 [00:18:14]Write to MH i2c: E2 08 00 F9 1E 80 13 01 00 00 00 00 00 94 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 F9 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:18:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetShiftState done [00:18:14]FM_GetShiftState done [00:18:14]req_shift_opened done [00:18:14]requested_item shift.open_date is exist - process it [00:18:14]req_shift_open_date [00:18:14]FM_GetShiftState [00:18:14]SAM_PROTO_GetShiftState [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 01 00 [00:18:14]Write to MH i2c: E2 08 00 FA 1E 80 13 01 00 00 00 00 00 95 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:14]OFD Sender: No OFD packet to send [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 FA 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A0 [00:18:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetShiftState done [00:18:14]FM_GetShiftState done [00:18:14]req_shift_open_date done [00:18:14]produce_requested_data done [00:18:14]produce_requested_data return {"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39989,"shift.num":376,"shift.opened":0,"shift.open_date":0} [00:18:14]process_action_free get_value [00:18:14]json_value_free [00:18:14]json_value_free done [00:18:14]process_json_proto returns [00:18:14]Send response to host [00:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000037","kkm.ver":"001","fm.sn":"0000000000874882","fd.num":39989,"shift.num":376,"shift.opened":0,"shift.open_date":0}}} [00:18:14]free response buf [00:18:14]execute_script done [00:18:14]execute_script returns [00:18:14]free content buf [00:18:14]Sock 8.Close socket [00:18:14]Sock 8.Thread stoped [00:18:14]accept exits with 9 [00:18:14]New connection [00:18:14]New thread 3067182436 created [00:18:14]Thread 3067325796 joined [00:18:14]Waiting for new connection... [00:18:14] Sock 9.Parse request [00:18:14]Sock 9.Check first char [00:18:14]Sock 9.First char is OK [00:18:14]request: POST /json_proto HTTP/1.0 [00:18:14]Method: POST [00:18:14]URL: /json_proto [00:18:14]Method is POST - this is cgi request [00:18:14]url: /json_proto [00:18:14]query_string will be loaded in cgi processing [00:18:14]execute_cgi json_proto POST (null) [00:18:14]execute_cgi path=json_proto method=POST [00:18:14]POST find Content-Length [00:18:14]Host: 172.17.36.199:8080 [00:18:14]Content-Length: 331 [00:18:14]Content-Type: application/json [00:18:14] [00:18:14]POST finish read [00:18:14]Found Content-Length = 331 [00:18: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" ] } } [00:18:14]execute_script... [00:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:14]POST & json_proto [00:18:14]process_json_proto [00:18:14]json parsed OK: [00:18:14]protocol is kg_v1.0 [00:18:14]action value=get_value [00:18:14]process_action get_value [00:18:14]cmd_get_value [00:18:14]process_action get_value done [00:18:14]requested_data is exist [00:18:14]produce_requested_data [00:18:14]requested_item fm.sale.total is exist - process it [00:18:14]SAM_PROTO_GetFMData [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 03 00 [00:18:14]Write to MH i2c: E2 08 00 FB 1E 80 13 03 00 00 00 00 00 98 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 FB 1E 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 B9 [00:18:15]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 17 00 00 [00:18:15]Write to MH i2c: E2 08 00 FC 1E 80 17 00 00 00 00 00 00 9A [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 FC 1E 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 80 [00:18:15]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 17 00 00 [00:18:15]Write to MH i2c: E2 08 00 FD 1E 80 17 00 00 00 00 00 00 9B [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 FD 1E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 49 [00:18:15]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 17 00 00 [00:18:15]Write to MH i2c: E2 08 00 FE 1E 80 17 00 00 00 00 00 00 9C [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 FE 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [00:18:16]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:16]wFMCommunicate OK [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 17 00 00 [00:18:16]Write to MH i2c: E2 08 00 FF 1E 80 17 00 00 00 00 00 00 9D [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 DF 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 DF 00 FF 1E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [00:18:16]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:18:16]wFMCommunicate OK [00:18:16]SAM_PROTO_GetFMData done [00:18:16]requested_item fm.sale_refund.total is exist - process it [00:18:16]requested_item fm.buy.total is exist - process it [00:18:16]requested_item shift.sale.total is exist - process it [00:18:16]SAM_PROTO_GetShiftData [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 13 02 00 [00:18:16]Write to MH i2c: E2 08 00 00 1F 80 13 02 00 00 00 00 00 9D [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 00 1F 00 AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 1B [00:18:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6A 00 00 00 69 04 9B 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 08 98 1E 70 04 03 00 F8 29 15 72 04 03 00 10 6E 09 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 A0 3F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:18:16]wFMCommunicate OK [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 17 00 00 [00:18:16]Write to MH i2c: E2 08 00 01 1F 80 17 00 00 00 00 00 00 A0 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 01 1F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C2 [00:18:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 02 1F 80 17 00 00 00 00 00 00 A1 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 02 1F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 58 [00:18:17]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 03 1F 80 17 00 00 00 00 00 00 A2 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 03 1F 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 14 [00:18:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 04 1F 80 17 00 00 00 00 00 00 A3 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:17]Read from MH i2c: E2 CB 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 CB 00 04 1F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [00:18:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:17]wFMCommunicate OK [00:18:17]SAM_PROTO_GetShiftData done [00:18:17]requested_item shift.sale.total_cash is exist - process it [00:18:17]requested_item shift.sale_refund.total is exist - process it [00:18:17]requested_item shift.sale_refund.total_cash is exist - process it [00:18:17]requested_item shift.buy.total is exist - process it [00:18:17]requested_item shift.buy.total_cash is exist - process it [00:18:17]produce_requested_data done [00:18:17]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:18:17]process_action_free get_value [00:18:17]json_value_free [00:18:17]json_value_free done [00:18:17]process_json_proto returns [00:18:17]Send response to host [00:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.00,"fm.buy.total":0.00,"shift.sale.total":20050.00,"shift.sale.total_cash":13870.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:18:17]free response buf [00:18:17]execute_script done [00:18:17]execute_script returns [00:18:17]free content buf [00:18:17]Sock 9.Close socket [00:18:17]Sock 9.Thread stoped [00:18:17]accept exits with 8 [00:18:17]New connection [00:18:17]New thread 3067325796 created [00:18:17]Thread 3067182436 joined [00:18:17]Waiting for new connection... [00:18:17] Sock 8.Parse request [00:18:17]Sock 8.Check first char [00:18:17]Sock 8.First char is OK [00:18:17]request: POST /json_proto HTTP/1.0 [00:18:17]Method: POST [00:18:17]URL: /json_proto [00:18:17]Method is POST - this is cgi request [00:18:17]url: /json_proto [00:18:17]query_string will be loaded in cgi processing [00:18:17]execute_cgi json_proto POST (null) [00:18:17]execute_cgi path=json_proto method=POST [00:18:17]POST find Content-Length [00:18:17]Host: 172.17.36.199:8080 [00:18:17]Content-Length: 277 [00:18:17]Content-Type: application/json [00:18:17] [00:18:17]POST finish read [00:18:17]Found Content-Length = 277 [00:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0448\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:17]execute_script... [00:18:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0448\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:17]POST & json_proto [00:18:17]process_json_proto [00:18:17]json parsed OK: [00:18:17]protocol is kg_v1.0 [00:18:17]action value=open_shift [00:18:17]process_action open_shift [00:18:17]cmd_open_shift [00:18:17]MH_GetDate [00:18:17]Write to MH i2c: F0 00 00 05 1F 13 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: F0 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: F0 09 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: F0 09 00 05 1F 00 4E 5D 5E 66 91 46 04 65 CB [00:18:17]GetLastDocTimeStamp 1717459744 [00:18:17]current date 1717460302 [00:18:17]FM_GetShiftState [00:18:17]SAM_PROTO_GetShiftState [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 13 01 00 [00:18:17]Write to MH i2c: E2 08 00 06 1F 80 13 01 00 00 00 00 00 A2 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 0E 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 0E 00 06 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AD [00:18:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:18]wFMCommunicate OK [00:18:18]SAM_PROTO_GetShiftState done [00:18:18]FM_GetShiftState done [00:18:18]KKMCreateOpenShiftDocument [00:18:18]Load OK [00:18:18]Malloc new data [00:18:18]MH_GetDate [00:18:18]Write to MH i2c: F0 00 00 07 1F 15 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: F0 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: F0 09 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: F0 09 00 07 1F 00 4E 5D 5E 66 91 46 04 65 CD [00:18:18]Malloc new data [00:18:18]KKMCreateOpenShiftDocument OK [00:18:18]KKMSetOpenShiftData OK [00:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=206 [00:18:18]tlvbuf is 00EC3970 [00:18:18]KKMLoadAndSignOpenShiftData [00:18:18]SAM_PROTO_ProcessDocument [00:18:18]wFMCommunicate request_size=9 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 01 00 04 02 00 CE 00 [00:18:18]Write to MH i2c: E2 0C 00 08 1F 80 15 01 00 04 00 02 00 CE 00 00 00 7E [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=23 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:18:18]Write to MH i2c: E2 1A 00 09 1F 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 9D [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=36 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 [00:18:18]Write to MH i2c: E2 27 00 0A 1F 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 00 00 25 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=89 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 54 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 [00:18:18]Write to MH i2c: E2 5C 00 0B 1F 80 15 02 00 54 00 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 00 00 01 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=50 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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:18:18]Write to MH i2c: E2 35 00 0C 1F 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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 23 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=13 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 08 F4 03 04 00 4E 5D 5E 66 [00:18:18]Write to MH i2c: E2 10 00 0D 1F 80 15 02 00 08 00 F4 03 04 00 4E 5D 5E 66 00 00 26 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=25 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 [00:18:18]Write to MH i2c: E2 1C 00 0E 1F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 00 00 0F [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [00:18:18]RAPDU: 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 15 03 00 [00:18:18]Write to MH i2c: E2 08 00 0F 1F 80 15 03 00 00 00 00 00 AF [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 38 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 38 00 0F 1F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 36 9C 00 00 0E 04 04 00 79 01 00 00 35 04 06 00 B0 96 42 D1 93 9F 90 00 57 [00:18:18]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 36 9C 00 00 0E 04 04 00 79 01 00 00 35 04 06 00 B0 96 42 D1 93 9F 90 00 [00:18:18]wFMCommunicate OK [00:18:18]SAM_PROTO_ProcessDocument answer len = 51 [00:18:18]SAM_PROTO_ProcessDocument done [00:18:18]SetTLVBufToDocument [00:18:18]Processing tag 1209 (04B9) [00:18:18]Malloc new data [00:18:18]Processing tag 1041 (0411) [00:18:18]Processing tag 1040 (0410) [00:18:18]Malloc new data [00:18:18]Processing tag 1038 (040E) [00:18:18]Malloc new data [00:18:18]Processing tag 1077 (0435) [00:18:18]Malloc new data [00:18:18]SetTLVBufToDocument err=0 [00:18:18]KKMLoadAndSignOpenShiftData store KKM data [00:18:18]KKMLoadAndSignOpenShiftData err=0 [00:18:18]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таштанбеков К. Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 Место: АЗС № 63 "Партнер Нефть" 04.06.2024 00:18 Смена: 377 РНМ: 0000000000092680 ЗНМ: 0300000037 ФД: 39990 ФМ: 0000000000874882 ФПД: 194159412614047 [00:18:18]StoreToDocumentArchive [00:18:18]shift 377 fd 39990 [00:18:18]Create dir for shift 0377 [00:18:18]save to /storage/0377/doc_00039990 [00:18:18]save last doc name /storage/0377/doc_00039990 to /storage/kkm_last_doc_name [00:18:18]save OK [00:18:18]Clear old archive folders... [00:18:18]Remove dir /storage/0376 [00:18:18]opendir ok [00:18:18]file . [00:18:18]file .. [00:18:18]file doc_00039882 [00:18:18]remove file /storage/0376/doc_00039882 [00:18:18]file doc_00039883 [00:18:18]remove file /storage/0376/doc_00039883 [00:18:18]file doc_00039884 [00:18:18]remove file /storage/0376/doc_00039884 [00:18:18]file doc_00039885 [00:18:18]remove file /storage/0376/doc_00039885 [00:18:18]file doc_00039886 [00:18:18]remove file /storage/0376/doc_00039886 [00:18:18]file doc_00039887 [00:18:18]remove file /storage/0376/doc_00039887 [00:18:18]file doc_00039888 [00:18:18]remove file /storage/0376/doc_00039888 [00:18:18]file doc_00039889 [00:18:18]remove file /storage/0376/doc_00039889 [00:18:18]file doc_00039890 [00:18:18]remove file /storage/0376/doc_00039890 [00:18:18]file doc_00039891 [00:18:18]remove file /storage/0376/doc_00039891 [00:18:18]file doc_00039892 [00:18:18]remove file /storage/0376/doc_00039892 [00:18:18]file doc_00039893 [00:18:18]remove file /storage/0376/doc_00039893 [00:18:18]file doc_00039894 [00:18:18]remove file /storage/0376/doc_00039894 [00:18:18]file doc_00039895 [00:18:18]remove file /storage/0376/doc_00039895 [00:18:18]file doc_00039896 [00:18:19]remove file /storage/0376/doc_00039896 [00:18:19]file doc_00039897 [00:18:19]remove file /storage/0376/doc_00039897 [00:18:19]file doc_00039898 [00:18:19]remove file /storage/0376/doc_00039898 [00:18:19]file doc_00039899 [00:18:19]remove file /storage/0376/doc_00039899 [00:18:19]file doc_00039900 [00:18:19]remove file /storage/0376/doc_00039900 [00:18:19]file doc_00039901 [00:18:19]remove file /storage/0376/doc_00039901 [00:18:19]file doc_00039902 [00:18:19]remove file /storage/0376/doc_00039902 [00:18:19]file doc_00039903 [00:18:19]remove file /storage/0376/doc_00039903 [00:18:19]file doc_00039904 [00:18:19]remove file /storage/0376/doc_00039904 [00:18:19]file doc_00039905 [00:18:19]remove file /storage/0376/doc_00039905 [00:18:19]file doc_00039906 [00:18:19]remove file /storage/0376/doc_00039906 [00:18:19]file doc_00039907 [00:18:19]remove file /storage/0376/doc_00039907 [00:18:19]file doc_00039908 [00:18:19]remove file /storage/0376/doc_00039908 [00:18:19]file doc_00039909 [00:18:19]remove file /storage/0376/doc_00039909 [00:18:19]file doc_00039910 [00:18:19]remove file /storage/0376/doc_00039910 [00:18:19]file doc_00039911 [00:18:19]remove file /storage/0376/doc_00039911 [00:18:19]file doc_00039912 [00:18:19]remove file /storage/0376/doc_00039912 [00:18:19]file doc_00039913 [00:18:19]remove file /storage/0376/doc_00039913 [00:18:19]file doc_00039914 [00:18:19]remove file /storage/0376/doc_00039914 [00:18:19]file doc_00039915 [00:18:19]remove file /storage/0376/doc_00039915 [00:18:19]file doc_00039916 [00:18:19]remove file /storage/0376/doc_00039916 [00:18:19]file doc_00039917 [00:18:19]remove file /storage/0376/doc_00039917 [00:18:19]file doc_00039918 [00:18:19]remove file /storage/0376/doc_00039918 [00:18:19]file doc_00039919 [00:18:19]remove file /storage/0376/doc_00039919 [00:18:19]file doc_00039920 [00:18:19]remove file /storage/0376/doc_00039920 [00:18:19]file doc_00039921 [00:18:19]remove file /storage/0376/doc_00039921 [00:18:19]file doc_00039922 [00:18:19]remove file /storage/0376/doc_00039922 [00:18:19]file doc_00039923 [00:18:19]remove file /storage/0376/doc_00039923 [00:18:19]file doc_00039924 [00:18:19]remove file /storage/0376/doc_00039924 [00:18:19]file doc_00039925 [00:18:19]remove file /storage/0376/doc_00039925 [00:18:19]file doc_00039926 [00:18:19]remove file /storage/0376/doc_00039926 [00:18:19]file doc_00039927 [00:18:19]remove file /storage/0376/doc_00039927 [00:18:19]file doc_00039928 [00:18:19]remove file /storage/0376/doc_00039928 [00:18:19]file doc_00039929 [00:18:19]remove file /storage/0376/doc_00039929 [00:18:19]file doc_00039930 [00:18:19]remove file /storage/0376/doc_00039930 [00:18:19]file doc_00039931 [00:18:19]remove file /storage/0376/doc_00039931 [00:18:19]file doc_00039932 [00:18:19]remove file /storage/0376/doc_00039932 [00:18:19]file doc_00039933 [00:18:19]remove file /storage/0376/doc_00039933 [00:18:19]file doc_00039934 [00:18:19]remove file /storage/0376/doc_00039934 [00:18:19]file doc_00039935 [00:18:19]remove file /storage/0376/doc_00039935 [00:18:19]file doc_00039936 [00:18:19]remove file /storage/0376/doc_00039936 [00:18:19]file doc_00039937 [00:18:19]remove file /storage/0376/doc_00039937 [00:18:19]file doc_00039938 [00:18:19]remove file /storage/0376/doc_00039938 [00:18:19]file doc_00039939 [00:18:19]remove file /storage/0376/doc_00039939 [00:18:19]file doc_00039940 [00:18:19]remove file /storage/0376/doc_00039940 [00:18:19]file doc_00039941 [00:18:19]remove file /storage/0376/doc_00039941 [00:18:19]file doc_00039942 [00:18:19]remove file /storage/0376/doc_00039942 [00:18:19]file doc_00039943 [00:18:19]remove file /storage/0376/doc_00039943 [00:18:19]file doc_00039944 [00:18:19]remove file /storage/0376/doc_00039944 [00:18:19]file doc_00039945 [00:18:19]remove file /storage/0376/doc_00039945 [00:18:19]file doc_00039946 [00:18:19]remove file /storage/0376/doc_00039946 [00:18:19]file doc_00039947 [00:18:19]remove file /storage/0376/doc_00039947 [00:18:19]file doc_00039948 [00:18:19]remove file /storage/0376/doc_00039948 [00:18:19]file doc_00039949 [00:18:19]remove file /storage/0376/doc_00039949 [00:18:19]file doc_00039950 [00:18:19]remove file /storage/0376/doc_00039950 [00:18:19]file doc_00039951 [00:18:19]remove file /storage/0376/doc_00039951 [00:18:19]file doc_00039952 [00:18:19]remove file /storage/0376/doc_00039952 [00:18:19]file doc_00039953 [00:18:19]remove file /storage/0376/doc_00039953 [00:18:19]file doc_00039954 [00:18:19]remove file /storage/0376/doc_00039954 [00:18:19]file doc_00039955 [00:18:19]remove file /storage/0376/doc_00039955 [00:18:19]file doc_00039956 [00:18:19]remove file /storage/0376/doc_00039956 [00:18:19]file doc_00039957 [00:18:19]remove file /storage/0376/doc_00039957 [00:18:19]file doc_00039958 [00:18:19]remove file /storage/0376/doc_00039958 [00:18:19]file doc_00039959 [00:18:19]remove file /storage/0376/doc_00039959 [00:18:19]file doc_00039960 [00:18:19]remove file /storage/0376/doc_00039960 [00:18:19]file doc_00039961 [00:18:19]remove file /storage/0376/doc_00039961 [00:18:19]file doc_00039962 [00:18:19]remove file /storage/0376/doc_00039962 [00:18:19]file doc_00039963 [00:18:19]remove file /storage/0376/doc_00039963 [00:18:19]file doc_00039964 [00:18:19]remove file /storage/0376/doc_00039964 [00:18:19]file doc_00039965 [00:18:19]remove file /storage/0376/doc_00039965 [00:18:19]file doc_00039966 [00:18:19]remove file /storage/0376/doc_00039966 [00:18:19]file doc_00039967 [00:18:19]remove file /storage/0376/doc_00039967 [00:18:19]file doc_00039968 [00:18:19]remove file /storage/0376/doc_00039968 [00:18:19]file doc_00039969 [00:18:19]remove file /storage/0376/doc_00039969 [00:18:19]file doc_00039970 [00:18:19]remove file /storage/0376/doc_00039970 [00:18:19]file doc_00039971 [00:18:19]remove file /storage/0376/doc_00039971 [00:18:19]file doc_00039972 [00:18:19]remove file /storage/0376/doc_00039972 [00:18:19]file doc_00039973 [00:18:19]remove file /storage/0376/doc_00039973 [00:18:19]file doc_00039974 [00:18:19]remove file /storage/0376/doc_00039974 [00:18:19]file doc_00039975 [00:18:19]remove file /storage/0376/doc_00039975 [00:18:19]file doc_00039976 [00:18:19]remove file /storage/0376/doc_00039976 [00:18:19]file doc_00039977 [00:18:19]remove file /storage/0376/doc_00039977 [00:18:19]file doc_00039978 [00:18:19]remove file /storage/0376/doc_00039978 [00:18:19]file doc_00039979 [00:18:19]remove file /storage/0376/doc_00039979 [00:18:19]file doc_00039980 [00:18:19]remove file /storage/0376/doc_00039980 [00:18:19]file doc_00039981 [00:18:19]remove file /storage/0376/doc_00039981 [00:18:19]file doc_00039982 [00:18:19]remove file /storage/0376/doc_00039982 [00:18:19]file doc_00039983 [00:18:19]remove file /storage/0376/doc_00039983 [00:18:19]file doc_00039984 [00:18:19]remove file /storage/0376/doc_00039984 [00:18:19]file doc_00039985 [00:18:19]remove file /storage/0376/doc_00039985 [00:18:19]file doc_00039986 [00:18:19]remove file /storage/0376/doc_00039986 [00:18:19]file doc_00039987 [00:18:19]remove file /storage/0376/doc_00039987 [00:18:19]file doc_00039988 [00:18:19]remove file /storage/0376/doc_00039988 [00:18:19]file doc_00039989 [00:18:19]remove file /storage/0376/doc_00039989 [00:18:19]remove dir /storage/0376 [00:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:18:19]tlvbuf is 00EC8350 [00:18:19]SAM_PROTO_ClearQueue [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 09 00 00 [00:18:19]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [00:18:19]OFD Sender: No OFD packet to send [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:19]Read from MH i2c: E2 03 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [00:18:19]RAPDU: 90 00 [00:18:19]wFMCommunicate OK [00:18:19]SAM_PROTO_ClearQueue done [00:18:19]KKMCreateOFDPacket [00:18:19]OFDProtocolAddRootSTLVToBuf [00:18:19]FM_MakeSignedData [00:18:19]FM_MakeSignedData [00:18:19]SAM_PROTO_SignData [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 0D 01 02 [00:18:19]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 03 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [00:18:19]RAPDU: 90 00 [00:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=255 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 0D 02 02 FA 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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 4E 5D 5E 66 0E 04 04 00 79 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 [00:18:19]Write to MH i2c: E2 02 01 12 1F 80 0D 02 02 FA 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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 4E 5D 5E 66 0E 04 04 00 79 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 00 00 75 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 03 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [00:18:20]RAPDU: 90 00 [00:18:20]wFMCommunicate OK [00:18:20]wFMCommunicate request_size=16 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 0D 02 02 0B 32 35 04 06 00 B0 96 42 D1 93 9F [00:18:20]Write to MH i2c: E2 13 00 13 1F 80 0D 02 02 0B 00 32 35 04 06 00 B0 96 42 D1 93 9F 00 00 BE [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 03 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [00:18:20]RAPDU: 90 00 [00:18:20]wFMCommunicate OK [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 0D 03 02 [00:18:20]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 0B 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 0B 00 14 1F 00 A6 26 A7 60 23 5C 68 81 90 00 EA [00:18:20]RAPDU: A6 26 A7 60 23 5C 68 81 90 00 [00:18:20]wFMCommunicate OK [00:18:20]SAM_PROTO_SignData done [00:18:20]FM_MakeSignedData done [00:18:20]CreateOFDProtocolMessage [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 11 00 00 [00:18:20]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 17 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 06 [00:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:18:20]wFMCommunicate OK [00:18:20]CreateOFDProtocolMessage done [00:18:20]OFDSenderStorePacket 39990 [00:18:20]StoreOFDPacket docnum=39990 [00:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 15 01 00 00 30 54 0D 01 99 02 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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 4E 5D 5E 66 0E 04 04 00 79 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 B0 96 42 D1 93 9F A6 26 A7 60 23 5C 68 81 [00:18:20]CheckFolder [00:18:20]dirname=/storage/ofd_packets [00:18:20]CheckFolder done [00:18:20]ProducePacketName [00:18:20]name=ofd_packets/00039990 [00:18:20]NVStorageSaveData ofd_packets/00039990 [00:18:20]File name is /storage/ofd_packets/00039990 [00:18:20]Write 307 bytes [00:18:20]NVStorageSaveData done [00:18:20]OFDSenderStorePacket done [00:18:20]KKMCreateOFDPacket done [00:18:20]NVStorageSaveData kkm_last_timestamp [00:18:20]File name is /storage/kkm_last_timestamp [00:18:20]Write 4 bytes [00:18:20]NVStorageSaveData done [00:18:20]ExternCall_PrintAddStr [00:18:20]wPrintStart [00:18:20]Write to MH i2c: 01 00 00 16 1F 35 [00:18:20]OFD Sender: Processing packet 39990 [packets to send 5, broken 4] [00:18:20]ProducePacketName [00:18:20]name=ofd_packets/00039990 [00:18:20]OFD Sender: To server: pG, [00:18:20]CommunicateWithHost lk.salyk.kg:30040 [00:18:20]ConnectInit lk.salyk.kg [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 07 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [00:18:20]RasterBufferAndPrint [00:18:20]line Отчет об открытии смены [00:18:20]line ФФД: 1.0 [00:18:20]line ИНН: 02508201610067 [00:18:20]line Кассир: Таштанбеков К. [00:18:20]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [00:18:20]line Место: АЗС № 63 "Партнер Нефть" [00:18:20]line 04.06.2024 00:18 [00:18:20]line Смена: 377 [00:18:20]line РНМ: 0000000000092680 [00:18:20]line ЗНМ: 0300000037 [00:18:20]line ФД: 39990 [00:18:20]line ФМ: 0000000000874882 [00:18:20]line ФПД: 194159412614047 [00:18:20]written 0, free lines is 4095 [00:18:20]Connected sock=10 [00:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 15 01 00 00 30 54 0D 01 99 02 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D1 88 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 20 D0 A1 D0 B0 D1 80 D1 8B 20 D0 9E D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 BF D0 B0 D0 B4 D0 BD D0 B0 D1 8F 20 33 2C 20 34 32 2E 36 30 33 35 31 36 2C 20 37 36 2E 38 39 34 39 30 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 33 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 4E 5D 5E 66 0E 04 04 00 79 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 35 04 06 00 B0 96 42 D1 93 9F A6 26 A7 60 23 5C 68 81 [00:18:20]Write to MH i2c: 01 00 00 28 1F 47 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 07 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 59 0E B5 [00:18:20]RasterBufferAndPrint [00:18:20]line [00:18:20]line [00:18:20]line [00:18:20]line [00:18:20]line [00:18:20]written 0, free lines is 3687 [00:18:20]MH_Cut [00:18:20]Write to MH i2c: D1 01 00 2F 1F 01 20 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: D1 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: D1 01 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: D1 01 00 2F 1F 00 1F [00:18:20]Write to MH i2c: 01 00 00 30 1F 4F [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 11 3C 47 00 FB D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 36 9C 00 00 F4 03 04 00 FA 05 5E 66 B6 04 01 00 00 44 93 1D 63 F8 08 A5 E8 [00:18:20]CommunicateWithHost err = 0 [00:18:20]CheckOFDResponse [00:18:20]1017 (14) - 77093643461234 [00:18:20]1041 (16) - 0000000000874882 [00:18:20]1040 (4) - 39990 [00:18:20]1012 (4) - 03.06.2024 18:05 [00:18:20]1206 (1) - 0 [00:18:20]OFD Sender: Remove packet 39990 [00:18:20]ProducePacketName [00:18:20]name=ofd_packets/00039990 [00:18:20]NVStorageDeleteData [00:18:21]*** Cut start [00:18:21]*** Partial cut [00:18:21]*** CUTSNS_PIN = 1 [00:18:21]*** CUTSNS_PIN = 0 [00:18:21]OFD Sender: No OFD packet to send [00:18:21]*** Brake cut motor [00:18:21]Read from MH i2c: 01 [00:18:21]MH_I2C_Read... [00:18:21]*** Stop cut motor [00:18:21]*** Cut end [00:18:21]Read from MH i2c: 01 07 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FF 0F 64 [00:18:21]process_action open_shift done [00:18:21]requested_data is exist [00:18:21]produce_requested_data [00:18:21]requested_item fd.num is exist - process it [00:18:21]SAM_PROTO_GetFieldsCounters [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 13 00 00 [00:18:21]Write to MH i2c: E2 08 00 31 1F 80 13 00 00 00 00 00 00 CC [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 62 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 62 00 31 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [00:18:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 36 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:21]wFMCommunicate OK [00:18:21]SAM_PROTO_GetFieldsCounters done [00:18:21]requested_item shift.num is exist - process it [00:18:21]requested_item shift.opened is exist - process it [00:18:21]req_shift_opened [00:18:21]FM_GetShiftState [00:18:21]SAM_PROTO_GetShiftState [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 13 01 00 [00:18:21]Write to MH i2c: E2 08 00 32 1F 80 13 01 00 00 00 00 00 CE [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0E 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0E 00 32 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 49 [00:18:22]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [00:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_GetShiftState done [00:18:22]FM_GetShiftState done [00:18:22]req_shift_opened done [00:18:22]requested_item shift.open_date is exist - process it [00:18:22]req_shift_open_date [00:18:22]req_shift_open_date done [00:18:22]produce_requested_data done [00:18:22]produce_requested_data return {"fd.num":39990,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [00:18:22]process_action_free open_shift [00:18:22]json_value_free [00:18:22]json_value_free done [00:18:22]process_json_proto returns [00:18:22]Send response to host [00:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":39990,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [00:18:22]free response buf [00:18:22]execute_script done [00:18:22]execute_script returns [00:18:22]free content buf [00:18:22]Sock 8.Close socket [00:18:22]Sock 8.Thread stoped [00:18:22]accept exits with 9 [00:18:22]New connection [00:18:22]New thread 3067182436 created [00:18:22]Thread 3067325796 joined [00:18:22]Waiting for new connection... [00:18:22] Sock 9.Parse request [00:18:22]Sock 9.Check first char [00:18:22]Sock 9.First char is OK [00:18:22]request: POST /json_proto HTTP/1.0 [00:18:22]Method: POST [00:18:22]URL: /json_proto [00:18:22]Method is POST - this is cgi request [00:18:22]url: /json_proto [00:18:22]query_string will be loaded in cgi processing [00:18:22]execute_cgi json_proto POST (null) [00:18:22]execute_cgi path=json_proto method=POST [00:18:22]POST find Content-Length [00:18:22]Host: 172.17.36.199:8080 [00:18:22]Content-Length: 331 [00:18:22]Content-Type: application/json [00:18:22] [00:18:22]POST finish read [00:18:22]Found Content-Length = 331 [00:18:22]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:18:22]execute_script... [00:18:22]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:18:22]POST & json_proto [00:18:22]process_json_proto [00:18:22]json parsed OK: [00:18:22]protocol is kg_v1.0 [00:18:22]action value=get_value [00:18:22]process_action get_value [00:18:22]cmd_get_value [00:18:22]process_action get_value done [00:18:22]requested_data is exist [00:18:22]produce_requested_data [00:18:22]requested_item fm.sale.total is exist - process it [00:18:22]SAM_PROTO_GetFMData [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 13 03 00 [00:18:22]Write to MH i2c: E2 08 00 33 1F 80 13 03 00 00 00 00 00 D1 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 33 1F 00 C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 F2 [00:18:22]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 44 99 00 00 69 04 A0 00 6F 04 04 00 11 99 00 00 B1 04 04 00 BA DD 32 36 70 04 04 00 54 04 22 2B 72 04 04 00 66 D9 10 0B 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 02 5C C1 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 10 B4 7A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 00 00 00 B1 04 03 00 70 19 85 70 04 03 00 F4 09 84 72 04 03 00 7C 0F 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 22 0E EF 03 09 00 F6 03 90 00 [00:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 17 00 00 [00:18:22]Write to MH i2c: E2 08 00 34 1F 80 17 00 00 00 00 00 00 D3 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 34 1F 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 B9 [00:18:22]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 2D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 17 00 00 [00:18:22]Write to MH i2c: E2 08 00 35 1F 80 17 00 00 00 00 00 00 D4 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 35 1F 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 82 [00:18:23]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:18:23]wFMCommunicate OK [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 17 00 00 [00:18:23]Write to MH i2c: E2 08 00 36 1F 80 17 00 00 00 00 00 00 D5 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 36 1F 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [00:18:23]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:23]wFMCommunicate OK [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 17 00 00 [00:18:23]Write to MH i2c: E2 08 00 37 1F 80 17 00 00 00 00 00 00 D6 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 DF 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 DF 00 37 1F 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B6 [00:18:24]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetFMData done [00:18:24]requested_item fm.sale_refund.total is exist - process it [00:18:24]requested_item fm.buy.total is exist - process it [00:18:24]requested_item shift.sale.total is exist - process it [00:18:24]SAM_PROTO_GetShiftData [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 02 00 [00:18:24]Write to MH i2c: E2 08 00 38 1F 80 13 02 00 00 00 00 00 D5 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 38 1F 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 48 [00:18:24]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 39 1F 80 17 00 00 00 00 00 00 D8 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 39 1F 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 E0 [00:18:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 3A 1F 80 17 00 00 00 00 00 00 D9 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 3A 1F 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 AB [00:18:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 3B 1F 80 17 00 00 00 00 00 00 DA [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 3B 1F 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 4C [00:18:26]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:18:26]wFMCommunicate OK [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 17 00 00 [00:18:26]Write to MH i2c: E2 08 00 3C 1F 80 17 00 00 00 00 00 00 DB [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 BD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 BD 00 3C 1F 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 C1 [00:18:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:26]wFMCommunicate OK [00:18:26]SAM_PROTO_GetShiftData done [00:18:26]requested_item shift.sale.total_cash is exist - process it [00:18:26]requested_item shift.sale_refund.total is exist - process it [00:18:26]requested_item shift.sale_refund.total_cash is exist - process it [00:18:26]requested_item shift.buy.total is exist - process it [00:18:26]requested_item shift.buy.total_cash is exist - process it [00:18:26]produce_requested_data done [00:18:26]produce_requested_data return {"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.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:18:26]process_action_free get_value [00:18:26]json_value_free [00:18:26]json_value_free done [00:18:26]process_json_proto returns [00:18:26]Send response to host [00:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9093032.26,"fm.sale_refund.total":87228.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:18:26]free response buf [00:18:26]execute_script done [00:18:26]execute_script returns [00:18:26]free content buf [00:18:26]Sock 9.Close socket [00:18:26]Sock 9.Thread stoped [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28: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:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:51:59]accept exits with 8 [00:51:59]New connection [00:51:59]New thread 3067325796 created [00:51:59]Thread 3067182436 joined [00:51:59]Waiting for new connection... [00:51:59] Sock 8.Parse request [00:51:59]Sock 8.Check first char [00:51:59]Sock 8.First char is OK [00:51:59]request: POST /json_proto HTTP/1.0 [00:51:59]Method: POST [00:51:59]URL: /json_proto [00:51:59]Method is POST - this is cgi request [00:51:59]url: /json_proto [00:51:59]query_string will be loaded in cgi processing [00:51:59]execute_cgi json_proto POST (null) [00:51:59]execute_cgi path=json_proto method=POST [00:51:59]POST find Content-Length [00:51:59]Host: 172.17.36.199:8080 [00:51:59]Content-Length: 1061 [00:51:59]Content-Type: application/json [00:51:59] [00:51:59]POST finish read [00:51:59]Found Content-Length = 1061 [00:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176550", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:59]execute_script... [00:51:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176550", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:59]POST & json_proto [00:51:59]process_json_proto [00:51:59]json parsed OK: [00:51:59]protocol is kg_v1.0 [00:51:59]action value=close_receipt [00:51:59]process_action close_receipt [00:51:59]cmd_close_receipt [00:51:59]MH_GetDate [00:51:59]Write to MH i2c: F0 00 00 3D 1F 4B [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: F0 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: F0 09 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: F0 09 00 3D 1F 00 34 65 5E 66 91 46 04 65 F1 [00:51:59]GetLastDocTimeStamp 1717460302 [00:51:59]current date 1717462324 [00:51:59]FM_GetShiftState [00:51:59]SAM_PROTO_GetShiftState [00:51:59]wFMCommunicate request_size=4 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 13 01 00 [00:51:59]Write to MH i2c: E2 08 00 3E 1F 80 13 01 00 00 00 00 00 DA [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 0E 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 0E 00 3E 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 55 [00:51:59]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [00:51:59]wFMCommunicate OK [00:51:59]SAM_PROTO_GetShiftState done [00:51:59]FM_GetShiftState done [00:51:59]opened in 1717460302 [00:51:59]opened+sec_in_day 1717546702 [00:51:59]quantity*price = 53000 [00:51:59]sum+1 = 53001 [00:51:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 670.00 НСП 1% : 5.93 НДС 12% : 71.15 Наличными: 0.00 Безнал.: 670.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 1 04.06.2024 00:52 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39991 ФПД: 228875089866696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T005204&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39991&fm=228875089866696&tin=02508201610067®Number=0000000000092680&sum=67000 0 [00:52:00]StoreToDocumentArchive [00:52:00]shift 377 fd 39991 [00:52:00]save to /storage/0377/doc_00039991 [00:52:00]save last doc name /storage/0377/doc_00039991 to /storage/kkm_last_doc_name [00:52:00]save OK [00:52:00]Clear old archive folders... [00:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=382 [00:52:00]tlvbuf is 00E42490 [00:52:00]SAM_PROTO_ClearQueue [00:52:00]wFMCommunicate request_size=4 [00:52:00]MH_SAM_APDU [00:52:00]CAPDU: 80 09 00 00 [00:52:00]Write to MH i2c: E2 08 00 4B 1F 80 09 00 00 00 00 00 00 DC [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:00]Read from MH i2c: E2 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [00:52:00]RAPDU: 90 00 [00:52:00]wFMCommunicate OK [00:52:00]SAM_PROTO_ClearQueue done [00:52:00]KKMCreateOFDPacket [00:52:00]OFDProtocolAddRootSTLVToBuf [00:52:00]FM_MakeSignedData [00:52:00]FM_MakeSignedData [00:52:00]SAM_PROTO_SignData [00:52:00]wFMCommunicate request_size=4 [00:52:00]MH_SAM_APDU [00:52:00]CAPDU: 80 0D 01 02 [00:52:00]Write to MH i2c: E2 08 00 4C 1F 80 0D 01 02 00 00 00 00 E4 [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:00]Read from MH i2c: E2 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [00:52:00]RAPDU: 90 00 [00:52:00]wFMCommunicate OK [00:52:00]wFMCommunicate request_size=255 [00:52:00]MH_SAM_APDU [00:52:00]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 [00:52:00]Write to MH i2c: E2 02 01 4D 1F 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 6F [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:00]Read from MH i2c: E2 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: E2 03 00 4D 1F 00 90 00 E0 [00:52:00]RAPDU: 90 00 [00:52:00]wFMCommunicate OK [00:52:00]wFMCommunicate request_size=141 [00:52:00]MH_SAM_APDU [00:52:00]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 65 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 37 9C 00 00 35 04 06 00 D0 29 22 6D EF C8 [00:52:00]Write to MH i2c: E2 90 00 4E 1F 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 65 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 37 9C 00 00 35 04 06 00 D0 29 22 6D EF C8 00 00 B7 [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:01]Read from MH i2c: E2 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 03 00 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 03 00 4E 1F 00 90 00 E1 [00:52:01]RAPDU: 90 00 [00:52:01]wFMCommunicate OK [00:52:01]wFMCommunicate request_size=4 [00:52:01]MH_SAM_APDU [00:52:01]CAPDU: 80 0D 03 02 [00:52:01]Write to MH i2c: E2 08 00 4F 1F 80 0D 03 02 00 00 00 00 E9 [00:52:01]Write i2c OK [00:52:01]MH_I2C_Read... [00:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:01]Read from MH i2c: E2 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 0B 00 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 0B 00 4F 1F 00 47 25 3C CD FF D6 1D E0 90 00 31 [00:52:01]RAPDU: 47 25 3C CD FF D6 1D E0 90 00 [00:52:01]wFMCommunicate OK [00:52:01]SAM_PROTO_SignData done [00:52:01]FM_MakeSignedData done [00:52:01]CreateOFDProtocolMessage [00:52:01]wFMCommunicate request_size=4 [00:52:01]MH_SAM_APDU [00:52:01]CAPDU: 80 11 00 00 [00:52:01]Write to MH i2c: E2 08 00 50 1F 80 11 00 00 00 00 00 00 E9 [00:52:01]Write i2c OK [00:52:01]MH_I2C_Read... [00:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:01]Read from MH i2c: E2 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 17 00 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 17 00 50 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 41 [00:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:52:01]wFMCommunicate OK [00:52:01]CreateOFDProtocolMessage done [00:52:01]OFDSenderStorePacket 39991 [00:52:01]StoreOFDPacket docnum=39991 [00:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 92 01 00 00 97 E2 8A 01 B0 E8 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 65 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 37 9C 00 00 35 04 06 00 D0 29 22 6D EF C8 47 25 3C CD FF D6 1D E0 [00:52:01]CheckFolder [00:52:01]dirname=/storage/ofd_packets [00:52:01]CheckFolder done [00:52:01]ProducePacketName [00:52:01]name=ofd_packets/00039991 [00:52:01]NVStorageSaveData ofd_packets/00039991 [00:52:01]File name is /storage/ofd_packets/00039991 [00:52:01]Write 432 bytes [00:52:01]NVStorageSaveData done [00:52:01]OFDSenderStorePacket done [00:52:01]KKMCreateOFDPacket done [00:52:01]NVStorageSaveData kkm_last_timestamp [00:52:01]File name is /storage/kkm_last_timestamp [00:52:01]Write 4 bytes [00:52:01]NVStorageSaveData done [00:52:01]ExternCall_PrintAddStr [00:52:01]wPrintStart [00:52:01]Write to MH i2c: 01 00 00 51 1F 70 [00:52:01]Write i2c OK [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: 01 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: 01 07 00 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: 01 07 00 51 1F 00 00 00 00 00 FF 0F 85 [00:52:01]RasterBufferAndPrint [00:52:01]line Счет N : (3)176550 [00:52:01]line ИНН: 02508201610067 [00:52:01]line Контрольно-Кассовый Чек [00:52:01]line ПРОДАЖА [00:52:01]line Товар: 90448300 [00:52:01]line Энерг напиток Red Bull 0,355л [00:52:01]line 2.000 * 265.00 [00:52:01]line = 530.00 [00:52:01]line НДС 12% НСП 1% [00:52:01]line > о реализуемом товаре [00:52:01]line Товар: 48747059 [00:52:01]line Сигареты Winston Legend Blue [00:52:01]line 1.000 * 140.00 [00:52:01]line = 140.00 [00:52:01]line НДС 12% НСП 1% [00:52:01]line > о реализуемом товаре [00:52:01]line ИТОГО: 670.00 [00:52:01]line НСП 1% : 5.93 [00:52:01]line НДС 12% : 71.15 [00:52:01]line Наличными: 0.00 [00:52:01]line Безнал.: 670.00 [00:52:01]line Место: АЗС № 63 "Партнер Нефть" [00:52:01]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [00:52:01]line СНО: Общий режим [00:52:01]line Чек 1 04.06.2024 00:52 [00:52:01]line Смена: 377 ФФД: 1.0 [00:52:01]line ЗНМ: 0300000037 [00:52:01]line РНМ: 0000000000092680 [00:52:01]line Версия ККМ: 001 [00:52:01]line Платежная система: Бакай Банк [00:52:01]line ФМ: 0000000000874882 [00:52:01]line ФД: 39991 [00:52:01]line ФПД: 228875089866696 [00:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T005204&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39991&fm=228875089866696&tin=02508201610067®Number=0000000000092680&sum=67000 [00:52:01]OFD Sender: Processing packet 39991 [packets to send 5, broken 4] [00:52:01]ProducePacketName [00:52:01]name=ofd_packets/00039991 [00:52:01]OFD Sender: To server: pG, [00:52:01]CommunicateWithHost lk.salyk.kg:30040 [00:52:01]ConnectInit lk.salyk.kg [00:52:01]line 0 [00:52:01]written 0, free lines is 4095 [00:52:01]Connected sock=10 [00:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 92 01 00 00 97 E2 8A 01 B0 E8 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 65 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 37 9C 00 00 35 04 06 00 D0 29 22 6D EF C8 47 25 3C CD FF D6 1D E0 [00:52:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 A5 00 47 00 74 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 37 9C 00 00 F4 03 04 00 DF 0D 5E 66 B6 04 01 00 00 AC 23 5D C3 8B 9B 9B 6F [00:52:01]CommunicateWithHost err = 0 [00:52:01]CheckOFDResponse [00:52:01]1017 (14) - 77093643461234 [00:52:01]1041 (16) - 0000000000874882 [00:52:01]1040 (4) - 39991 [00:52:01]1012 (4) - 03.06.2024 18:39 [00:52:01]1206 (1) - 0 [00:52:01]OFD Sender: Remove packet 39991 [00:52:01]ProducePacketName [00:52:01]name=ofd_packets/00039991 [00:52:01]NVStorageDeleteData [00:52:02]Write to MH i2c: 01 00 00 82 1F A1 [00:52:02]Write i2c OK [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: 01 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: 01 07 00 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: 01 07 00 82 1F 00 00 00 00 00 95 0C 49 [00:52:02]RasterBufferAndPrint [00:52:02]line [00:52:02]line [00:52:02]line [00:52:02]line [00:52:02]line [00:52:02]written 0, free lines is 3230 [00:52:02]MH_Cut [00:52:02]Write to MH i2c: D1 01 00 89 1F 01 7A [00:52:02]Write i2c OK [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: D1 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: D1 01 00 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: D1 01 00 89 1F 00 79 [00:52:02]Write to MH i2c: 01 00 00 8A 1F A9 [00:52:02]Write i2c OK [00:52:02]MH_I2C_Read... [00:52:02]OFD Sender: No OFD packet to send [00:52:02]*** Cut start [00:52:02]*** Partial cut [00:52:02]*** CUTSNS_PIN = 1 [00:52:02]*** CUTSNS_PIN = 0 [00:52:03]*** Brake cut motor [00:52:03]Read from MH i2c: 01 [00:52:03]MH_I2C_Read... [00:52:03]*** Stop cut motor [00:52:03]*** Cut end [00:52:03]Read from MH i2c: 01 07 00 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: 01 07 00 8A 1F 00 00 00 00 00 FF 0F BE [00:52:03]process_action close_receipt done [00:52:03]requested_data is exist [00:52:03]produce_requested_data [00:52:03]requested_item fm.sn is exist - process it [00:52:03]wFMCommunicate request_size=4 [00:52:03]MH_SAM_APDU [00:52:03]CAPDU: 80 11 00 00 [00:52:03]Write to MH i2c: E2 08 00 8B 1F 80 11 00 00 00 00 00 00 24 [00:52:03]Write i2c OK [00:52:03]MH_I2C_Read... [00:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:03]Read from MH i2c: E2 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 17 00 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 17 00 8B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 7C [00:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [00:52:03]wFMCommunicate OK [00:52:03]requested_item fd.num is exist - process it [00:52:03]SAM_PROTO_GetFieldsCounters [00:52:03]wFMCommunicate request_size=4 [00:52:03]MH_SAM_APDU [00:52:03]CAPDU: 80 13 00 00 [00:52:03]Write to MH i2c: E2 08 00 8C 1F 80 13 00 00 00 00 00 00 27 [00:52:03]Write i2c OK [00:52:03]MH_I2C_Read... [00:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:03]Read from MH i2c: E2 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 62 00 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 62 00 8C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 37 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [00:52:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 37 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:03]wFMCommunicate OK [00:52:03]SAM_PROTO_GetFieldsCounters done [00:52:03]requested_item shift.num is exist - process it [00:52:03]requested_item shift.opened is exist - process it [00:52:03]req_shift_opened [00:52:03]FM_GetShiftState [00:52:03]SAM_PROTO_GetShiftState [00:52:03]wFMCommunicate request_size=4 [00:52:03]MH_SAM_APDU [00:52:03]CAPDU: 80 13 01 00 [00:52:03]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [00:52:03]Write i2c OK [00:52:03]MH_I2C_Read... [00:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:03]Read from MH i2c: E2 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 0E 00 [00:52:03]MH_I2C_Read... [00:52:03]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 A4 [00:52:03]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [00:52:03]wFMCommunicate OK [00:52:03]SAM_PROTO_GetShiftState done [00:52:03]FM_GetShiftState done [00:52:03]req_shift_opened done [00:52:03]requested_item shift.open_date is exist - process it [00:52:03]req_shift_open_date [00:52:03]req_shift_open_date done [00:52:03]produce_requested_data done [00:52:03]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39991,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [00:52:03]process_action_free close_receipt [00:52:03]json_value_free [00:52:03]json_value_free done [00:52:03]process_json_proto returns [00:52:03]Send response to host [00:52:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39991,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [00:52:03]free response buf [00:52:03]execute_script done [00:52:03]execute_script returns [00:52:03]free content buf [00:52:03]Sock 8.Close socket [00:52:03]Sock 8.Thread stoped [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:09]accept exits with 9 [01:00:09]New connection [01:00:09]New thread 3067182436 created [01:00:09]Thread 3067325796 joined [01:00:09]Waiting for new connection... [01:00:09] Sock 9.Parse request [01:00:09]Sock 9.Check first char [01:00:09]Sock 9.First char is OK [01:00:09]request: POST /json_proto HTTP/1.0 [01:00:09]Method: POST [01:00:09]URL: /json_proto [01:00:09]Method is POST - this is cgi request [01:00:09]url: /json_proto [01:00:09]query_string will be loaded in cgi processing [01:00:09]execute_cgi json_proto POST (null) [01:00:09]execute_cgi path=json_proto method=POST [01:00:09]POST find Content-Length [01:00:09]Host: 172.17.36.199:8080 [01:00:09]Content-Length: 801 [01:00:09]Content-Type: application/json [01:00:09] [01:00:09]POST finish read [01:00:09]Found Content-Length = 801 [01:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176551", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:09]execute_script... [01:00:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176551", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:09]POST & json_proto [01:00:09]process_json_proto [01:00:09]json parsed OK: [01:00:09]protocol is kg_v1.0 [01:00:09]action value=close_receipt [01:00:09]process_action close_receipt [01:00:09]cmd_close_receipt [01:00:09]MH_GetDate [01:00:09]Write to MH i2c: F0 00 00 8E 1F 9C [01:00:09]Write i2c OK [01:00:09]MH_I2C_Read... [01:00:09]Read from MH i2c: F0 [01:00:09]MH_I2C_Read... [01:00:09]Read from MH i2c: F0 09 00 [01:00:09]MH_I2C_Read... [01:00:09]Read from MH i2c: F0 09 00 8E 1F 00 1E 67 5E 66 91 46 04 65 2E [01:00:09]GetLastDocTimeStamp 1717462324 [01:00:09]current date 1717462814 [01:00:09]FM_GetShiftState [01:00:09]SAM_PROTO_GetShiftState [01:00:09]wFMCommunicate request_size=4 [01:00:09]MH_SAM_APDU [01:00:09]CAPDU: 80 13 01 00 [01:00:09]Write to MH i2c: E2 08 00 8F 1F 80 13 01 00 00 00 00 00 2B [01:00:09]Write i2c OK [01:00:09]MH_I2C_Read... [01:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:09]Read from MH i2c: E2 [01:00:09]MH_I2C_Read... [01:00:09]Read from MH i2c: E2 0E 00 [01:00:09]MH_I2C_Read... [01:00:09]Read from MH i2c: E2 0E 00 8F 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 A6 [01:00:09]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:00:09]wFMCommunicate OK [01:00:09]SAM_PROTO_GetShiftState done [01:00:09]FM_GetShiftState done [01:00:09]opened in 1717460302 [01:00:09]opened+sec_in_day 1717546702 [01:00:09]quantity*price = 14300 [01:00:09]sum+1 = 14301 [01:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 0.00 Безнал.: 143.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 2 04.06.2024 01:00 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 39992 ФПД: 258794133896896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T010014&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39992&fm=258794133896896&tin=02508201610067®Number=0000000000092680&sum=14300 0 [01:00:10]StoreToDocumentArchive [01:00:10]shift 377 fd 39992 [01:00:10]save to /storage/0377/doc_00039992 [01:00:10]save last doc name /storage/0377/doc_00039992 to /storage/kkm_last_doc_name [01:00:10]save OK [01:00:10]Clear old archive folders... [01:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [01:00:10]tlvbuf is B6F1C2A0 [01:00:10]SAM_PROTO_ClearQueue [01:00:10]wFMCommunicate request_size=4 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 09 00 00 [01:00:10]Write to MH i2c: E2 08 00 9C 1F 80 09 00 00 00 00 00 00 2D [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [01:00:10]RAPDU: 90 00 [01:00:10]wFMCommunicate OK [01:00:10]SAM_PROTO_ClearQueue done [01:00:10]KKMCreateOFDPacket [01:00:10]OFDProtocolAddRootSTLVToBuf [01:00:10]FM_MakeSignedData [01:00:10]FM_MakeSignedData [01:00:10]SAM_PROTO_SignData [01:00:10]wFMCommunicate request_size=4 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 0D 01 02 [01:00:10]Write to MH i2c: E2 08 00 9D 1F 80 0D 01 02 00 00 00 00 35 [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [01:00:10]RAPDU: 90 00 [01:00:10]wFMCommunicate OK [01:00:10]wFMCommunicate request_size=255 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1E 67 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 [01:00:10]Write to MH i2c: E2 02 01 9E 1F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1E 67 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 00 00 49 [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 9E 1F 00 90 00 31 [01:00:10]RAPDU: 90 00 [01:00:10]wFMCommunicate OK [01:00:10]wFMCommunicate request_size=35 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 38 9C 00 00 35 04 06 00 EB 5F 34 6B BE C0 [01:00:10]Write to MH i2c: E2 26 00 9F 1F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 38 9C 00 00 35 04 06 00 EB 5F 34 6B BE C0 00 00 6B [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [01:00:10]RAPDU: 90 00 [01:00:10]wFMCommunicate OK [01:00:10]wFMCommunicate request_size=4 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 0D 03 02 [01:00:10]Write to MH i2c: E2 08 00 A0 1F 80 0D 03 02 00 00 00 00 3A [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 0B 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 0B 00 A0 1F 00 B3 32 BC D2 5C DE E6 F0 90 00 BE [01:00:10]RAPDU: B3 32 BC D2 5C DE E6 F0 90 00 [01:00:10]wFMCommunicate OK [01:00:10]SAM_PROTO_SignData done [01:00:10]FM_MakeSignedData done [01:00:10]CreateOFDProtocolMessage [01:00:10]wFMCommunicate request_size=4 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 11 00 00 [01:00:10]Write to MH i2c: E2 08 00 A1 1F 80 11 00 00 00 00 00 00 3A [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 17 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 17 00 A1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 92 [01:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:00:10]wFMCommunicate OK [01:00:10]CreateOFDProtocolMessage done [01:00:10]OFDSenderStorePacket 39992 [01:00:10]StoreOFDPacket docnum=39992 [01:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 C0 81 20 01 13 FC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1E 67 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 38 9C 00 00 35 04 06 00 EB 5F 34 6B BE C0 B3 32 BC D2 5C DE E6 F0 [01:00:10]CheckFolder [01:00:10]dirname=/storage/ofd_packets [01:00:10]CheckFolder done [01:00:10]ProducePacketName [01:00:10]name=ofd_packets/00039992 [01:00:10]NVStorageSaveData ofd_packets/00039992 [01:00:10]File name is /storage/ofd_packets/00039992 [01:00:10]Write 326 bytes [01:00:10]NVStorageSaveData done [01:00:10]OFDSenderStorePacket done [01:00:10]KKMCreateOFDPacket done [01:00:10]NVStorageSaveData kkm_last_timestamp [01:00:10]File name is /storage/kkm_last_timestamp [01:00:10]Write 4 bytes [01:00:10]NVStorageSaveData done [01:00:10]ExternCall_PrintAddStr [01:00:10]wPrintStart [01:00:10]Write to MH i2c: 01 00 00 A2 1F C1 [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: 01 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: 01 07 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: 01 07 00 A2 1F 00 00 00 00 00 FF 0F D6 [01:00:10]RasterBufferAndPrint [01:00:10]line Счет N : (3)176551 [01:00:10]line ИНН: 02508201610067 [01:00:10]line Контрольно-Кассовый Чек [01:00:10]line ПРОДАЖА [01:00:10]line Товар: 48744683 [01:00:10]line Сигареты Winston XStyle Caster+ [01:00:10]line 1.000 * 143.00 [01:00:10]line = 143.00 [01:00:10]line НДС 12% НСП 1% [01:00:10]line > о реализуемом товаре [01:00:10]line ИТОГО: 143.00 [01:00:10]line НСП 1% : 1.26 [01:00:10]line НДС 12% : 15.19 [01:00:10]line Наличными: 0.00 [01:00:10]line Безнал.: 143.00 [01:00:10]line Место: АЗС № 63 "Партнер Нефть" [01:00:10]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:00:10]line СНО: Общий режим [01:00:10]line Чек 2 04.06.2024 01:00 [01:00:10]line Смена: 377 ФФД: 1.0 [01:00:10]line ЗНМ: 0300000037 [01:00:10]line РНМ: 0000000000092680 [01:00:10]line Версия ККМ: 001 [01:00:10]line Платежная система: Бакай Банк [01:00:10]line ФМ: 0000000000874882 [01:00:10]line ФД: 39992 [01:00:10]line ФПД: 258794133896896 [01:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T010014&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39992&fm=258794133896896&tin=02508201610067®Number=0000000000092680&sum=14300 [01:00:11]line 0 [01:00:11]OFD Sender: Processing packet 39992 [packets to send 5, broken 4] [01:00:11]ProducePacketName [01:00:11]name=ofd_packets/00039992 [01:00:11]OFD Sender: To server: pG, [01:00:11]CommunicateWithHost lk.salyk.kg:30040 [01:00:11]ConnectInit lk.salyk.kg [01:00:11]written 0, free lines is 4095 [01:00:11]Connected sock=10 [01:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 C0 81 20 01 13 FC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1E 67 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 38 9C 00 00 35 04 06 00 EB 5F 34 6B BE C0 B3 32 BC D2 5C DE E6 F0 [01:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 8B 03 47 00 5C CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 38 9C 00 00 F4 03 04 00 C8 0F 5E 66 B6 04 01 00 00 AC 98 42 29 D6 F5 79 32 [01:00:11]CommunicateWithHost err = 0 [01:00:11]CheckOFDResponse [01:00:11]1017 (14) - 77093643461234 [01:00:11]1041 (16) - 0000000000874882 [01:00:11]1040 (4) - 39992 [01:00:11]1012 (4) - 03.06.2024 18:47 [01:00:11]1206 (1) - 0 [01:00:11]OFD Sender: Remove packet 39992 [01:00:11]ProducePacketName [01:00:11]name=ofd_packets/00039992 [01:00:11]NVStorageDeleteData [01:00:11]Write to MH i2c: 01 00 00 CD 1F EC [01:00:11]Write i2c OK [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: 01 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: 01 07 00 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: 01 07 00 CD 1F 00 00 00 00 00 E3 0C E2 [01:00:11]RasterBufferAndPrint [01:00:11]line [01:00:11]line [01:00:11]line [01:00:11]line [01:00:11]line [01:00:11]written 0, free lines is 3305 [01:00:11]MH_Cut [01:00:11]Write to MH i2c: D1 01 00 D4 1F 01 C5 [01:00:11]Write i2c OK [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: D1 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: D1 01 00 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: D1 01 00 D4 1F 00 C4 [01:00:11]Write to MH i2c: 01 00 00 D5 1F F4 [01:00:11]Write i2c OK [01:00:11]MH_I2C_Read... [01:00:11]OFD Sender: No OFD packet to send [01:00:12]*** Cut start [01:00:12]*** Partial cut [01:00:12]*** CUTSNS_PIN = 1 [01:00:12]*** CUTSNS_PIN = 0 [01:00:12]*** Brake cut motor [01:00:12]Read from MH i2c: 01 [01:00:12]MH_I2C_Read... [01:00:12]*** Stop cut motor [01:00:12]*** Cut end [01:00:12]Read from MH i2c: 01 07 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 07 00 D5 1F 00 00 00 00 00 FF 0F 09 [01:00:12]process_action close_receipt done [01:00:12]requested_data is exist [01:00:12]produce_requested_data [01:00:12]requested_item fm.sn is exist - process it [01:00:12]wFMCommunicate request_size=4 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 11 00 00 [01:00:12]Write to MH i2c: E2 08 00 D6 1F 80 11 00 00 00 00 00 00 6F [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 17 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 17 00 D6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 C7 [01:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:00:12]wFMCommunicate OK [01:00:12]requested_item fd.num is exist - process it [01:00:12]SAM_PROTO_GetFieldsCounters [01:00:12]wFMCommunicate request_size=4 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 13 00 00 [01:00:12]Write to MH i2c: E2 08 00 D7 1F 80 13 00 00 00 00 00 00 72 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:13]Read from MH i2c: E2 [01:00:13]MH_I2C_Read... [01:00:13]Read from MH i2c: E2 62 00 [01:00:13]MH_I2C_Read... [01:00:13]Read from MH i2c: E2 62 00 D7 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 38 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [01:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 38 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:00:13]wFMCommunicate OK [01:00:13]SAM_PROTO_GetFieldsCounters done [01:00:13]requested_item shift.num is exist - process it [01:00:13]requested_item shift.opened is exist - process it [01:00:13]req_shift_opened [01:00:13]FM_GetShiftState [01:00:13]SAM_PROTO_GetShiftState [01:00:13]wFMCommunicate request_size=4 [01:00:13]MH_SAM_APDU [01:00:13]CAPDU: 80 13 01 00 [01:00:13]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [01:00:13]Write i2c OK [01:00:13]MH_I2C_Read... [01:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:13]Read from MH i2c: E2 [01:00:13]MH_I2C_Read... [01:00:13]Read from MH i2c: E2 0E 00 [01:00:13]MH_I2C_Read... [01:00:13]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 EF [01:00:13]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:00:13]wFMCommunicate OK [01:00:13]SAM_PROTO_GetShiftState done [01:00:13]FM_GetShiftState done [01:00:13]req_shift_opened done [01:00:13]requested_item shift.open_date is exist - process it [01:00:13]req_shift_open_date [01:00:13]req_shift_open_date done [01:00:13]produce_requested_data done [01:00:13]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39992,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:00:13]process_action_free close_receipt [01:00:13]json_value_free [01:00:13]json_value_free done [01:00:13]process_json_proto returns [01:00:13]Send response to host [01:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39992,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:00:13]free response buf [01:00:13]execute_script done [01:00:13]execute_script returns [01:00:13]free content buf [01:00:13]Sock 9.Close socket [01:00:13]Sock 9.Thread stoped [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:10]accept exits with 8 [01:34:10]New connection [01:34:10]New thread 3067325796 created [01:34:10]Thread 3067182436 joined [01:34:10]Waiting for new connection... [01:34:10] Sock 8.Parse request [01:34:10]Sock 8.Check first char [01:34:10]Sock 8.First char is OK [01:34:10]request: POST /json_proto HTTP/1.0 [01:34:10]Method: POST [01:34:10]URL: /json_proto [01:34:10]Method is POST - this is cgi request [01:34:10]url: /json_proto [01:34:10]query_string will be loaded in cgi processing [01:34:10]execute_cgi json_proto POST (null) [01:34:10]execute_cgi path=json_proto method=POST [01:34:10]POST find Content-Length [01:34:10]Host: 172.17.36.199:8080 [01:34:10]Content-Length: 825 [01:34:10]Content-Type: application/json [01:34:10] [01:34:10]POST finish read [01:34:10]Found Content-Length = 825 [01:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176552", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:10]execute_script... [01:34:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176552", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:10]POST & json_proto [01:34:10]process_json_proto [01:34:10]json parsed OK: [01:34:10]protocol is kg_v1.0 [01:34:10]action value=close_receipt [01:34:10]process_action close_receipt [01:34:10]cmd_close_receipt [01:34:10]MH_GetDate [01:34:10]Write to MH i2c: F0 00 00 D9 1F E7 [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: F0 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: F0 09 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: F0 09 00 D9 1F 00 17 6F 5E 66 91 46 04 65 7A [01:34:10]GetLastDocTimeStamp 1717462814 [01:34:10]current date 1717464855 [01:34:10]FM_GetShiftState [01:34:10]SAM_PROTO_GetShiftState [01:34:10]wFMCommunicate request_size=4 [01:34:10]MH_SAM_APDU [01:34:10]CAPDU: 80 13 01 00 [01:34:10]Write to MH i2c: E2 08 00 DA 1F 80 13 01 00 00 00 00 00 76 [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 0E 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 0E 00 DA 1F 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 F1 [01:34:10]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:34:10]wFMCommunicate OK [01:34:10]SAM_PROTO_GetShiftState done [01:34:10]FM_GetShiftState done [01:34:10]opened in 1717460302 [01:34:10]opened+sec_in_day 1717546702 [01:34:10]quantity*price = 30000 [01:34:10]sum+1 = 30001 [01:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 3 04.06.2024 01:34 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39993 ФПД: 104189136106188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013415&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39993&fm=104189136106188&tin=02508201610067®Number=0000000000092680&sum=30000 0 [01:34:11]StoreToDocumentArchive [01:34:11]shift 377 fd 39993 [01:34:11]save to /storage/0377/doc_00039993 [01:34:11]save last doc name /storage/0377/doc_00039993 to /storage/kkm_last_doc_name [01:34:11]save OK [01:34:11]Clear old archive folders... [01:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=268 [01:34:11]tlvbuf is 00E00B70 [01:34:11]SAM_PROTO_ClearQueue [01:34:11]wFMCommunicate request_size=4 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 09 00 00 [01:34:11]Write to MH i2c: E2 08 00 E7 1F 80 09 00 00 00 00 00 00 78 [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [01:34:11]RAPDU: 90 00 [01:34:11]wFMCommunicate OK [01:34:11]SAM_PROTO_ClearQueue done [01:34:11]KKMCreateOFDPacket [01:34:11]OFDProtocolAddRootSTLVToBuf [01:34:11]FM_MakeSignedData [01:34:11]FM_MakeSignedData [01:34:11]SAM_PROTO_SignData [01:34:11]wFMCommunicate request_size=4 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 0D 01 02 [01:34:11]Write to MH i2c: E2 08 00 E8 1F 80 0D 01 02 00 00 00 00 80 [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [01:34:11]RAPDU: 90 00 [01:34:11]wFMCommunicate OK [01:34:11]wFMCommunicate request_size=255 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 17 6F 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:34:11]Write to MH i2c: E2 02 01 E9 1F 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 17 6F 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F2 [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [01:34:11]RAPDU: 90 00 [01:34:11]wFMCommunicate OK [01:34:11]wFMCommunicate request_size=27 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 0D 02 02 16 34 38 38 32 10 04 04 00 39 9C 00 00 35 04 06 00 5E C2 6C 72 72 CC [01:34:11]Write to MH i2c: E2 1E 00 EA 1F 80 0D 02 02 16 00 34 38 38 32 10 04 04 00 39 9C 00 00 35 04 06 00 5E C2 6C 72 72 CC 00 00 ED [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:11]Read from MH i2c: E2 03 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [01:34:11]RAPDU: 90 00 [01:34:11]wFMCommunicate OK [01:34:11]wFMCommunicate request_size=4 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 0D 03 02 [01:34:11]Write to MH i2c: E2 08 00 EB 1F 80 0D 03 02 00 00 00 00 85 [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 0B 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 0B 00 EB 1F 00 79 0E E1 A2 25 B8 75 B0 90 00 92 [01:34:11]RAPDU: 79 0E E1 A2 25 B8 75 B0 90 00 [01:34:11]wFMCommunicate OK [01:34:11]SAM_PROTO_SignData done [01:34:11]FM_MakeSignedData done [01:34:11]CreateOFDProtocolMessage [01:34:11]wFMCommunicate request_size=4 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 11 00 00 [01:34:11]Write to MH i2c: E2 08 00 EC 1F 80 11 00 00 00 00 00 00 85 [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 17 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 17 00 EC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DD [01:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:34:11]wFMCommunicate OK [01:34:11]CreateOFDProtocolMessage done [01:34:11]OFDSenderStorePacket 39993 [01:34:11]StoreOFDPacket docnum=39993 [01:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 0F 37 18 01 26 93 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 17 6F 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 39 9C 00 00 35 04 06 00 5E C2 6C 72 72 CC 79 0E E1 A2 25 B8 75 B0 [01:34:11]CheckFolder [01:34:11]dirname=/storage/ofd_packets [01:34:11]CheckFolder done [01:34:11]ProducePacketName [01:34:11]name=ofd_packets/00039993 [01:34:11]NVStorageSaveData ofd_packets/00039993 [01:34:11]File name is /storage/ofd_packets/00039993 [01:34:11]Write 318 bytes [01:34:11]NVStorageSaveData done [01:34:11]OFDSenderStorePacket done [01:34:11]KKMCreateOFDPacket done [01:34:11]NVStorageSaveData kkm_last_timestamp [01:34:11]File name is /storage/kkm_last_timestamp [01:34:11]Write 4 bytes [01:34:11]NVStorageSaveData done [01:34:11]ExternCall_PrintAddStr [01:34:11]wPrintStart [01:34:11]Write to MH i2c: 01 00 00 ED 1F 0C [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: 01 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: 01 07 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: 01 07 00 ED 1F 00 00 00 00 00 FF 0F 21 [01:34:11]RasterBufferAndPrint [01:34:11]line Счет N : (3)176552 [01:34:11]line ИНН: 02508201610067 [01:34:11]line Контрольно-Кассовый Чек [01:34:11]line ПРОДАЖА [01:34:11]line Товар: 4600721021627 [01:34:11]line Пиво БАД 0,5л ст [01:34:11]line 2.000 * 150.00 [01:34:11]line = 300.00 [01:34:11]line НДС 12% НСП 1% [01:34:11]line > о реализуемом товаре [01:34:11]line ИТОГО: 300.00 [01:34:11]line НСП 1% : 2.65 [01:34:11]line НДС 12% : 31.86 [01:34:11]line Наличными: 0.00 [01:34:11]line Безнал.: 300.00 [01:34:11]line Место: АЗС № 63 "Партнер Нефть" [01:34:11]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:34:11]line СНО: Общий режим [01:34:11]line Чек 3 04.06.2024 01:34 [01:34:11]line Смена: 377 ФФД: 1.0 [01:34:11]line ЗНМ: 0300000037 [01:34:11]line РНМ: 0000000000092680 [01:34:11]line Версия ККМ: 001 [01:34:11]line Платежная система: АКБ Кыргызстан [01:34:11]line ФМ: 0000000000874882 [01:34:11]line ФД: 39993 [01:34:11]line ФПД: 104189136106188 [01:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013415&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39993&fm=104189136106188&tin=02508201610067®Number=0000000000092680&sum=30000 [01:34:11]line 0 [01:34:11]written 0, free lines is 4095 [01:34:11]OFD Sender: Processing packet 39993 [packets to send 5, broken 4] [01:34:11]ProducePacketName [01:34:11]name=ofd_packets/00039993 [01:34:11]OFD Sender: To server: pG, [01:34:11]CommunicateWithHost lk.salyk.kg:30040 [01:34:11]ConnectInit lk.salyk.kg [01:34:12]Connected sock=10 [01:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 0F 37 18 01 26 93 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 17 6F 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 39 9C 00 00 35 04 06 00 5E C2 6C 72 72 CC 79 0E E1 A2 25 B8 75 B0 [01:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 FF 14 47 00 40 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 39 9C 00 00 F4 03 04 00 C1 17 5E 66 B6 04 01 00 00 E8 72 1B 09 F2 91 C4 30 [01:34:12]CommunicateWithHost err = 0 [01:34:12]CheckOFDResponse [01:34:12]1017 (14) - 77093643461234 [01:34:12]1041 (16) - 0000000000874882 [01:34:12]1040 (4) - 39993 [01:34:12]1012 (4) - 03.06.2024 19:21 [01:34:12]1206 (1) - 0 [01:34:12]OFD Sender: Remove packet 39993 [01:34:12]ProducePacketName [01:34:12]name=ofd_packets/00039993 [01:34:12]NVStorageDeleteData [01:34:12]Write to MH i2c: 01 00 00 17 20 37 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 05 0D 50 [01:34:12]RasterBufferAndPrint [01:34:12]line [01:34:12]line [01:34:12]line [01:34:12]line [01:34:12]line [01:34:12]written 0, free lines is 3339 [01:34:12]MH_Cut [01:34:12]Write to MH i2c: D1 01 00 1E 20 01 10 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: D1 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: D1 01 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: D1 01 00 1E 20 00 0F [01:34:12]Write to MH i2c: 01 00 00 1F 20 3F [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]OFD Sender: No OFD packet to send [01:34:13]*** Cut start [01:34:13]*** Partial cut [01:34:13]*** CUTSNS_PIN = 1 [01:34:13]*** CUTSNS_PIN = 0 [01:34:13]*** Brake cut motor [01:34:13]Read from MH i2c: 01 [01:34:13]MH_I2C_Read... [01:34:13]*** Stop cut motor [01:34:13]*** Cut end [01:34:13]Read from MH i2c: 01 07 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: 01 07 00 1F 20 00 00 00 00 00 FF 0F 54 [01:34:13]process_action close_receipt done [01:34:13]requested_data is exist [01:34:13]produce_requested_data [01:34:13]requested_item fm.sn is exist - process it [01:34:13]wFMCommunicate request_size=4 [01:34:13]MH_SAM_APDU [01:34:13]CAPDU: 80 11 00 00 [01:34:13]Write to MH i2c: E2 08 00 20 20 80 11 00 00 00 00 00 00 BA [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:13]Read from MH i2c: E2 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 17 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 17 00 20 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 12 [01:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:34:13]wFMCommunicate OK [01:34:13]requested_item fd.num is exist - process it [01:34:13]SAM_PROTO_GetFieldsCounters [01:34:13]wFMCommunicate request_size=4 [01:34:13]MH_SAM_APDU [01:34:13]CAPDU: 80 13 00 00 [01:34:13]Write to MH i2c: E2 08 00 21 20 80 13 00 00 00 00 00 00 BD [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:13]Read from MH i2c: E2 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 62 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 62 00 21 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 39 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [01:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 39 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:13]wFMCommunicate OK [01:34:13]SAM_PROTO_GetFieldsCounters done [01:34:13]requested_item shift.num is exist - process it [01:34:13]requested_item shift.opened is exist - process it [01:34:13]req_shift_opened [01:34:13]FM_GetShiftState [01:34:13]SAM_PROTO_GetShiftState [01:34:13]wFMCommunicate request_size=4 [01:34:13]MH_SAM_APDU [01:34:13]CAPDU: 80 13 01 00 [01:34:13]Write to MH i2c: E2 08 00 22 20 80 13 01 00 00 00 00 00 BF [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:13]Read from MH i2c: E2 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 0E 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: E2 0E 00 22 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 3A [01:34:13]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:34:13]wFMCommunicate OK [01:34:13]SAM_PROTO_GetShiftState done [01:34:13]FM_GetShiftState done [01:34:13]req_shift_opened done [01:34:13]requested_item shift.open_date is exist - process it [01:34:13]req_shift_open_date [01:34:13]req_shift_open_date done [01:34:13]produce_requested_data done [01:34:13]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39993,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:34:13]process_action_free close_receipt [01:34:13]json_value_free [01:34:13]json_value_free done [01:34:13]process_json_proto returns [01:34:13]Send response to host [01:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39993,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:34:13]free response buf [01:34:13]execute_script done [01:34:13]execute_script returns [01:34:13]free content buf [01:34:13]Sock 8.Close socket [01:34:13]Sock 8.Thread stoped [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:28]accept exits with 9 [01:38:28]New connection [01:38:28]New thread 3067182436 created [01:38:28]Thread 3067325796 joined [01:38:28]Waiting for new connection... [01:38:28] Sock 9.Parse request [01:38:28]Sock 9.Check first char [01:38:28]Sock 9.First char is OK [01:38:28]request: POST /json_proto HTTP/1.0 [01:38:28]Method: POST [01:38:28]URL: /json_proto [01:38:28]Method is POST - this is cgi request [01:38:28]url: /json_proto [01:38:28]query_string will be loaded in cgi processing [01:38:28]execute_cgi json_proto POST (null) [01:38:28]execute_cgi path=json_proto method=POST [01:38:28]POST find Content-Length [01:38:28]Host: 172.17.36.199:8080 [01:38:28]Content-Length: 847 [01:38:28]Content-Type: application/json [01:38:28] [01:38:28]POST finish read [01:38:28]Found Content-Length = 847 [01:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176553", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:28]execute_script... [01:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176553", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:28]POST & json_proto [01:38:28]process_json_proto [01:38:28]json parsed OK: [01:38:28]protocol is kg_v1.0 [01:38:28]action value=close_receipt [01:38:28]process_action close_receipt [01:38:28]cmd_close_receipt [01:38:28]MH_GetDate [01:38:28]Write to MH i2c: F0 00 00 23 20 32 [01:38:28]Write i2c OK [01:38:28]MH_I2C_Read... [01:38:28]Read from MH i2c: F0 [01:38:28]MH_I2C_Read... [01:38:28]Read from MH i2c: F0 09 00 [01:38:28]MH_I2C_Read... [01:38:28]Read from MH i2c: F0 09 00 23 20 00 19 70 5E 66 91 46 04 65 C8 [01:38:28]GetLastDocTimeStamp 1717464855 [01:38:28]current date 1717465113 [01:38:28]FM_GetShiftState [01:38:28]SAM_PROTO_GetShiftState [01:38:28]wFMCommunicate request_size=4 [01:38:28]MH_SAM_APDU [01:38:28]CAPDU: 80 13 01 00 [01:38:28]Write to MH i2c: E2 08 00 24 20 80 13 01 00 00 00 00 00 C1 [01:38:28]Write i2c OK [01:38:28]MH_I2C_Read... [01:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:28]Read from MH i2c: E2 [01:38:28]MH_I2C_Read... [01:38:28]Read from MH i2c: E2 0E 00 [01:38:28]MH_I2C_Read... [01:38:28]Read from MH i2c: E2 0E 00 24 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 3C [01:38:28]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:38:28]wFMCommunicate OK [01:38:28]SAM_PROTO_GetShiftState done [01:38:28]FM_GetShiftState done [01:38:28]opened in 1717460302 [01:38:28]opened+sec_in_day 1717546702 [01:38:28]quantity*price = 12500 [01:38:28]sum+1 = 12501 [01:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 4 04.06.2024 01:38 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39994 ФПД: 142647508459079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013833&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39994&fm=142647508459079&tin=02508201610067®Number=0000000000092680&sum=12500 0 [01:38:29]StoreToDocumentArchive [01:38:29]shift 377 fd 39994 [01:38:29]save to /storage/0377/doc_00039994 [01:38:29]save last doc name /storage/0377/doc_00039994 to /storage/kkm_last_doc_name [01:38:29]save OK [01:38:29]Clear old archive folders... [01:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [01:38:29]tlvbuf is B6F1CA50 [01:38:29]SAM_PROTO_ClearQueue [01:38:29]wFMCommunicate request_size=4 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 09 00 00 [01:38:29]Write to MH i2c: E2 08 00 31 20 80 09 00 00 00 00 00 00 C3 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:29]Read from MH i2c: E2 03 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [01:38:29]RAPDU: 90 00 [01:38:29]wFMCommunicate OK [01:38:29]SAM_PROTO_ClearQueue done [01:38:29]KKMCreateOFDPacket [01:38:29]OFDProtocolAddRootSTLVToBuf [01:38:29]FM_MakeSignedData [01:38:29]FM_MakeSignedData [01:38:29]SAM_PROTO_SignData [01:38:29]wFMCommunicate request_size=4 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 0D 01 02 [01:38:29]Write to MH i2c: E2 08 00 32 20 80 0D 01 02 00 00 00 00 CB [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [01:38:29]RAPDU: 90 00 [01:38:29]wFMCommunicate OK [01:38:29]wFMCommunicate request_size=255 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 19 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 [01:38:29]Write to MH i2c: E2 02 01 33 20 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 19 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 00 00 94 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [01:38:29]RAPDU: 90 00 [01:38:29]wFMCommunicate OK [01:38:29]wFMCommunicate request_size=41 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3A 9C 00 00 35 04 06 00 81 BC B6 11 DE 47 [01:38:29]Write to MH i2c: E2 2C 00 34 20 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3A 9C 00 00 35 04 06 00 81 BC B6 11 DE 47 00 00 A1 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [01:38:29]RAPDU: 90 00 [01:38:29]wFMCommunicate OK [01:38:29]wFMCommunicate request_size=4 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 0D 03 02 [01:38:29]Write to MH i2c: E2 08 00 35 20 80 0D 03 02 00 00 00 00 D0 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 0B 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 0B 00 35 20 00 2F 2A 55 76 A9 B6 DF DD 90 00 10 [01:38:29]RAPDU: 2F 2A 55 76 A9 B6 DF DD 90 00 [01:38:29]wFMCommunicate OK [01:38:29]SAM_PROTO_SignData done [01:38:29]FM_MakeSignedData done [01:38:29]CreateOFDProtocolMessage [01:38:29]wFMCommunicate request_size=4 [01:38:29]MH_SAM_APDU [01:38:29]CAPDU: 80 11 00 00 [01:38:29]Write to MH i2c: E2 08 00 36 20 80 11 00 00 00 00 00 00 D0 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:29]Read from MH i2c: E2 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 17 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: E2 17 00 36 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 28 [01:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:38:29]wFMCommunicate OK [01:38:29]CreateOFDProtocolMessage done [01:38:29]OFDSenderStorePacket 39994 [01:38:29]StoreOFDPacket docnum=39994 [01:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 52 76 26 01 56 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 19 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3A 9C 00 00 35 04 06 00 81 BC B6 11 DE 47 2F 2A 55 76 A9 B6 DF DD [01:38:29]CheckFolder [01:38:29]dirname=/storage/ofd_packets [01:38:29]CheckFolder done [01:38:29]ProducePacketName [01:38:29]name=ofd_packets/00039994 [01:38:29]NVStorageSaveData ofd_packets/00039994 [01:38:29]File name is /storage/ofd_packets/00039994 [01:38:29]Write 332 bytes [01:38:29]NVStorageSaveData done [01:38:29]OFDSenderStorePacket done [01:38:29]KKMCreateOFDPacket done [01:38:29]NVStorageSaveData kkm_last_timestamp [01:38:29]File name is /storage/kkm_last_timestamp [01:38:29]Write 4 bytes [01:38:29]NVStorageSaveData done [01:38:29]ExternCall_PrintAddStr [01:38:29]wPrintStart [01:38:29]Write to MH i2c: 01 00 00 37 20 57 [01:38:29]Write i2c OK [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: 01 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: 01 07 00 [01:38:29]MH_I2C_Read... [01:38:29]Read from MH i2c: 01 07 00 37 20 00 00 00 00 00 FF 0F 6C [01:38:29]RasterBufferAndPrint [01:38:29]line Счет N : (3)176553 [01:38:29]line ИНН: 02508201610067 [01:38:29]line Контрольно-Кассовый Чек [01:38:29]line ПРОДАЖА [01:38:29]line Товар: 2000036220012 [01:38:29]line Кофе Капучино XL(GABB TRADE) [01:38:29]line 1.000 * 125.00 [01:38:29]line = 125.00 [01:38:29]line НДС 12% НСП 1% [01:38:29]line > о реализуемом товаре [01:38:29]line ИТОГО: 125.00 [01:38:29]line НСП 1% : 1.11 [01:38:29]line НДС 12% : 13.27 [01:38:29]line Наличными: 0.00 [01:38:29]line Безнал.: 125.00 [01:38:29]line Место: АЗС № 63 "Партнер Нефть" [01:38:29]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:38:29]line СНО: Общий режим [01:38:29]line Чек 4 04.06.2024 01:38 [01:38:29]line Смена: 377 ФФД: 1.0 [01:38:29]line ЗНМ: 0300000037 [01:38:29]line РНМ: 0000000000092680 [01:38:29]line Версия ККМ: 001 [01:38:29]line Платежная система: АКБ Кыргызстан [01:38:29]line ФМ: 0000000000874882 [01:38:29]line ФД: 39994 [01:38:29]line ФПД: 142647508459079 [01:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013833&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39994&fm=142647508459079&tin=02508201610067®Number=0000000000092680&sum=12500 [01:38:30]line 0 [01:38:30]OFD Sender: Processing packet 39994 [packets to send 5, broken 4] [01:38:30]ProducePacketName [01:38:30]name=ofd_packets/00039994 [01:38:30]OFD Sender: To server: pG, [01:38:30]CommunicateWithHost lk.salyk.kg:30040 [01:38:30]ConnectInit lk.salyk.kg [01:38:30]written 0, free lines is 4095 [01:38:30]Connected sock=10 [01:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 2E 01 00 00 52 76 26 01 56 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 19 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3A 9C 00 00 35 04 06 00 81 BC B6 11 DE 47 2F 2A 55 76 A9 B6 DF DD [01:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 CB 5E 47 00 D1 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3A 9C 00 00 F4 03 04 00 C3 18 5E 66 B6 04 01 00 00 7E 94 C8 9A E9 F9 12 E9 [01:38:30]CommunicateWithHost err = 0 [01:38:30]CheckOFDResponse [01:38:30]1017 (14) - 77093643461234 [01:38:30]1041 (16) - 0000000000874882 [01:38:30]1040 (4) - 39994 [01:38:30]1012 (4) - 03.06.2024 19:25 [01:38:30]1206 (1) - 0 [01:38:30]OFD Sender: Remove packet 39994 [01:38:30]ProducePacketName [01:38:30]name=ofd_packets/00039994 [01:38:30]NVStorageDeleteData [01:38:30]Write to MH i2c: 01 00 00 62 20 82 [01:38:30]Write i2c OK [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: 01 [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: 01 07 00 [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 EF 0C 84 [01:38:30]RasterBufferAndPrint [01:38:30]line [01:38:30]line [01:38:30]line [01:38:30]line [01:38:30]line [01:38:30]written 0, free lines is 3318 [01:38:30]MH_Cut [01:38:30]Write to MH i2c: D1 01 00 69 20 01 5B [01:38:30]Write i2c OK [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: D1 [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: D1 01 00 [01:38:30]MH_I2C_Read... [01:38:30]Read from MH i2c: D1 01 00 69 20 00 5A [01:38:30]Write to MH i2c: 01 00 00 6A 20 8A [01:38:30]Write i2c OK [01:38:30]MH_I2C_Read... [01:38:30]OFD Sender: No OFD packet to send [01:38:31]*** Cut start [01:38:31]*** Partial cut [01:38:31]*** CUTSNS_PIN = 1 [01:38:31]*** CUTSNS_PIN = 0 [01:38:31]*** Brake cut motor [01:38:31]Read from MH i2c: 01 [01:38:31]MH_I2C_Read... [01:38:31]*** Stop cut motor [01:38:31]*** Cut end [01:38:31]Read from MH i2c: 01 07 00 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 FF 0F 9F [01:38:31]process_action close_receipt done [01:38:31]requested_data is exist [01:38:31]produce_requested_data [01:38:31]requested_item fm.sn is exist - process it [01:38:31]wFMCommunicate request_size=4 [01:38:31]MH_SAM_APDU [01:38:31]CAPDU: 80 11 00 00 [01:38:31]Write to MH i2c: E2 08 00 6B 20 80 11 00 00 00 00 00 00 05 [01:38:31]Write i2c OK [01:38:31]MH_I2C_Read... [01:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:31]Read from MH i2c: E2 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: E2 17 00 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: E2 17 00 6B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 5D [01:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:38:31]wFMCommunicate OK [01:38:31]requested_item fd.num is exist - process it [01:38:31]SAM_PROTO_GetFieldsCounters [01:38:31]wFMCommunicate request_size=4 [01:38:31]MH_SAM_APDU [01:38:31]CAPDU: 80 13 00 00 [01:38:31]Write to MH i2c: E2 08 00 6C 20 80 13 00 00 00 00 00 00 08 [01:38:31]Write i2c OK [01:38:31]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 62 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 62 00 6C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3A 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [01:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3A 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:32]wFMCommunicate OK [01:38:32]SAM_PROTO_GetFieldsCounters done [01:38:32]requested_item shift.num is exist - process it [01:38:32]requested_item shift.opened is exist - process it [01:38:32]req_shift_opened [01:38:32]FM_GetShiftState [01:38:32]SAM_PROTO_GetShiftState [01:38:32]wFMCommunicate request_size=4 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 13 01 00 [01:38:32]Write to MH i2c: E2 08 00 6D 20 80 13 01 00 00 00 00 00 0A [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 0E 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 0E 00 6D 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 85 [01:38:32]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:38:32]wFMCommunicate OK [01:38:32]SAM_PROTO_GetShiftState done [01:38:32]FM_GetShiftState done [01:38:32]req_shift_opened done [01:38:32]requested_item shift.open_date is exist - process it [01:38:32]req_shift_open_date [01:38:32]req_shift_open_date done [01:38:32]produce_requested_data done [01:38:32]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39994,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:38:32]process_action_free close_receipt [01:38:32]json_value_free [01:38:32]json_value_free done [01:38:32]process_json_proto returns [01:38:32]Send response to host [01:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39994,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:38:32]free response buf [01:38:32]execute_script done [01:38:32]execute_script returns [01:38:32]free content buf [01:38:32]Sock 9.Close socket [01:38:32]Sock 9.Thread stoped [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:32]accept exits with 8 [01:40:32]New connection [01:40:32]New thread 3067325796 created [01:40:32]Thread 3067182436 joined [01:40:32]Waiting for new connection... [01:40:32] Sock 8.Parse request [01:40:32]Sock 8.Check first char [01:40:32]Sock 8.First char is OK [01:40:32]request: POST /json_proto HTTP/1.0 [01:40:32]Method: POST [01:40:32]URL: /json_proto [01:40:32]Method is POST - this is cgi request [01:40:32]url: /json_proto [01:40:32]query_string will be loaded in cgi processing [01:40:32]execute_cgi json_proto POST (null) [01:40:32]execute_cgi path=json_proto method=POST [01:40:32]POST find Content-Length [01:40:32]Host: 172.17.36.199:8080 [01:40:32]Content-Length: 624 [01:40:32]Content-Type: application/json [01:40:32] [01:40:32]POST finish read [01:40:32]Found Content-Length = 624 [01:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176554", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:32]execute_script... [01:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176554", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:32]POST & json_proto [01:40:32]process_json_proto [01:40:32]json parsed OK: [01:40:32]protocol is kg_v1.0 [01:40:32]action value=close_receipt [01:40:32]process_action close_receipt [01:40:32]cmd_close_receipt [01:40:32]MH_GetDate [01:40:32]Write to MH i2c: F0 00 00 6E 20 7D [01:40:32]Write i2c OK [01:40:32]MH_I2C_Read... [01:40:32]Read from MH i2c: F0 [01:40:32]MH_I2C_Read... [01:40:32]Read from MH i2c: F0 09 00 [01:40:32]MH_I2C_Read... [01:40:32]Read from MH i2c: F0 09 00 6E 20 00 95 70 5E 66 91 46 04 65 8F [01:40:32]GetLastDocTimeStamp 1717465113 [01:40:32]current date 1717465237 [01:40:32]FM_GetShiftState [01:40:32]SAM_PROTO_GetShiftState [01:40:32]wFMCommunicate request_size=4 [01:40:32]MH_SAM_APDU [01:40:32]CAPDU: 80 13 01 00 [01:40:32]Write to MH i2c: E2 08 00 6F 20 80 13 01 00 00 00 00 00 0C [01:40:32]Write i2c OK [01:40:32]MH_I2C_Read... [01:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:32]Read from MH i2c: E2 [01:40:32]MH_I2C_Read... [01:40:32]Read from MH i2c: E2 0E 00 [01:40:32]MH_I2C_Read... [01:40:32]Read from MH i2c: E2 0E 00 6F 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 87 [01:40:32]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:40:32]wFMCommunicate OK [01:40:32]SAM_PROTO_GetShiftState done [01:40:32]FM_GetShiftState done [01:40:32]opened in 1717460302 [01:40:32]opened+sec_in_day 1717546702 [01:40:32]quantity*price = 45000 [01:40:32]sum+1 = 45001 [01:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 5 04.06.2024 01:40 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39995 ФПД: 151086987212094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T014037&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39995&fm=151086987212094&tin=02508201610067®Number=0000000000092680&sum=45000 0 [01:40:33]StoreToDocumentArchive [01:40:33]shift 377 fd 39995 [01:40:33]save to /storage/0377/doc_00039995 [01:40:33]save last doc name /storage/0377/doc_00039995 to /storage/kkm_last_doc_name [01:40:33]save OK [01:40:33]Clear old archive folders... [01:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=268 [01:40:33]tlvbuf is 00E6AB20 [01:40:33]SAM_PROTO_ClearQueue [01:40:33]wFMCommunicate request_size=4 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 09 00 00 [01:40:33]Write to MH i2c: E2 08 00 7C 20 80 09 00 00 00 00 00 00 0E [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [01:40:33]RAPDU: 90 00 [01:40:33]wFMCommunicate OK [01:40:33]SAM_PROTO_ClearQueue done [01:40:33]KKMCreateOFDPacket [01:40:33]OFDProtocolAddRootSTLVToBuf [01:40:33]FM_MakeSignedData [01:40:33]FM_MakeSignedData [01:40:33]SAM_PROTO_SignData [01:40:33]wFMCommunicate request_size=4 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 0D 01 02 [01:40:33]Write to MH i2c: E2 08 00 7D 20 80 0D 01 02 00 00 00 00 16 [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [01:40:33]RAPDU: 90 00 [01:40:33]wFMCommunicate OK [01:40:33]wFMCommunicate request_size=255 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:40:33]Write to MH i2c: E2 02 01 7E 20 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 2F [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [01:40:33]RAPDU: 90 00 [01:40:33]wFMCommunicate OK [01:40:33]wFMCommunicate request_size=27 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 0D 02 02 16 34 38 38 32 10 04 04 00 3B 9C 00 00 35 04 06 00 89 69 AE 33 F5 3E [01:40:33]Write to MH i2c: E2 1E 00 7F 20 80 0D 02 02 16 00 34 38 38 32 10 04 04 00 3B 9C 00 00 35 04 06 00 89 69 AE 33 F5 3E 00 00 4F [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 03 00 7F 20 00 90 00 13 [01:40:33]RAPDU: 90 00 [01:40:33]wFMCommunicate OK [01:40:33]wFMCommunicate request_size=4 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 0D 03 02 [01:40:33]Write to MH i2c: E2 08 00 80 20 80 0D 03 02 00 00 00 00 1B [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 0B 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 0B 00 80 20 00 21 C8 20 7D 75 A6 35 AB 90 00 9D [01:40:33]RAPDU: 21 C8 20 7D 75 A6 35 AB 90 00 [01:40:33]wFMCommunicate OK [01:40:33]SAM_PROTO_SignData done [01:40:33]FM_MakeSignedData done [01:40:33]CreateOFDProtocolMessage [01:40:33]wFMCommunicate request_size=4 [01:40:33]MH_SAM_APDU [01:40:33]CAPDU: 80 11 00 00 [01:40:33]Write to MH i2c: E2 08 00 81 20 80 11 00 00 00 00 00 00 1B [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:33]Read from MH i2c: E2 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 17 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: E2 17 00 81 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 73 [01:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:40:33]wFMCommunicate OK [01:40:33]CreateOFDProtocolMessage done [01:40:33]OFDSenderStorePacket 39995 [01:40:33]StoreOFDPacket docnum=39995 [01:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 58 BE 18 01 A2 FB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3B 9C 00 00 35 04 06 00 89 69 AE 33 F5 3E 21 C8 20 7D 75 A6 35 AB [01:40:33]CheckFolder [01:40:33]dirname=/storage/ofd_packets [01:40:33]CheckFolder done [01:40:33]ProducePacketName [01:40:33]name=ofd_packets/00039995 [01:40:33]NVStorageSaveData ofd_packets/00039995 [01:40:33]File name is /storage/ofd_packets/00039995 [01:40:33]Write 318 bytes [01:40:33]NVStorageSaveData done [01:40:33]OFDSenderStorePacket done [01:40:33]KKMCreateOFDPacket done [01:40:33]NVStorageSaveData kkm_last_timestamp [01:40:33]File name is /storage/kkm_last_timestamp [01:40:33]Write 4 bytes [01:40:33]NVStorageSaveData done [01:40:33]ExternCall_PrintAddStr [01:40:33]wPrintStart [01:40:33]Write to MH i2c: 01 00 00 82 20 A2 [01:40:33]Write i2c OK [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: 01 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: 01 07 00 [01:40:33]MH_I2C_Read... [01:40:33]Read from MH i2c: 01 07 00 82 20 00 00 00 00 00 FF 0F B7 [01:40:33]RasterBufferAndPrint [01:40:33]line Счет N : (3)176554 [01:40:33]line ИНН: 02508201610067 [01:40:33]line Контрольно-Кассовый Чек [01:40:33]line ПРОДАЖА [01:40:33]line Товар: 4600721021627 [01:40:33]line Пиво БАД 0,5л ст [01:40:33]line 3.000 * 150.00 [01:40:33]line = 450.00 [01:40:33]line НДС 12% НСП 1% [01:40:33]line > о реализуемом товаре [01:40:33]line ИТОГО: 450.00 [01:40:33]line НСП 1% : 3.98 [01:40:33]line НДС 12% : 47.79 [01:40:33]line Наличными: 450.00 [01:40:33]line Безнал.: 0.00 [01:40:33]line Место: АЗС № 63 "Партнер Нефть" [01:40:33]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:40:33]line СНО: Общий режим [01:40:33]line Чек 5 04.06.2024 01:40 [01:40:33]line Смена: 377 ФФД: 1.0 [01:40:33]line ЗНМ: 0300000037 [01:40:33]line РНМ: 0000000000092680 [01:40:33]line Версия ККМ: 001 [01:40:33]line ФМ: 0000000000874882 [01:40:33]line ФД: 39995 [01:40:33]line ФПД: 151086987212094 [01:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T014037&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39995&fm=151086987212094&tin=02508201610067®Number=0000000000092680&sum=45000 [01:40:33]line 0 [01:40:33]written 0, free lines is 4095 [01:40:33]OFD Sender: Processing packet 39995 [packets to send 5, broken 4] [01:40:33]ProducePacketName [01:40:33]name=ofd_packets/00039995 [01:40:33]OFD Sender: To server: pG, [01:40:33]CommunicateWithHost lk.salyk.kg:30040 [01:40:33]ConnectInit lk.salyk.kg [01:40:33]Connected sock=10 [01:40:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 20 01 00 00 58 BE 18 01 A2 FB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 70 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3B 9C 00 00 35 04 06 00 89 69 AE 33 F5 3E 21 C8 20 7D 75 A6 35 AB [01:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 15 F2 47 00 5B DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3B 9C 00 00 F4 03 04 00 3F 19 5E 66 B6 04 01 00 00 E4 AF B6 2A 18 2F 24 5B [01:40:34]CommunicateWithHost err = 0 [01:40:34]CheckOFDResponse [01:40:34]1017 (14) - 77093643461234 [01:40:34]1041 (16) - 0000000000874882 [01:40:34]1040 (4) - 39995 [01:40:34]1012 (4) - 03.06.2024 19:27 [01:40:34]1206 (1) - 0 [01:40:34]OFD Sender: Remove packet 39995 [01:40:34]ProducePacketName [01:40:34]name=ofd_packets/00039995 [01:40:34]NVStorageDeleteData [01:40:34]Write to MH i2c: 01 00 00 AA 20 CA [01:40:34]Write i2c OK [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: 01 [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: 01 07 00 [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: 01 07 00 AA 20 00 00 00 00 00 23 0D 01 [01:40:34]RasterBufferAndPrint [01:40:34]line [01:40:34]line [01:40:34]line [01:40:34]line [01:40:34]line [01:40:34]written 0, free lines is 3372 [01:40:34]MH_Cut [01:40:34]Write to MH i2c: D1 01 00 B1 20 01 A3 [01:40:34]Write i2c OK [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: D1 [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: D1 01 00 [01:40:34]MH_I2C_Read... [01:40:34]Read from MH i2c: D1 01 00 B1 20 00 A2 [01:40:34]Write to MH i2c: 01 00 00 B2 20 D2 [01:40:34]Write i2c OK [01:40:34]MH_I2C_Read... [01:40:34]OFD Sender: No OFD packet to send [01:40:34]*** Cut start [01:40:34]*** Partial cut [01:40:34]*** CUTSNS_PIN = 1 [01:40:34]*** CUTSNS_PIN = 0 [01:40:35]*** Brake cut motor [01:40:35]Read from MH i2c: 01 [01:40:35]MH_I2C_Read... [01:40:35]*** Stop cut motor [01:40:35]*** Cut end [01:40:35]Read from MH i2c: 01 07 00 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 FF 0F E7 [01:40:35]process_action close_receipt done [01:40:35]requested_data is exist [01:40:35]produce_requested_data [01:40:35]requested_item fm.sn is exist - process it [01:40:35]wFMCommunicate request_size=4 [01:40:35]MH_SAM_APDU [01:40:35]CAPDU: 80 11 00 00 [01:40:35]Write to MH i2c: E2 08 00 B3 20 80 11 00 00 00 00 00 00 4D [01:40:35]Write i2c OK [01:40:35]MH_I2C_Read... [01:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:35]Read from MH i2c: E2 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 17 00 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 17 00 B3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A5 [01:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:40:35]wFMCommunicate OK [01:40:35]requested_item fd.num is exist - process it [01:40:35]SAM_PROTO_GetFieldsCounters [01:40:35]wFMCommunicate request_size=4 [01:40:35]MH_SAM_APDU [01:40:35]CAPDU: 80 13 00 00 [01:40:35]Write to MH i2c: E2 08 00 B4 20 80 13 00 00 00 00 00 00 50 [01:40:35]Write i2c OK [01:40:35]MH_I2C_Read... [01:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:35]Read from MH i2c: E2 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 62 00 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 62 00 B4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3B 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [01:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3B 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:40:35]wFMCommunicate OK [01:40:35]SAM_PROTO_GetFieldsCounters done [01:40:35]requested_item shift.num is exist - process it [01:40:35]requested_item shift.opened is exist - process it [01:40:35]req_shift_opened [01:40:35]FM_GetShiftState [01:40:35]SAM_PROTO_GetShiftState [01:40:35]wFMCommunicate request_size=4 [01:40:35]MH_SAM_APDU [01:40:35]CAPDU: 80 13 01 00 [01:40:35]Write to MH i2c: E2 08 00 B5 20 80 13 01 00 00 00 00 00 52 [01:40:35]Write i2c OK [01:40:35]MH_I2C_Read... [01:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:35]Read from MH i2c: E2 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 0E 00 [01:40:35]MH_I2C_Read... [01:40:35]Read from MH i2c: E2 0E 00 B5 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 CD [01:40:35]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:40:35]wFMCommunicate OK [01:40:35]SAM_PROTO_GetShiftState done [01:40:35]FM_GetShiftState done [01:40:35]req_shift_opened done [01:40:35]requested_item shift.open_date is exist - process it [01:40:35]req_shift_open_date [01:40:35]req_shift_open_date done [01:40:35]produce_requested_data done [01:40:35]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39995,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:40:35]process_action_free close_receipt [01:40:35]json_value_free [01:40:35]json_value_free done [01:40:35]process_json_proto returns [01:40:35]Send response to host [01:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39995,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:40:35]free response buf [01:40:35]execute_script done [01:40:35]execute_script returns [01:40:35]free content buf [01:40:35]Sock 8.Close socket [01:40:35]Sock 8.Thread stoped [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]accept exits with 9 [01:47:59]New connection [01:47:59]New thread 3067182436 created [01:47:59]Thread 3067325796 joined [01:47:59]Waiting for new connection... [01:47:59] Sock 9.Parse request [01:47:59]Sock 9.Check first char [01:47:59]Sock 9.First char is OK [01:47:59]request: POST /json_proto HTTP/1.0 [01:47:59]Method: POST [01:47:59]URL: /json_proto [01:47:59]Method is POST - this is cgi request [01:47:59]url: /json_proto [01:47:59]query_string will be loaded in cgi processing [01:47:59]execute_cgi json_proto POST (null) [01:47:59]execute_cgi path=json_proto method=POST [01:47:59]POST find Content-Length [01:47:59]Host: 172.17.36.199:8080 [01:47:59]Content-Length: 1118 [01:47:59]Content-Type: application/json [01:47:59] [01:47:59]POST finish read [01:47:59]Found Content-Length = 1118 [01:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176555", "tax_sys" : 0, "items" : [ { "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 855.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:59]execute_script... [01:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176555", "tax_sys" : 0, "items" : [ { "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 855.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:59]POST & json_proto [01:47:59]process_json_proto [01:47:59]json parsed OK: [01:47:59]protocol is kg_v1.0 [01:47:59]action value=close_receipt [01:47:59]process_action close_receipt [01:47:59]cmd_close_receipt [01:47:59]MH_GetDate [01:47:59]Write to MH i2c: F0 00 00 B6 20 C5 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: F0 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: F0 09 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: F0 09 00 B6 20 00 54 72 5E 66 91 46 04 65 98 [01:47:59]GetLastDocTimeStamp 1717465237 [01:47:59]current date 1717465684 [01:47:59]FM_GetShiftState [01:47:59]SAM_PROTO_GetShiftState [01:47:59]wFMCommunicate request_size=4 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 13 01 00 [01:47:59]Write to MH i2c: E2 08 00 B7 20 80 13 01 00 00 00 00 00 54 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 0E 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 0E 00 B7 20 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 CF [01:47:59]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:47:59]wFMCommunicate OK [01:47:59]SAM_PROTO_GetShiftState done [01:47:59]FM_GetShiftState done [01:47:59]opened in 1717460302 [01:47:59]opened+sec_in_day 1717546702 [01:47:59]quantity*price = 70000 [01:47:59]sum+1 = 70001 [01:47:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 855.00 НСП 1% : 7.56 НДС 12% : 90.80 Наличными: 0.00 Безнал.: 855.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 6 04.06.2024 01:48 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874882 ФД: 39996 ФПД: 265474211763840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T014804&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39996&fm=265474211763840&tin=02508201610067®Number=0000000000092680&sum=85500 0 [01:48:00]StoreToDocumentArchive [01:48:00]shift 377 fd 39996 [01:48:00]save to /storage/0377/doc_00039996 [01:48:00]save last doc name /storage/0377/doc_00039996 to /storage/kkm_last_doc_name [01:48:00]save OK [01:48:00]Clear old archive folders... [01:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=391 [01:48:00]tlvbuf is 00E68EA0 [01:48:00]SAM_PROTO_ClearQueue [01:48:00]wFMCommunicate request_size=4 [01:48:00]MH_SAM_APDU [01:48:00]CAPDU: 80 09 00 00 [01:48:00]Write to MH i2c: E2 08 00 C4 20 80 09 00 00 00 00 00 00 56 [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:48:00]Read from MH i2c: E2 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [01:48:00]RAPDU: 90 00 [01:48:00]wFMCommunicate OK [01:48:00]SAM_PROTO_ClearQueue done [01:48:00]KKMCreateOFDPacket [01:48:00]OFDProtocolAddRootSTLVToBuf [01:48:00]FM_MakeSignedData [01:48:00]FM_MakeSignedData [01:48:00]SAM_PROTO_SignData [01:48:00]wFMCommunicate request_size=4 [01:48:00]MH_SAM_APDU [01:48:00]CAPDU: 80 0D 01 02 [01:48:00]Write to MH i2c: E2 08 00 C5 20 80 0D 01 02 00 00 00 00 5E [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:48:00]Read from MH i2c: E2 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [01:48:00]RAPDU: 90 00 [01:48:00]wFMCommunicate OK [01:48:00]wFMCommunicate request_size=255 [01:48:00]MH_SAM_APDU [01:48:00]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [01:48:00]Write to MH i2c: E2 02 01 C6 20 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 B4 [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:00]Read from MH i2c: E2 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [01:48:00]RAPDU: 90 00 [01:48:00]wFMCommunicate OK [01:48:00]wFMCommunicate request_size=150 [01:48:00]MH_SAM_APDU [01:48:00]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 54 72 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3C 9C 00 00 35 04 06 00 F1 72 88 16 D6 80 [01:48:00]Write to MH i2c: E2 99 00 C7 20 80 0D 02 02 91 00 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 54 72 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3C 9C 00 00 35 04 06 00 F1 72 88 16 D6 80 00 00 CB [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:01]Read from MH i2c: E2 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 03 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [01:48:01]RAPDU: 90 00 [01:48:01]wFMCommunicate OK [01:48:01]wFMCommunicate request_size=4 [01:48:01]MH_SAM_APDU [01:48:01]CAPDU: 80 0D 03 02 [01:48:01]Write to MH i2c: E2 08 00 C8 20 80 0D 03 02 00 00 00 00 63 [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:48:01]Read from MH i2c: E2 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 0B 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 0B 00 C8 20 00 4D F2 FF 7D 09 88 75 6F 90 00 94 [01:48:01]RAPDU: 4D F2 FF 7D 09 88 75 6F 90 00 [01:48:01]wFMCommunicate OK [01:48:01]SAM_PROTO_SignData done [01:48:01]FM_MakeSignedData done [01:48:01]CreateOFDProtocolMessage [01:48:01]wFMCommunicate request_size=4 [01:48:01]MH_SAM_APDU [01:48:01]CAPDU: 80 11 00 00 [01:48:01]Write to MH i2c: E2 08 00 C9 20 80 11 00 00 00 00 00 00 63 [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:01]Read from MH i2c: E2 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 17 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 17 00 C9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BB [01:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:48:01]wFMCommunicate OK [01:48:01]CreateOFDProtocolMessage done [01:48:01]OFDSenderStorePacket 39996 [01:48:01]StoreOFDPacket docnum=39996 [01:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9B 01 00 00 17 E3 93 01 B2 6B 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 54 72 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3C 9C 00 00 35 04 06 00 F1 72 88 16 D6 80 4D F2 FF 7D 09 88 75 6F [01:48:01]CheckFolder [01:48:01]dirname=/storage/ofd_packets [01:48:01]CheckFolder done [01:48:01]ProducePacketName [01:48:01]name=ofd_packets/00039996 [01:48:01]NVStorageSaveData ofd_packets/00039996 [01:48:01]File name is /storage/ofd_packets/00039996 [01:48:01]Write 441 bytes [01:48:01]NVStorageSaveData done [01:48:01]OFDSenderStorePacket done [01:48:01]KKMCreateOFDPacket done [01:48:01]NVStorageSaveData kkm_last_timestamp [01:48:01]File name is /storage/kkm_last_timestamp [01:48:01]Write 4 bytes [01:48:01]NVStorageSaveData done [01:48:01]ExternCall_PrintAddStr [01:48:01]wPrintStart [01:48:01]Write to MH i2c: 01 00 00 CA 20 EA [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 07 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 07 00 CA 20 00 00 00 00 00 FF 0F FF [01:48:01]RasterBufferAndPrint [01:48:01]line Счет N : (3)176555 [01:48:01]line ИНН: 02508201610067 [01:48:01]line Контрольно-Кассовый Чек [01:48:01]line ПРОДАЖА [01:48:01]line Товар: 4700003150929 [01:48:01]line Новая Водка Organic 40% 0,7л [01:48:01]line 1.000 * 700.00 [01:48:01]line = 700.00 [01:48:01]line НДС 12% НСП 1% [01:48:01]line > о реализуемом товаре [01:48:01]line Товар: 5449000000439 [01:48:01]line Напиток Кока-Кола 1,5л [01:48:01]line 1.000 * 155.00 [01:48:01]line = 155.00 [01:48:01]line НДС 12% НСП 1% [01:48:01]line > о реализуемом товаре [01:48:01]line ИТОГО: 855.00 [01:48:01]line НСП 1% : 7.56 [01:48:01]line НДС 12% : 90.80 [01:48:01]line Наличными: 0.00 [01:48:01]line Безнал.: 855.00 [01:48:01]line Место: АЗС № 63 "Партнер Нефть" [01:48:01]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:48:01]line СНО: Общий режим [01:48:01]line Чек 6 04.06.2024 01:48 [01:48:01]line Смена: 377 ФФД: 1.0 [01:48:01]line ЗНМ: 0300000037 [01:48:01]line РНМ: 0000000000092680 [01:48:01]line Версия ККМ: 001 [01:48:01]line Платежная система: АКБ Кыргызстан [01:48:01]line ФМ: 0000000000874882 [01:48:01]line ФД: 39996 [01:48:01]line ФПД: 265474211763840 [01:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T014804&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39996&fm=265474211763840&tin=02508201610067®Number=0000000000092680&sum=85500 [01:48:01]line 0 [01:48:01]written 0, free lines is 4095 [01:48:01]OFD Sender: Processing packet 39996 [packets to send 5, broken 4] [01:48:01]ProducePacketName [01:48:01]name=ofd_packets/00039996 [01:48:01]OFD Sender: To server: pG, [01:48:01]CommunicateWithHost lk.salyk.kg:30040 [01:48:01]ConnectInit lk.salyk.kg [01:48:01]Connected sock=10 [01:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 9B 01 00 00 17 E3 93 01 B2 6B 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 54 72 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3C 9C 00 00 35 04 06 00 F1 72 88 16 D6 80 4D F2 FF 7D 09 88 75 6F [01:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 1F 20 47 00 F7 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3C 9C 00 00 F4 03 04 00 FE 1A 5E 66 B6 04 01 00 00 DD D6 D3 33 69 F0 21 28 [01:48:01]CommunicateWithHost err = 0 [01:48:01]CheckOFDResponse [01:48:01]1017 (14) - 77093643461234 [01:48:01]1041 (16) - 0000000000874882 [01:48:01]1040 (4) - 39996 [01:48:01]1012 (4) - 03.06.2024 19:35 [01:48:01]1206 (1) - 0 [01:48:01]OFD Sender: Remove packet 39996 [01:48:01]ProducePacketName [01:48:01]name=ofd_packets/00039996 [01:48:01]NVStorageDeleteData [01:48:01]Write to MH i2c: 01 00 00 FA 20 1A [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 07 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 DB 0C 08 [01:48:01]RasterBufferAndPrint [01:48:01]line [01:48:01]line [01:48:01]line [01:48:01]line [01:48:01]line [01:48:01]written 0, free lines is 3300 [01:48:01]MH_Cut [01:48:01]Write to MH i2c: D1 01 00 01 21 01 F4 [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: D1 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: D1 01 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: D1 01 00 01 21 00 F3 [01:48:01]Write to MH i2c: 01 00 00 02 21 23 [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:02]OFD Sender: No OFD packet to send [01:48:02]*** Cut start [01:48:02]*** Partial cut [01:48:02]*** CUTSNS_PIN = 1 [01:48:02]*** CUTSNS_PIN = 0 [01:48:02]*** Brake cut motor [01:48:03]Read from MH i2c: 01 [01:48:03]MH_I2C_Read... [01:48:03]*** Stop cut motor [01:48:03]*** Cut end [01:48:03]Read from MH i2c: 01 07 00 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: 01 07 00 02 21 00 00 00 00 00 FF 0F 38 [01:48:03]process_action close_receipt done [01:48:03]requested_data is exist [01:48:03]produce_requested_data [01:48:03]requested_item fm.sn is exist - process it [01:48:03]wFMCommunicate request_size=4 [01:48:03]MH_SAM_APDU [01:48:03]CAPDU: 80 11 00 00 [01:48:03]Write to MH i2c: E2 08 00 03 21 80 11 00 00 00 00 00 00 9E [01:48:03]Write i2c OK [01:48:03]MH_I2C_Read... [01:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:03]Read from MH i2c: E2 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 17 00 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 17 00 03 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F6 [01:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:48:03]wFMCommunicate OK [01:48:03]requested_item fd.num is exist - process it [01:48:03]SAM_PROTO_GetFieldsCounters [01:48:03]wFMCommunicate request_size=4 [01:48:03]MH_SAM_APDU [01:48:03]CAPDU: 80 13 00 00 [01:48:03]Write to MH i2c: E2 08 00 04 21 80 13 00 00 00 00 00 00 A1 [01:48:03]Write i2c OK [01:48:03]MH_I2C_Read... [01:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:03]Read from MH i2c: E2 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 62 00 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 62 00 04 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3C 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [01:48:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3C 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:48:03]wFMCommunicate OK [01:48:03]SAM_PROTO_GetFieldsCounters done [01:48:03]requested_item shift.num is exist - process it [01:48:03]requested_item shift.opened is exist - process it [01:48:03]req_shift_opened [01:48:03]FM_GetShiftState [01:48:03]SAM_PROTO_GetShiftState [01:48:03]wFMCommunicate request_size=4 [01:48:03]MH_SAM_APDU [01:48:03]CAPDU: 80 13 01 00 [01:48:03]Write to MH i2c: E2 08 00 05 21 80 13 01 00 00 00 00 00 A3 [01:48:03]Write i2c OK [01:48:03]MH_I2C_Read... [01:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:03]Read from MH i2c: E2 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 0E 00 [01:48:03]MH_I2C_Read... [01:48:03]Read from MH i2c: E2 0E 00 05 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 1E [01:48:03]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:48:03]wFMCommunicate OK [01:48:03]SAM_PROTO_GetShiftState done [01:48:03]FM_GetShiftState done [01:48:03]req_shift_opened done [01:48:03]requested_item shift.open_date is exist - process it [01:48:03]req_shift_open_date [01:48:03]req_shift_open_date done [01:48:03]produce_requested_data done [01:48:03]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39996,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:48:03]process_action_free close_receipt [01:48:03]json_value_free [01:48:03]json_value_free done [01:48:03]process_json_proto returns [01:48:03]Send response to host [01:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39996,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:48:03]free response buf [01:48:03]execute_script done [01:48:03]execute_script returns [01:48:03]free content buf [01:48:03]Sock 9.Close socket [01:48:03]Sock 9.Thread stoped [01:48:04]int [01:48:04]Write to MH i2c: 01 00 00 06 21 27 [01:48:04]*** FLAG_PRN_PAP1 set [01:48:04]Write i2c OK [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 07 00 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 07 00 06 21 00 01 00 00 00 FF 0F 3D [01:48:04]state=0 [01:48:04]No paper [01:48:04]int [01:48:04]Write to MH i2c: 01 00 00 07 21 28 [01:48:04]*** FLAG_PRN_PAP2 set [01:48:04]Write i2c OK [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 07 00 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: 01 07 00 07 21 00 03 00 00 00 FF 0F 40 [01:48:04]state=0 [01:48:04]No paper [01:48:04]Cover opened [01:48:07]OFD Sender: No OFD packet to send [01:48:09]Write to MH i2c: 01 00 00 08 21 29 [01:48:09]Write i2c OK [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: 01 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: 01 07 00 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: 01 07 00 08 21 00 03 00 00 00 FF 0F 41 [01:48:09]state=3 [01:48:09]No paper [01:48:09]Cover opened [01:48:12]OFD Sender: No OFD packet to send [01:48:14]Write to MH i2c: 01 00 00 09 21 2A [01:48:14]Write i2c OK [01:48:14]MH_I2C_Read... [01:48:14]Read from MH i2c: 01 [01:48:14]MH_I2C_Read... [01:48:14]Read from MH i2c: 01 07 00 [01:48:14]MH_I2C_Read... [01:48:14]Read from MH i2c: 01 07 00 09 21 00 03 00 00 00 FF 0F 42 [01:48:14]state=3 [01:48:14]No paper [01:48:14]Cover opened [01:48:17]OFD Sender: No OFD packet to send [01:48:18]int [01:48:18]Write to MH i2c: 01 00 00 0A 21 2B [01:48:18]*** FLAG_PRN_PAP2 reset [01:48:18]Write i2c OK [01:48:18]MH_I2C_Read... [01:48:18]Read from MH i2c: 01 [01:48:18]MH_I2C_Read... [01:48:18]Read from MH i2c: 01 07 00 [01:48:18]MH_I2C_Read... [01:48:18]Read from MH i2c: 01 07 00 0A 21 00 01 00 00 00 FF 0F 41 [01:48:18]state=3 [01:48:18]No paper [01:48:18]Cover closed [01:48:19]int [01:48:19]Write to MH i2c: 01 00 00 0B 21 2C [01:48:19]*** FLAG_PRN_PAP2 set [01:48:19]Write i2c OK [01:48:19]MH_I2C_Read... [01:48:19]Read from MH i2c: 01 [01:48:19]MH_I2C_Read... [01:48:19]Read from MH i2c: 01 07 00 [01:48:19]MH_I2C_Read... [01:48:19]Read from MH i2c: 01 07 00 0B 21 00 03 00 00 00 FF 0F 44 [01:48:19]state=0 [01:48:19]No paper [01:48:19]Cover opened [01:48:20]int [01:48:20]Write to MH i2c: 01 00 00 0C 21 2D [01:48:20]*** FLAG_PRN_PAP2 reset [01:48:20]Write i2c OK [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 07 00 [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 07 00 0C 21 00 01 00 00 00 FF 0F 43 [01:48:20]state=3 [01:48:20]No paper [01:48:20]Cover closed [01:48:20]int [01:48:20]Write to MH i2c: 01 00 00 0D 21 2E [01:48:20]*** FLAG_PRN_PAP1 reset [01:48:20]Write i2c OK [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 07 00 [01:48:20]MH_I2C_Read... [01:48:20]Read from MH i2c: 01 07 00 0D 21 00 00 00 00 00 FF 0F 43 [01:48:20]state=0 [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:01]accept exits with 8 [01:52:01]New connection [01:52:01]New thread 3067325796 created [01:52:01]Thread 3067182436 joined [01:52:01]Waiting for new connection... [01:52:01] Sock 8.Parse request [01:52:01]Sock 8.Check first char [01:52:01]Sock 8.First char is OK [01:52:01]request: POST /json_proto HTTP/1.0 [01:52:01]Method: POST [01:52:01]URL: /json_proto [01:52:01]Method is POST - this is cgi request [01:52:01]url: /json_proto [01:52:01]query_string will be loaded in cgi processing [01:52:01]execute_cgi json_proto POST (null) [01:52:01]execute_cgi path=json_proto method=POST [01:52:01]POST find Content-Length [01:52:01]Host: 172.17.36.199:8080 [01:52:01]Content-Length: 640 [01:52:01]Content-Type: application/json [01:52:01] [01:52:01]POST finish read [01:52:01]Found Content-Length = 640 [01:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176556", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:01]execute_script... [01: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 : (3)176556", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:01]POST & json_proto [01:52:01]process_json_proto [01:52:01]json parsed OK: [01:52:01]protocol is kg_v1.0 [01:52:01]action value=close_receipt [01:52:01]process_action close_receipt [01:52:01]cmd_close_receipt [01:52:01]MH_GetDate [01:52:01]Write to MH i2c: F0 00 00 0E 21 1E [01:52:01]Write i2c OK [01:52:01]MH_I2C_Read... [01:52:01]Read from MH i2c: F0 [01:52:01]MH_I2C_Read... [01:52:01]Read from MH i2c: F0 09 00 [01:52:01]MH_I2C_Read... [01:52:01]Read from MH i2c: F0 09 00 0E 21 00 46 73 5E 66 91 46 04 65 E4 [01:52:01]GetLastDocTimeStamp 1717465684 [01:52:01]current date 1717465926 [01:52:01]FM_GetShiftState [01:52:01]SAM_PROTO_GetShiftState [01:52:01]wFMCommunicate request_size=4 [01:52:01]MH_SAM_APDU [01:52:01]CAPDU: 80 13 01 00 [01:52:01]Write to MH i2c: E2 08 00 0F 21 80 13 01 00 00 00 00 00 AD [01:52:01]Write i2c OK [01:52:01]MH_I2C_Read... [01:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:01]Read from MH i2c: E2 [01:52:01]MH_I2C_Read... [01:52:01]Read from MH i2c: E2 0E 00 [01:52:01]MH_I2C_Read... [01:52:01]Read from MH i2c: E2 0E 00 0F 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 28 [01:52:01]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:52:01]wFMCommunicate OK [01:52:01]SAM_PROTO_GetShiftState done [01:52:01]FM_GetShiftState done [01:52:01]opened in 1717460302 [01:52:01]opened+sec_in_day 1717546702 [01:52:01]quantity*price = 18000 [01:52:01]sum+1 = 18001 [01:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 7 04.06.2024 01:52 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39997 ФПД: 276401347796678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T015206&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39997&fm=276401347796678&tin=02508201610067®Number=0000000000092680&sum=18000 0 [01:52:02]StoreToDocumentArchive [01:52:02]shift 377 fd 39997 [01:52:02]save to /storage/0377/doc_00039997 [01:52:02]save last doc name /storage/0377/doc_00039997 to /storage/kkm_last_doc_name [01:52:02]save OK [01:52:02]Clear old archive folders... [01:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=272 [01:52:02]tlvbuf is B6FB3230 [01:52:02]SAM_PROTO_ClearQueue [01:52:02]wFMCommunicate request_size=4 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 09 00 00 [01:52:02]Write to MH i2c: E2 08 00 1C 21 80 09 00 00 00 00 00 00 AF [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]OFD Sender: No OFD packet to send [01:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 1C 21 00 90 00 B1 [01:52:02]RAPDU: 90 00 [01:52:02]wFMCommunicate OK [01:52:02]SAM_PROTO_ClearQueue done [01:52:02]KKMCreateOFDPacket [01:52:02]OFDProtocolAddRootSTLVToBuf [01:52:02]FM_MakeSignedData [01:52:02]FM_MakeSignedData [01:52:02]SAM_PROTO_SignData [01:52:02]wFMCommunicate request_size=4 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 0D 01 02 [01:52:02]Write to MH i2c: E2 08 00 1D 21 80 0D 01 02 00 00 00 00 B7 [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 1D 21 00 90 00 B2 [01:52:02]RAPDU: 90 00 [01:52:02]wFMCommunicate OK [01:52:02]wFMCommunicate request_size=255 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 46 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [01:52:02]Write to MH i2c: E2 02 01 1E 21 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 46 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 92 [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 1E 21 00 90 00 B3 [01:52:02]RAPDU: 90 00 [01:52:02]wFMCommunicate OK [01:52:02]wFMCommunicate request_size=31 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 3D 9C 00 00 35 04 06 00 FB 62 B4 26 9E C6 [01:52:02]Write to MH i2c: E2 22 00 1F 21 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 3D 9C 00 00 35 04 06 00 FB 62 B4 26 9E C6 00 00 5E [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 03 00 1F 21 00 90 00 B4 [01:52:02]RAPDU: 90 00 [01:52:02]wFMCommunicate OK [01:52:02]wFMCommunicate request_size=4 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 0D 03 02 [01:52:02]Write to MH i2c: E2 08 00 20 21 80 0D 03 02 00 00 00 00 BC [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 0B 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 0B 00 20 21 00 4B 84 21 E2 B7 16 01 76 90 00 D3 [01:52:02]RAPDU: 4B 84 21 E2 B7 16 01 76 90 00 [01:52:02]wFMCommunicate OK [01:52:02]SAM_PROTO_SignData done [01:52:02]FM_MakeSignedData done [01:52:02]CreateOFDProtocolMessage [01:52:02]wFMCommunicate request_size=4 [01:52:02]MH_SAM_APDU [01:52:02]CAPDU: 80 11 00 00 [01:52:02]Write to MH i2c: E2 08 00 21 21 80 11 00 00 00 00 00 00 BC [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:02]Read from MH i2c: E2 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 17 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: E2 17 00 21 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 14 [01:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:52:02]wFMCommunicate OK [01:52:02]CreateOFDProtocolMessage done [01:52:02]OFDSenderStorePacket 39997 [01:52:02]StoreOFDPacket docnum=39997 [01:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 37 7C 1C 01 CE F5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 46 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3D 9C 00 00 35 04 06 00 FB 62 B4 26 9E C6 4B 84 21 E2 B7 16 01 76 [01:52:02]CheckFolder [01:52:02]dirname=/storage/ofd_packets [01:52:02]CheckFolder done [01:52:02]ProducePacketName [01:52:02]name=ofd_packets/00039997 [01:52:02]NVStorageSaveData ofd_packets/00039997 [01:52:02]File name is /storage/ofd_packets/00039997 [01:52:02]Write 322 bytes [01:52:02]NVStorageSaveData done [01:52:02]OFDSenderStorePacket done [01:52:02]KKMCreateOFDPacket done [01:52:02]NVStorageSaveData kkm_last_timestamp [01:52:02]File name is /storage/kkm_last_timestamp [01:52:02]Write 4 bytes [01:52:02]NVStorageSaveData done [01:52:02]ExternCall_PrintAddStr [01:52:02]wPrintStart [01:52:02]Write to MH i2c: 01 00 00 22 21 43 [01:52:02]Write i2c OK [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: 01 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: 01 07 00 [01:52:02]MH_I2C_Read... [01:52:02]Read from MH i2c: 01 07 00 22 21 00 00 00 00 00 FF 0F 58 [01:52:02]RasterBufferAndPrint [01:52:02]line Счет N : (3)176556 [01:52:02]line ИНН: 02508201610067 [01:52:02]line Контрольно-Кассовый Чек [01:52:02]line ПРОДАЖА [01:52:02]line Товар: 4700000480517 [01:52:02]line Пиво Живое 1л ПЭТ [01:52:02]line 1.000 * 180.00 [01:52:02]line = 180.00 [01:52:02]line НДС 12% НСП 1% [01:52:02]line > о реализуемом товаре [01:52:02]line ИТОГО: 180.00 [01:52:02]line НСП 1% : 1.59 [01:52:02]line НДС 12% : 19.11 [01:52:02]line Наличными: 180.00 [01:52:02]line Безнал.: 0.00 [01:52:02]line Место: АЗС № 63 "Партнер Нефть" [01:52:02]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:52:02]line СНО: Общий режим [01:52:02]line Чек 7 04.06.2024 01:52 [01:52:02]line Смена: 377 ФФД: 1.0 [01:52:02]line ЗНМ: 0300000037 [01:52:02]line РНМ: 0000000000092680 [01:52:02]line Версия ККМ: 001 [01:52:02]line ФМ: 0000000000874882 [01:52:02]line ФД: 39997 [01:52:02]line ФПД: 276401347796678 [01:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T015206&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39997&fm=276401347796678&tin=02508201610067®Number=0000000000092680&sum=18000 [01:52:03]line 0 [01:52:03]OFD Sender: Processing packet 39997 [packets to send 5, broken 4] [01:52:03]ProducePacketName [01:52:03]name=ofd_packets/00039997 [01:52:03]OFD Sender: To server: pG, [01:52:03]CommunicateWithHost lk.salyk.kg:30040 [01:52:03]ConnectInit lk.salyk.kg [01:52:03]written 0, free lines is 4095 [01:52:03]Connected sock=10 [01:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 37 7C 1C 01 CE F5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 46 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3D 9C 00 00 35 04 06 00 FB 62 B4 26 9E C6 4B 84 21 E2 B7 16 01 76 [01:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 33 FC 47 00 06 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3D 9C 00 00 F4 03 04 00 F0 1B 5E 66 B6 04 01 00 00 B9 3F 24 6F 06 F5 06 73 [01:52:03]CommunicateWithHost err = 0 [01:52:03]CheckOFDResponse [01:52:03]1017 (14) - 77093643461234 [01:52:03]1041 (16) - 0000000000874882 [01:52:03]1040 (4) - 39997 [01:52:03]1012 (4) - 03.06.2024 19:39 [01:52:03]1206 (1) - 0 [01:52:03]OFD Sender: Remove packet 39997 [01:52:03]ProducePacketName [01:52:03]name=ofd_packets/00039997 [01:52:03]NVStorageDeleteData [01:52:03]Write to MH i2c: 01 00 00 4A 21 6B [01:52:03]Write i2c OK [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: 01 [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: 01 07 00 [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: 01 07 00 4A 21 00 00 00 00 00 22 0D A1 [01:52:03]RasterBufferAndPrint [01:52:03]line [01:52:03]line [01:52:03]line [01:52:03]line [01:52:03]line [01:52:03]written 0, free lines is 3369 [01:52:03]MH_Cut [01:52:03]Write to MH i2c: D1 01 00 51 21 01 44 [01:52:03]Write i2c OK [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: D1 [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: D1 01 00 [01:52:03]MH_I2C_Read... [01:52:03]Read from MH i2c: D1 01 00 51 21 00 43 [01:52:03]Write to MH i2c: 01 00 00 52 21 73 [01:52:03]Write i2c OK [01:52:03]MH_I2C_Read... [01:52:03]OFD Sender: No OFD packet to send [01:52:04]*** Cut start [01:52:04]*** Partial cut [01:52:04]*** CUTSNS_PIN = 1 [01:52:04]*** CUTSNS_PIN = 0 [01:52:04]*** Brake cut motor [01:52:04]Read from MH i2c: 01 [01:52:04]MH_I2C_Read... [01:52:04]*** Stop cut motor [01:52:04]*** Cut end [01:52:04]Read from MH i2c: 01 07 00 [01:52:04]MH_I2C_Read... [01:52:04]Read from MH i2c: 01 07 00 52 21 00 00 00 00 00 FF 0F 88 [01:52:04]process_action close_receipt done [01:52:04]requested_data is exist [01:52:04]produce_requested_data [01:52:04]requested_item fm.sn is exist - process it [01:52:04]wFMCommunicate request_size=4 [01:52:04]MH_SAM_APDU [01:52:04]CAPDU: 80 11 00 00 [01:52:04]Write to MH i2c: E2 08 00 53 21 80 11 00 00 00 00 00 00 EE [01:52:04]Write i2c OK [01:52:04]MH_I2C_Read... [01:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:04]Read from MH i2c: E2 [01:52:04]MH_I2C_Read... [01:52:04]Read from MH i2c: E2 17 00 [01:52:04]MH_I2C_Read... [01:52:04]Read from MH i2c: E2 17 00 53 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 46 [01:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:52:04]wFMCommunicate OK [01:52:04]requested_item fd.num is exist - process it [01:52:04]SAM_PROTO_GetFieldsCounters [01:52:04]wFMCommunicate request_size=4 [01:52:04]MH_SAM_APDU [01:52:04]CAPDU: 80 13 00 00 [01:52:04]Write to MH i2c: E2 08 00 54 21 80 13 00 00 00 00 00 00 F1 [01:52:04]Write i2c OK [01:52:04]MH_I2C_Read... [01:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:05]Read from MH i2c: E2 [01:52:05]MH_I2C_Read... [01:52:05]Read from MH i2c: E2 62 00 [01:52:05]MH_I2C_Read... [01:52:05]Read from MH i2c: E2 62 00 54 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3D 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [01:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3D 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:52:05]wFMCommunicate OK [01:52:05]SAM_PROTO_GetFieldsCounters done [01:52:05]requested_item shift.num is exist - process it [01:52:05]requested_item shift.opened is exist - process it [01:52:05]req_shift_opened [01:52:05]FM_GetShiftState [01:52:05]SAM_PROTO_GetShiftState [01:52:05]wFMCommunicate request_size=4 [01:52:05]MH_SAM_APDU [01:52:05]CAPDU: 80 13 01 00 [01:52:05]Write to MH i2c: E2 08 00 55 21 80 13 01 00 00 00 00 00 F3 [01:52:05]Write i2c OK [01:52:05]MH_I2C_Read... [01:52:05]Read from MH i2c: E2 [01:52:05]MH_I2C_Read... [01:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:05]Read from MH i2c: E2 0E 00 [01:52:05]MH_I2C_Read... [01:52:05]Read from MH i2c: E2 0E 00 55 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 6E [01:52:05]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:52:05]wFMCommunicate OK [01:52:05]SAM_PROTO_GetShiftState done [01:52:05]FM_GetShiftState done [01:52:05]req_shift_opened done [01:52:05]requested_item shift.open_date is exist - process it [01:52:05]req_shift_open_date [01:52:05]req_shift_open_date done [01:52:05]produce_requested_data done [01:52:05]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39997,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:52:05]process_action_free close_receipt [01:52:05]json_value_free [01:52:05]json_value_free done [01:52:05]process_json_proto returns [01:52:05]Send response to host [01:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39997,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:52:05]free response buf [01:52:05]execute_script done [01:52:05]execute_script returns [01:52:05]free content buf [01:52:05]Sock 8.Close socket [01:52:05]Sock 8.Thread stoped [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:55]accept exits with 9 [01:52:55]New connection [01:52:55]New thread 3067182436 created [01:52:55]Thread 3067325796 joined [01:52:55]Waiting for new connection... [01:52:55] Sock 9.Parse request [01:52:55]Sock 9.Check first char [01:52:55]Sock 9.First char is OK [01:52:55]request: POST /json_proto HTTP/1.0 [01:52:55]Method: POST [01:52:55]URL: /json_proto [01:52:55]Method is POST - this is cgi request [01:52:55]url: /json_proto [01:52:55]query_string will be loaded in cgi processing [01:52:55]execute_cgi json_proto POST (null) [01:52:55]execute_cgi path=json_proto method=POST [01:52:55]POST find Content-Length [01:52:55]Host: 172.17.36.199:8080 [01:52:55]Content-Length: 621 [01:52:55]Content-Type: application/json [01:52:55] [01:52:55]POST finish read [01:52:55]Found Content-Length = 621 [01:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176557", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:55]execute_script... [01:52:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176557", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:55]POST & json_proto [01:52:55]process_json_proto [01:52:55]json parsed OK: [01:52:55]protocol is kg_v1.0 [01:52:55]action value=close_receipt [01:52:55]process_action close_receipt [01:52:55]cmd_close_receipt [01:52:55]MH_GetDate [01:52:55]Write to MH i2c: F0 00 00 56 21 66 [01:52:55]Write i2c OK [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 09 00 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 09 00 56 21 00 7C 73 5E 66 91 46 04 65 62 [01:52:55]GetLastDocTimeStamp 1717465926 [01:52:55]current date 1717465980 [01:52:55]FM_GetShiftState [01:52:55]SAM_PROTO_GetShiftState [01:52:55]wFMCommunicate request_size=4 [01:52:55]MH_SAM_APDU [01:52:55]CAPDU: 80 13 01 00 [01:52:55]Write to MH i2c: E2 08 00 57 21 80 13 01 00 00 00 00 00 F5 [01:52:55]Write i2c OK [01:52:55]MH_I2C_Read... [01:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:55]Read from MH i2c: E2 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: E2 0E 00 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: E2 0E 00 57 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 70 [01:52:55]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:52:55]wFMCommunicate OK [01:52:55]SAM_PROTO_GetShiftState done [01:52:55]FM_GetShiftState done [01:52:55]opened in 1717460302 [01:52:55]opened+sec_in_day 1717546702 [01:52:55]quantity*price = 14000 [01:52:55]sum+1 = 14001 [01:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 8 04.06.2024 01:53 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39998 ФПД: 44639435097652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T015300&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39998&fm=44639435097652&tin=02508201610067®Number=0000000000092680&sum=14000 0 [01:52:56]StoreToDocumentArchive [01:52:56]shift 377 fd 39998 [01:52:56]save to /storage/0377/doc_00039998 [01:52:56]save last doc name /storage/0377/doc_00039998 to /storage/kkm_last_doc_name [01:52:56]save OK [01:52:56]Clear old archive folders... [01:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:52:56]tlvbuf is 00EAB8D0 [01:52:56]SAM_PROTO_ClearQueue [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 09 00 00 [01:52:56]Write to MH i2c: E2 08 00 64 21 80 09 00 00 00 00 00 00 F7 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 64 21 00 90 00 F9 [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]SAM_PROTO_ClearQueue done [01:52:56]KKMCreateOFDPacket [01:52:56]OFDProtocolAddRootSTLVToBuf [01:52:56]FM_MakeSignedData [01:52:56]FM_MakeSignedData [01:52:56]SAM_PROTO_SignData [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 0D 01 02 [01:52:56]Write to MH i2c: E2 08 00 65 21 80 0D 01 02 00 00 00 00 FF [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 65 21 00 90 00 FA [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]wFMCommunicate request_size=255 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7C 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [01:52:56]Write to MH i2c: E2 02 01 66 21 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7C 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 29 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 66 21 00 90 00 FB [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]wFMCommunicate request_size=32 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 38 32 10 04 04 00 3E 9C 00 00 35 04 06 00 28 99 6D AC 06 34 [01:52:56]Write to MH i2c: E2 23 00 67 21 80 0D 02 02 1B 00 30 30 30 38 37 34 38 38 32 10 04 04 00 3E 9C 00 00 35 04 06 00 28 99 6D AC 06 34 00 00 52 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 67 21 00 90 00 FC [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 0D 03 02 [01:52:56]Write to MH i2c: E2 08 00 68 21 80 0D 03 02 00 00 00 00 04 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 0B 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 0B 00 68 21 00 61 F6 DF 78 12 AD 06 92 90 00 0A [01:52:56]RAPDU: 61 F6 DF 78 12 AD 06 92 90 00 [01:52:56]wFMCommunicate OK [01:52:56]SAM_PROTO_SignData done [01:52:56]FM_MakeSignedData done [01:52:56]CreateOFDProtocolMessage [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 11 00 00 [01:52:56]Write to MH i2c: E2 08 00 69 21 80 11 00 00 00 00 00 00 04 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 17 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 17 00 69 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 5C [01:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:52:56]wFMCommunicate OK [01:52:56]CreateOFDProtocolMessage done [01:52:56]OFDSenderStorePacket 39998 [01:52:56]StoreOFDPacket docnum=39998 [01:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 B2 E5 1D 01 60 F6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7C 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3E 9C 00 00 35 04 06 00 28 99 6D AC 06 34 61 F6 DF 78 12 AD 06 92 [01:52:56]CheckFolder [01:52:56]dirname=/storage/ofd_packets [01:52:56]CheckFolder done [01:52:56]ProducePacketName [01:52:56]name=ofd_packets/00039998 [01:52:56]NVStorageSaveData ofd_packets/00039998 [01:52:56]File name is /storage/ofd_packets/00039998 [01:52:56]Write 323 bytes [01:52:56]NVStorageSaveData done [01:52:56]OFDSenderStorePacket done [01:52:56]KKMCreateOFDPacket done [01:52:56]NVStorageSaveData kkm_last_timestamp [01:52:56]File name is /storage/kkm_last_timestamp [01:52:56]Write 4 bytes [01:52:56]NVStorageSaveData done [01:52:56]ExternCall_PrintAddStr [01:52:56]wPrintStart [01:52:56]Write to MH i2c: 01 00 00 6A 21 8B [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: 01 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: 01 07 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: 01 07 00 6A 21 00 00 00 00 00 FF 0F A0 [01:52:56]RasterBufferAndPrint [01:52:56]line Счет N : (3)176557 [01:52:56]line ИНН: 02508201610067 [01:52:56]line Контрольно-Кассовый Чек [01:52:56]line ПРОДАЖА [01:52:56]line Товар: 48743570 [01:52:56]line Сигареты Winston XStyle Blue [01:52:56]line 1.000 * 140.00 [01:52:56]line = 140.00 [01:52:56]line НДС 12% НСП 1% [01:52:56]line > о реализуемом товаре [01:52:56]line ИТОГО: 140.00 [01:52:56]line НСП 1% : 1.24 [01:52:56]line НДС 12% : 14.87 [01:52:56]line Наличными: 140.00 [01:52:56]line Безнал.: 0.00 [01:52:56]line Место: АЗС № 63 "Партнер Нефть" [01:52:56]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [01:52:56]line СНО: Общий режим [01:52:56]line Чек 8 04.06.2024 01:53 [01:52:56]line Смена: 377 ФФД: 1.0 [01:52:56]line ЗНМ: 0300000037 [01:52:56]line РНМ: 0000000000092680 [01:52:56]line Версия ККМ: 001 [01:52:56]line ФМ: 0000000000874882 [01:52:56]line ФД: 39998 [01:52:56]line ФПД: 44639435097652 [01:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T015300&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39998&fm=44639435097652&tin=02508201610067®Number=0000000000092680&sum=14000 [01:52:57]line 0 [01:52:57]OFD Sender: Processing packet 39998 [packets to send 5, broken 4] [01:52:57]ProducePacketName [01:52:57]name=ofd_packets/00039998 [01:52:57]OFD Sender: To server: pG, [01:52:57]CommunicateWithHost lk.salyk.kg:30040 [01:52:57]ConnectInit lk.salyk.kg [01:52:57]written 0, free lines is 4095 [01:52:57]Connected sock=10 [01:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 25 01 00 00 B2 E5 1D 01 60 F6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7C 73 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3E 9C 00 00 35 04 06 00 28 99 6D AC 06 34 61 F6 DF 78 12 AD 06 92 [01:52:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 A1 23 47 00 47 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 38 37 34 38 38 32 10 04 04 00 3E 9C 00 00 F4 03 04 00 26 1C 5E 66 B6 04 01 00 00 5D B7 50 C3 18 AD 99 CE [01:52:57]CommunicateWithHost err = 0 [01:52:57]CheckOFDResponse [01:52:57]1017 (14) - 77093643461234 [01:52:57]1041 (16) - 0000000000874882 [01:52:57]1040 (4) - 39998 [01:52:57]1012 (4) - 03.06.2024 19:40 [01:52:57]1206 (1) - 0 [01:52:57]OFD Sender: Remove packet 39998 [01:52:57]ProducePacketName [01:52:57]name=ofd_packets/00039998 [01:52:57]NVStorageDeleteData [01:52:57]Write to MH i2c: 01 00 00 92 21 B3 [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 07 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 10 0D D7 [01:52:57]RasterBufferAndPrint [01:52:57]line [01:52:57]line [01:52:57]line [01:52:57]line [01:52:57]line [01:52:57]written 0, free lines is 3353 [01:52:57]MH_Cut [01:52:57]Write to MH i2c: D1 01 00 99 21 01 8C [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: D1 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: D1 01 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: D1 01 00 99 21 00 8B [01:52:57]Write to MH i2c: 01 00 00 9A 21 BB [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]OFD Sender: No OFD packet to send [01:52:58]*** Cut start [01:52:58]*** Partial cut [01:52:58]*** CUTSNS_PIN = 1 [01:52:58]*** CUTSNS_PIN = 0 [01:52:58]*** Brake cut motor [01:52:58]Read from MH i2c: 01 [01:52:58]MH_I2C_Read... [01:52:58]*** Stop cut motor [01:52:58]*** Cut end [01:52:58]Read from MH i2c: 01 07 00 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 FF 0F D0 [01:52:58]process_action close_receipt done [01:52:58]requested_data is exist [01:52:58]produce_requested_data [01:52:58]requested_item fm.sn is exist - process it [01:52:58]wFMCommunicate request_size=4 [01:52:58]MH_SAM_APDU [01:52:58]CAPDU: 80 11 00 00 [01:52:58]Write to MH i2c: E2 08 00 9B 21 80 11 00 00 00 00 00 00 36 [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:58]Read from MH i2c: E2 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: E2 17 00 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: E2 17 00 9B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 8E [01:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [01:52:58]wFMCommunicate OK [01:52:58]requested_item fd.num is exist - process it [01:52:58]SAM_PROTO_GetFieldsCounters [01:52:58]wFMCommunicate request_size=4 [01:52:58]MH_SAM_APDU [01:52:58]CAPDU: 80 13 00 00 [01:52:58]Write to MH i2c: E2 08 00 9C 21 80 13 00 00 00 00 00 00 39 [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:58]Read from MH i2c: E2 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: E2 62 00 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: E2 62 00 9C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3E 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [01:52:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3E 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:52:58]wFMCommunicate OK [01:52:58]SAM_PROTO_GetFieldsCounters done [01:52:58]requested_item shift.num is exist - process it [01:52:58]requested_item shift.opened is exist - process it [01:52:58]req_shift_opened [01:52:58]FM_GetShiftState [01:52:58]SAM_PROTO_GetShiftState [01:52:58]wFMCommunicate request_size=4 [01:52:58]MH_SAM_APDU [01:52:58]CAPDU: 80 13 01 00 [01:52:58]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:59]Read from MH i2c: E2 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 0E 00 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 B6 [01:52:59]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [01:52:59]wFMCommunicate OK [01:52:59]SAM_PROTO_GetShiftState done [01:52:59]FM_GetShiftState done [01:52:59]req_shift_opened done [01:52:59]requested_item shift.open_date is exist - process it [01:52:59]req_shift_open_date [01:52:59]req_shift_open_date done [01:52:59]produce_requested_data done [01:52:59]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39998,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [01:52:59]process_action_free close_receipt [01:52:59]json_value_free [01:52:59]json_value_free done [01:52:59]process_json_proto returns [01:52:59]Send response to host [01:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39998,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [01:52:59]free response buf [01:52:59]execute_script done [01:52:59]execute_script returns [01:52:59]free content buf [01:52:59]Sock 9.Close socket [01:52:59]Sock 9.Thread stoped [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55: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:11]accept exits with 8 [02:09:11]New connection [02:09:11]New thread 3067325796 created [02:09:11]Thread 3067182436 joined [02:09:11]Waiting for new connection... [02:09:11] Sock 8.Parse request [02:09:11]Sock 8.Check first char [02:09:11]Sock 8.First char is OK [02:09:11]request: POST /json_proto HTTP/1.0 [02:09:11]Method: POST [02:09:11]URL: /json_proto [02:09:11]Method is POST - this is cgi request [02:09:11]url: /json_proto [02:09:11]query_string will be loaded in cgi processing [02:09:11]execute_cgi json_proto POST (null) [02:09:11]execute_cgi path=json_proto method=POST [02:09:11]POST find Content-Length [02:09:11]Host: 172.17.36.199:8080 [02:09:11]Content-Length: 1002 [02:09:11]Content-Type: application/json [02:09:11] [02:09:11]POST finish read [02:09:11]Found Content-Length = 1002 [02:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176558", "tax_sys" : 0, "items" : [ { "code": "4870215620449", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F \u041F\u041B\u0410\u0422\u0418\u041D\u0423\u041C 0,50L", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47000674", "name": "\u0421\u0435\u043D\u0434\u0432\u0438\u0447 Kav-Kev \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 635.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:09:11]execute_script... [02:09:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176558", "tax_sys" : 0, "items" : [ { "code": "4870215620449", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F \u041F\u041B\u0410\u0422\u0418\u041D\u0423\u041C 0,50L", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47000674", "name": "\u0421\u0435\u043D\u0434\u0432\u0438\u0447 Kav-Kev \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 635.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:09:11]POST & json_proto [02:09:11]process_json_proto [02:09:11]json parsed OK: [02:09:11]protocol is kg_v1.0 [02:09:11]action value=close_receipt [02:09:11]process_action close_receipt [02:09:11]cmd_close_receipt [02:09:11]MH_GetDate [02:09:11]Write to MH i2c: F0 00 00 9E 21 AE [02:09:11]Write i2c OK [02:09:11]MH_I2C_Read... [02:09:11]Read from MH i2c: F0 [02:09:11]MH_I2C_Read... [02:09:11]Read from MH i2c: F0 09 00 [02:09:11]MH_I2C_Read... [02:09:11]Read from MH i2c: F0 09 00 9E 21 00 4C 77 5E 66 91 46 04 65 7E [02:09:11]GetLastDocTimeStamp 1717465980 [02:09:11]current date 1717466956 [02:09:11]FM_GetShiftState [02:09:11]SAM_PROTO_GetShiftState [02:09:11]wFMCommunicate request_size=4 [02:09:11]MH_SAM_APDU [02:09:11]CAPDU: 80 13 01 00 [02:09:11]Write to MH i2c: E2 08 00 9F 21 80 13 01 00 00 00 00 00 3D [02:09:11]Write i2c OK [02:09:11]MH_I2C_Read... [02:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:11]Read from MH i2c: E2 [02:09:11]MH_I2C_Read... [02:09:11]Read from MH i2c: E2 0E 00 [02:09:11]MH_I2C_Read... [02:09:11]Read from MH i2c: E2 0E 00 9F 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 B8 [02:09:11]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:09:11]wFMCommunicate OK [02:09:11]SAM_PROTO_GetShiftState done [02:09:11]FM_GetShiftState done [02:09:11]opened in 1717460302 [02:09:11]opened+sec_in_day 1717546702 [02:09:11]quantity*price = 55000 [02:09:11]sum+1 = 55001 [02:09:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47000674 Сендвич Kav-Kev большой с кетчупом 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 635.00 НСП 1% : 5.62 НДС 12% : 67.44 Наличными: 635.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 9 04.06.2024 02:09 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 39999 ФПД: 220755113991428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T020916&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39999&fm=220755113991428&tin=02508201610067®Number=0000000000092680&sum=63500 0 [02:09:12]StoreToDocumentArchive [02:09:12]shift 377 fd 39999 [02:09:12]save to /storage/0377/doc_00039999 [02:09:12]save last doc name /storage/0377/doc_00039999 to /storage/kkm_last_doc_name [02:09:12]save OK [02:09:12]Clear old archive folders... [02:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=414 [02:09:12]tlvbuf is 00DF9FF0 [02:09:12]SAM_PROTO_ClearQueue [02:09:12]wFMCommunicate request_size=4 [02:09:12]MH_SAM_APDU [02:09:12]CAPDU: 80 09 00 00 [02:09:12]Write to MH i2c: E2 08 00 AC 21 80 09 00 00 00 00 00 00 3F [02:09:12]Write i2c OK [02:09:12]MH_I2C_Read... [02:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:12]Read from MH i2c: E2 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [02:09:12]RAPDU: 90 00 [02:09:12]wFMCommunicate OK [02:09:12]SAM_PROTO_ClearQueue done [02:09:12]KKMCreateOFDPacket [02:09:12]OFDProtocolAddRootSTLVToBuf [02:09:12]FM_MakeSignedData [02:09:12]FM_MakeSignedData [02:09:12]SAM_PROTO_SignData [02:09:12]wFMCommunicate request_size=4 [02:09:12]MH_SAM_APDU [02:09:12]CAPDU: 80 0D 01 02 [02:09:12]Write to MH i2c: E2 08 00 AD 21 80 0D 01 02 00 00 00 00 47 [02:09:12]Write i2c OK [02:09:12]MH_I2C_Read... [02:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:12]Read from MH i2c: E2 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [02:09:12]RAPDU: 90 00 [02:09:12]wFMCommunicate OK [02:09:12]wFMCommunicate request_size=255 [02:09:12]MH_SAM_APDU [02:09:12]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 34 34 39 06 04 30 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 D0 9F D0 9B D0 90 D0 A2 D0 98 D0 9D D0 A3 D0 9C 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [02:09:12]Write to MH i2c: E2 02 01 AE 21 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 34 34 39 06 04 30 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 D0 9F D0 9B D0 90 D0 A2 D0 98 D0 9D D0 A3 D0 9C 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 7F [02:09:12]Write i2c OK [02:09:12]MH_I2C_Read... [02:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:12]Read from MH i2c: E2 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 AE 21 00 90 00 43 [02:09:12]RAPDU: 90 00 [02:09:12]wFMCommunicate OK [02:09:12]wFMCommunicate request_size=173 [02:09:12]MH_SAM_APDU [02:09:12]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 4C 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3F 9C 00 00 35 04 06 00 C8 C6 8E 26 DD 04 [02:09:12]Write to MH i2c: E2 B0 00 AF 21 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 4C 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3F 9C 00 00 35 04 06 00 C8 C6 8E 26 DD 04 00 00 99 [02:09:12]Write i2c OK [02:09:12]MH_I2C_Read... [02:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:12]Read from MH i2c: E2 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 [02:09:12]MH_I2C_Read... [02:09:12]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [02:09:12]RAPDU: 90 00 [02:09:12]wFMCommunicate OK [02:09:12]wFMCommunicate request_size=4 [02:09:12]MH_SAM_APDU [02:09:12]CAPDU: 80 0D 03 02 [02:09:12]Write to MH i2c: E2 08 00 B0 21 80 0D 03 02 00 00 00 00 4C [02:09:12]Write i2c OK [02:09:12]MH_I2C_Read... [02:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:13]Read from MH i2c: E2 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: E2 0B 00 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: E2 0B 00 B0 21 00 DD 78 AA 64 01 46 DA 01 90 00 D2 [02:09:13]RAPDU: DD 78 AA 64 01 46 DA 01 90 00 [02:09:13]wFMCommunicate OK [02:09:13]SAM_PROTO_SignData done [02:09:13]FM_MakeSignedData done [02:09:13]CreateOFDProtocolMessage [02:09:13]wFMCommunicate request_size=4 [02:09:13]MH_SAM_APDU [02:09:13]CAPDU: 80 11 00 00 [02:09:13]Write to MH i2c: E2 08 00 B1 21 80 11 00 00 00 00 00 00 4C [02:09:13]Write i2c OK [02:09:13]MH_I2C_Read... [02:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:13]Read from MH i2c: E2 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: E2 17 00 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: E2 17 00 B1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 A4 [02:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:09:13]wFMCommunicate OK [02:09:13]CreateOFDProtocolMessage done [02:09:13]OFDSenderStorePacket 39999 [02:09:13]StoreOFDPacket docnum=39999 [02:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 E0 3E AA 01 9B 5A 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 34 34 39 06 04 30 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 D0 9F D0 9B D0 90 D0 A2 D0 98 D0 9D D0 A3 D0 9C 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 4C 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3F 9C 00 00 35 04 06 00 C8 C6 8E 26 DD 04 DD 78 AA 64 01 46 DA 01 [02:09:13]CheckFolder [02:09:13]dirname=/storage/ofd_packets [02:09:13]CheckFolder done [02:09:13]ProducePacketName [02:09:13]name=ofd_packets/00039999 [02:09:13]NVStorageSaveData ofd_packets/00039999 [02:09:13]File name is /storage/ofd_packets/00039999 [02:09:13]Write 464 bytes [02:09:13]NVStorageSaveData done [02:09:13]OFDSenderStorePacket done [02:09:13]KKMCreateOFDPacket done [02:09:13]NVStorageSaveData kkm_last_timestamp [02:09:13]File name is /storage/kkm_last_timestamp [02:09:13]Write 4 bytes [02:09:13]NVStorageSaveData done [02:09:13]ExternCall_PrintAddStr [02:09:13]wPrintStart [02:09:13]Write to MH i2c: 01 00 00 B2 21 D3 [02:09:13]OFD Sender: Processing packet 39999 [packets to send 5, broken 4] [02:09:13]ProducePacketName [02:09:13]name=ofd_packets/00039999 [02:09:13]OFD Sender: To server: pG, [02:09:13]CommunicateWithHost lk.salyk.kg:30040 [02:09:13]ConnectInit lk.salyk.kg [02:09:13]Write i2c OK [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 07 00 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 07 00 B2 21 00 00 00 00 00 FF 0F E8 [02:09:13]RasterBufferAndPrint [02:09:13]line Счет N : (3)176558 [02:09:13]line ИНН: 02508201610067 [02:09:13]line Контрольно-Кассовый Чек [02:09:13]line ПРОДАЖА [02:09:13]line Товар: 4870215620449 [02:09:13]line Водка ХОРТИЦЯ ПЛАТИНУМ 0,50L [02:09:13]line 1.000 * 550.00 [02:09:13]line = 550.00 [02:09:13]line НДС 12% НСП 1% [02:09:13]line > о реализуемом товаре [02:09:13]line Товар: 47000674 [02:09:13]line Сендвич Kav-Kev большой с кетчупом [02:09:13]line 1.000 * 85.00 [02:09:13]line = 85.00 [02:09:13]line НДС 12% НСП 1% [02:09:13]line > о реализуемом товаре [02:09:13]line ИТОГО: 635.00 [02:09:13]line НСП 1% : 5.62 [02:09:13]line НДС 12% : 67.44 [02:09:13]line Наличными: 635.00 [02:09:13]line Безнал.: 0.00 [02:09:13]line Место: АЗС № 63 "Партнер Нефть" [02:09:13]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [02:09:13]line СНО: Общий режим [02:09:13]line Чек 9 04.06.2024 02:09 [02:09:13]line Смена: 377 ФФД: 1.0 [02:09:13]line ЗНМ: 0300000037 [02:09:13]line РНМ: 0000000000092680 [02:09:13]line Версия ККМ: 001 [02:09:13]line ФМ: 0000000000874882 [02:09:13]line ФД: 39999 [02:09:13]line ФПД: 220755113991428 [02:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T020916&type=1&operation_type=1&fn_number=0000000000874882&fd_number=39999&fm=220755113991428&tin=02508201610067®Number=0000000000092680&sum=63500 [02:09:13]line 0 [02:09:13]written 0, free lines is 4095 [02:09:13]Connected sock=10 [02:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 B2 01 00 00 E0 3E AA 01 9B 5A 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 34 34 39 06 04 30 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 D0 9F D0 9B D0 90 D0 A2 D0 98 D0 9D D0 A3 D0 9C 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 4C 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3F 9C 00 00 35 04 06 00 C8 C6 8E 26 DD 04 DD 78 AA 64 01 46 DA 01 [02:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 9D EA 47 00 79 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 3F 9C 00 00 F4 03 04 00 F7 1F 5E 66 B6 04 01 00 00 E3 FA 17 02 90 F9 F6 7E [02:09:13]CommunicateWithHost err = 0 [02:09:13]CheckOFDResponse [02:09:13]1017 (14) - 77093643461234 [02:09:13]1041 (16) - 0000000000874882 [02:09:13]1040 (4) - 39999 [02:09:13]1012 (4) - 03.06.2024 19:56 [02:09:13]1206 (1) - 0 [02:09:13]OFD Sender: Remove packet 39999 [02:09:13]ProducePacketName [02:09:13]name=ofd_packets/00039999 [02:09:13]NVStorageDeleteData [02:09:13]Write to MH i2c: 01 00 00 E2 21 03 [02:09:13]Write i2c OK [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 07 00 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: 01 07 00 E2 21 00 00 00 00 00 BC 0C D2 [02:09:13]RasterBufferAndPrint [02:09:13]line [02:09:13]line [02:09:13]line [02:09:13]line [02:09:13]line [02:09:13]written 0, free lines is 3268 [02:09:13]MH_Cut [02:09:13]Write to MH i2c: D1 01 00 E9 21 01 DC [02:09:13]Write i2c OK [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: D1 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: D1 01 00 [02:09:13]MH_I2C_Read... [02:09:13]Read from MH i2c: D1 01 00 E9 21 00 DB [02:09:13]Write to MH i2c: 01 00 00 EA 21 0B [02:09:13]Write i2c OK [02:09:13]MH_I2C_Read... [02:09:14]OFD Sender: No OFD packet to send [02:09:14]*** Cut start [02:09:14]*** Partial cut [02:09:14]*** CUTSNS_PIN = 1 [02:09:14]*** CUTSNS_PIN = 0 [02:09:14]*** Brake cut motor [02:09:15]Read from MH i2c: 01 [02:09:15]MH_I2C_Read... [02:09:15]*** Stop cut motor [02:09:15]*** Cut end [02:09:15]Read from MH i2c: 01 07 00 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 FF 0F 20 [02:09:15]process_action close_receipt done [02:09:15]requested_data is exist [02:09:15]produce_requested_data [02:09:15]requested_item fm.sn is exist - process it [02:09:15]wFMCommunicate request_size=4 [02:09:15]MH_SAM_APDU [02:09:15]CAPDU: 80 11 00 00 [02:09:15]Write to MH i2c: E2 08 00 EB 21 80 11 00 00 00 00 00 00 86 [02:09:15]Write i2c OK [02:09:15]MH_I2C_Read... [02:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:15]Read from MH i2c: E2 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 17 00 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 17 00 EB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 DE [02:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:09:15]wFMCommunicate OK [02:09:15]requested_item fd.num is exist - process it [02:09:15]SAM_PROTO_GetFieldsCounters [02:09:15]wFMCommunicate request_size=4 [02:09:15]MH_SAM_APDU [02:09:15]CAPDU: 80 13 00 00 [02:09:15]Write to MH i2c: E2 08 00 EC 21 80 13 00 00 00 00 00 00 89 [02:09:15]Write i2c OK [02:09:15]MH_I2C_Read... [02:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:15]Read from MH i2c: E2 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 62 00 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 62 00 EC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3F 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [02:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 3F 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:09:15]wFMCommunicate OK [02:09:15]SAM_PROTO_GetFieldsCounters done [02:09:15]requested_item shift.num is exist - process it [02:09:15]requested_item shift.opened is exist - process it [02:09:15]req_shift_opened [02:09:15]FM_GetShiftState [02:09:15]SAM_PROTO_GetShiftState [02:09:15]wFMCommunicate request_size=4 [02:09:15]MH_SAM_APDU [02:09:15]CAPDU: 80 13 01 00 [02:09:15]Write to MH i2c: E2 08 00 ED 21 80 13 01 00 00 00 00 00 8B [02:09:15]Write i2c OK [02:09:15]MH_I2C_Read... [02:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:15]Read from MH i2c: E2 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 0E 00 [02:09:15]MH_I2C_Read... [02:09:15]Read from MH i2c: E2 0E 00 ED 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 06 [02:09:15]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:09:15]wFMCommunicate OK [02:09:15]SAM_PROTO_GetShiftState done [02:09:15]FM_GetShiftState done [02:09:15]req_shift_opened done [02:09:15]requested_item shift.open_date is exist - process it [02:09:15]req_shift_open_date [02:09:15]req_shift_open_date done [02:09:15]produce_requested_data done [02:09:15]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":39999,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [02:09:15]process_action_free close_receipt [02:09:15]json_value_free [02:09:15]json_value_free done [02:09:15]process_json_proto returns [02:09:15]Send response to host [02:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":39999,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [02:09:15]free response buf [02:09:15]execute_script done [02:09:15]execute_script returns [02:09:15]free content buf [02:09:15]Sock 8.Close socket [02:09:15]Sock 8.Thread stoped [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:22]accept exits with 9 [02:11:22]New connection [02:11:22]New thread 3067182436 created [02:11:22]Thread 3067325796 joined [02:11:22]Waiting for new connection... [02:11:22] Sock 9.Parse request [02:11:22]Sock 9.Check first char [02:11:22]Sock 9.First char is OK [02:11:22]request: POST /json_proto HTTP/1.0 [02:11:22]Method: POST [02:11:22]URL: /json_proto [02:11:22]Method is POST - this is cgi request [02:11:22]url: /json_proto [02:11:22]query_string will be loaded in cgi processing [02:11:22]execute_cgi json_proto POST (null) [02:11:22]execute_cgi path=json_proto method=POST [02:11:22]POST find Content-Length [02:11:22]Host: 172.17.36.199:8080 [02:11:22]Content-Length: 801 [02:11:22]Content-Type: application/json [02:11:22] [02:11:22]POST finish read [02:11:22]Found Content-Length = 801 [02:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176559", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:22]execute_script... [02:11:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176559", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:22]POST & json_proto [02:11:22]process_json_proto [02:11:22]json parsed OK: [02:11:22]protocol is kg_v1.0 [02:11:22]action value=close_receipt [02:11:22]process_action close_receipt [02:11:22]cmd_close_receipt [02:11:22]MH_GetDate [02:11:22]Write to MH i2c: F0 00 00 EE 21 FE [02:11:22]Write i2c OK [02:11:22]MH_I2C_Read... [02:11:22]Read from MH i2c: F0 [02:11:22]MH_I2C_Read... [02:11:22]Read from MH i2c: F0 09 00 [02:11:22]MH_I2C_Read... [02:11:22]Read from MH i2c: F0 09 00 EE 21 00 CF 77 5E 66 91 46 04 65 51 [02:11:22]GetLastDocTimeStamp 1717466956 [02:11:22]current date 1717467087 [02:11:22]FM_GetShiftState [02:11:22]SAM_PROTO_GetShiftState [02:11:22]wFMCommunicate request_size=4 [02:11:22]MH_SAM_APDU [02:11:22]CAPDU: 80 13 01 00 [02:11:22]Write to MH i2c: E2 08 00 EF 21 80 13 01 00 00 00 00 00 8D [02:11:22]Write i2c OK [02:11:22]MH_I2C_Read... [02:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:22]Read from MH i2c: E2 [02:11:22]MH_I2C_Read... [02:11:22]Read from MH i2c: E2 0E 00 [02:11:22]MH_I2C_Read... [02:11:22]Read from MH i2c: E2 0E 00 EF 21 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 08 [02:11:22]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:11:22]wFMCommunicate OK [02:11:22]SAM_PROTO_GetShiftState done [02:11:22]FM_GetShiftState done [02:11:22]opened in 1717460302 [02:11:22]opened+sec_in_day 1717546702 [02:11:22]quantity*price = 14300 [02:11:22]sum+1 = 14301 [02:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 0.00 Безнал.: 143.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 10 04.06.2024 02:11 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874882 ФД: 40000 ФПД: 175673316676929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T021127&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40000&fm=175673316676929&tin=02508201610067®Number=0000000000092680&sum=14300 0 [02:11:23]StoreToDocumentArchive [02:11:23]shift 377 fd 40000 [02:11:23]save to /storage/0377/doc_00040000 [02:11:23]save last doc name /storage/0377/doc_00040000 to /storage/kkm_last_doc_name [02:11:23]save OK [02:11:23]Clear old archive folders... [02:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=276 [02:11:23]tlvbuf is 00DFA080 [02:11:23]SAM_PROTO_ClearQueue [02:11:23]wFMCommunicate request_size=4 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 09 00 00 [02:11:23]Write to MH i2c: E2 08 00 FC 21 80 09 00 00 00 00 00 00 8F [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:11:23]Read from MH i2c: E2 03 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [02:11:23]RAPDU: 90 00 [02:11:23]wFMCommunicate OK [02:11:23]SAM_PROTO_ClearQueue done [02:11:23]KKMCreateOFDPacket [02:11:23]OFDProtocolAddRootSTLVToBuf [02:11:23]FM_MakeSignedData [02:11:23]FM_MakeSignedData [02:11:23]SAM_PROTO_SignData [02:11:23]wFMCommunicate request_size=4 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 0D 01 02 [02:11:23]Write to MH i2c: E2 08 00 FD 21 80 0D 01 02 00 00 00 00 97 [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:11:23]Read from MH i2c: E2 03 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [02:11:23]RAPDU: 90 00 [02:11:23]wFMCommunicate OK [02:11:23]wFMCommunicate request_size=255 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CF 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 [02:11:23]Write to MH i2c: E2 02 01 FE 21 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CF 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 00 00 74 [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [02:11:23]RAPDU: 90 00 [02:11:23]wFMCommunicate OK [02:11:23]wFMCommunicate request_size=35 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 40 9C 00 00 35 04 06 00 9F C6 21 A3 15 41 [02:11:23]Write to MH i2c: E2 26 00 FF 21 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 40 9C 00 00 35 04 06 00 9F C6 21 A3 15 41 00 00 ED [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [02:11:23]RAPDU: 90 00 [02:11:23]wFMCommunicate OK [02:11:23]wFMCommunicate request_size=4 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 0D 03 02 [02:11:23]Write to MH i2c: E2 08 00 00 22 80 0D 03 02 00 00 00 00 9D [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 0B 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 0B 00 00 22 00 E6 69 84 B3 D5 47 94 23 90 00 F7 [02:11:23]RAPDU: E6 69 84 B3 D5 47 94 23 90 00 [02:11:23]wFMCommunicate OK [02:11:23]SAM_PROTO_SignData done [02:11:23]FM_MakeSignedData done [02:11:23]CreateOFDProtocolMessage [02:11:23]wFMCommunicate request_size=4 [02:11:23]MH_SAM_APDU [02:11:23]CAPDU: 80 11 00 00 [02:11:23]Write to MH i2c: E2 08 00 01 22 80 11 00 00 00 00 00 00 9D [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:23]Read from MH i2c: E2 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 17 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: E2 17 00 01 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 F5 [02:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:11:23]wFMCommunicate OK [02:11:23]CreateOFDProtocolMessage done [02:11:23]OFDSenderStorePacket 40000 [02:11:23]StoreOFDPacket docnum=40000 [02:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 87 F9 20 01 AE 3C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CF 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 40 9C 00 00 35 04 06 00 9F C6 21 A3 15 41 E6 69 84 B3 D5 47 94 23 [02:11:23]CheckFolder [02:11:23]dirname=/storage/ofd_packets [02:11:23]CheckFolder done [02:11:23]ProducePacketName [02:11:23]name=ofd_packets/00040000 [02:11:23]NVStorageSaveData ofd_packets/00040000 [02:11:23]File name is /storage/ofd_packets/00040000 [02:11:23]Write 326 bytes [02:11:23]NVStorageSaveData done [02:11:23]OFDSenderStorePacket done [02:11:23]KKMCreateOFDPacket done [02:11:23]NVStorageSaveData kkm_last_timestamp [02:11:23]File name is /storage/kkm_last_timestamp [02:11:23]Write 4 bytes [02:11:23]NVStorageSaveData done [02:11:23]ExternCall_PrintAddStr [02:11:23]wPrintStart [02:11:23]Write to MH i2c: 01 00 00 02 22 24 [02:11:23]Write i2c OK [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: 01 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: 01 07 00 [02:11:23]MH_I2C_Read... [02:11:23]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 FF 0F 39 [02:11:23]RasterBufferAndPrint [02:11:23]line Счет N : (3)176559 [02:11:23]line ИНН: 02508201610067 [02:11:23]line Контрольно-Кассовый Чек [02:11:23]line ПРОДАЖА [02:11:23]line Товар: 48744683 [02:11:23]line Сигареты Winston XStyle Caster+ [02:11:23]line 1.000 * 143.00 [02:11:23]line = 143.00 [02:11:23]line НДС 12% НСП 1% [02:11:23]line > о реализуемом товаре [02:11:23]line ИТОГО: 143.00 [02:11:23]line НСП 1% : 1.26 [02:11:23]line НДС 12% : 15.19 [02:11:23]line Наличными: 0.00 [02:11:23]line Безнал.: 143.00 [02:11:23]line Место: АЗС № 63 "Партнер Нефть" [02:11:23]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [02:11:23]line СНО: Общий режим [02:11:23]line Чек 10 04.06.2024 02:11 [02:11:23]line Смена: 377 ФФД: 1.0 [02:11:23]line ЗНМ: 0300000037 [02:11:23]line РНМ: 0000000000092680 [02:11:23]line Версия ККМ: 001 [02:11:23]line Платежная система: Бакай Банк [02:11:23]line ФМ: 0000000000874882 [02:11:23]line ФД: 40000 [02:11:23]line ФПД: 175673316676929 [02:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T021127&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40000&fm=175673316676929&tin=02508201610067®Number=0000000000092680&sum=14300 [02:11:24]line 0 [02:11:24]OFD Sender: Processing packet 40000 [packets to send 5, broken 4] [02:11:24]ProducePacketName [02:11:24]name=ofd_packets/00040000 [02:11:24]OFD Sender: To server: pG, [02:11:24]CommunicateWithHost lk.salyk.kg:30040 [02:11:24]ConnectInit lk.salyk.kg [02:11:24]written 0, free lines is 4095 [02:11:24]Connected sock=10 [02:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 28 01 00 00 87 F9 20 01 AE 3C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CF 77 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 40 9C 00 00 35 04 06 00 9F C6 21 A3 15 41 E6 69 84 B3 D5 47 94 23 [02:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 C6 87 47 00 B0 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 40 9C 00 00 F4 03 04 00 79 20 5E 66 B6 04 01 00 00 3C 85 B2 F3 71 80 82 80 [02:11:24]CommunicateWithHost err = 0 [02:11:24]CheckOFDResponse [02:11:24]1017 (14) - 77093643461234 [02:11:24]1041 (16) - 0000000000874882 [02:11:24]1040 (4) - 40000 [02:11:24]1012 (4) - 03.06.2024 19:58 [02:11:24]1206 (1) - 0 [02:11:24]OFD Sender: Remove packet 40000 [02:11:24]ProducePacketName [02:11:24]name=ofd_packets/00040000 [02:11:24]NVStorageDeleteData [02:11:24]Write to MH i2c: 01 00 00 2D 22 4F [02:11:24]Write i2c OK [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: 01 [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: 01 07 00 [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 D8 0C 3A [02:11:24]RasterBufferAndPrint [02:11:24]line [02:11:24]line [02:11:24]line [02:11:24]line [02:11:24]line [02:11:24]written 0, free lines is 3297 [02:11:24]MH_Cut [02:11:24]Write to MH i2c: D1 01 00 34 22 01 28 [02:11:24]Write i2c OK [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: D1 [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: D1 01 00 [02:11:24]MH_I2C_Read... [02:11:24]Read from MH i2c: D1 01 00 34 22 00 27 [02:11:24]Write to MH i2c: 01 00 00 35 22 57 [02:11:24]Write i2c OK [02:11:24]MH_I2C_Read... [02:11:24]OFD Sender: No OFD packet to send [02:11:25]*** Cut start [02:11:25]*** Partial cut [02:11:25]*** CUTSNS_PIN = 1 [02:11:25]*** CUTSNS_PIN = 0 [02:11:25]*** Brake cut motor [02:11:25]Read from MH i2c: 01 [02:11:25]*** Stop cut motor [02:11:25]*** Cut end [02:11:25]MH_I2C_Read... [02:11:25]Read from MH i2c: 01 07 00 [02:11:25]MH_I2C_Read... [02:11:25]Read from MH i2c: 01 07 00 35 22 00 00 00 00 00 FF 0F 6C [02:11:25]process_action close_receipt done [02:11:25]requested_data is exist [02:11:25]produce_requested_data [02:11:25]requested_item fm.sn is exist - process it [02:11:25]wFMCommunicate request_size=4 [02:11:25]MH_SAM_APDU [02:11:25]CAPDU: 80 11 00 00 [02:11:25]Write to MH i2c: E2 08 00 36 22 80 11 00 00 00 00 00 00 D2 [02:11:25]Write i2c OK [02:11:25]MH_I2C_Read... [02:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:25]Read from MH i2c: E2 [02:11:25]MH_I2C_Read... [02:11:25]Read from MH i2c: E2 17 00 [02:11:25]MH_I2C_Read... [02:11:25]Read from MH i2c: E2 17 00 36 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 2A [02:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:11:25]wFMCommunicate OK [02:11:25]requested_item fd.num is exist - process it [02:11:25]SAM_PROTO_GetFieldsCounters [02:11:25]wFMCommunicate request_size=4 [02:11:25]MH_SAM_APDU [02:11:25]CAPDU: 80 13 00 00 [02:11:25]Write to MH i2c: E2 08 00 37 22 80 13 00 00 00 00 00 00 D5 [02:11:25]Write i2c OK [02:11:25]MH_I2C_Read... [02:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:11:26]Read from MH i2c: E2 [02:11:26]MH_I2C_Read... [02:11:26]Read from MH i2c: E2 62 00 [02:11:26]MH_I2C_Read... [02:11:26]Read from MH i2c: E2 62 00 37 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 40 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [02:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 40 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:11:26]wFMCommunicate OK [02:11:26]SAM_PROTO_GetFieldsCounters done [02:11:26]requested_item shift.num is exist - process it [02:11:26]requested_item shift.opened is exist - process it [02:11:26]req_shift_opened [02:11:26]FM_GetShiftState [02:11:26]SAM_PROTO_GetShiftState [02:11:26]wFMCommunicate request_size=4 [02:11:26]MH_SAM_APDU [02:11:26]CAPDU: 80 13 01 00 [02:11:26]Write to MH i2c: E2 08 00 38 22 80 13 01 00 00 00 00 00 D7 [02:11:26]Write i2c OK [02:11:26]MH_I2C_Read... [02:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:26]Read from MH i2c: E2 [02:11:26]MH_I2C_Read... [02:11:26]Read from MH i2c: E2 0E 00 [02:11:26]MH_I2C_Read... [02:11:26]Read from MH i2c: E2 0E 00 38 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 52 [02:11:26]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:11:26]wFMCommunicate OK [02:11:26]SAM_PROTO_GetShiftState done [02:11:26]FM_GetShiftState done [02:11:26]req_shift_opened done [02:11:26]requested_item shift.open_date is exist - process it [02:11:26]req_shift_open_date [02:11:26]req_shift_open_date done [02:11:26]produce_requested_data done [02:11:26]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":40000,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [02:11:26]process_action_free close_receipt [02:11:26]json_value_free [02:11:26]json_value_free done [02:11:26]process_json_proto returns [02:11:26]Send response to host [02:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":40000,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [02:11:26]free response buf [02:11:26]execute_script done [02:11:26]execute_script returns [02:11:26]free content buf [02:11:26]Sock 9.Close socket [02:11:26]Sock 9.Thread stoped [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:50]accept exits with 8 [02:50:50]New connection [02:50:50]New thread 3067325796 created [02:50:50]Thread 3067182436 joined [02:50:50]Waiting for new connection... [02:50:50] Sock 8.Parse request [02:50:50]Sock 8.Check first char [02:50:50]Sock 8.First char is OK [02:50:50]request: POST /json_proto HTTP/1.0 [02:50:50]Method: POST [02:50:50]URL: /json_proto [02:50:50]Method is POST - this is cgi request [02:50:50]url: /json_proto [02:50:50]query_string will be loaded in cgi processing [02:50:50]execute_cgi json_proto POST (null) [02:50:50]execute_cgi path=json_proto method=POST [02:50:50]POST find Content-Length [02:50:50]Host: 172.17.36.199:8080 [02:50:50]Content-Length: 629 [02:50:50]Content-Type: application/json [02:50:50] [02:50:50]POST finish read [02:50:50]Found Content-Length = 629 [02:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176560", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:50]execute_script... [02:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176560", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:50]POST & json_proto [02:50:50]process_json_proto [02:50:50]json parsed OK: [02:50:50]protocol is kg_v1.0 [02:50:50]action value=close_receipt [02:50:50]process_action close_receipt [02:50:50]cmd_close_receipt [02:50:50]MH_GetDate [02:50:50]Write to MH i2c: F0 00 00 39 22 4A [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: F0 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: F0 09 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: F0 09 00 39 22 00 0F 81 5E 66 91 46 04 65 E7 [02:50:50]GetLastDocTimeStamp 1717467087 [02:50:50]current date 1717469455 [02:50:50]FM_GetShiftState [02:50:50]SAM_PROTO_GetShiftState [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 13 01 00 [02:50:50]Write to MH i2c: E2 08 00 3A 22 80 13 01 00 00 00 00 00 D9 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 3A 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 54 [02:50:50]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_GetShiftState done [02:50:50]FM_GetShiftState done [02:50:50]opened in 1717460302 [02:50:50]opened+sec_in_day 1717546702 [02:50:50]quantity*price = 55000 [02:50:50]sum+1 = 55001 [02:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 11 04.06.2024 02:50 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 40001 ФПД: 109682239166292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T025055&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40001&fm=109682239166292&tin=02508201610067®Number=0000000000092680&sum=55000 0 [02:50:51]StoreToDocumentArchive [02:50:51]shift 377 fd 40001 [02:50:51]save to /storage/0377/doc_00040001 [02:50:51]save last doc name /storage/0377/doc_00040001 to /storage/kkm_last_doc_name [02:50:51]save OK [02:50:51]Clear old archive folders... [02:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=269 [02:50:51]tlvbuf is 00E42CE0 [02:50:51]SAM_PROTO_ClearQueue [02:50:51]wFMCommunicate request_size=4 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 09 00 00 [02:50:51]Write to MH i2c: E2 08 00 47 22 80 09 00 00 00 00 00 00 DB [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [02:50:51]RAPDU: 90 00 [02:50:51]wFMCommunicate OK [02:50:51]SAM_PROTO_ClearQueue done [02:50:51]KKMCreateOFDPacket [02:50:51]OFDProtocolAddRootSTLVToBuf [02:50:51]FM_MakeSignedData [02:50:51]FM_MakeSignedData [02:50:51]SAM_PROTO_SignData [02:50:51]wFMCommunicate request_size=4 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 0D 01 02 [02:50:51]Write to MH i2c: E2 08 00 48 22 80 0D 01 02 00 00 00 00 E3 [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [02:50:51]RAPDU: 90 00 [02:50:51]wFMCommunicate OK [02:50:51]wFMCommunicate request_size=255 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 0F 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [02:50:51]Write to MH i2c: E2 02 01 49 22 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 0F 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A9 [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [02:50:51]RAPDU: 90 00 [02:50:51]wFMCommunicate OK [02:50:51]wFMCommunicate request_size=28 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 0D 02 02 17 37 34 38 38 32 10 04 04 00 41 9C 00 00 35 04 06 00 63 C1 62 E7 57 54 [02:50:51]Write to MH i2c: E2 1F 00 4A 22 80 0D 02 02 17 00 37 34 38 38 32 10 04 04 00 41 9C 00 00 35 04 06 00 63 C1 62 E7 57 54 00 00 6D [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 03 00 4A 22 00 90 00 E0 [02:50:51]RAPDU: 90 00 [02:50:51]wFMCommunicate OK [02:50:51]wFMCommunicate request_size=4 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 0D 03 02 [02:50:51]Write to MH i2c: E2 08 00 4B 22 80 0D 03 02 00 00 00 00 E8 [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 0B 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 0B 00 4B 22 00 B3 90 AC FE 55 58 0F B5 90 00 47 [02:50:51]RAPDU: B3 90 AC FE 55 58 0F B5 90 00 [02:50:51]wFMCommunicate OK [02:50:51]SAM_PROTO_SignData done [02:50:51]FM_MakeSignedData done [02:50:51]CreateOFDProtocolMessage [02:50:51]wFMCommunicate request_size=4 [02:50:51]MH_SAM_APDU [02:50:51]CAPDU: 80 11 00 00 [02:50:51]Write to MH i2c: E2 08 00 4C 22 80 11 00 00 00 00 00 00 E8 [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:51]Read from MH i2c: E2 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 17 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: E2 17 00 4C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 40 [02:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:50:51]wFMCommunicate OK [02:50:51]CreateOFDProtocolMessage done [02:50:51]OFDSenderStorePacket 40001 [02:50:51]StoreOFDPacket docnum=40001 [02:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 21 01 00 00 93 18 19 01 33 D1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 0F 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 41 9C 00 00 35 04 06 00 63 C1 62 E7 57 54 B3 90 AC FE 55 58 0F B5 [02:50:51]CheckFolder [02:50:51]dirname=/storage/ofd_packets [02:50:51]CheckFolder done [02:50:51]ProducePacketName [02:50:51]name=ofd_packets/00040001 [02:50:51]NVStorageSaveData ofd_packets/00040001 [02:50:51]File name is /storage/ofd_packets/00040001 [02:50:51]Write 319 bytes [02:50:51]NVStorageSaveData done [02:50:51]OFDSenderStorePacket done [02:50:51]KKMCreateOFDPacket done [02:50:51]NVStorageSaveData kkm_last_timestamp [02:50:51]File name is /storage/kkm_last_timestamp [02:50:51]Write 4 bytes [02:50:51]NVStorageSaveData done [02:50:51]ExternCall_PrintAddStr [02:50:51]wPrintStart [02:50:51]Write to MH i2c: 01 00 00 4D 22 6F [02:50:51]Write i2c OK [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: 01 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: 01 07 00 [02:50:51]MH_I2C_Read... [02:50:51]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FF 0F 84 [02:50:51]RasterBufferAndPrint [02:50:51]line Счет N : (3)176560 [02:50:51]line ИНН: 02508201610067 [02:50:51]line Контрольно-Кассовый Чек [02:50:51]line ПРОДАЖА [02:50:51]line Товар: 4620006990387 [02:50:51]line Водка Талка 0,5л [02:50:51]line 1.000 * 550.00 [02:50:51]line = 550.00 [02:50:51]line НДС 12% НСП 1% [02:50:51]line > о реализуемом товаре [02:50:51]line ИТОГО: 550.00 [02:50:51]line НСП 1% : 4.87 [02:50:51]line НДС 12% : 58.41 [02:50:51]line Наличными: 550.00 [02:50:51]line Безнал.: 0.00 [02:50:51]line Место: АЗС № 63 "Партнер Нефть" [02:50:51]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [02:50:51]line СНО: Общий режим [02:50:51]line Чек 11 04.06.2024 02:50 [02:50:51]line Смена: 377 ФФД: 1.0 [02:50:51]line ЗНМ: 0300000037 [02:50:51]line РНМ: 0000000000092680 [02:50:51]line Версия ККМ: 001 [02:50:51]line ФМ: 0000000000874882 [02:50:51]line ФД: 40001 [02:50:51]line ФПД: 109682239166292 [02:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T025055&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40001&fm=109682239166292&tin=02508201610067®Number=0000000000092680&sum=55000 [02:50:52]line 0 [02:50:52]OFD Sender: Processing packet 40001 [packets to send 5, broken 4] [02:50:52]ProducePacketName [02:50:52]name=ofd_packets/00040001 [02:50:52]OFD Sender: To server: pG, [02:50:52]CommunicateWithHost lk.salyk.kg:30040 [02:50:52]ConnectInit lk.salyk.kg [02:50:52]written 0, free lines is 4095 [02:50:52]Connected sock=10 [02:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 21 01 00 00 93 18 19 01 33 D1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 0F 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 41 9C 00 00 35 04 06 00 63 C1 62 E7 57 54 B3 90 AC FE 55 58 0F B5 [02:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 56 39 47 00 9E C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 41 9C 00 00 F4 03 04 00 B9 29 5E 66 B6 04 01 00 00 3A DA 4B DB 9C 4A 71 AF [02:50:52]CommunicateWithHost err = 0 [02:50:52]CheckOFDResponse [02:50:52]1017 (14) - 77093643461234 [02:50:52]1041 (16) - 0000000000874882 [02:50:52]1040 (4) - 40001 [02:50:52]1012 (4) - 03.06.2024 20:38 [02:50:52]1206 (1) - 0 [02:50:52]OFD Sender: Remove packet 40001 [02:50:52]ProducePacketName [02:50:52]name=ofd_packets/00040001 [02:50:52]NVStorageDeleteData [02:50:52]Write to MH i2c: 01 00 00 75 22 97 [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: 01 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: 01 07 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 13 0D BE [02:50:52]RasterBufferAndPrint [02:50:52]line [02:50:52]line [02:50:52]line [02:50:52]line [02:50:52]line [02:50:52]written 0, free lines is 3357 [02:50:52]MH_Cut [02:50:52]Write to MH i2c: D1 01 00 7C 22 01 70 [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: D1 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: D1 01 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: D1 01 00 7C 22 00 6F [02:50:52]Write to MH i2c: 01 00 00 7D 22 9F [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]OFD Sender: No OFD packet to send [02:50:53]*** Cut start [02:50:53]*** Partial cut [02:50:53]*** CUTSNS_PIN = 1 [02:50:53]*** CUTSNS_PIN = 0 [02:50:53]*** Brake cut motor [02:50:53]Read from MH i2c: 01 [02:50:53]MH_I2C_Read... [02:50:53]*** Stop cut motor [02:50:53]*** Cut end [02:50:53]Read from MH i2c: 01 07 00 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: 01 07 00 7D 22 00 00 00 00 00 FF 0F B4 [02:50:53]process_action close_receipt done [02:50:53]requested_data is exist [02:50:53]produce_requested_data [02:50:53]requested_item fm.sn is exist - process it [02:50:53]wFMCommunicate request_size=4 [02:50:53]MH_SAM_APDU [02:50:53]CAPDU: 80 11 00 00 [02:50:53]Write to MH i2c: E2 08 00 7E 22 80 11 00 00 00 00 00 00 1A [02:50:53]Write i2c OK [02:50:53]MH_I2C_Read... [02:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:53]Read from MH i2c: E2 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 17 00 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 17 00 7E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 72 [02:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:50:53]wFMCommunicate OK [02:50:53]requested_item fd.num is exist - process it [02:50:53]SAM_PROTO_GetFieldsCounters [02:50:53]wFMCommunicate request_size=4 [02:50:53]MH_SAM_APDU [02:50:53]CAPDU: 80 13 00 00 [02:50:53]Write to MH i2c: E2 08 00 7F 22 80 13 00 00 00 00 00 00 1D [02:50:53]Write i2c OK [02:50:53]MH_I2C_Read... [02:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:53]Read from MH i2c: E2 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 62 00 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 62 00 7F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 41 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [02:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 41 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:53]wFMCommunicate OK [02:50:53]SAM_PROTO_GetFieldsCounters done [02:50:53]requested_item shift.num is exist - process it [02:50:53]requested_item shift.opened is exist - process it [02:50:53]req_shift_opened [02:50:53]FM_GetShiftState [02:50:53]SAM_PROTO_GetShiftState [02:50:53]wFMCommunicate request_size=4 [02:50:53]MH_SAM_APDU [02:50:53]CAPDU: 80 13 01 00 [02:50:53]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [02:50:53]Write i2c OK [02:50:53]MH_I2C_Read... [02:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:54]Read from MH i2c: E2 [02:50:54]MH_I2C_Read... [02:50:54]Read from MH i2c: E2 0E 00 [02:50:54]MH_I2C_Read... [02:50:54]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 9A [02:50:54]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:50:54]wFMCommunicate OK [02:50:54]SAM_PROTO_GetShiftState done [02:50:54]FM_GetShiftState done [02:50:54]req_shift_opened done [02:50:54]requested_item shift.open_date is exist - process it [02:50:54]req_shift_open_date [02:50:54]req_shift_open_date done [02:50:54]produce_requested_data done [02:50:54]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":40001,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [02:50:54]process_action_free close_receipt [02:50:54]json_value_free [02:50:54]json_value_free done [02:50:54]process_json_proto returns [02:50:54]Send response to host [02:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":40001,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [02:50:54]free response buf [02:50:54]execute_script done [02:50:54]execute_script returns [02:50:54]free content buf [02:50:54]Sock 8.Close socket [02:50:54]Sock 8.Thread stoped [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:09]accept exits with 9 [02:51:09]New connection [02:51:09]New thread 3067182436 created [02:51:09]Thread 3067325796 joined [02:51:09]Waiting for new connection... [02:51:09] Sock 9.Parse request [02:51:09]Sock 9.Check first char [02:51:09]Sock 9.First char is OK [02:51:09]request: POST /json_proto HTTP/1.0 [02:51:09]Method: POST [02:51:09]URL: /json_proto [02:51:09]Method is POST - this is cgi request [02:51:09]url: /json_proto [02:51:09]query_string will be loaded in cgi processing [02:51:09]execute_cgi json_proto POST (null) [02:51:09]execute_cgi path=json_proto method=POST [02:51:09]POST find Content-Length [02:51:09]Host: 172.17.36.199:8080 [02:51:09]Content-Length: 620 [02:51:09]Content-Type: application/json [02:51:09] [02:51:09]POST finish read [02:51:09]Found Content-Length = 620 [02:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176561", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:09]execute_script... [02:51:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176561", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:09]POST & json_proto [02:51:09]process_json_proto [02:51:09]json parsed OK: [02:51:09]protocol is kg_v1.0 [02:51:09]action value=close_receipt [02:51:09]process_action close_receipt [02:51:09]cmd_close_receipt [02:51:09]MH_GetDate [02:51:09]Write to MH i2c: F0 00 00 81 22 92 [02:51:09]Write i2c OK [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: F0 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: F0 09 00 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: F0 09 00 81 22 00 23 81 5E 66 91 46 04 65 43 [02:51:09]GetLastDocTimeStamp 1717469455 [02:51:09]current date 1717469475 [02:51:09]FM_GetShiftState [02:51:09]SAM_PROTO_GetShiftState [02:51:09]wFMCommunicate request_size=4 [02:51:09]MH_SAM_APDU [02:51:09]CAPDU: 80 13 01 00 [02:51:09]Write to MH i2c: E2 08 00 82 22 80 13 01 00 00 00 00 00 21 [02:51:09]Write i2c OK [02:51:09]MH_I2C_Read... [02:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:10]Read from MH i2c: E2 [02:51:10]MH_I2C_Read... [02:51:10]Read from MH i2c: E2 0E 00 [02:51:10]MH_I2C_Read... [02:51:10]Read from MH i2c: E2 0E 00 82 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 9C [02:51:10]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:51:10]wFMCommunicate OK [02:51:10]SAM_PROTO_GetShiftState done [02:51:10]FM_GetShiftState done [02:51:10]opened in 1717460302 [02:51:10]opened+sec_in_day 1717546702 [02:51:10]quantity*price = 13800 [02:51:10]sum+1 = 13801 [02:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 12 04.06.2024 02:51 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 40002 ФПД: 9487990673921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T025115&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40002&fm=9487990673921&tin=02508201610067®Number=0000000000092680&sum=13800 0 [02:51:11]StoreToDocumentArchive [02:51:11]shift 377 fd 40002 [02:51:11]save to /storage/0377/doc_00040002 [02:51:11]save last doc name /storage/0377/doc_00040002 to /storage/kkm_last_doc_name [02:51:11]save OK [02:51:11]Clear old archive folders... [02:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=272 [02:51:11]tlvbuf is 00E00CD0 [02:51:11]SAM_PROTO_ClearQueue [02:51:11]wFMCommunicate request_size=4 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 09 00 00 [02:51:11]Write to MH i2c: E2 08 00 8F 22 80 09 00 00 00 00 00 00 23 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [02:51:11]RAPDU: 90 00 [02:51:11]wFMCommunicate OK [02:51:11]SAM_PROTO_ClearQueue done [02:51:11]KKMCreateOFDPacket [02:51:11]OFDProtocolAddRootSTLVToBuf [02:51:11]FM_MakeSignedData [02:51:11]FM_MakeSignedData [02:51:11]SAM_PROTO_SignData [02:51:11]wFMCommunicate request_size=4 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 0D 01 02 [02:51:11]Write to MH i2c: E2 08 00 90 22 80 0D 01 02 00 00 00 00 2B [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [02:51:11]RAPDU: 90 00 [02:51:11]wFMCommunicate OK [02:51:11]wFMCommunicate request_size=255 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 23 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 [02:51:11]Write to MH i2c: E2 02 01 91 22 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 23 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 41 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [02:51:11]RAPDU: 90 00 [02:51:11]wFMCommunicate OK [02:51:11]wFMCommunicate request_size=31 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 38 38 32 10 04 04 00 42 9C 00 00 35 04 06 00 08 A1 18 50 52 01 [02:51:11]Write to MH i2c: E2 22 00 92 22 80 0D 02 02 1A 00 30 30 38 37 34 38 38 32 10 04 04 00 42 9C 00 00 35 04 06 00 08 A1 18 50 52 01 00 00 A0 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [02:51:11]RAPDU: 90 00 [02:51:11]wFMCommunicate OK [02:51:11]wFMCommunicate request_size=4 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 0D 03 02 [02:51:11]Write to MH i2c: E2 08 00 93 22 80 0D 03 02 00 00 00 00 30 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 0B 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 0B 00 93 22 00 35 F9 FB 3E 65 00 CF 72 90 00 3E [02:51:11]RAPDU: 35 F9 FB 3E 65 00 CF 72 90 00 [02:51:11]wFMCommunicate OK [02:51:11]SAM_PROTO_SignData done [02:51:11]FM_MakeSignedData done [02:51:11]CreateOFDProtocolMessage [02:51:11]wFMCommunicate request_size=4 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 11 00 00 [02:51:11]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 17 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 17 00 94 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 88 [02:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:51:11]wFMCommunicate OK [02:51:11]CreateOFDProtocolMessage done [02:51:11]OFDSenderStorePacket 40002 [02:51:11]StoreOFDPacket docnum=40002 [02:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 97 54 1C 01 4A AC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 23 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 42 9C 00 00 35 04 06 00 08 A1 18 50 52 01 35 F9 FB 3E 65 00 CF 72 [02:51:11]CheckFolder [02:51:11]dirname=/storage/ofd_packets [02:51:11]CheckFolder done [02:51:11]ProducePacketName [02:51:11]name=ofd_packets/00040002 [02:51:11]NVStorageSaveData ofd_packets/00040002 [02:51:11]File name is /storage/ofd_packets/00040002 [02:51:11]Write 322 bytes [02:51:11]NVStorageSaveData done [02:51:11]OFDSenderStorePacket done [02:51:11]KKMCreateOFDPacket done [02:51:11]NVStorageSaveData kkm_last_timestamp [02:51:11]File name is /storage/kkm_last_timestamp [02:51:11]Write 4 bytes [02:51:11]NVStorageSaveData done [02:51:11]ExternCall_PrintAddStr [02:51:11]wPrintStart [02:51:11]Write to MH i2c: 01 00 00 95 22 B7 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: 01 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: 01 07 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: 01 07 00 95 22 00 00 00 00 00 FF 0F CC [02:51:11]RasterBufferAndPrint [02:51:11]line Счет N : (3)176561 [02:51:11]line ИНН: 02508201610067 [02:51:11]line Контрольно-Кассовый Чек [02:51:11]line ПРОДАЖА [02:51:11]line Товар: 4640030091607 [02:51:11]line Сигареты ESSE Exchange [02:51:11]line 1.000 * 138.00 [02:51:11]line = 138.00 [02:51:11]line НДС 12% НСП 1% [02:51:11]line > о реализуемом товаре [02:51:11]line ИТОГО: 138.00 [02:51:11]line НСП 1% : 1.22 [02:51:11]line НДС 12% : 14.65 [02:51:11]line Наличными: 138.00 [02:51:11]line Безнал.: 0.00 [02:51:11]line Место: АЗС № 63 "Партнер Нефть" [02:51:11]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [02:51:11]line СНО: Общий режим [02:51:11]line Чек 12 04.06.2024 02:51 [02:51:11]line Смена: 377 ФФД: 1.0 [02:51:11]line ЗНМ: 0300000037 [02:51:11]line РНМ: 0000000000092680 [02:51:11]line Версия ККМ: 001 [02:51:11]line ФМ: 0000000000874882 [02:51:11]line ФД: 40002 [02:51:11]line ФПД: 9487990673921 [02:51:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T025115&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40002&fm=9487990673921&tin=02508201610067®Number=0000000000092680&sum=13800 [02:51:11]line 0 [02:51:11]OFD Sender: Processing packet 40002 [packets to send 5, broken 4] [02:51:11]ProducePacketName [02:51:11]name=ofd_packets/00040002 [02:51:11]OFD Sender: To server: pG, [02:51:11]CommunicateWithHost lk.salyk.kg:30040 [02:51:11]ConnectInit lk.salyk.kg [02:51:11]written 0, free lines is 4095 [02:51:12]Connected sock=10 [02:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 24 01 00 00 97 54 1C 01 4A AC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 23 81 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 42 9C 00 00 35 04 06 00 08 A1 18 50 52 01 35 F9 FB 3E 65 00 CF 72 [02:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 AA AF 47 00 80 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 42 9C 00 00 F4 03 04 00 CD 29 5E 66 B6 04 01 00 00 B2 B6 09 C2 F6 6F AD 32 [02:51:12]CommunicateWithHost err = 0 [02:51:12]CheckOFDResponse [02:51:12]1017 (14) - 77093643461234 [02:51:12]1041 (16) - 0000000000874882 [02:51:12]1040 (4) - 40002 [02:51:12]1012 (4) - 03.06.2024 20:38 [02:51:12]1206 (1) - 0 [02:51:12]OFD Sender: Remove packet 40002 [02:51:12]ProducePacketName [02:51:12]name=ofd_packets/00040002 [02:51:12]NVStorageDeleteData [02:51:12]Write to MH i2c: 01 00 00 BD 22 DF [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: 01 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: 01 07 00 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 24 0D 17 [02:51:12]RasterBufferAndPrint [02:51:12]line [02:51:12]line [02:51:12]line [02:51:12]line [02:51:12]line [02:51:12]written 0, free lines is 3370 [02:51:12]MH_Cut [02:51:12]Write to MH i2c: D1 01 00 C4 22 01 B8 [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: D1 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: D1 01 00 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: D1 01 00 C4 22 00 B7 [02:51:12]Write to MH i2c: 01 00 00 C5 22 E7 [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]OFD Sender: No OFD packet to send [02:51:13]*** Cut start [02:51:13]*** Partial cut [02:51:13]*** CUTSNS_PIN = 1 [02:51:13]*** CUTSNS_PIN = 0 [02:51:13]*** Brake cut motor [02:51:13]Read from MH i2c: 01 [02:51:13]MH_I2C_Read... [02:51:13]*** Stop cut motor [02:51:13]*** Cut end [02:51:13]Read from MH i2c: 01 07 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [02:51:13]process_action close_receipt done [02:51:13]requested_data is exist [02:51:13]produce_requested_data [02:51:13]requested_item fm.sn is exist - process it [02:51:13]wFMCommunicate request_size=4 [02:51:13]MH_SAM_APDU [02:51:13]CAPDU: 80 11 00 00 [02:51:13]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 17 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 BA [02:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [02:51:13]wFMCommunicate OK [02:51:13]requested_item fd.num is exist - process it [02:51:13]SAM_PROTO_GetFieldsCounters [02:51:13]wFMCommunicate request_size=4 [02:51:13]MH_SAM_APDU [02:51:13]CAPDU: 80 13 00 00 [02:51:13]Write to MH i2c: E2 08 00 C7 22 80 13 00 00 00 00 00 00 65 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 62 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 62 00 C7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 42 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [02:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 42 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:51:13]wFMCommunicate OK [02:51:13]SAM_PROTO_GetFieldsCounters done [02:51:13]requested_item shift.num is exist - process it [02:51:13]requested_item shift.opened is exist - process it [02:51:13]req_shift_opened [02:51:13]FM_GetShiftState [02:51:13]SAM_PROTO_GetShiftState [02:51:13]wFMCommunicate request_size=4 [02:51:13]MH_SAM_APDU [02:51:13]CAPDU: 80 13 01 00 [02:51:13]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 0E 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 E2 [02:51:13]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [02:51:13]wFMCommunicate OK [02:51:13]SAM_PROTO_GetShiftState done [02:51:13]FM_GetShiftState done [02:51:13]req_shift_opened done [02:51:13]requested_item shift.open_date is exist - process it [02:51:13]req_shift_open_date [02:51:13]req_shift_open_date done [02:51:13]produce_requested_data done [02:51:13]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":40002,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [02:51:13]process_action_free close_receipt [02:51:13]json_value_free [02:51:13]json_value_free done [02:51:13]process_json_proto returns [02:51:13]Send response to host [02:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":40002,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [02:51:13]free response buf [02:51:13]execute_script done [02:51:13]execute_script returns [02:51:13]free content buf [02:51:13]Sock 9.Close socket [02:51:13]Sock 9.Thread stoped [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:30]accept exits with 8 [03:11:30]New connection [03:11:30]New thread 3067325796 created [03:11:30]Thread 3067182436 joined [03:11:30]Waiting for new connection... [03:11:30] Sock 8.Parse request [03:11:30]Sock 8.Check first char [03:11:30]Sock 8.First char is OK [03:11:30]request: POST /json_proto HTTP/1.0 [03:11:30]Method: POST [03:11:30]URL: /json_proto [03:11:30]Method is POST - this is cgi request [03:11:30]url: /json_proto [03:11:30]query_string will be loaded in cgi processing [03:11:30]execute_cgi json_proto POST (null) [03:11:30]execute_cgi path=json_proto method=POST [03:11:30]POST find Content-Length [03:11:30]Host: 172.17.36.199:8080 [03:11:30]Content-Length: 663 [03:11:30]Content-Type: application/json [03:11:30] [03:11:30]POST finish read [03:11:30]Found Content-Length = 663 [03:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176562", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:30]execute_script... [03:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)176562", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:30]POST & json_proto [03:11:30]process_json_proto [03:11:30]json parsed OK: [03:11:30]protocol is kg_v1.0 [03:11:30]action value=close_receipt [03:11:30]process_action close_receipt [03:11:30]cmd_close_receipt [03:11:30]MH_GetDate [03:11:30]Write to MH i2c: F0 00 00 C9 22 DA [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: F0 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: F0 09 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: F0 09 00 C9 22 00 E7 85 5E 66 91 46 04 65 53 [03:11:30]GetLastDocTimeStamp 1717469475 [03:11:30]current date 1717470695 [03:11:30]FM_GetShiftState [03:11:30]SAM_PROTO_GetShiftState [03:11:30]wFMCommunicate request_size=4 [03:11:30]MH_SAM_APDU [03:11:30]CAPDU: 80 13 01 00 [03:11:30]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 0E 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 E4 [03:11:30]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [03:11:30]wFMCommunicate OK [03:11:30]SAM_PROTO_GetShiftState done [03:11:30]FM_GetShiftState done [03:11:30]opened in 1717460302 [03:11:30]opened+sec_in_day 1717546702 [03:11:30]quantity*price = 5300 [03:11:30]sum+1 = 5301 [03:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 53.00 НСП 1% : 0.47 НДС 12% : 5.63 Наличными: 53.00 Безнал.: 0.00 Место: АЗС № 63 "Партнер Нефть" Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 СНО: Общий режим Чек 13 04.06.2024 03:11 Смена: 377 ФФД: 1.0 ЗНМ: 0300000037 РНМ: 0000000000092680 Версия ККМ: 001 ФМ: 0000000000874882 ФД: 40003 ФПД: 278627865137420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T031135&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40003&fm=278627865137420&tin=02508201610067®Number=0000000000092680&sum=5300 0 [03:11:31]StoreToDocumentArchive [03:11:31]shift 377 fd 40003 [03:11:31]save to /storage/0377/doc_00040003 [03:11:31]save last doc name /storage/0377/doc_00040003 to /storage/kkm_last_doc_name [03:11:31]save OK [03:11:31]Clear old archive folders... [03:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=286 [03:11:31]tlvbuf is 00DF6270 [03:11:31]SAM_PROTO_ClearQueue [03:11:31]wFMCommunicate request_size=4 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 09 00 00 [03:11:31]Write to MH i2c: E2 08 00 D7 22 80 09 00 00 00 00 00 00 6B [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [03:11:31]RAPDU: 90 00 [03:11:31]wFMCommunicate OK [03:11:31]SAM_PROTO_ClearQueue done [03:11:31]KKMCreateOFDPacket [03:11:31]OFDProtocolAddRootSTLVToBuf [03:11:31]FM_MakeSignedData [03:11:31]FM_MakeSignedData [03:11:31]SAM_PROTO_SignData [03:11:31]wFMCommunicate request_size=4 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 0D 01 02 [03:11:31]Write to MH i2c: E2 08 00 D8 22 80 0D 01 02 00 00 00 00 73 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [03:11:31]RAPDU: 90 00 [03:11:31]wFMCommunicate OK [03:11:31]wFMCommunicate request_size=255 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 E7 85 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [03:11:31]Write to MH i2c: E2 02 01 D9 22 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 E7 85 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 03 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [03:11:31]RAPDU: 90 00 [03:11:31]wFMCommunicate OK [03:11:31]wFMCommunicate request_size=45 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 0D 02 02 28 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 43 9C 00 00 35 04 06 00 FD 69 1A ED 11 0C [03:11:31]Write to MH i2c: E2 30 00 DA 22 80 0D 02 02 28 00 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 43 9C 00 00 35 04 06 00 FD 69 1A ED 11 0C 00 00 38 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [03:11:31]RAPDU: 90 00 [03:11:31]wFMCommunicate OK [03:11:31]wFMCommunicate request_size=4 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 0D 03 02 [03:11:31]Write to MH i2c: E2 08 00 DB 22 80 0D 03 02 00 00 00 00 78 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 0B 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 0B 00 DB 22 00 F1 28 E0 A5 4B FC 67 0B 90 00 D0 [03:11:31]RAPDU: F1 28 E0 A5 4B FC 67 0B 90 00 [03:11:31]wFMCommunicate OK [03:11:31]SAM_PROTO_SignData done [03:11:31]FM_MakeSignedData done [03:11:31]CreateOFDProtocolMessage [03:11:31]wFMCommunicate request_size=4 [03:11:31]MH_SAM_APDU [03:11:31]CAPDU: 80 11 00 00 [03:11:31]Write to MH i2c: E2 08 00 DC 22 80 11 00 00 00 00 00 00 78 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:31]Read from MH i2c: E2 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 17 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: E2 17 00 DC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 D0 [03:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [03:11:31]wFMCommunicate OK [03:11:31]CreateOFDProtocolMessage done [03:11:31]OFDSenderStorePacket 40003 [03:11:31]StoreOFDPacket docnum=40003 [03:11:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 32 01 00 00 2C 69 2A 01 B8 B6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 E7 85 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 43 9C 00 00 35 04 06 00 FD 69 1A ED 11 0C F1 28 E0 A5 4B FC 67 0B [03:11:31]CheckFolder [03:11:31]dirname=/storage/ofd_packets [03:11:31]CheckFolder done [03:11:31]ProducePacketName [03:11:31]name=ofd_packets/00040003 [03:11:31]NVStorageSaveData ofd_packets/00040003 [03:11:31]File name is /storage/ofd_packets/00040003 [03:11:31]Write 336 bytes [03:11:31]NVStorageSaveData done [03:11:31]OFDSenderStorePacket done [03:11:31]KKMCreateOFDPacket done [03:11:31]NVStorageSaveData kkm_last_timestamp [03:11:31]File name is /storage/kkm_last_timestamp [03:11:31]Write 4 bytes [03:11:31]NVStorageSaveData done [03:11:31]ExternCall_PrintAddStr [03:11:31]wPrintStart [03:11:31]Write to MH i2c: 01 00 00 DD 22 FF [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 07 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [03:11:31]RasterBufferAndPrint [03:11:31]line Счет N : (3)176562 [03:11:31]line ИНН: 02508201610067 [03:11:31]line Контрольно-Кассовый Чек [03:11:31]line ПРОДАЖА [03:11:31]line Товар: 4607120854184 [03:11:31]line Снек Орехи BEERKa Арахис 90г [03:11:31]line 1.000 * 53.00 [03:11:31]line = 53.00 [03:11:31]line НДС 12% НСП 1% [03:11:31]line > о реализуемом товаре [03:11:31]line ИТОГО: 53.00 [03:11:31]line НСП 1% : 0.47 [03:11:31]line НДС 12% : 5.63 [03:11:31]line Наличными: 53.00 [03:11:31]line Безнал.: 0.00 [03:11:31]line Место: АЗС № 63 "Партнер Нефть" [03:11:31]line Адрес: 720001, с. Чон Сары Ой, ул. Западная 3, 42.603516, 76.894901 [03:11:31]line СНО: Общий режим [03:11:31]line Чек 13 04.06.2024 03:11 [03:11:31]line Смена: 377 ФФД: 1.0 [03:11:31]line ЗНМ: 0300000037 [03:11:31]line РНМ: 0000000000092680 [03:11:31]line Версия ККМ: 001 [03:11:31]line ФМ: 0000000000874882 [03:11:31]line ФД: 40003 [03:11:31]line ФПД: 278627865137420 [03:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T031135&type=1&operation_type=1&fn_number=0000000000874882&fd_number=40003&fm=278627865137420&tin=02508201610067®Number=0000000000092680&sum=5300 [03:11:32]line 0 [03:11:32]OFD Sender: Processing packet 40003 [packets to send 5, broken 4] [03:11:32]ProducePacketName [03:11:32]name=ofd_packets/00040003 [03:11:32]OFD Sender: To server: pG, [03:11:32]CommunicateWithHost lk.salyk.kg:30040 [03:11:32]ConnectInit lk.salyk.kg [03:11:32]written 0, free lines is 4095 [03:11:32]Connected sock=10 [03:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 32 01 00 00 2C 69 2A 01 B8 B6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 E7 85 5E 66 0E 04 04 00 79 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 43 9C 00 00 35 04 06 00 FD 69 1A ED 11 0C F1 28 E0 A5 4B FC 67 0B [03:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 4F 00 00 00 9E DA 47 00 D4 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 10 04 04 00 43 9C 00 00 F4 03 04 00 91 2E 5E 66 B6 04 01 00 00 5C CD 2E 65 A2 25 4A 0F [03:11:32]CommunicateWithHost err = 0 [03:11:32]CheckOFDResponse [03:11:32]1017 (14) - 77093643461234 [03:11:32]1041 (16) - 0000000000874882 [03:11:32]1040 (4) - 40003 [03:11:32]1012 (4) - 03.06.2024 20:58 [03:11:32]1206 (1) - 0 [03:11:32]OFD Sender: Remove packet 40003 [03:11:32]ProducePacketName [03:11:32]name=ofd_packets/00040003 [03:11:32]NVStorageDeleteData [03:11:32]Write to MH i2c: 01 00 00 06 23 29 [03:11:32]Write i2c OK [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: 01 [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: 01 07 00 [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 FD 0C 39 [03:11:32]RasterBufferAndPrint [03:11:32]line [03:11:32]line [03:11:32]line [03:11:32]line [03:11:32]line [03:11:32]written 0, free lines is 3332 [03:11:32]MH_Cut [03:11:32]Write to MH i2c: D1 01 00 0D 23 01 02 [03:11:32]Write i2c OK [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: D1 [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: D1 01 00 [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: D1 01 00 0D 23 00 01 [03:11:32]Write to MH i2c: 01 00 00 0E 23 31 [03:11:32]Write i2c OK [03:11:32]MH_I2C_Read... [03:11:32]OFD Sender: No OFD packet to send [03:11:33]*** Cut start [03:11:33]*** Partial cut [03:11:33]*** CUTSNS_PIN = 1 [03:11:33]*** CUTSNS_PIN = 0 [03:11:33]*** Brake cut motor [03:11:33]Read from MH i2c: 01 [03:11:33]MH_I2C_Read... [03:11:33]*** Stop cut motor [03:11:33]*** Cut end [03:11:33]Read from MH i2c: 01 07 00 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: 01 07 00 0E 23 00 00 00 00 00 FF 0F 46 [03:11:33]process_action close_receipt done [03:11:33]requested_data is exist [03:11:33]produce_requested_data [03:11:33]requested_item fm.sn is exist - process it [03:11:33]wFMCommunicate request_size=4 [03:11:33]MH_SAM_APDU [03:11:33]CAPDU: 80 11 00 00 [03:11:33]Write to MH i2c: E2 08 00 0F 23 80 11 00 00 00 00 00 00 AC [03:11:33]Write i2c OK [03:11:33]MH_I2C_Read... [03:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:33]Read from MH i2c: E2 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 17 00 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 17 00 0F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 04 [03:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 90 00 [03:11:33]wFMCommunicate OK [03:11:33]requested_item fd.num is exist - process it [03:11:33]SAM_PROTO_GetFieldsCounters [03:11:33]wFMCommunicate request_size=4 [03:11:33]MH_SAM_APDU [03:11:33]CAPDU: 80 13 00 00 [03:11:33]Write to MH i2c: E2 08 00 10 23 80 13 00 00 00 00 00 00 AF [03:11:33]Write i2c OK [03:11:33]MH_I2C_Read... [03:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:34]Read from MH i2c: E2 [03:11:34]MH_I2C_Read... [03:11:34]Read from MH i2c: E2 62 00 [03:11:34]MH_I2C_Read... [03:11:34]Read from MH i2c: E2 62 00 10 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 43 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [03:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 30 10 04 04 00 43 9C 00 00 0E 04 04 00 79 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:34]wFMCommunicate OK [03:11:34]SAM_PROTO_GetFieldsCounters done [03:11:34]requested_item shift.num is exist - process it [03:11:34]requested_item shift.opened is exist - process it [03:11:34]req_shift_opened [03:11:34]FM_GetShiftState [03:11:34]SAM_PROTO_GetShiftState [03:11:34]wFMCommunicate request_size=4 [03:11:34]MH_SAM_APDU [03:11:34]CAPDU: 80 13 01 00 [03:11:34]Write to MH i2c: E2 08 00 11 23 80 13 01 00 00 00 00 00 B1 [03:11:34]Write i2c OK [03:11:34]MH_I2C_Read... [03:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:34]Read from MH i2c: E2 [03:11:34]MH_I2C_Read... [03:11:34]Read from MH i2c: E2 0E 00 [03:11:34]MH_I2C_Read... [03:11:34]Read from MH i2c: E2 0E 00 11 23 00 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 2C [03:11:34]RAPDU: 09 00 01 4E 5D 5E 66 00 00 00 00 90 00 [03:11:34]wFMCommunicate OK [03:11:34]SAM_PROTO_GetShiftState done [03:11:34]FM_GetShiftState done [03:11:34]req_shift_opened done [03:11:34]requested_item shift.open_date is exist - process it [03:11:34]req_shift_open_date [03:11:34]req_shift_open_date done [03:11:34]produce_requested_data done [03:11:34]produce_requested_data return {"fm.sn":"0000000000874882","fd.num":40003,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302} [03:11:34]process_action_free close_receipt [03:11:34]json_value_free [03:11:34]json_value_free done [03:11:34]process_json_proto returns [03:11:34]Send response to host [03:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874882","fd.num":40003,"shift.num":377,"shift.opened":1,"shift.open_date":1717460302}}} [03:11:34]free response buf [03:11:34]execute_script done [03:11:34]execute_script returns [03:11:34]free content buf [03:11:34]Sock 8.Close socket [03:11:34]Sock 8.Thread stoped [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send