[03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:52]recv_with_timeout no data received [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:41]recv_with_timeout no data received [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:10:59]recv_with_timeout no data received [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:38]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:27]recv_with_timeout no data received [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:24]recv_with_timeout no data received [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]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:00]recv_with_timeout no data received [03:28:01]OFD Sender: No OFD packet to send [03:28:51]ConnectInit Can't connect to host [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:29]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:49]recv_with_timeout no data received [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:08]recv_with_timeout no data received [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:36]recv_with_timeout no data received [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:55]recv_with_timeout no data received [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]recv_with_timeout no data received [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:16]recv_with_timeout no data received [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03: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:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:50]recv_with_timeout no data received [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:18]recv_with_timeout no data received [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:37]recv_with_timeout no data received [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:09:07]ConnectInit Can't connect to host [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:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:37]recv_with_timeout no data received [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:11]recv_with_timeout no data received [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:52]recv_with_timeout no data received [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:51]recv_with_timeout no data received [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:34]recv_with_timeout no data received [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:35]recv_with_timeout no data received [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:35]recv_with_timeout no data received [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:28]recv_with_timeout no data received [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:40]recv_with_timeout no data received [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:31]recv_with_timeout no data received [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:44]recv_with_timeout no data received [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:35:58]accept exits with 6 [04:35:58]New connection [04:35:58]New thread 3067395428 created [04:35:58]Thread 3067252068 joined [04:35:58]Waiting for new connection... [04:35:58] Sock 6.Parse request [04:35:58]Sock 6.Check first char [04:35:58]Sock 6.First char is OK [04:35:58]request: POST /json_proto HTTP/1.0 [04:35:58]Method: POST [04:35:58]URL: /json_proto [04:35:58]Method is POST - this is cgi request [04:35:58]url: /json_proto [04:35:58]query_string will be loaded in cgi processing [04:35:58]execute_cgi json_proto POST (null) [04:35:58]execute_cgi path=json_proto method=POST [04:35:58]POST find Content-Length [04:35:58]Host: 172.17.42.73:8080 [04:35:58]Content-Length: 900 [04:35:58]Content-Type: application/json [04:35:58] [04:35:58]POST finish read [04:35:58]Found Content-Length = 900 [04:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117486", "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" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:35:58]execute_script... [04:35:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117486", "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" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:35:58]POST & json_proto [04:35:58]process_json_proto [04:35:58]json parsed OK: [04:35:58]protocol is kg_v1.0 [04:35:58]action value=close_receipt [04:35:58]process_action close_receipt [04:35:58]cmd_close_receipt [04:35:58]MH_GetDate [04:35:58]Write to MH i2c: F0 00 00 B8 00 A7 [04:35:58]Write i2c OK [04:35:58]MH_I2C_Read... [04:35:58]Read from MH i2c: F0 [04:35:58]MH_I2C_Read... [04:35:58]Read from MH i2c: F0 09 00 [04:35:58]MH_I2C_Read... [04:35:58]Read from MH i2c: F0 09 00 B8 00 00 2F 4D EE 66 99 54 47 66 1A [04:35:58]GetLastDocTimeStamp 1726878812 [04:35:58]current date 1726893359 [04:35:58]FM_GetShiftState [04:35:58]SAM_PROTO_GetShiftState [04:35:58]wFMCommunicate request_size=4 [04:35:58]MH_SAM_APDU [04:35:58]CAPDU: 80 13 01 00 [04:35:58]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [04:35:58]Write i2c OK [04:35:58]MH_I2C_Read... [04:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:35:58]Read from MH i2c: E2 [04:35:58]MH_I2C_Read... [04:35:58]Read from MH i2c: E2 0E 00 [04:35:58]MH_I2C_Read... [04:35:58]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BC [04:35:58]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [04:35:58]wFMCommunicate OK [04:35:58]SAM_PROTO_GetShiftState done [04:35:58]FM_GetShiftState done [04:35:58]opened in 1726877463 [04:35:58]opened+sec_in_day 1726963863 [04:35:58]quantity*price = 10500 [04:35:58]sum+1 = 10501 [04:35:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 3 21.09.2024 04:35 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19553 ФПД: 91915471397464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T043559&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19553&fm=91915471397464&tin=02508201610067®Number=0000000000146239&sum=11500 0 [04:35:59]StoreToDocumentArchive [04:35:59]shift 232 fd 19553 [04:35:59]save to /storage/0232/doc_00019553 [04:35:59]save last doc name /storage/0232/doc_00019553 to /storage/kkm_last_doc_name [04:35:59]save OK [04:35:59]Clear old archive folders... [04:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=384 [04:35:59]tlvbuf is 01D62D20 [04:35:59]SAM_PROTO_ClearQueue [04:35:59]wFMCommunicate request_size=4 [04:35:59]MH_SAM_APDU [04:35:59]CAPDU: 80 09 00 00 [04:35:59]Write to MH i2c: E2 08 00 C6 00 80 09 00 00 00 00 00 00 38 [04:35:59]Write i2c OK [04:35:59]MH_I2C_Read... [04:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:35:59]Read from MH i2c: E2 [04:35:59]MH_I2C_Read... [04:35:59]Read from MH i2c: E2 03 00 [04:35:59]MH_I2C_Read... [04:35:59]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [04:35:59]RAPDU: 90 00 [04:35:59]wFMCommunicate OK [04:35:59]SAM_PROTO_ClearQueue done [04:35:59]KKMCreateOFDPacket [04:35:59]OFDProtocolAddRootSTLVToBuf [04:35:59]FM_MakeSignedData [04:35:59]FM_MakeSignedData [04:35:59]SAM_PROTO_SignData [04:35:59]wFMCommunicate request_size=4 [04:35:59]MH_SAM_APDU [04:35:59]CAPDU: 80 0D 01 02 [04:35:59]Write to MH i2c: E2 08 00 C7 00 80 0D 01 02 00 00 00 00 40 [04:35:59]Write i2c OK [04:35:59]MH_I2C_Read... [04:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:35:59]Read from MH i2c: E2 [04:35:59]MH_I2C_Read... [04:35:59]Read from MH i2c: E2 03 00 [04:35:59]MH_I2C_Read... [04:35:59]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [04:35:59]RAPDU: 90 00 [04:35:59]wFMCommunicate OK [04:35:59]wFMCommunicate request_size=255 [04:35:59]MH_SAM_APDU [04:35:59]CAPDU: 80 0D 02 02 FA 03 00 80 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [04:35:59]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 00 80 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 5A [04:35:59]Write i2c OK [04:35:59]MH_I2C_Read... [04:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:00]Read from MH i2c: E2 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 03 00 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [04:36:00]RAPDU: 90 00 [04:36:00]wFMCommunicate OK [04:36:00]wFMCommunicate request_size=143 [04:36:00]MH_SAM_APDU [04:36:00]CAPDU: 80 0D 02 02 8A 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 03 00 00 00 F4 03 04 00 2F 4D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 61 4C 00 00 35 04 06 00 53 98 BD 05 A2 58 [04:36:00]Write to MH i2c: E2 92 00 C9 00 80 0D 02 02 8A 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 03 00 00 00 F4 03 04 00 2F 4D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 61 4C 00 00 35 04 06 00 53 98 BD 05 A2 58 00 00 DC [04:36:00]Write i2c OK [04:36:00]MH_I2C_Read... [04:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:00]Read from MH i2c: E2 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 03 00 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [04:36:00]RAPDU: 90 00 [04:36:00]wFMCommunicate OK [04:36:00]wFMCommunicate request_size=4 [04:36:00]MH_SAM_APDU [04:36:00]CAPDU: 80 0D 03 02 [04:36:00]Write to MH i2c: E2 08 00 CA 00 80 0D 03 02 00 00 00 00 45 [04:36:00]Write i2c OK [04:36:00]MH_I2C_Read... [04:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:36:00]Read from MH i2c: E2 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 0B 00 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 0B 00 CA 00 00 31 F0 4A 14 BF 62 06 20 90 00 0C [04:36:00]RAPDU: 31 F0 4A 14 BF 62 06 20 90 00 [04:36:00]wFMCommunicate OK [04:36:00]SAM_PROTO_SignData done [04:36:00]FM_MakeSignedData done [04:36:00]CreateOFDProtocolMessage [04:36:00]wFMCommunicate request_size=4 [04:36:00]MH_SAM_APDU [04:36:00]CAPDU: 80 11 00 00 [04:36:00]Write to MH i2c: E2 08 00 CB 00 80 11 00 00 00 00 00 00 45 [04:36:00]Write i2c OK [04:36:00]MH_I2C_Read... [04:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:00]Read from MH i2c: E2 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 17 00 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: E2 17 00 CB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9A [04:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [04:36:00]wFMCommunicate OK [04:36:00]CreateOFDProtocolMessage done [04:36:00]OFDSenderStorePacket 19553 [04:36:00]StoreOFDPacket docnum=19553 [04:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 94 01 00 00 4F BA 8C 01 E9 8D 5A 03 01 00 03 00 80 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 03 00 00 00 F4 03 04 00 2F 4D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 61 4C 00 00 35 04 06 00 53 98 BD 05 A2 58 31 F0 4A 14 BF 62 06 20 [04:36:00]CheckFolder [04:36:00]dirname=/storage/ofd_packets [04:36:00]CheckFolder done [04:36:00]ProducePacketName [04:36:00]name=ofd_packets/00019553 [04:36:00]NVStorageSaveData ofd_packets/00019553 [04:36:00]File name is /storage/ofd_packets/00019553 [04:36:00]Write 434 bytes [04:36:00]NVStorageSaveData done [04:36:00]OFDSenderStorePacket done [04:36:00]KKMCreateOFDPacket done [04:36:00]NVStorageSaveData kkm_last_timestamp [04:36:00]File name is /storage/kkm_last_timestamp [04:36:00]Write 4 bytes [04:36:00]NVStorageSaveData done [04:36:00]ExternCall_PrintAddStr [04:36:00]wPrintStart [04:36:00]Write to MH i2c: 01 00 00 CC 00 CC [04:36:00]Write i2c OK [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: 01 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: 01 07 00 [04:36:00]MH_I2C_Read... [04:36:00]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FF 0F E1 [04:36:00]RasterBufferAndPrint [04:36:00]line Счет N : (3)117486 [04:36:00]line ИНН: 02508201610067 [04:36:00]line Контрольно-Кассовый Чек [04:36:00]line ПРОДАЖА [04:36:00]line Товар: 5449000189332 [04:36:00]line Холодный чай Fuse персик 1л [04:36:00]line 1.000 * 105.00 [04:36:00]line = 105.00 [04:36:00]line НДС 12% НСП 1% [04:36:00]line > о реализуемом товаре [04:36:00]line Товар: 46231529 [04:36:00]line Mentos ПФ Арбуз 6*100*2 [04:36:00]line 1.000 * 10.00 [04:36:00]line = 10.00 [04:36:00]line НДС 12% НСП 1% [04:36:00]line > о реализуемом товаре [04:36:00]line ИТОГО: 115.00 [04:36:00]line НСП 1% : 1.02 [04:36:00]line НДС 12% : 12.21 [04:36:00]line Наличными: 115.00 [04:36:00]line Безнал.: 0.00 [04:36:00]line Место: АЗС № 93 "Партнер Нефть" [04:36:00]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [04:36:00]line СНО: Общий режим [04:36:00]line Чек 3 21.09.2024 04:35 [04:36:00]line Смена: 232 ФФД: 1.0 [04:36:00]line ЗНМ: 0300000060 [04:36:00]line РНМ: 0000000000146239 [04:36:00]line Версия ККМ: v1.0 [04:36:00]line ФМ: 0000000000959362 [04:36:00]line ФД: 19553 [04:36:00]line ФПД: 91915471397464 [04:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T043559&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19553&fm=91915471397464&tin=02508201610067®Number=0000000000146239&sum=11500 [04:36:00]line 0 [04:36:00]OFD Sender: Processing packet 19553 [packets to send 63, broken 62] [04:36:00]ProducePacketName [04:36:00]name=ofd_packets/00019553 [04:36:00]OFD Sender: To server: pG, [04:36:00]CommunicateWithHost lk.salyk.kg:30040 [04:36:00]ConnectInit lk.salyk.kg [04:36:00]written 0, free lines is 4095 [04:36:01]Write to MH i2c: 01 00 00 FA 00 FA [04:36:01]Write i2c OK [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: 01 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: 01 07 00 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 30 0C 3D [04:36:01]RasterBufferAndPrint [04:36:01]line [04:36:01]line [04:36:01]line [04:36:01]line [04:36:01]line [04:36:01]written 0, free lines is 3125 [04:36:01]MH_Cut [04:36:01]Write to MH i2c: D1 01 00 01 01 01 D4 [04:36:01]Write i2c OK [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: D1 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: D1 01 00 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: D1 01 00 01 01 00 D3 [04:36:01]Write to MH i2c: 01 00 00 02 01 03 [04:36:01]Write i2c OK [04:36:01]MH_I2C_Read... [04:36:01]recv_with_timeout no data received [04:36:02]*** Cut start [04:36:02]*** Partial cut [04:36:02]*** CUTSNS_PIN = 1 [04:36:02]*** CUTSNS_PIN = 0 [04:36:02]*** Brake cut motor [04:36:02]Read from MH i2c: 01 [04:36:02]MH_I2C_Read... [04:36:02]*** Stop cut motor [04:36:02]*** Cut end [04:36:02]Read from MH i2c: 01 07 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [04:36:02]process_action close_receipt done [04:36:02]requested_data is exist [04:36:02]produce_requested_data [04:36:02]requested_item fm.sn is exist - process it [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 11 00 00 [04:36:02]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 17 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D3 [04:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [04:36:02]wFMCommunicate OK [04:36:02]requested_item fd.num is exist - process it [04:36:02]SAM_PROTO_GetFieldsCounters [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 13 00 00 [04:36:02]Write to MH i2c: E2 08 00 04 01 80 13 00 00 00 00 00 00 81 [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 62 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 62 00 04 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 61 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [04:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 61 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:36:03]wFMCommunicate OK [04:36:03]SAM_PROTO_GetFieldsCounters done [04:36:03]requested_item shift.num is exist - process it [04:36:03]requested_item shift.opened is exist - process it [04:36:03]req_shift_opened [04:36:03]FM_GetShiftState [04:36:03]SAM_PROTO_GetShiftState [04:36:03]wFMCommunicate request_size=4 [04:36:03]MH_SAM_APDU [04:36:03]CAPDU: 80 13 01 00 [04:36:03]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [04:36:03]Write i2c OK [04:36:03]MH_I2C_Read... [04:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:03]Read from MH i2c: E2 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: E2 0E 00 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 09 [04:36:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [04:36:03]wFMCommunicate OK [04:36:03]SAM_PROTO_GetShiftState done [04:36:03]FM_GetShiftState done [04:36:03]req_shift_opened done [04:36:03]requested_item shift.open_date is exist - process it [04:36:03]req_shift_open_date [04:36:03]req_shift_open_date done [04:36:03]produce_requested_data done [04:36:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19553,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [04:36:03]process_action_free close_receipt [04:36:03]json_value_free [04:36:03]json_value_free done [04:36:03]process_json_proto returns [04:36:03]Send response to host [04:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19553,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [04:36:03]free response buf [04:36:03]execute_script done [04:36:03]execute_script returns [04:36:03]free content buf [04:36:03]Sock 6.Close socket [04:36:03]Sock 6.Thread stoped [04:36:05]ConnectInit Can't take IP for lk.salyk.kg [04:36:05]CommunicateWithHost connect error [04:36:05]CommunicateWithHost err = -1 [04:36:05]OFD Sender: Server communicate error [04:36:10]OFD Sender: Processing packet 19553 [packets to send 63, broken 62] [04:36:10]ProducePacketName [04:36:10]name=ofd_packets/00019553 [04:36:10]OFD Sender: To server: pG, [04:36:10]CommunicateWithHost lk.salyk.kg:30040 [04:36:10]ConnectInit lk.salyk.kg [04:36:16]Connected sock=9 [04:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 94 01 00 00 4F BA 8C 01 E9 8D 5A 03 01 00 03 00 80 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 03 00 00 00 F4 03 04 00 2F 4D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 61 4C 00 00 35 04 06 00 53 98 BD 05 A2 58 31 F0 4A 14 BF 62 06 20 [04:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A4 74 47 00 6B 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 61 4C 00 00 F4 03 04 00 D9 F7 ED 66 B6 04 01 00 00 D0 86 A1 B2 38 55 FE 5E [04:36:16]CommunicateWithHost err = 0 [04:36:16]CheckOFDResponse [04:36:16]1017 (14) - 77093643461234 [04:36:16]1041 (16) - 0000000000959362 [04:36:16]1040 (4) - 19553 [04:36:16]1012 (4) - 20.09.2024 22:31 [04:36:16]1206 (1) - 0 [04:36:16]OFD Sender: Remove packet 19553 [04:36:16]ProducePacketName [04:36:16]name=ofd_packets/00019553 [04:36:16]NVStorageDeleteData [04:36:16]recv_with_timeout no data received [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:08]recv_with_timeout no data received [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:13]recv_with_timeout no data received [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:42:10]ConnectInit Can't connect to host [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:31]recv_with_timeout no data received [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:04]recv_with_timeout no data received [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:53]recv_with_timeout no data received [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:19]recv_with_timeout no data received [04:53:22]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:35]recv_with_timeout no data received [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:02]recv_with_timeout no data received [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:34]recv_with_timeout no data received [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:18]recv_with_timeout no data received [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]recv_with_timeout no data received [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:21]recv_with_timeout no data received [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:03]recv_with_timeout no data received [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:42]recv_with_timeout no data received [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:08]recv_with_timeout no data received [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:43]recv_with_timeout no data received [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:53]recv_with_timeout no data received [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:25]recv_with_timeout no data received [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:11]accept exits with 10 [05:32:11]New connection [05:32:11]New thread 3067252068 created [05:32:11]Thread 3067395428 joined [05:32:11]Waiting for new connection... [05:32:11] Sock 10.Parse request [05:32:11]Sock 10.Check first char [05:32:11]Sock 10.First char is OK [05:32:11]request: POST /json_proto HTTP/1.0 [05:32:11]Method: POST [05:32:11]URL: /json_proto [05:32:11]Method is POST - this is cgi request [05:32:11]url: /json_proto [05:32:11]query_string will be loaded in cgi processing [05:32:11]execute_cgi json_proto POST (null) [05:32:11]execute_cgi path=json_proto method=POST [05:32:11]POST find Content-Length [05:32:11]Host: 172.17.42.73:8080 [05:32:11]Content-Length: 645 [05:32:11]Content-Type: application/json [05:32:11] [05:32:11]POST finish read [05:32:11]Found Content-Length = 645 [05:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117487", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:11]execute_script... [05:32:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117487", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:11]POST & json_proto [05:32:11]process_json_proto [05:32:11]json parsed OK: [05:32:11]protocol is kg_v1.0 [05:32:11]action value=close_receipt [05:32:11]process_action close_receipt [05:32:11]cmd_close_receipt [05:32:11]MH_GetDate [05:32:11]Write to MH i2c: F0 00 00 06 01 F6 [05:32:11]Write i2c OK [05:32:11]MH_I2C_Read... [05:32:11]Read from MH i2c: F0 [05:32:11]MH_I2C_Read... [05:32:11]Read from MH i2c: F0 09 00 [05:32:11]MH_I2C_Read... [05:32:11]Read from MH i2c: F0 09 00 06 01 00 5C 5A EE 66 99 54 47 66 A3 [05:32:11]GetLastDocTimeStamp 1726893359 [05:32:11]current date 1726896732 [05:32:11]FM_GetShiftState [05:32:11]SAM_PROTO_GetShiftState [05:32:11]wFMCommunicate request_size=4 [05:32:11]MH_SAM_APDU [05:32:11]CAPDU: 80 13 01 00 [05:32:11]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [05:32:11]Write i2c OK [05:32:11]MH_I2C_Read... [05:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:11]Read from MH i2c: E2 [05:32:11]MH_I2C_Read... [05:32:11]Read from MH i2c: E2 0E 00 [05:32:11]MH_I2C_Read... [05:32:11]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 0B [05:32:11]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [05:32:11]wFMCommunicate OK [05:32:11]SAM_PROTO_GetShiftState done [05:32:11]FM_GetShiftState done [05:32:11]opened in 1726877463 [05:32:11]opened+sec_in_day 1726963863 [05:32:11]quantity*price = 6500 [05:32:11]sum+1 = 6501 [05:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 4 21.09.2024 05:32 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19554 ФПД: 49415844699214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T053212&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19554&fm=49415844699214&tin=02508201610067®Number=0000000000146239&sum=6500 0 [05:32:12]StoreToDocumentArchive [05:32:12]shift 232 fd 19554 [05:32:12]save to /storage/0232/doc_00019554 [05:32:12]save last doc name /storage/0232/doc_00019554 to /storage/kkm_last_doc_name [05:32:12]save OK [05:32:12]Clear old archive folders... [05:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:32:12]tlvbuf is 01D5A090 [05:32:12]SAM_PROTO_ClearQueue [05:32:12]wFMCommunicate request_size=4 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 09 00 00 [05:32:12]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [05:32:12]RAPDU: 90 00 [05:32:12]wFMCommunicate OK [05:32:12]SAM_PROTO_ClearQueue done [05:32:12]KKMCreateOFDPacket [05:32:12]OFDProtocolAddRootSTLVToBuf [05:32:12]FM_MakeSignedData [05:32:12]FM_MakeSignedData [05:32:12]SAM_PROTO_SignData [05:32:12]wFMCommunicate request_size=4 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 0D 01 02 [05:32:12]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [05:32:12]RAPDU: 90 00 [05:32:12]wFMCommunicate OK [05:32:12]wFMCommunicate request_size=255 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5C 5A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [05:32:12]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5C 5A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D1 [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [05:32:12]RAPDU: 90 00 [05:32:12]wFMCommunicate OK [05:32:12]wFMCommunicate request_size=31 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 62 4C 00 00 35 04 06 00 2C F1 85 DE 9C 4E [05:32:12]Write to MH i2c: E2 22 00 17 01 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 62 4C 00 00 35 04 06 00 2C F1 85 DE 9C 4E 00 00 D7 [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [05:32:12]RAPDU: 90 00 [05:32:12]wFMCommunicate OK [05:32:12]wFMCommunicate request_size=4 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 0D 03 02 [05:32:12]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 0B 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 0B 00 18 01 00 8F 04 DF 8D 7D 11 D9 55 90 00 50 [05:32:12]RAPDU: 8F 04 DF 8D 7D 11 D9 55 90 00 [05:32:12]wFMCommunicate OK [05:32:12]SAM_PROTO_SignData done [05:32:12]FM_MakeSignedData done [05:32:12]CreateOFDProtocolMessage [05:32:12]wFMCommunicate request_size=4 [05:32:12]MH_SAM_APDU [05:32:12]CAPDU: 80 11 00 00 [05:32:12]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:12]Read from MH i2c: E2 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 17 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E9 [05:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [05:32:12]wFMCommunicate OK [05:32:12]CreateOFDProtocolMessage done [05:32:12]OFDSenderStorePacket 19554 [05:32:12]StoreOFDPacket docnum=19554 [05:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 6E 8B 1C 01 40 FB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5C 5A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 62 4C 00 00 35 04 06 00 2C F1 85 DE 9C 4E 8F 04 DF 8D 7D 11 D9 55 [05:32:12]CheckFolder [05:32:12]dirname=/storage/ofd_packets [05:32:12]CheckFolder done [05:32:12]ProducePacketName [05:32:12]name=ofd_packets/00019554 [05:32:12]NVStorageSaveData ofd_packets/00019554 [05:32:12]File name is /storage/ofd_packets/00019554 [05:32:12]Write 322 bytes [05:32:12]NVStorageSaveData done [05:32:12]OFDSenderStorePacket done [05:32:12]KKMCreateOFDPacket done [05:32:12]NVStorageSaveData kkm_last_timestamp [05:32:12]File name is /storage/kkm_last_timestamp [05:32:12]Write 4 bytes [05:32:12]NVStorageSaveData done [05:32:12]ExternCall_PrintAddStr [05:32:12]wPrintStart [05:32:12]Write to MH i2c: 01 00 00 1A 01 1B [05:32:12]Write i2c OK [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: 01 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: 01 07 00 [05:32:12]MH_I2C_Read... [05:32:12]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [05:32:12]RasterBufferAndPrint [05:32:12]line Счет N : (3)117487 [05:32:12]line ИНН: 02508201610067 [05:32:12]line Контрольно-Кассовый Чек [05:32:12]line ПРОДАЖА [05:32:12]line Товар: 47011656 [05:32:12]line Водка Пшеничная 0,1л [05:32:12]line 1.000 * 65.00 [05:32:12]line = 65.00 [05:32:12]line НДС 12% НСП 1% [05:32:12]line > о реализуемом товаре [05:32:12]line ИТОГО: 65.00 [05:32:12]line НСП 1% : 0.57 [05:32:12]line НДС 12% : 6.90 [05:32:12]line Наличными: 65.00 [05:32:12]line Безнал.: 0.00 [05:32:12]line Место: АЗС № 93 "Партнер Нефть" [05:32:12]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [05:32:12]line СНО: Общий режим [05:32:12]line Чек 4 21.09.2024 05:32 [05:32:12]line Смена: 232 ФФД: 1.0 [05:32:12]line ЗНМ: 0300000060 [05:32:12]line РНМ: 0000000000146239 [05:32:12]line Версия ККМ: v1.0 [05:32:12]line ФМ: 0000000000959362 [05:32:12]line ФД: 19554 [05:32:12]line ФПД: 49415844699214 [05:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T053212&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19554&fm=49415844699214&tin=02508201610067®Number=0000000000146239&sum=6500 [05:32:13]line 0 [05:32:13]OFD Sender: Processing packet 19554 [packets to send 63, broken 62] [05:32:13]ProducePacketName [05:32:13]name=ofd_packets/00019554 [05:32:13]OFD Sender: To server: pG, [05:32:13]CommunicateWithHost lk.salyk.kg:30040 [05:32:13]ConnectInit lk.salyk.kg [05:32:13]written 0, free lines is 4095 [05:32:13]Write to MH i2c: 01 00 00 42 01 43 [05:32:13]Write i2c OK [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: 01 [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: 01 07 00 [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 AD 0C 03 [05:32:13]RasterBufferAndPrint [05:32:13]line [05:32:13]line [05:32:13]line [05:32:13]line [05:32:13]line [05:32:13]written 0, free lines is 3247 [05:32:13]MH_Cut [05:32:13]Write to MH i2c: D1 01 00 49 01 01 1C [05:32:13]Write i2c OK [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: D1 [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: D1 01 00 [05:32:13]MH_I2C_Read... [05:32:13]Read from MH i2c: D1 01 00 49 01 00 1B [05:32:13]Write to MH i2c: 01 00 00 4A 01 4B [05:32:13]Write i2c OK [05:32:13]MH_I2C_Read... [05:32:14]Connected sock=11 [05:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 6E 8B 1C 01 40 FB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5C 5A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 62 4C 00 00 35 04 06 00 2C F1 85 DE 9C 4E 8F 04 DF 8D 7D 11 D9 55 [05:32:14]*** Cut start [05:32:14]*** Partial cut [05:32:14]*** CUTSNS_PIN = 1 [05:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 5C A1 47 00 BD 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 62 4C 00 00 F4 03 04 00 F7 04 EE 66 B6 04 01 00 00 FD A4 F8 EF 82 A1 17 05 [05:32:14]CommunicateWithHost err = 0 [05:32:14]CheckOFDResponse [05:32:14]1017 (14) - 77093643461234 [05:32:14]1041 (16) - 0000000000959362 [05:32:14]1040 (4) - 19554 [05:32:14]1012 (4) - 20.09.2024 23:27 [05:32:14]1206 (1) - 0 [05:32:14]OFD Sender: Remove packet 19554 [05:32:14]ProducePacketName [05:32:14]name=ofd_packets/00019554 [05:32:14]NVStorageDeleteData [05:32:14]*** CUTSNS_PIN = 0 [05:32:14]*** Brake cut motor [05:32:15]OFD Sender: No OFD packet to send [05:32:15]Read from MH i2c: 01 [05:32:15]MH_I2C_Read... [05:32:15]*** Stop cut motor [05:32:15]*** Cut end [05:32:15]Read from MH i2c: 01 07 00 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [05:32:15]process_action close_receipt done [05:32:15]requested_data is exist [05:32:15]produce_requested_data [05:32:15]requested_item fm.sn is exist - process it [05:32:15]wFMCommunicate request_size=4 [05:32:15]MH_SAM_APDU [05:32:15]CAPDU: 80 11 00 00 [05:32:15]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [05:32:15]Write i2c OK [05:32:15]MH_I2C_Read... [05:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:15]Read from MH i2c: E2 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 17 00 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1B [05:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [05:32:15]wFMCommunicate OK [05:32:15]requested_item fd.num is exist - process it [05:32:15]SAM_PROTO_GetFieldsCounters [05:32:15]wFMCommunicate request_size=4 [05:32:15]MH_SAM_APDU [05:32:15]CAPDU: 80 13 00 00 [05:32:15]Write to MH i2c: E2 08 00 4C 01 80 13 00 00 00 00 00 00 C9 [05:32:15]Write i2c OK [05:32:15]MH_I2C_Read... [05:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:15]Read from MH i2c: E2 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 62 00 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 62 00 4C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 62 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [05:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 62 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:15]wFMCommunicate OK [05:32:15]SAM_PROTO_GetFieldsCounters done [05:32:15]requested_item shift.num is exist - process it [05:32:15]requested_item shift.opened is exist - process it [05:32:15]req_shift_opened [05:32:15]FM_GetShiftState [05:32:15]SAM_PROTO_GetShiftState [05:32:15]wFMCommunicate request_size=4 [05:32:15]MH_SAM_APDU [05:32:15]CAPDU: 80 13 01 00 [05:32:15]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [05:32:15]Write i2c OK [05:32:15]MH_I2C_Read... [05:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:15]Read from MH i2c: E2 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 0E 00 [05:32:15]MH_I2C_Read... [05:32:15]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 51 [05:32:15]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [05:32:15]wFMCommunicate OK [05:32:15]SAM_PROTO_GetShiftState done [05:32:15]FM_GetShiftState done [05:32:15]req_shift_opened done [05:32:15]requested_item shift.open_date is exist - process it [05:32:15]req_shift_open_date [05:32:15]req_shift_open_date done [05:32:15]produce_requested_data done [05:32:15]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19554,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [05:32:15]process_action_free close_receipt [05:32:15]json_value_free [05:32:15]json_value_free done [05:32:15]process_json_proto returns [05:32:15]Send response to host [05:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19554,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [05:32:15]free response buf [05:32:15]execute_script done [05:32:15]execute_script returns [05:32:15]free content buf [05:32:15]Sock 10.Close socket [05:32:15]Sock 10.Thread stoped [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:27]recv_with_timeout no data received [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:28]recv_with_timeout no data received [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:34]recv_with_timeout no data received [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:17]recv_with_timeout no data received [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:24]recv_with_timeout no data received [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:52]recv_with_timeout no data received [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]recv_with_timeout no data received [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:46]recv_with_timeout no data received [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:34]recv_with_timeout no data received [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:09]recv_with_timeout no data received [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:32]recv_with_timeout no data received [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:01]accept exits with 8 [05:59:01]New connection [05:59:01]New thread 3067395428 created [05:59:01]Thread 3067252068 joined [05:59:01]Waiting for new connection... [05:59:01] Sock 8.Parse request [05:59:01]Sock 8.Check first char [05:59:01]Sock 8.First char is OK [05:59:01]request: POST /json_proto HTTP/1.0 [05:59:01]Method: POST [05:59:01]URL: /json_proto [05:59:01]Method is POST - this is cgi request [05:59:01]url: /json_proto [05:59:01]query_string will be loaded in cgi processing [05:59:01]execute_cgi json_proto POST (null) [05:59:01]execute_cgi path=json_proto method=POST [05:59:01]POST find Content-Length [05:59:01]Host: 172.17.42.73:8080 [05:59:01]Content-Length: 645 [05:59:01]Content-Type: application/json [05:59:01] [05:59:01]POST finish read [05:59:01]Found Content-Length = 645 [05:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117488", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:01]execute_script... [05:59: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)117488", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:01]POST & json_proto [05:59:01]process_json_proto [05:59:01]json parsed OK: [05:59:01]protocol is kg_v1.0 [05:59:01]action value=close_receipt [05:59:01]process_action close_receipt [05:59:01]cmd_close_receipt [05:59:01]MH_GetDate [05:59:01]Write to MH i2c: F0 00 00 4E 01 3E [05:59:01]Write i2c OK [05:59:01]MH_I2C_Read... [05:59:01]Read from MH i2c: F0 [05:59:01]MH_I2C_Read... [05:59:01]Read from MH i2c: F0 09 00 [05:59:01]MH_I2C_Read... [05:59:01]Read from MH i2c: F0 09 00 4E 01 00 A7 60 EE 66 99 54 47 66 3C [05:59:01]GetLastDocTimeStamp 1726896732 [05:59:01]current date 1726898343 [05:59:01]FM_GetShiftState [05:59:01]SAM_PROTO_GetShiftState [05:59:01]wFMCommunicate request_size=4 [05:59:01]MH_SAM_APDU [05:59:01]CAPDU: 80 13 01 00 [05:59:01]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [05:59:01]Write i2c OK [05:59:01]MH_I2C_Read... [05:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:01]Read from MH i2c: E2 [05:59:01]MH_I2C_Read... [05:59:01]Read from MH i2c: E2 0E 00 [05:59:01]MH_I2C_Read... [05:59:01]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 53 [05:59:01]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [05:59:01]wFMCommunicate OK [05:59:01]SAM_PROTO_GetShiftState done [05:59:01]FM_GetShiftState done [05:59:01]opened in 1726877463 [05:59:01]opened+sec_in_day 1726963863 [05:59:01]quantity*price = 6500 [05:59:01]sum+1 = 6501 [05:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 5 21.09.2024 05:59 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19555 ФПД: 29996475525606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T055903&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19555&fm=29996475525606&tin=02508201610067®Number=0000000000146239&sum=6500 0 [05:59:03]StoreToDocumentArchive [05:59:03]shift 232 fd 19555 [05:59:03]save to /storage/0232/doc_00019555 [05:59:03]save last doc name /storage/0232/doc_00019555 to /storage/kkm_last_doc_name [05:59:03]save OK [05:59:03]Clear old archive folders... [05:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:59:03]tlvbuf is 01DC61C0 [05:59:03]SAM_PROTO_ClearQueue [05:59:03]wFMCommunicate request_size=4 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 09 00 00 [05:59:03]Write to MH i2c: E2 08 00 5C 01 80 09 00 00 00 00 00 00 CF [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [05:59:03]RAPDU: 90 00 [05:59:03]wFMCommunicate OK [05:59:03]SAM_PROTO_ClearQueue done [05:59:03]KKMCreateOFDPacket [05:59:03]OFDProtocolAddRootSTLVToBuf [05:59:03]FM_MakeSignedData [05:59:03]FM_MakeSignedData [05:59:03]SAM_PROTO_SignData [05:59:03]wFMCommunicate request_size=4 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 0D 01 02 [05:59:03]Write to MH i2c: E2 08 00 5D 01 80 0D 01 02 00 00 00 00 D7 [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [05:59:03]RAPDU: 90 00 [05:59:03]wFMCommunicate OK [05:59:03]wFMCommunicate request_size=255 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A7 60 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [05:59:03]Write to MH i2c: E2 02 01 5E 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A7 60 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 6B [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [05:59:03]RAPDU: 90 00 [05:59:03]wFMCommunicate OK [05:59:03]wFMCommunicate request_size=31 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 63 4C 00 00 35 04 06 00 1B 48 19 44 A9 E6 [05:59:03]Write to MH i2c: E2 22 00 5F 01 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 63 4C 00 00 35 04 06 00 1B 48 19 44 A9 E6 00 00 05 [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [05:59:03]RAPDU: 90 00 [05:59:03]wFMCommunicate OK [05:59:03]wFMCommunicate request_size=4 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 0D 03 02 [05:59:03]Write to MH i2c: E2 08 00 60 01 80 0D 03 02 00 00 00 00 DC [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 0B 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 0B 00 60 01 00 DC 77 20 D9 B7 46 59 DE 90 00 5D [05:59:03]RAPDU: DC 77 20 D9 B7 46 59 DE 90 00 [05:59:03]wFMCommunicate OK [05:59:03]SAM_PROTO_SignData done [05:59:03]FM_MakeSignedData done [05:59:03]CreateOFDProtocolMessage [05:59:03]wFMCommunicate request_size=4 [05:59:03]MH_SAM_APDU [05:59:03]CAPDU: 80 11 00 00 [05:59:03]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:03]Read from MH i2c: E2 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 17 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 31 [05:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [05:59:03]wFMCommunicate OK [05:59:03]CreateOFDProtocolMessage done [05:59:03]OFDSenderStorePacket 19555 [05:59:03]StoreOFDPacket docnum=19555 [05:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 65 8F 1C 01 4A BA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A7 60 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 63 4C 00 00 35 04 06 00 1B 48 19 44 A9 E6 DC 77 20 D9 B7 46 59 DE [05:59:03]CheckFolder [05:59:03]dirname=/storage/ofd_packets [05:59:03]CheckFolder done [05:59:03]ProducePacketName [05:59:03]name=ofd_packets/00019555 [05:59:03]NVStorageSaveData ofd_packets/00019555 [05:59:03]File name is /storage/ofd_packets/00019555 [05:59:03]Write 322 bytes [05:59:03]NVStorageSaveData done [05:59:03]OFDSenderStorePacket done [05:59:03]KKMCreateOFDPacket done [05:59:03]NVStorageSaveData kkm_last_timestamp [05:59:03]File name is /storage/kkm_last_timestamp [05:59:03]Write 4 bytes [05:59:03]NVStorageSaveData done [05:59:03]ExternCall_PrintAddStr [05:59:03]wPrintStart [05:59:03]Write to MH i2c: 01 00 00 62 01 63 [05:59:03]Write i2c OK [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: 01 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: 01 07 00 [05:59:03]MH_I2C_Read... [05:59:03]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [05:59:03]RasterBufferAndPrint [05:59:03]line Счет N : (3)117488 [05:59:03]line ИНН: 02508201610067 [05:59:03]line Контрольно-Кассовый Чек [05:59:03]line ПРОДАЖА [05:59:03]line Товар: 47011656 [05:59:03]line Водка Пшеничная 0,1л [05:59:03]line 1.000 * 65.00 [05:59:03]line = 65.00 [05:59:03]line НДС 12% НСП 1% [05:59:03]line > о реализуемом товаре [05:59:03]line ИТОГО: 65.00 [05:59:03]line НСП 1% : 0.57 [05:59:03]line НДС 12% : 6.90 [05:59:03]line Наличными: 65.00 [05:59:03]line Безнал.: 0.00 [05:59:03]line Место: АЗС № 93 "Партнер Нефть" [05:59:03]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [05:59:03]line СНО: Общий режим [05:59:03]line Чек 5 21.09.2024 05:59 [05:59:03]line Смена: 232 ФФД: 1.0 [05:59:03]line ЗНМ: 0300000060 [05:59:03]line РНМ: 0000000000146239 [05:59:03]line Версия ККМ: v1.0 [05:59:03]line ФМ: 0000000000959362 [05:59:03]line ФД: 19555 [05:59:03]line ФПД: 29996475525606 [05:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T055903&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19555&fm=29996475525606&tin=02508201610067®Number=0000000000146239&sum=6500 [05:59:03]line 0 [05:59:03]OFD Sender: Processing packet 19555 [packets to send 63, broken 62] [05:59:03]ProducePacketName [05:59:03]name=ofd_packets/00019555 [05:59:03]OFD Sender: To server: pG, [05:59:03]CommunicateWithHost lk.salyk.kg:30040 [05:59:03]ConnectInit lk.salyk.kg [05:59:03]written 0, free lines is 4095 [05:59:04]Write to MH i2c: 01 00 00 8A 01 8B [05:59:04]Write i2c OK [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: 01 [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: 01 07 00 [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 AD 0C 4B [05:59:04]RasterBufferAndPrint [05:59:04]line [05:59:04]line [05:59:04]line [05:59:04]line [05:59:04]line [05:59:04]written 0, free lines is 3247 [05:59:04]MH_Cut [05:59:04]Write to MH i2c: D1 01 00 91 01 01 64 [05:59:04]Write i2c OK [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: D1 [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: D1 01 00 [05:59:04]MH_I2C_Read... [05:59:04]Read from MH i2c: D1 01 00 91 01 00 63 [05:59:04]Write to MH i2c: 01 00 00 92 01 93 [05:59:04]Write i2c OK [05:59:04]MH_I2C_Read... [05:59:04]Connected sock=10 [05:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 65 8F 1C 01 4A BA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A7 60 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 63 4C 00 00 35 04 06 00 1B 48 19 44 A9 E6 DC 77 20 D9 B7 46 59 DE [05:59:05]*** Cut start [05:59:05]*** Partial cut [05:59:05]*** CUTSNS_PIN = 1 [05:59:05]*** CUTSNS_PIN = 0 [05:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 16 B7 47 00 FA 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 63 4C 00 00 F4 03 04 00 42 0B EE 66 B6 04 01 00 00 81 B7 E4 BC 1C 4F 0B 65 [05:59:05]CommunicateWithHost err = 0 [05:59:05]CheckOFDResponse [05:59:05]1017 (14) - 77093643461234 [05:59:05]1041 (16) - 0000000000959362 [05:59:05]1040 (4) - 19555 [05:59:05]1012 (4) - 20.09.2024 23:54 [05:59:05]1206 (1) - 0 [05:59:05]OFD Sender: Remove packet 19555 [05:59:05]ProducePacketName [05:59:05]name=ofd_packets/00019555 [05:59:05]NVStorageDeleteData [05:59:05]*** Brake cut motor [05:59:05]Read from MH i2c: 01 [05:59:05]MH_I2C_Read... [05:59:05]*** Stop cut motor [05:59:05]*** Cut end [05:59:05]Read from MH i2c: 01 07 00 [05:59:05]MH_I2C_Read... [05:59:05]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [05:59:05]process_action close_receipt done [05:59:05]requested_data is exist [05:59:05]produce_requested_data [05:59:05]requested_item fm.sn is exist - process it [05:59:05]wFMCommunicate request_size=4 [05:59:05]MH_SAM_APDU [05:59:05]CAPDU: 80 11 00 00 [05:59:05]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [05:59:05]Write i2c OK [05:59:05]MH_I2C_Read... [05:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:06]Read from MH i2c: E2 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 17 00 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 63 [05:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [05:59:06]wFMCommunicate OK [05:59:06]requested_item fd.num is exist - process it [05:59:06]SAM_PROTO_GetFieldsCounters [05:59:06]wFMCommunicate request_size=4 [05:59:06]MH_SAM_APDU [05:59:06]CAPDU: 80 13 00 00 [05:59:06]Write to MH i2c: E2 08 00 94 01 80 13 00 00 00 00 00 00 11 [05:59:06]Write i2c OK [05:59:06]MH_I2C_Read... [05:59:06]OFD Sender: No OFD packet to send [05:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:06]Read from MH i2c: E2 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 62 00 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 62 00 94 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 63 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [05:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 63 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:06]wFMCommunicate OK [05:59:06]SAM_PROTO_GetFieldsCounters done [05:59:06]requested_item shift.num is exist - process it [05:59:06]requested_item shift.opened is exist - process it [05:59:06]req_shift_opened [05:59:06]FM_GetShiftState [05:59:06]SAM_PROTO_GetShiftState [05:59:06]wFMCommunicate request_size=4 [05:59:06]MH_SAM_APDU [05:59:06]CAPDU: 80 13 01 00 [05:59:06]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [05:59:06]Write i2c OK [05:59:06]MH_I2C_Read... [05:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:06]Read from MH i2c: E2 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 0E 00 [05:59:06]MH_I2C_Read... [05:59:06]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 99 [05:59:06]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [05:59:06]wFMCommunicate OK [05:59:06]SAM_PROTO_GetShiftState done [05:59:06]FM_GetShiftState done [05:59:06]req_shift_opened done [05:59:06]requested_item shift.open_date is exist - process it [05:59:06]req_shift_open_date [05:59:06]req_shift_open_date done [05:59:06]produce_requested_data done [05:59:06]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19555,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [05:59:06]process_action_free close_receipt [05:59:06]json_value_free [05:59:06]json_value_free done [05:59:06]process_json_proto returns [05:59:06]Send response to host [05:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19555,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [05:59:06]free response buf [05:59:06]execute_script done [05:59:06]execute_script returns [05:59:06]free content buf [05:59:06]Sock 8.Close socket [05:59:06]Sock 8.Thread stoped [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:51]recv_with_timeout no data received [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:13]recv_with_timeout no data received [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]recv_with_timeout no data received [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:49]recv_with_timeout no data received [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:12]recv_with_timeout no data received [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:13:59]recv_with_timeout no data received [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:23]accept exits with 9 [06:15:23]New connection [06:15:23]New thread 3067252068 created [06:15:23]Thread 3067395428 joined [06:15:23]Waiting for new connection... [06:15:23] Sock 9.Parse request [06:15:23]Sock 9.Check first char [06:15:23]Sock 9.First char is OK [06:15:23]request: POST /json_proto HTTP/1.0 [06:15:23]Method: POST [06:15:23]URL: /json_proto [06:15:23]Method is POST - this is cgi request [06:15:23]url: /json_proto [06:15:23]query_string will be loaded in cgi processing [06:15:23]execute_cgi json_proto POST (null) [06:15:23]execute_cgi path=json_proto method=POST [06:15:23]POST find Content-Length [06:15:23]Host: 172.17.42.73:8080 [06:15:23]Content-Length: 1483 [06:15:23]Content-Type: application/json [06:15:23] [06:15:23]POST finish read [06:15:23]Found Content-Length = 1483 [06:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117489", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:23]execute_script... [06:15: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)117489", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:23]POST & json_proto [06:15:23]process_json_proto [06:15:23]json parsed OK: [06:15:23]protocol is kg_v1.0 [06:15:23]action value=close_receipt [06:15:23]process_action close_receipt [06:15:23]cmd_close_receipt [06:15:23]MH_GetDate [06:15:23]Write to MH i2c: F0 00 00 96 01 86 [06:15:23]Write i2c OK [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 09 00 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 09 00 96 01 00 7C 64 EE 66 99 54 47 66 5D [06:15:23]GetLastDocTimeStamp 1726898343 [06:15:23]current date 1726899324 [06:15:23]FM_GetShiftState [06:15:23]SAM_PROTO_GetShiftState [06:15:23]wFMCommunicate request_size=4 [06:15:23]MH_SAM_APDU [06:15:23]CAPDU: 80 13 01 00 [06:15:23]Write to MH i2c: E2 08 00 97 01 80 13 01 00 00 00 00 00 15 [06:15:23]Write i2c OK [06:15:23]MH_I2C_Read... [06:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:23]Read from MH i2c: E2 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: E2 0E 00 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: E2 0E 00 97 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 9B [06:15:23]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [06:15:23]wFMCommunicate OK [06:15:23]SAM_PROTO_GetShiftState done [06:15:23]FM_GetShiftState done [06:15:23]opened in 1726877463 [06:15:23]opened+sec_in_day 1726963863 [06:15:23]quantity*price = 31800 [06:15:23]sum+1 = 31801 [06:15:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 578.00 НСП 1% : 5.11 НДС 12% : 61.38 Наличными: 578.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 6 21.09.2024 06:15 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19556 ФПД: 106791715846144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T061525&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19556&fm=106791715846144&tin=02508201610067®Number=0000000000146239&sum=57800 0 [06:15:24]StoreToDocumentArchive [06:15:24]shift 232 fd 19556 [06:15:24]save to /storage/0232/doc_00019556 [06:15:24]save last doc name /storage/0232/doc_00019556 to /storage/kkm_last_doc_name [06:15:24]save OK [06:15:24]Clear old archive folders... [06:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=615 [06:15:24]tlvbuf is 01DC2350 [06:15:24]SAM_PROTO_ClearQueue [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 09 00 00 [06:15:24]Write to MH i2c: E2 08 00 A4 01 80 09 00 00 00 00 00 00 17 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]SAM_PROTO_ClearQueue done [06:15:24]KKMCreateOFDPacket [06:15:24]OFDProtocolAddRootSTLVToBuf [06:15:24]FM_MakeSignedData [06:15:24]FM_MakeSignedData [06:15:24]SAM_PROTO_SignData [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 01 02 [06:15:24]Write to MH i2c: E2 08 00 A5 01 80 0D 01 02 00 00 00 00 1F [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]wFMCommunicate request_size=255 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 02 02 FA 03 00 67 02 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 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 [06:15:24]Write to MH i2c: E2 02 01 A6 01 80 0D 02 02 FA 00 03 00 67 02 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 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 00 00 39 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [06:15:25]RAPDU: 90 00 [06:15:25]wFMCommunicate OK [06:15:25]wFMCommunicate request_size=255 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 0D 02 02 FA D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [06:15:25]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 54 [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [06:15:25]RAPDU: 90 00 [06:15:25]wFMCommunicate OK [06:15:25]wFMCommunicate request_size=124 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 0D 02 02 77 FA 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7D 64 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 64 4C 00 00 35 04 06 00 61 20 62 49 B8 00 [06:15:25]Write to MH i2c: E2 7F 00 A8 01 80 0D 02 02 77 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7D 64 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 64 4C 00 00 35 04 06 00 61 20 62 49 B8 00 00 00 BE [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [06:15:25]RAPDU: 90 00 [06:15:25]wFMCommunicate OK [06:15:25]wFMCommunicate request_size=4 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 0D 03 02 [06:15:25]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 0B 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 0B 00 A9 01 00 96 CE 6B EC B1 B2 34 25 90 00 9D [06:15:25]RAPDU: 96 CE 6B EC B1 B2 34 25 90 00 [06:15:25]wFMCommunicate OK [06:15:25]SAM_PROTO_SignData done [06:15:25]FM_MakeSignedData done [06:15:25]CreateOFDProtocolMessage [06:15:25]wFMCommunicate request_size=4 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 11 00 00 [06:15:25]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 17 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7A [06:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [06:15:25]wFMCommunicate OK [06:15:25]CreateOFDProtocolMessage done [06:15:25]OFDSenderStorePacket 19556 [06:15:25]StoreOFDPacket docnum=19556 [06:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 7B 02 00 00 59 F7 73 02 B2 22 5A 03 01 00 03 00 67 02 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 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7D 64 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 64 4C 00 00 35 04 06 00 61 20 62 49 B8 00 96 CE 6B EC B1 B2 34 25 [06:15:25]CheckFolder [06:15:25]dirname=/storage/ofd_packets [06:15:25]CheckFolder done [06:15:25]ProducePacketName [06:15:25]name=ofd_packets/00019556 [06:15:25]NVStorageSaveData ofd_packets/00019556 [06:15:25]File name is /storage/ofd_packets/00019556 [06:15:25]Write 665 bytes [06:15:25]NVStorageSaveData done [06:15:25]OFDSenderStorePacket done [06:15:25]KKMCreateOFDPacket done [06:15:25]NVStorageSaveData kkm_last_timestamp [06:15:25]File name is /storage/kkm_last_timestamp [06:15:25]Write 4 bytes [06:15:25]NVStorageSaveData done [06:15:25]ExternCall_PrintAddStr [06:15:25]wPrintStart [06:15:25]Write to MH i2c: 01 00 00 AB 01 AC [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 07 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [06:15:25]RasterBufferAndPrint [06:15:25]line Счет N : (3)117489 [06:15:25]line ИНН: 02508201610067 [06:15:25]line Контрольно-Кассовый Чек [06:15:25]line ПРОДАЖА [06:15:25]line Товар: 48746526 [06:15:25]line Сигареты Mevius Wind Blue [06:15:25]line 2.000 * 159.00 [06:15:26]line = 318.00 [06:15:26]line НДС 12% НСП 1% [06:15:26]line > о реализуемом товаре [06:15:26]line Товар: 5449000054227 [06:15:26]line Напиток Кока-Кола 1л [06:15:26]line 1.000 * 105.00 [06:15:26]line = 105.00 [06:15:26]line НДС 12% НСП 1% [06:15:26]line > о реализуемом товаре [06:15:26]line Товар: 5449000027474 [06:15:26]line Напиток FuzeTea зел чай манго,ромашка 1л [06:15:26]line 1.000 * 105.00 [06:15:26]line = 105.00 [06:15:26]line НДС 12% НСП 1% [06:15:26]line > о реализуемом товаре [06:15:26]line Товар: 4700000160358 [06:15:26]line Вода Легенда 1л [06:15:26]line 1.000 * 50.00 [06:15:26]line = 50.00 [06:15:26]line НДС 12% НСП 1% [06:15:26]line > о реализуемом товаре [06:15:26]line ИТОГО: 578.00 [06:15:26]line НСП 1% : 5.11 [06:15:26]line НДС 12% : 61.38 [06:15:26]line Наличными: 578.00 [06:15:26]line Безнал.: 0.00 [06:15:26]line Место: АЗС № 93 "Партнер Нефть" [06:15:26]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [06:15:26]line СНО: Общий режим [06:15:26]line Чек 6 21.09.2024 06:15 [06:15:26]line Смена: 232 ФФД: 1.0 [06:15:26]line ЗНМ: 0300000060 [06:15:26]line РНМ: 0000000000146239 [06:15:26]line Версия ККМ: v1.0 [06:15:26]line ФМ: 0000000000959362 [06:15:26]line ФД: 19556 [06:15:26]line ФПД: 106791715846144 [06:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T061525&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19556&fm=106791715846144&tin=02508201610067®Number=0000000000146239&sum=57800 [06:15:26]line 0 [06:15:26]OFD Sender: Processing packet 19556 [packets to send 63, broken 62] [06:15:26]ProducePacketName [06:15:26]name=ofd_packets/00019556 [06:15:26]OFD Sender: To server: pG, [06:15:26]CommunicateWithHost lk.salyk.kg:30040 [06:15:26]ConnectInit lk.salyk.kg [06:15:26]written 0, free lines is 4095 [06:15:26]Write to MH i2c: 01 00 00 E6 01 E7 [06:15:26]Write i2c OK [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: 01 [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: 01 07 00 [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 3A 0B 33 [06:15:26]RasterBufferAndPrint [06:15:26]line [06:15:26]line [06:15:26]line [06:15:26]line [06:15:26]line [06:15:26]written 0, free lines is 2880 [06:15:26]MH_Cut [06:15:26]Write to MH i2c: D1 01 00 ED 01 01 C0 [06:15:26]Write i2c OK [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: D1 [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: D1 01 00 [06:15:26]MH_I2C_Read... [06:15:26]Read from MH i2c: D1 01 00 ED 01 00 BF [06:15:26]Write to MH i2c: 01 00 00 EE 01 EF [06:15:26]Write i2c OK [06:15:26]MH_I2C_Read... [06:15:27]*** Cut start [06:15:27]*** Partial cut [06:15:27]*** CUTSNS_PIN = 1 [06:15:28]*** CUTSNS_PIN = 0 [06:15:28]*** Brake cut motor [06:15:28]Read from MH i2c: 01 [06:15:28]MH_I2C_Read... [06:15:28]*** Stop cut motor [06:15:28]*** Cut end [06:15:28]Read from MH i2c: 01 07 00 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [06:15:28]process_action close_receipt done [06:15:28]requested_data is exist [06:15:28]produce_requested_data [06:15:28]requested_item fm.sn is exist - process it [06:15:28]wFMCommunicate request_size=4 [06:15:28]MH_SAM_APDU [06:15:28]CAPDU: 80 11 00 00 [06:15:28]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [06:15:28]Write i2c OK [06:15:28]MH_I2C_Read... [06:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:28]Read from MH i2c: E2 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 17 00 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 BF [06:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [06:15:28]wFMCommunicate OK [06:15:28]requested_item fd.num is exist - process it [06:15:28]SAM_PROTO_GetFieldsCounters [06:15:28]wFMCommunicate request_size=4 [06:15:28]MH_SAM_APDU [06:15:28]CAPDU: 80 13 00 00 [06:15:28]Write to MH i2c: E2 08 00 F0 01 80 13 00 00 00 00 00 00 6D [06:15:28]Write i2c OK [06:15:28]MH_I2C_Read... [06:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:28]Read from MH i2c: E2 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 62 00 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 62 00 F0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 64 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [06:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 64 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:28]wFMCommunicate OK [06:15:28]SAM_PROTO_GetFieldsCounters done [06:15:28]requested_item shift.num is exist - process it [06:15:28]requested_item shift.opened is exist - process it [06:15:28]req_shift_opened [06:15:28]FM_GetShiftState [06:15:28]SAM_PROTO_GetShiftState [06:15:28]wFMCommunicate request_size=4 [06:15:28]MH_SAM_APDU [06:15:28]CAPDU: 80 13 01 00 [06:15:28]Write to MH i2c: E2 08 00 F1 01 80 13 01 00 00 00 00 00 6F [06:15:28]Write i2c OK [06:15:28]MH_I2C_Read... [06:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:28]Read from MH i2c: E2 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 0E 00 [06:15:28]MH_I2C_Read... [06:15:28]Read from MH i2c: E2 0E 00 F1 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F5 [06:15:28]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [06:15:28]wFMCommunicate OK [06:15:28]SAM_PROTO_GetShiftState done [06:15:28]FM_GetShiftState done [06:15:28]req_shift_opened done [06:15:28]requested_item shift.open_date is exist - process it [06:15:28]req_shift_open_date [06:15:28]req_shift_open_date done [06:15:28]produce_requested_data done [06:15:28]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19556,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [06:15:28]process_action_free close_receipt [06:15:28]json_value_free [06:15:28]json_value_free done [06:15:28]process_json_proto returns [06:15:28]Send response to host [06:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19556,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [06:15:28]free response buf [06:15:28]execute_script done [06:15:28]execute_script returns [06:15:28]free content buf [06:15:28]Sock 9.Close socket [06:15:28]Sock 9.Thread stoped [06:15:30]Connected sock=11 [06:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 7B 02 00 00 59 F7 73 02 B2 22 5A 03 01 00 03 00 67 02 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 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7D 64 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 64 4C 00 00 35 04 06 00 61 20 62 49 B8 00 96 CE 6B EC B1 B2 34 25 [06:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 83 14 47 00 12 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 64 4C 00 00 F4 03 04 00 1C 0F EE 66 B6 04 01 00 00 6E F5 EF CA AA 7B FC 03 [06:15:31]CommunicateWithHost err = 0 [06:15:31]CheckOFDResponse [06:15:31]1017 (14) - 77093643461234 [06:15:31]1041 (16) - 0000000000959362 [06:15:31]1040 (4) - 19556 [06:15:31]1012 (4) - 21.09.2024 00:11 [06:15:31]1206 (1) - 0 [06:15:31]OFD Sender: Remove packet 19556 [06:15:31]ProducePacketName [06:15:31]name=ofd_packets/00019556 [06:15:31]NVStorageDeleteData [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:54]recv_with_timeout no data received [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]recv_with_timeout no data received [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:05]recv_with_timeout no data received [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:24:58]recv_with_timeout no data received [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:10]recv_with_timeout no data received [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:41]recv_with_timeout no data received [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:52]recv_with_timeout no data received [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:35]recv_with_timeout no data received [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:05]recv_with_timeout no data received [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:28]recv_with_timeout no data received [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:46]recv_with_timeout no data received [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [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:21]recv_with_timeout no data received [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:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:15]recv_with_timeout no data received [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:40]recv_with_timeout no data received [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:47]recv_with_timeout no data received [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]recv_with_timeout no data received [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:55:59]accept exits with 10 [06:55:59]New connection [06:55:59]New thread 3067395428 created [06:55:59]Thread 3067252068 joined [06:55:59]Waiting for new connection... [06:55:59] Sock 10.Parse request [06:55:59]Sock 10.Check first char [06:55:59]Sock 10.First char is OK [06:55:59]request: POST /json_proto HTTP/1.0 [06:55:59]Method: POST [06:55:59]URL: /json_proto [06:55:59]Method is POST - this is cgi request [06:55:59]url: /json_proto [06:55:59]query_string will be loaded in cgi processing [06:55:59]execute_cgi json_proto POST (null) [06:55:59]execute_cgi path=json_proto method=POST [06:55:59]POST find Content-Length [06:55:59]Host: 172.17.42.73:8080 [06:55:59]Content-Length: 637 [06:55:59]Content-Type: application/json [06:55:59] [06:55:59]POST finish read [06:55:59]Found Content-Length = 637 [06:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:59]execute_script... [06:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:59]POST & json_proto [06:55:59]process_json_proto [06:55:59]json parsed OK: [06:55:59]protocol is kg_v1.0 [06:55:59]action value=close_receipt [06:55:59]process_action close_receipt [06:55:59]cmd_close_receipt [06:55:59]MH_GetDate [06:55:59]Write to MH i2c: F0 00 00 F2 01 E2 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: F0 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: F0 09 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: F0 09 00 F2 01 00 00 6E EE 66 99 54 47 66 47 [06:55:59]GetLastDocTimeStamp 1726899325 [06:55:59]current date 1726901760 [06:55:59]FM_GetShiftState [06:55:59]SAM_PROTO_GetShiftState [06:55:59]wFMCommunicate request_size=4 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 13 01 00 [06:55:59]Write to MH i2c: E2 08 00 F3 01 80 13 01 00 00 00 00 00 71 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 0E 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 0E 00 F3 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F7 [06:55:59]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [06:55:59]wFMCommunicate OK [06:55:59]SAM_PROTO_GetShiftState done [06:55:59]FM_GetShiftState done [06:55:59]opened in 1726877463 [06:55:59]opened+sec_in_day 1726963863 [06:55:59]quantity*price = 99999 [06:55:59]sum+1 = 100001 [06:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 7 21.09.2024 06:56 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19557 ФПД: 40612932526953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T065600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19557&fm=40612932526953&tin=02508201610067®Number=0000000000146239&sum=100000 [06:56:00]StoreToDocumentArchive [06:56:00]shift 232 fd 19557 [06:56:00]save to /storage/0232/doc_00019557 [06:56:00]save last doc name /storage/0232/doc_00019557 to /storage/kkm_last_doc_name [06:56:00]save OK [06:56:00]Clear old archive folders... [06:56:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:56:00]tlvbuf is 01D59B70 [06:56:00]SAM_PROTO_ClearQueue [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 09 00 00 [06:56:00]Write to MH i2c: E2 08 00 00 02 80 09 00 00 00 00 00 00 74 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [06:56:00]RAPDU: 90 00 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_ClearQueue done [06:56:00]KKMCreateOFDPacket [06:56:00]OFDProtocolAddRootSTLVToBuf [06:56:00]FM_MakeSignedData [06:56:00]FM_MakeSignedData [06:56:00]SAM_PROTO_SignData [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 0D 01 02 [06:56:00]Write to MH i2c: E2 08 00 01 02 80 0D 01 02 00 00 00 00 7C [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [06:56:00]RAPDU: 90 00 [06:56:00]wFMCommunicate OK [06:56:00]wFMCommunicate request_size=255 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 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 07 00 00 00 F4 03 04 00 00 6E EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 35 04 06 00 [06:56:00]Write to MH i2c: E2 02 01 02 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 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 07 00 00 00 F4 03 04 00 00 6E EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 35 04 06 00 00 00 E8 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [06:56:00]RAPDU: 90 00 [06:56:00]wFMCommunicate OK [06:56:00]wFMCommunicate request_size=11 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 0D 02 02 06 24 EF EF 6A A3 69 [06:56:00]Write to MH i2c: E2 0E 00 03 02 80 0D 02 02 06 00 24 EF EF 6A A3 69 00 00 03 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 03 00 03 02 00 90 00 79 [06:56:00]RAPDU: 90 00 [06:56:00]wFMCommunicate OK [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 0D 03 02 [06:56:00]Write to MH i2c: E2 08 00 04 02 80 0D 03 02 00 00 00 00 81 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0B 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0B 00 04 02 00 C9 A3 31 F9 A4 09 8B 66 90 00 B6 [06:56:00]RAPDU: C9 A3 31 F9 A4 09 8B 66 90 00 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_SignData done [06:56:00]FM_MakeSignedData done [06:56:00]CreateOFDProtocolMessage [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 11 00 00 [06:56:00]Write to MH i2c: E2 08 00 05 02 80 11 00 00 00 00 00 00 81 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 17 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 17 00 05 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D6 [06:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [06:56:00]wFMCommunicate OK [06:56:00]CreateOFDProtocolMessage done [06:56:00]OFDSenderStorePacket 19557 [06:56:00]StoreOFDPacket docnum=19557 [06:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 EF B3 08 01 9F 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 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 07 00 00 00 F4 03 04 00 00 6E EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 35 04 06 00 24 EF EF 6A A3 69 C9 A3 31 F9 A4 09 8B 66 [06:56:00]CheckFolder [06:56:00]dirname=/storage/ofd_packets [06:56:00]CheckFolder done [06:56:00]ProducePacketName [06:56:00]name=ofd_packets/00019557 [06:56:00]NVStorageSaveData ofd_packets/00019557 [06:56:00]File name is /storage/ofd_packets/00019557 [06:56:00]Write 302 bytes [06:56:00]NVStorageSaveData done [06:56:00]OFDSenderStorePacket done [06:56:00]KKMCreateOFDPacket done [06:56:00]NVStorageSaveData kkm_last_timestamp [06:56:00]File name is /storage/kkm_last_timestamp [06:56:00]Write 4 bytes [06:56:00]NVStorageSaveData done [06:56:00]ExternCall_PrintAddStr [06:56:00]wPrintStart [06:56:00]Write to MH i2c: 01 00 00 06 02 08 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 07 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [06:56:00]RasterBufferAndPrint [06:56:00]line Счет N : (1)23699495 [06:56:00]line ИНН: 02508201610067 [06:56:00]line Контрольно-Кассовый Чек [06:56:00]line ПРОДАЖА [06:56:00]line ТРК (МРК, ГНК) : 13 [06:56:00]line Товар: 2710124130 [06:56:00]line SUPER-92-К-5 [06:56:00]line 14.430 * 69.30 [06:56:00]line = 1000.00 [06:56:00]line НДС 12% НСП 1% [06:56:00]line > о реализуемом товаре [06:56:00]line ИТОГО: 1000.00 [06:56:00]line НСП 1% : 8.85 [06:56:00]line НДС 12% : 106.19 [06:56:00]line Наличными: 1000.00 [06:56:00]line Безнал.: 0.00 [06:56:00]line Место: АЗС № 93 "Партнер Нефть" [06:56:00]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [06:56:00]line СНО: Общий режим [06:56:00]line Чек 7 21.09.2024 06:56 [06:56:00]line Смена: 232 ФФД: 1.0 [06:56:00]line ЗНМ: 0300000060 [06:56:00]line РНМ: 0000000000146239 [06:56:00]line Версия ККМ: v1.0 [06:56:00]line ФМ: 0000000000959362 [06:56:00]line ФД: 19557 [06:56:00]line ФПД: 40612932526953 [06:56:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T065600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19557&fm=40612932526953&tin=02508201610067®Number=0000000000146239&sum=100000 [06:56:01]OFD Sender: Processing packet 19557 [packets to send 63, broken 62] [06:56:01]ProducePacketName [06:56:01]name=ofd_packets/00019557 [06:56:01]OFD Sender: To server: pG, [06:56:01]CommunicateWithHost lk.salyk.kg:30040 [06:56:01]ConnectInit lk.salyk.kg [06:56:01]written 0, free lines is 4095 [06:56:01]Write to MH i2c: 01 00 00 2E 02 30 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: 01 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: 01 07 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 C1 0C 04 [06:56:01]RasterBufferAndPrint [06:56:01]line [06:56:01]line [06:56:01]line [06:56:01]line [06:56:01]line [06:56:01]written 0, free lines is 3269 [06:56:01]MH_Cut [06:56:01]Write to MH i2c: D1 01 00 35 02 01 09 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: D1 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: D1 01 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: D1 01 00 35 02 00 08 [06:56:01]Write to MH i2c: 01 00 00 36 02 38 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:02]*** Cut start [06:56:02]*** Partial cut [06:56:02]*** CUTSNS_PIN = 1 [06:56:02]*** CUTSNS_PIN = 0 [06:56:02]*** Brake cut motor [06:56:03]Read from MH i2c: 01 [06:56:03]MH_I2C_Read... [06:56:03]*** Stop cut motor [06:56:03]*** Cut end [06:56:03]Read from MH i2c: 01 07 00 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [06:56:03]process_action close_receipt done [06:56:03]requested_data is exist [06:56:03]produce_requested_data [06:56:03]requested_item fm.sn is exist - process it [06:56:03]wFMCommunicate request_size=4 [06:56:03]MH_SAM_APDU [06:56:03]CAPDU: 80 11 00 00 [06:56:03]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [06:56:03]Write i2c OK [06:56:03]MH_I2C_Read... [06:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:03]Read from MH i2c: E2 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 17 00 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 08 [06:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [06:56:03]wFMCommunicate OK [06:56:03]requested_item fd.num is exist - process it [06:56:03]SAM_PROTO_GetFieldsCounters [06:56:03]wFMCommunicate request_size=4 [06:56:03]MH_SAM_APDU [06:56:03]CAPDU: 80 13 00 00 [06:56:03]Write to MH i2c: E2 08 00 38 02 80 13 00 00 00 00 00 00 B6 [06:56:03]Write i2c OK [06:56:03]MH_I2C_Read... [06:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:03]Read from MH i2c: E2 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 62 00 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 62 00 38 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 65 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [06:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 65 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:03]wFMCommunicate OK [06:56:03]SAM_PROTO_GetFieldsCounters done [06:56:03]requested_item shift.num is exist - process it [06:56:03]requested_item shift.opened is exist - process it [06:56:03]req_shift_opened [06:56:03]FM_GetShiftState [06:56:03]SAM_PROTO_GetShiftState [06:56:03]wFMCommunicate request_size=4 [06:56:03]MH_SAM_APDU [06:56:03]CAPDU: 80 13 01 00 [06:56:03]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [06:56:03]Write i2c OK [06:56:03]MH_I2C_Read... [06:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:03]Read from MH i2c: E2 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 0E 00 [06:56:03]MH_I2C_Read... [06:56:03]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 3E [06:56:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [06:56:03]wFMCommunicate OK [06:56:03]SAM_PROTO_GetShiftState done [06:56:03]FM_GetShiftState done [06:56:03]req_shift_opened done [06:56:03]requested_item shift.open_date is exist - process it [06:56:03]req_shift_open_date [06:56:03]req_shift_open_date done [06:56:03]produce_requested_data done [06:56:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19557,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [06:56:03]process_action_free close_receipt [06:56:03]json_value_free [06:56:03]json_value_free done [06:56:03]process_json_proto returns [06:56:03]Send response to host [06:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19557,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [06:56:03]free response buf [06:56:03]execute_script done [06:56:03]execute_script returns [06:56:03]free content buf [06:56:03]Sock 10.Close socket [06:56:03]Sock 10.Thread stoped [06:56:11]Connected sock=11 [06:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 EF B3 08 01 9F 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 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 07 00 00 00 F4 03 04 00 00 6E EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 35 04 06 00 24 EF EF 6A A3 69 C9 A3 31 F9 A4 09 8B 66 [06:56:16]recv_with_timeout no data received [06:56:16]CommunicateWithHost answer receiving error [06:56:16]CommunicateWithHost err = -3 [06:56:16]OFD Sender: Server communicate error [06:56:21]OFD Sender: Processing packet 19557 [packets to send 63, broken 62] [06:56:21]ProducePacketName [06:56:21]name=ofd_packets/00019557 [06:56:21]OFD Sender: To server: pG, [06:56:21]CommunicateWithHost lk.salyk.kg:30040 [06:56:21]ConnectInit lk.salyk.kg [06:56:25]recv_with_timeout no data received [06:56:26]ConnectInit Can't take IP for lk.salyk.kg [06:56:26]CommunicateWithHost connect error [06:56:26]CommunicateWithHost err = -1 [06:56:26]OFD Sender: Server communicate error [06:56:31]OFD Sender: Processing packet 19557 [packets to send 63, broken 62] [06:56:31]ProducePacketName [06:56:31]name=ofd_packets/00019557 [06:56:31]OFD Sender: To server: pG, [06:56:31]CommunicateWithHost lk.salyk.kg:30040 [06:56:31]ConnectInit lk.salyk.kg [06:56:36]Connected sock=10 [06:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 EF B3 08 01 9F 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 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 07 00 00 00 F4 03 04 00 00 6E EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 35 04 06 00 24 EF EF 6A A3 69 C9 A3 31 F9 A4 09 8B 66 [06:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 CB 74 47 00 86 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 65 4C 00 00 F4 03 04 00 BE 18 EE 66 B6 04 01 00 00 04 49 B5 65 DE 68 88 A8 [06:56:37]CommunicateWithHost err = 0 [06:56:37]CheckOFDResponse [06:56:37]1017 (14) - 77093643461234 [06:56:37]1041 (16) - 0000000000959362 [06:56:37]1040 (4) - 19557 [06:56:37]1012 (4) - 21.09.2024 00:52 [06:56:37]1206 (1) - 0 [06:56:37]OFD Sender: Remove packet 19557 [06:56:37]ProducePacketName [06:56:37]name=ofd_packets/00019557 [06:56:37]NVStorageDeleteData [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:48]recv_with_timeout no data received [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:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:42]recv_with_timeout no data received [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:04]recv_with_timeout no data received [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]recv_with_timeout no data received [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:11]recv_with_timeout no data received [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:47]recv_with_timeout no data received [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]recv_with_timeout no data received [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:32]recv_with_timeout no data received [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:52]recv_with_timeout no data received [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:09]accept exits with 9 [07:18:09]New connection [07:18:09]New thread 3067252068 created [07:18:09]Thread 3067395428 joined [07:18:09]Waiting for new connection... [07:18:09] Sock 9.Parse request [07:18:09]Sock 9.Check first char [07:18:09]Sock 9.First char is OK [07:18:09]request: POST /json_proto HTTP/1.0 [07:18:09]Method: POST [07:18:09]URL: /json_proto [07:18:09]Method is POST - this is cgi request [07:18:09]url: /json_proto [07:18:09]query_string will be loaded in cgi processing [07:18:09]execute_cgi json_proto POST (null) [07:18:09]execute_cgi path=json_proto method=POST [07:18:09]POST find Content-Length [07:18:09]Host: 172.17.42.73:8080 [07:18:09]Content-Length: 679 [07:18:09]Content-Type: application/json [07:18:09] [07:18:09]POST finish read [07:18:09]Found Content-Length = 679 [07:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:09]execute_script... [07:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:09]POST & json_proto [07:18:09]process_json_proto [07:18:09]json parsed OK: [07:18:09]protocol is kg_v1.0 [07:18:09]action value=close_receipt [07:18:09]process_action close_receipt [07:18:09]cmd_close_receipt [07:18:09]MH_GetDate [07:18:09]Write to MH i2c: F0 00 00 3A 02 2B [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: F0 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: F0 09 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: F0 09 00 3A 02 00 33 73 EE 66 99 54 47 66 C8 [07:18:09]GetLastDocTimeStamp 1726901760 [07:18:09]current date 1726903091 [07:18:09]FM_GetShiftState [07:18:09]SAM_PROTO_GetShiftState [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 13 01 00 [07:18:09]Write to MH i2c: E2 08 00 3B 02 80 13 01 00 00 00 00 00 BA [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0E 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0E 00 3B 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 40 [07:18:09]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:18:09]wFMCommunicate OK [07:18:09]SAM_PROTO_GetShiftState done [07:18:09]FM_GetShiftState done [07:18:09]opened in 1726877463 [07:18:09]opened+sec_in_day 1726963863 [07:18:09]quantity*price = 30035 [07:18:09]sum+1 = 30036 [07:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 8 21.09.2024 07:18 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19558 ФПД: 181356762672761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T071811&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19558&fm=181356762672761&tin=02508201610067®Number=0000000000146239&sum=30000 [07:18:10]StoreToDocumentArchive [07:18:10]shift 232 fd 19558 [07:18:10]save to /storage/0232/doc_00019558 [07:18:10]save last doc name /storage/0232/doc_00019558 to /storage/kkm_last_doc_name [07:18:10]save OK [07:18:10]Clear old archive folders... [07:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:18:10]tlvbuf is 01D55F90 [07:18:10]SAM_PROTO_ClearQueue [07:18:10]wFMCommunicate request_size=4 [07:18:10]MH_SAM_APDU [07:18:10]CAPDU: 80 09 00 00 [07:18:10]Write to MH i2c: E2 08 00 48 02 80 09 00 00 00 00 00 00 BC [07:18:10]Write i2c OK [07:18:10]MH_I2C_Read... [07:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:10]Read from MH i2c: E2 [07:18:10]MH_I2C_Read... [07:18:10]Read from MH i2c: E2 03 00 [07:18:10]MH_I2C_Read... [07:18:10]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [07:18:10]RAPDU: 90 00 [07:18:10]wFMCommunicate OK [07:18:10]SAM_PROTO_ClearQueue done [07:18:10]KKMCreateOFDPacket [07:18:10]OFDProtocolAddRootSTLVToBuf [07:18:10]FM_MakeSignedData [07:18:10]FM_MakeSignedData [07:18:10]SAM_PROTO_SignData [07:18:10]wFMCommunicate request_size=4 [07:18:10]MH_SAM_APDU [07:18:10]CAPDU: 80 0D 01 02 [07:18:10]Write to MH i2c: E2 08 00 49 02 80 0D 01 02 00 00 00 00 C4 [07:18:10]Write i2c OK [07:18:10]MH_I2C_Read... [07:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:10]Read from MH i2c: E2 [07:18:10]MH_I2C_Read... [07:18:10]Read from MH i2c: E2 03 00 [07:18:10]MH_I2C_Read... [07:18:10]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [07:18:10]RAPDU: 90 00 [07:18:10]wFMCommunicate OK [07:18:10]wFMCommunicate request_size=255 [07:18:10]MH_SAM_APDU [07:18:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 33 73 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 66 4C 00 00 35 04 06 00 A4 [07:18:10]Write to MH i2c: E2 02 01 4A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 33 73 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 66 4C 00 00 35 04 06 00 A4 00 00 A4 [07:18:10]Write i2c OK [07:18:10]MH_I2C_Read... [07:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:11]Read from MH i2c: E2 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 03 00 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [07:18:11]RAPDU: 90 00 [07:18:11]wFMCommunicate OK [07:18:11]wFMCommunicate request_size=10 [07:18:11]MH_SAM_APDU [07:18:11]CAPDU: 80 0D 02 02 05 F1 69 6A AE 79 [07:18:11]Write to MH i2c: E2 0D 00 4B 02 80 0D 02 02 05 00 F1 69 6A AE 79 00 00 BC [07:18:11]Write i2c OK [07:18:11]MH_I2C_Read... [07:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:11]Read from MH i2c: E2 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 03 00 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [07:18:11]RAPDU: 90 00 [07:18:11]wFMCommunicate OK [07:18:11]wFMCommunicate request_size=4 [07:18:11]MH_SAM_APDU [07:18:11]CAPDU: 80 0D 03 02 [07:18:11]Write to MH i2c: E2 08 00 4C 02 80 0D 03 02 00 00 00 00 C9 [07:18:11]Write i2c OK [07:18:11]MH_I2C_Read... [07:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:11]Read from MH i2c: E2 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 0B 00 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 0B 00 4C 02 00 B3 E5 FC 43 95 A6 11 7C 90 00 69 [07:18:11]RAPDU: B3 E5 FC 43 95 A6 11 7C 90 00 [07:18:11]wFMCommunicate OK [07:18:11]SAM_PROTO_SignData done [07:18:11]FM_MakeSignedData done [07:18:11]CreateOFDProtocolMessage [07:18:11]wFMCommunicate request_size=4 [07:18:11]MH_SAM_APDU [07:18:11]CAPDU: 80 11 00 00 [07:18:11]Write to MH i2c: E2 08 00 4D 02 80 11 00 00 00 00 00 00 C9 [07:18:11]Write i2c OK [07:18:11]MH_I2C_Read... [07:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:11]Read from MH i2c: E2 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 17 00 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: E2 17 00 4D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1E [07:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:18:11]wFMCommunicate OK [07:18:11]CreateOFDProtocolMessage done [07:18:11]OFDSenderStorePacket 19558 [07:18:11]StoreOFDPacket docnum=19558 [07:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19558,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [07:18:14]free response buf [07:18:14]execute_script done [07:18:14]execute_script returns [07:18:14]free content buf [07:18:14]Sock 9.Close socket [07:18:14]Sock 9.Thread stoped [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:38]recv_with_timeout no data received [07:18:43]OFD Sender: No OFD packet to send [07:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 FE E7 07 01 08 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 33 73 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 66 4C 00 00 35 04 06 00 A4 F1 69 6A AE 79 B3 E5 FC 43 95 A6 11 7C [07:18:11]CheckFolder [07:18:11]dirname=/storage/ofd_packets [07:18:11]CheckFolder done [07:18:11]ProducePacketName [07:18:11]name=ofd_packets/00019558 [07:18:11]NVStorageSaveData ofd_packets/00019558 [07:18:11]File name is /storage/ofd_packets/00019558 [07:18:11]Write 301 bytes [07:18:11]NVStorageSaveData done [07:18:11]OFDSenderStorePacket done [07:18:11]KKMCreateOFDPacket done [07:18:11]NVStorageSaveData kkm_last_timestamp [07:18:11]File name is /storage/kkm_last_timestamp [07:18:11]Write 4 bytes [07:18:11]NVStorageSaveData done [07:18:11]ExternCall_PrintAddStr [07:18:11]wPrintStart [07:18:11]Write to MH i2c: 01 00 00 4E 02 50 [07:18:11]Write i2c OK [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: 01 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: 01 07 00 [07:18:11]MH_I2C_Read... [07:18:11]Read from MH i2c: 01 07 00 4E 02 00 00 00 00 00 FF 0F 65 [07:18:11]RasterBufferAndPrint [07:18:11]line Счет N : (1)23699498 [07:18:11]line ИНН: 02508201610067 [07:18:11]line Контрольно-Кассовый Чек [07:18:11]line ПРОДАЖА [07:18:11]line ТРК (МРК, ГНК) : 42 [07:18:11]line Товар: 2710124130 [07:18:11]line Аи-92-К-5 [07:18:11]line 4.430 * 67.80 [07:18:11]line = 300.35 [07:18:11]line НДС 12% НСП 1% [07:18:11]line > о реализуемом товаре [07:18:11]line ОКРУГЛЕНИЕ: -0.35 [07:18:11]line ИТОГО: 300.00 [07:18:11]line Внесено: 300.00 [07:18:11]line СДАЧА: 0.00 [07:18:11]line НСП 1% : 2.66 [07:18:11]line НДС 12% : 31.90 [07:18:11]line Наличными: 300.00 [07:18:11]line Безнал.: 0.00 [07:18:11]line Место: АЗС № 93 "Партнер Нефть" [07:18:11]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [07:18:11]line СНО: Общий режим [07:18:11]line Чек 8 21.09.2024 07:18 [07:18:11]line Смена: 232 ФФД: 1.0 [07:18:11]line ЗНМ: 0300000060 [07:18:11]line РНМ: 0000000000146239 [07:18:11]line Версия ККМ: v1.0 [07:18:11]line ФМ: 0000000000959362 [07:18:11]line ФД: 19558 [07:18:11]line ФПД: 181356762672761 [07:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T071811&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19558&fm=181356762672761&tin=02508201610067®Number=0000000000146239&sum=30000 [07:18:11]OFD Sender: Processing packet 19558 [packets to send 63, broken 62] [07:18:11]ProducePacketName [07:18:11]name=ofd_packets/00019558 [07:18:11]OFD Sender: To server: pG, [07:18:11]CommunicateWithHost lk.salyk.kg:30040 [07:18:11]ConnectInit lk.salyk.kg [07:18:11]written 0, free lines is 4095 [07:18:12]Connected sock=10 [07:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 FE E7 07 01 08 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 33 73 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 66 4C 00 00 35 04 06 00 A4 F1 69 6A AE 79 B3 E5 FC 43 95 A6 11 7C [07:18:12]Write to MH i2c: 01 00 00 79 02 7B [07:18:12]Write i2c OK [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: 01 [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: 01 07 00 [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: 01 07 00 79 02 00 00 00 00 00 81 0C 0F [07:18:12]RasterBufferAndPrint [07:18:12]line [07:18:12]line [07:18:12]line [07:18:12]line [07:18:12]line [07:18:12]written 0, free lines is 3205 [07:18:12]MH_Cut [07:18:12]Write to MH i2c: D1 01 00 80 02 01 54 [07:18:12]Write i2c OK [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: D1 [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: D1 01 00 [07:18:12]MH_I2C_Read... [07:18:12]Read from MH i2c: D1 01 00 80 02 00 53 [07:18:12]Write to MH i2c: 01 00 00 81 02 83 [07:18:12]Write i2c OK [07:18:12]MH_I2C_Read... [07:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 D2 49 47 00 4D 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 66 4C 00 00 F4 03 04 00 CD 1D EE 66 B6 04 01 00 00 12 A8 DA 3A 84 5E 14 95 [07:18:12]CommunicateWithHost err = 0 [07:18:12]CheckOFDResponse [07:18:12]1017 (14) - 77093643461234 [07:18:12]1041 (16) - 0000000000959362 [07:18:12]1040 (4) - 19558 [07:18:12]1012 (4) - 21.09.2024 01:13 [07:18:12]1206 (1) - 0 [07:18:12]OFD Sender: Remove packet 19558 [07:18:12]ProducePacketName [07:18:12]name=ofd_packets/00019558 [07:18:12]NVStorageDeleteData [07:18:13]OFD Sender: No OFD packet to send [07:18:13]*** Cut start [07:18:13]*** Partial cut [07:18:13]*** CUTSNS_PIN = 1 [07:18:13]*** CUTSNS_PIN = 0 [07:18:13]*** Brake cut motor [07:18:13]Read from MH i2c: 01 [07:18:13]MH_I2C_Read... [07:18:13]*** Stop cut motor [07:18:13]*** Cut end [07:18:13]Read from MH i2c: 01 07 00 [07:18:13]MH_I2C_Read... [07:18:13]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [07:18:13]process_action close_receipt done [07:18:13]requested_data is exist [07:18:13]produce_requested_data [07:18:13]requested_item fm.sn is exist - process it [07:18:13]wFMCommunicate request_size=4 [07:18:13]MH_SAM_APDU [07:18:13]CAPDU: 80 11 00 00 [07:18:13]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [07:18:13]Write i2c OK [07:18:13]MH_I2C_Read... [07:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:13]Read from MH i2c: E2 [07:18:13]MH_I2C_Read... [07:18:13]Read from MH i2c: E2 17 00 [07:18:13]MH_I2C_Read... [07:18:13]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 53 [07:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:18:13]wFMCommunicate OK [07:18:13]requested_item fd.num is exist - process it [07:18:13]SAM_PROTO_GetFieldsCounters [07:18:13]wFMCommunicate request_size=4 [07:18:13]MH_SAM_APDU [07:18:13]CAPDU: 80 13 00 00 [07:18:13]Write to MH i2c: E2 08 00 83 02 80 13 00 00 00 00 00 00 01 [07:18:13]Write i2c OK [07:18:13]MH_I2C_Read... [07:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:13]Read from MH i2c: E2 [07:18:13]MH_I2C_Read... [07:18:13]Read from MH i2c: E2 62 00 [07:18:13]MH_I2C_Read... [07:18:13]Read from MH i2c: E2 62 00 83 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 66 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [07:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 66 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:13]wFMCommunicate OK [07:18:13]SAM_PROTO_GetFieldsCounters done [07:18:13]requested_item shift.num is exist - process it [07:18:13]requested_item shift.opened is exist - process it [07:18:13]req_shift_opened [07:18:13]FM_GetShiftState [07:18:13]SAM_PROTO_GetShiftState [07:18:13]wFMCommunicate request_size=4 [07:18:13]MH_SAM_APDU [07:18:13]CAPDU: 80 13 01 00 [07:18:13]Write to MH i2c: E2 08 00 84 02 80 13 01 00 00 00 00 00 03 [07:18:13]Write i2c OK [07:18:13]MH_I2C_Read... [07:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:14]Read from MH i2c: E2 [07:18:14]MH_I2C_Read... [07:18:14]Read from MH i2c: E2 0E 00 [07:18:14]MH_I2C_Read... [07:18:14]Read from MH i2c: E2 0E 00 84 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 89 [07:18:14]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:18:14]wFMCommunicate OK [07:18:14]SAM_PROTO_GetShiftState done [07:18:14]FM_GetShiftState done [07:18:14]req_shift_opened done [07:18:14]requested_item shift.open_date is exist - process it [07:18:14]req_shift_open_date [07:18:14]req_shift_open_date done [07:18:14]produce_requested_data done [07:18:14]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19558,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [07:18:14]process_action_free close_receipt [07:18:14]json_value_free [07:18:14]json_value_free done [07:18:14]process_json_proto returns [07:18:14]Send response to host [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:55]int [07:18:55]Write to MH i2c: 01 00 00 85 02 87 [07:18:55]*** FLAG_PRN_KEY set [07:18:55]Write i2c OK [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 85 02 00 08 00 00 00 FF 0F A4 [07:18:55]state=0 [07:18:55]Key pressed [07:18:55]Feed [07:18:55]Write to MH i2c: D8 00 00 86 02 5F [07:18:55]Write i2c OK [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: D8 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: D8 01 00 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: D8 01 00 86 02 00 60 [07:18:55]int [07:18:55]Write to MH i2c: 01 00 00 87 02 89 [07:18:55]Write i2c OK [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 87 02 00 48 00 00 00 3C 00 14 [07:18:55]state=2 [07:18:55]Key pressed [07:18:55]int [07:18:55]Write to MH i2c: 01 00 00 88 02 8A [07:18:55]*** FLAG_PRN_KEY reset [07:18:55]Write i2c OK [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 [07:18:55]MH_I2C_Read... [07:18:55]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 F6 0F 96 [07:18:55]state=2 [07:18:55]Stop feed [07:18:58]OFD Sender: No OFD packet to send [07:18:59]recv_with_timeout no data received [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:44]recv_with_timeout no data received [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:05]recv_with_timeout no data received [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:19]recv_with_timeout no data received [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:37]recv_with_timeout no data received [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:52]recv_with_timeout no data received [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:22]recv_with_timeout no data received [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]recv_with_timeout no data received [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:34]recv_with_timeout no data received [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:42]recv_with_timeout no data received [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:08]recv_with_timeout no data received [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:27]recv_with_timeout no data received [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:46]recv_with_timeout no data received [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:06]recv_with_timeout no data received [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:23]ConnectInit Can't connect to host [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:48:03]ConnectInit Can't connect to host [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:33]recv_with_timeout no data received [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:50]recv_with_timeout no data received [07:50:54]OFD Sender: No OFD packet to send [07:51:00]wFMCommunicate request_size=13 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 15 02 00 08 F4 03 04 00 E5 7A EE 66 [07:51:00]Write to MH i2c: E2 10 00 93 02 80 15 02 00 08 00 F4 03 04 00 E5 7A EE 66 00 00 D3 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=25 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [07:51:00]Write to MH i2c: E2 1C 00 94 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 78 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 15 03 00 [07:51:00]Write to MH i2c: E2 08 00 95 02 80 15 03 00 00 00 00 00 18 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 40 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 40 00 95 02 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 09 00 00 00 35 04 06 00 C3 23 E5 6E 2A 42 90 00 59 [07:51:00]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 09 00 00 00 35 04 06 00 C3 23 E5 6E 2A 42 90 00 [07:51:00]wFMCommunicate OK [07:51:00]SAM_PROTO_ProcessDocument answer len = 59 [07:51:00]SAM_PROTO_ProcessDocument done [07:51:00]SetTLVBufToDocument [07:51:00]Processing tag 1209 (04B9) [07:51:00]Malloc new data [07:51:00]Processing tag 1041 (0411) [07:51:00]Processing tag 1040 (0410) [07:51:00]Malloc new data [07:51:00]Processing tag 1038 (040E) [07:51:00]Malloc new data [07:51:00]Processing tag 1042 (0412) [07:51:00]Malloc new data [07:51:00]Processing tag 1077 (0435) [07:51:00]Malloc new data [07:51:00]SetTLVBufToDocument err=0 [07:51:00]KKMLoadAndSignReceiptData store KKM data [07:51:00]KKMLoadAndSignReceiptData err=0 [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 11 00 00 [07:51:00]Write to MH i2c: E2 08 00 96 02 80 11 00 00 00 00 00 00 12 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:00]Read from MH i2c: E2 17 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 17 00 96 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 67 [07:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:51:00]wFMCommunicate OK [07:51:00]Счет N : (1)23699512 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-5 14.750 * 67.80 = 1000.05 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 9 21.09.2024 07:51 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19559 ФПД: 214558940473922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075101&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19559&fm=214558940473922&tin=02508201610067®Number=0000000000146239&sum=100000 [07:51:00]StoreToDocumentArchive [07:51:00]shift 232 fd 19559 [07:51:00]save to /storage/0232/doc_00019559 [07:51:00]save last doc name /storage/0232/doc_00019559 to /storage/kkm_last_doc_name [07:51:00]save OK [07:51:00]Clear old archive folders... [07:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:00]tlvbuf is 01DF58D0 [07:51:00]SAM_PROTO_ClearQueue [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 09 00 00 [07:51:00]Write to MH i2c: E2 08 00 97 02 80 09 00 00 00 00 00 00 0B [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]SAM_PROTO_ClearQueue done [07:51:00]KKMCreateOFDPacket [07:51:00]OFDProtocolAddRootSTLVToBuf [07:51:00]FM_MakeSignedData [07:51:00]FM_MakeSignedData [07:51:00]SAM_PROTO_SignData [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 01 02 [07:51:00]Write to MH i2c: E2 08 00 98 02 80 0D 01 02 00 00 00 00 13 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=255 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E5 7A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 35 04 06 00 C3 [07:51:00]Write to MH i2c: E2 02 01 99 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E5 7A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 35 04 06 00 C3 00 00 3D [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=10 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 02 02 05 23 E5 6E 2A 42 [07:51:00]Write to MH i2c: E2 0D 00 9A 02 80 0D 02 02 05 00 23 E5 6E 2A 42 00 00 02 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:01]Read from MH i2c: E2 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 03 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [07:51:01]RAPDU: 90 00 [07:51:01]wFMCommunicate OK [07:51:01]wFMCommunicate request_size=4 [07:51:01]MH_SAM_APDU [07:51:01]CAPDU: 80 0D 03 02 [07:51:01]Write to MH i2c: E2 08 00 9B 02 80 0D 03 02 00 00 00 00 18 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:01]Read from MH i2c: E2 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0B 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0B 00 9B 02 00 6B EA AD BE 04 B8 F3 3F 90 00 C7 [07:51:01]RAPDU: 6B EA AD BE 04 B8 F3 3F 90 00 [07:51:01]wFMCommunicate OK [07:51:01]SAM_PROTO_SignData done [07:51:01]FM_MakeSignedData done [07:51:01]CreateOFDProtocolMessage [07:51:01]wFMCommunicate request_size=4 [07:51:01]MH_SAM_APDU [07:51:01]CAPDU: 80 11 00 00 [07:51:01]Write to MH i2c: E2 08 00 9C 02 80 11 00 00 00 00 00 00 18 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:01]Read from MH i2c: E2 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 17 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 17 00 9C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 6D [07:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:51:01]wFMCommunicate OK [07:51:01]CreateOFDProtocolMessage done [07:51:01]OFDSenderStorePacket 19559 [07:51:01]StoreOFDPacket docnum=19559 [07:50:59]accept exits with 8 [07:50:59]New connection [07:50:59]New thread 3067395428 created [07:50:59]Thread 3067252068 joined [07:50:59]Waiting for new connection... [07:50:59] Sock 8.Parse request [07:50:59]Sock 8.Check first char [07:50:59]Sock 8.First char is OK [07:50:59]request: POST /json_proto HTTP/1.0 [07:50:59]Method: POST [07:50:59]URL: /json_proto [07:50:59]Method is POST - this is cgi request [07:50:59]url: /json_proto [07:50:59]query_string will be loaded in cgi processing [07:50:59]execute_cgi json_proto POST (null) [07:50:59]execute_cgi path=json_proto method=POST [07:50:59]POST find Content-Length [07:50:59]Host: 172.17.42.73:8080 [07:50:59]Content-Length: 684 [07:50:59]Content-Type: application/json [07:50:59] [07:50:59]POST finish read [07:50:59]Found Content-Length = 684 [07:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:59]execute_script... [07:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:59]POST & json_proto [07:50:59]process_json_proto [07:50:59]json parsed OK: [07:50:59]protocol is kg_v1.0 [07:50:59]action value=close_receipt [07:50:59]process_action close_receipt [07:50:59]cmd_close_receipt [07:50:59]MH_GetDate [07:50:59]Write to MH i2c: F0 00 00 89 02 7A [07:50:59]Write i2c OK [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: F0 [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: F0 09 00 [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: F0 09 00 89 02 00 E5 7A EE 66 99 54 47 66 D0 [07:50:59]GetLastDocTimeStamp 1726903091 [07:50:59]current date 1726905061 [07:50:59]FM_GetShiftState [07:50:59]SAM_PROTO_GetShiftState [07:50:59]wFMCommunicate request_size=4 [07:50:59]MH_SAM_APDU [07:50:59]CAPDU: 80 13 01 00 [07:50:59]Write to MH i2c: E2 08 00 8A 02 80 13 01 00 00 00 00 00 09 [07:50:59]Write i2c OK [07:50:59]MH_I2C_Read... [07:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:59]Read from MH i2c: E2 [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: E2 0E 00 [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: E2 0E 00 8A 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 8F [07:50:59]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:50:59]wFMCommunicate OK [07:50:59]SAM_PROTO_GetShiftState done [07:50:59]FM_GetShiftState done [07:50:59]opened in 1726877463 [07:50:59]opened+sec_in_day 1726963863 [07:50:59]quantity*price = 100005 [07:50:59]sum+1 = 100006 [07:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре [07:51:01]line ОКРУГЛЕНИЕ: -0.05 [07:51:01]line ИТОГО: 1000.00 [07:51:01]line Внесено: 1000.00 [07:51:01]line СДАЧА: 0.00 [07:51:01]line НСП 1% : 8.85 [07:51:01]line НДС 12% : 106.20 [07:51:01]line Наличными: 1000.00 [07:51:01]line Безнал.: 0.00 [07:51:01]line Место: АЗС № 93 "Партнер Нефть" [07:51:01]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [07:51:01]line СНО: Общий режим [07:51:01]line Чек 9 21.09.2024 07:51 [07:51:01]line Смена: 232 ФФД: 1.0 [07:51:01]line ЗНМ: 0300000060 [07:51:01]line РНМ: 0000000000146239 [07:51:01]line Версия ККМ: v1.0 [07:51:01]line ФМ: 0000000000959362 [07:51:01]line ФД: 19559 [07:51:01]line ФПД: 214558940473922 [07:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075101&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19559&fm=214558940473922&tin=02508201610067®Number=0000000000146239&sum=100000 [07:51:01]OFD Sender: Processing packet 19559 [packets to send 63, broken 62] [07:51:01]ProducePacketName [07:51:01]name=ofd_packets/00019559 [07:51:01]OFD Sender: To server: pG, [07:51:01]CommunicateWithHost lk.salyk.kg:30040 [07:51:01]ConnectInit lk.salyk.kg [07:51:01]written 0, free lines is 4095 [07:51:01]Write to MH i2c: 01 00 00 C8 02 CA [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 07 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 7E 0C 5B [07:51:01]RasterBufferAndPrint [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]written 0, free lines is 3201 [07:51:01]MH_Cut [07:51:01]Write to MH i2c: D1 01 00 CF 02 01 A3 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 01 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 01 00 CF 02 00 A2 [07:51:01]Write to MH i2c: 01 00 00 D0 02 D2 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:02]Connected sock=10 [07:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 5E B4 07 01 50 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E5 7A EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 35 04 06 00 C3 23 E5 6E 2A 42 6B EA AD BE 04 B8 F3 3F [07:51:02]*** Cut start [07:51:02]*** Partial cut [07:51:02]*** CUTSNS_PIN = 1 [07:51:02]*** CUTSNS_PIN = 0 [07:51:03]*** Brake cut motor [07:51:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 82 D0 47 00 C8 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 67 4C 00 00 F4 03 04 00 80 25 EE 66 B6 04 01 00 00 F3 D6 DC CA 71 2F DD 88 [07:51:03]CommunicateWithHost err = 0 [07:51:03]CheckOFDResponse [07:51:03]1017 (14) - 77093643461234 [07:51:03]1041 (16) - 0000000000959362 [07:51:03]1040 (4) - 19559 [07:51:03]1012 (4) - 21.09.2024 01:46 [07:51:03]1206 (1) - 0 [07:51:03]OFD Sender: Remove packet 19559 [07:51:03]ProducePacketName [07:51:03]name=ofd_packets/00019559 [07:51:03]NVStorageDeleteData [07:51:03]Read from MH i2c: 01 [07:51:03]MH_I2C_Read... [07:51:03]*** Stop cut motor [07:51:03]*** Cut end [07:51:03]Read from MH i2c: 01 07 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [07:51:03]process_action close_receipt done [07:51:03]requested_data is exist [07:51:03]produce_requested_data [07:51:03]requested_item fm.sn is exist - process it [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 11 00 00 [07:51:03]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 A2 [07:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:51:03]wFMCommunicate OK [07:51:03]requested_item fd.num is exist - process it [07:51:03]SAM_PROTO_GetFieldsCounters [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 13 00 00 [07:51:03]Write to MH i2c: E2 08 00 D2 02 80 13 00 00 00 00 00 00 50 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 62 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 62 00 D2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 67 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [07:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 67 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:03]wFMCommunicate OK [07:51:03]SAM_PROTO_GetFieldsCounters done [07:51:03]requested_item shift.num is exist - process it [07:51:03]requested_item shift.opened is exist - process it [07:51:03]req_shift_opened [07:51:03]FM_GetShiftState [07:51:03]SAM_PROTO_GetShiftState [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 13 01 00 [07:51:03]Write to MH i2c: E2 08 00 D3 02 80 13 01 00 00 00 00 00 52 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0E 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0E 00 D3 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 D8 [07:51:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:51:03]wFMCommunicate OK [07:51:03]SAM_PROTO_GetShiftState done [07:51:03]FM_GetShiftState done [07:51:03]req_shift_opened done [07:51:03]requested_item shift.open_date is exist - process it [07:51:03]req_shift_open_date [07:51:03]req_shift_open_date done [07:51:03]produce_requested_data done [07:51:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19559,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [07:51:03]process_action_free close_receipt [07:51:03]json_value_free [07:51:03]json_value_free done [07:51:03]process_json_proto returns [07:51:03]Send response to host [07:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19559,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [07:51:03]free response buf [07:51:03]execute_script done [07:51:03]execute_script returns [07:51:03]free content buf [07:51:03]Sock 8.Close socket [07:51:03]Sock 8.Thread stoped [07:51:03]OFD Sender: No OFD packet to send [07:51:08]recv_with_timeout no data received [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:17]accept exits with 9 [07:52:17]New connection [07:52:17]New thread 3067252068 created [07:52:17]Thread 3067395428 joined [07:52:17]Waiting for new connection... [07:52:17] Sock 9.Parse request [07:52:17]Sock 9.Check first char [07:52:17]Sock 9.First char is OK [07:52:17]request: POST /json_proto HTTP/1.0 [07:52:17]Method: POST [07:52:17]URL: /json_proto [07:52:17]Method is POST - this is cgi request [07:52:17]url: /json_proto [07:52:17]query_string will be loaded in cgi processing [07:52:17]execute_cgi json_proto POST (null) [07:52:17]execute_cgi path=json_proto method=POST [07:52:17]POST find Content-Length [07:52:17]Host: 172.17.42.73:8080 [07:52:17]Content-Length: 679 [07:52:17]Content-Type: application/json [07:52:17] [07:52:17]POST finish read [07:52:17]Found Content-Length = 679 [07:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:17]execute_script... [07:52:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:17]POST & json_proto [07:52:17]process_json_proto [07:52:17]json parsed OK: [07:52:17]protocol is kg_v1.0 [07:52:17]action value=close_receipt [07:52:17]process_action close_receipt [07:52:17]cmd_close_receipt [07:52:17]MH_GetDate [07:52:17]Write to MH i2c: F0 00 00 D4 02 C5 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 09 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 09 00 D4 02 00 33 7B EE 66 99 54 47 66 6A [07:52:17]GetLastDocTimeStamp 1726905061 [07:52:17]current date 1726905139 [07:52:17]FM_GetShiftState [07:52:17]SAM_PROTO_GetShiftState [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 13 01 00 [07:52:17]Write to MH i2c: E2 08 00 D5 02 80 13 01 00 00 00 00 00 54 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0E 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0E 00 D5 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 DA [07:52:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_GetShiftState done [07:52:17]FM_GetShiftState done [07:52:17]opened in 1726877463 [07:52:17]opened+sec_in_day 1726963863 [07:52:17]quantity*price = 60003 [07:52:17]sum+1 = 60004 [07:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 10 21.09.2024 07:52 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19560 ФПД: 250452603016801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075219&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19560&fm=250452603016801&tin=02508201610067®Number=0000000000146239&sum=60000 [07:52:18]StoreToDocumentArchive [07:52:18]shift 232 fd 19560 [07:52:18]save to /storage/0232/doc_00019560 [07:52:18]save last doc name /storage/0232/doc_00019560 to /storage/kkm_last_doc_name [07:52:18]save OK [07:52:18]Clear old archive folders... [07:52:18]OFD Sender: No OFD packet to send [07:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:18]tlvbuf is 01DF5490 [07:52:18]SAM_PROTO_ClearQueue [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 09 00 00 [07:52:18]Write to MH i2c: E2 08 00 E2 02 80 09 00 00 00 00 00 00 56 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]SAM_PROTO_ClearQueue done [07:52:18]KKMCreateOFDPacket [07:52:18]OFDProtocolAddRootSTLVToBuf [07:52:18]FM_MakeSignedData [07:52:18]FM_MakeSignedData [07:52:18]SAM_PROTO_SignData [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 01 02 [07:52:18]Write to MH i2c: E2 08 00 E3 02 80 0D 01 02 00 00 00 00 5E [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=255 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 7B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 68 4C 00 00 35 04 06 00 E3 [07:52:19]Write to MH i2c: E2 02 01 E4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 7B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 68 4C 00 00 35 04 06 00 E3 00 00 31 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [07:52:19]RAPDU: 90 00 [07:52:19]wFMCommunicate OK [07:52:19]wFMCommunicate request_size=10 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 0D 02 02 05 C9 0A 6F 96 61 [07:52:19]Write to MH i2c: E2 0D 00 E5 02 80 0D 02 02 05 00 C9 0A 6F 96 61 00 00 A4 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [07:52:19]RAPDU: 90 00 [07:52:19]wFMCommunicate OK [07:52:19]wFMCommunicate request_size=4 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 0D 03 02 [07:52:19]Write to MH i2c: E2 08 00 E6 02 80 0D 03 02 00 00 00 00 63 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 0B 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 0B 00 E6 02 00 AC 86 F6 5E 6F 97 31 0B 90 00 2C [07:52:19]RAPDU: AC 86 F6 5E 6F 97 31 0B 90 00 [07:52:19]wFMCommunicate OK [07:52:19]SAM_PROTO_SignData done [07:52:19]FM_MakeSignedData done [07:52:19]CreateOFDProtocolMessage [07:52:19]wFMCommunicate request_size=4 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 11 00 00 [07:52:19]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 17 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 B8 [07:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:52:19]wFMCommunicate OK [07:52:19]CreateOFDProtocolMessage done [07:52:19]OFDSenderStorePacket 19560 [07:52:19]StoreOFDPacket docnum=19560 [07:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 3B 55 07 01 E3 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 7B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 68 4C 00 00 35 04 06 00 E3 C9 0A 6F 96 61 AC 86 F6 5E 6F 97 31 0B [07:52:19]CheckFolder [07:52:19]dirname=/storage/ofd_packets [07:52:19]CheckFolder done [07:52:19]ProducePacketName [07:52:19]name=ofd_packets/00019560 [07:52:19]NVStorageSaveData ofd_packets/00019560 [07:52:19]File name is /storage/ofd_packets/00019560 [07:52:19]Write 301 bytes [07:52:19]NVStorageSaveData done [07:52:19]OFDSenderStorePacket done [07:52:19]KKMCreateOFDPacket done [07:52:19]NVStorageSaveData kkm_last_timestamp [07:52:19]File name is /storage/kkm_last_timestamp [07:52:19]Write 4 bytes [07:52:19]NVStorageSaveData done [07:52:19]ExternCall_PrintAddStr [07:52:19]wPrintStart [07:52:19]Write to MH i2c: 01 00 00 E8 02 EA [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 FF 0F FF [07:52:19]RasterBufferAndPrint [07:52:19]line Счет N : (1)23699513 [07:52:19]line ИНН: 02508201610067 [07:52:19]line Контрольно-Кассовый Чек [07:52:19]line ПРОДАЖА [07:52:19]line ТРК (МРК, ГНК) : 22 [07:52:19]line Товар: 2710124130 [07:52:19]line Аи-92-К-5 [07:52:19]line 8.850 * 67.80 [07:52:19]line = 600.03 [07:52:19]line НДС 12% НСП 1% [07:52:19]line > о реализуемом товаре [07:52:19]line ОКРУГЛЕНИЕ: -0.03 [07:52:19]line ИТОГО: 600.00 [07:52:19]line Внесено: 600.00 [07:52:19]line СДАЧА: 0.00 [07:52:19]line НСП 1% : 5.31 [07:52:19]line НДС 12% : 63.72 [07:52:19]line Наличными: 600.00 [07:52:19]line Безнал.: 0.00 [07:52:19]line Место: АЗС № 93 "Партнер Нефть" [07:52:19]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [07:52:19]line СНО: Общий режим [07:52:19]line Чек 10 21.09.2024 07:52 [07:52:19]line Смена: 232 ФФД: 1.0 [07:52:19]line ЗНМ: 0300000060 [07:52:19]line РНМ: 0000000000146239 [07:52:19]line Версия ККМ: v1.0 [07:52:19]line ФМ: 0000000000959362 [07:52:19]line ФД: 19560 [07:52:19]line ФПД: 250452603016801 [07:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075219&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19560&fm=250452603016801&tin=02508201610067®Number=0000000000146239&sum=60000 [07:52:19]OFD Sender: Processing packet 19560 [packets to send 63, broken 62] [07:52:19]ProducePacketName [07:52:19]name=ofd_packets/00019560 [07:52:19]OFD Sender: To server: pG, [07:52:19]CommunicateWithHost lk.salyk.kg:30040 [07:52:19]ConnectInit lk.salyk.kg [07:52:19]written 0, free lines is 4095 [07:52:20]Write to MH i2c: 01 00 00 13 03 16 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 7F 0C A8 [07:52:20]RasterBufferAndPrint [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]written 0, free lines is 3202 [07:52:20]MH_Cut [07:52:20]Write to MH i2c: D1 01 00 1A 03 01 EF [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 01 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 01 00 1A 03 00 EE [07:52:20]Write to MH i2c: 01 00 00 1B 03 1E [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]Connected sock=10 [07:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 3B 55 07 01 E3 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 7B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 68 4C 00 00 35 04 06 00 E3 C9 0A 6F 96 61 AC 86 F6 5E 6F 97 31 0B [07:52:21]*** Cut start [07:52:21]*** Partial cut [07:52:21]*** CUTSNS_PIN = 1 [07:52:21]*** CUTSNS_PIN = 0 [07:52:21]*** Brake cut motor [07:52:21]Read from MH i2c: 01 [07:52:21]MH_I2C_Read... [07:52:21]*** Stop cut motor [07:52:21]*** Cut end [07:52:21]Read from MH i2c: 01 07 00 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [07:52:21]process_action close_receipt done [07:52:21]requested_data is exist [07:52:21]produce_requested_data [07:52:21]requested_item fm.sn is exist - process it [07:52:21]wFMCommunicate request_size=4 [07:52:21]MH_SAM_APDU [07:52:21]CAPDU: 80 11 00 00 [07:52:21]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [07:52:21]Write i2c OK [07:52:21]MH_I2C_Read... [07:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:21]Read from MH i2c: E2 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: E2 17 00 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 EE [07:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:52:21]wFMCommunicate OK [07:52:21]requested_item fd.num is exist - process it [07:52:21]SAM_PROTO_GetFieldsCounters [07:52:21]wFMCommunicate request_size=4 [07:52:21]MH_SAM_APDU [07:52:21]CAPDU: 80 13 00 00 [07:52:21]Write to MH i2c: E2 08 00 1D 03 80 13 00 00 00 00 00 00 9C [07:52:21]Write i2c OK [07:52:21]MH_I2C_Read... [07:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 62 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 62 00 1D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 68 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [07:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 68 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:22]wFMCommunicate OK [07:52:22]SAM_PROTO_GetFieldsCounters done [07:52:22]requested_item shift.num is exist - process it [07:52:22]requested_item shift.opened is exist - process it [07:52:22]req_shift_opened [07:52:22]FM_GetShiftState [07:52:22]SAM_PROTO_GetShiftState [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 13 01 00 [07:52:22]Write to MH i2c: E2 08 00 1E 03 80 13 01 00 00 00 00 00 9E [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 0E 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 0E 00 1E 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 24 [07:52:22]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:52:22]wFMCommunicate OK [07:52:22]SAM_PROTO_GetShiftState done [07:52:22]FM_GetShiftState done [07:52:22]req_shift_opened done [07:52:22]requested_item shift.open_date is exist - process it [07:52:22]req_shift_open_date [07:52:22]req_shift_open_date done [07:52:22]produce_requested_data done [07:52:22]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19560,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [07:52:22]process_action_free close_receipt [07:52:22]json_value_free [07:52:22]json_value_free done [07:52:22]process_json_proto returns [07:52:22]Send response to host [07:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19560,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [07:52:22]free response buf [07:52:22]execute_script done [07:52:22]execute_script returns [07:52:22]free content buf [07:52:22]Sock 9.Close socket [07:52:22]Sock 9.Thread stoped [07:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 E2 E9 47 00 58 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 39 35 39 33 36 32 10 04 04 00 68 4C 00 00 F4 03 04 00 CF 25 EE 66 B6 04 01 00 00 67 28 E4 DA 8D A4 02 FB [07:52:22]CommunicateWithHost err = 0 [07:52:22]CheckOFDResponse [07:52:22]1017 (14) - 77093643461234 [07:52:22]1041 (16) - 0000000000959362 [07:52:22]1040 (4) - 19560 [07:52:22]1012 (4) - 21.09.2024 01:47 [07:52:22]1206 (1) - 0 [07:52:22]OFD Sender: Remove packet 19560 [07:52:22]ProducePacketName [07:52:22]name=ofd_packets/00019560 [07:52:22]NVStorageDeleteData [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:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]recv_with_timeout no data received [07:56:17]OFD Sender: No OFD packet to send [07:56:22]accept exits with 8 [07:56:22]New connection [07:56:22]New thread 3067395428 created [07:56:22]Thread 3067252068 joined [07:56:22]Waiting for new connection... [07:56:22] Sock 8.Parse request [07:56:22]Sock 8.Check first char [07:56:22]Sock 8.First char is OK [07:56:22]request: POST /json_proto HTTP/1.0 [07:56:22]Method: POST [07:56:22]URL: /json_proto [07:56:22]Method is POST - this is cgi request [07:56:22]url: /json_proto [07:56:22]query_string will be loaded in cgi processing [07:56:22]execute_cgi json_proto POST (null) [07:56:22]execute_cgi path=json_proto method=POST [07:56:22]POST find Content-Length [07:56:22]Host: 172.17.42.73:8080 [07:56:22]Content-Length: 768 [07:56:22]Content-Type: application/json [07:56:22] [07:56:22]POST finish read [07:56:22]Found Content-Length = 768 [07:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:22]execute_script... [07:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:22]POST & json_proto [07:56:22]process_json_proto [07:56:22]json parsed OK: [07:56:22]protocol is kg_v1.0 [07:56:22]action value=close_receipt [07:56:22]process_action close_receipt [07:56:22]cmd_close_receipt [07:56:22]MH_GetDate [07:56:22]Write to MH i2c: F0 00 00 1F 03 11 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: F0 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: F0 09 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: F0 09 00 1F 03 00 28 7C EE 66 99 54 47 66 AC [07:56:22]GetLastDocTimeStamp 1726905139 [07:56:22]current date 1726905384 [07:56:22]FM_GetShiftState [07:56:22]SAM_PROTO_GetShiftState [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 13 01 00 [07:56:22]Write to MH i2c: E2 08 00 20 03 80 13 01 00 00 00 00 00 A0 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0E 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0E 00 20 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 26 [07:56:22]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:56:22]wFMCommunicate OK [07:56:22]SAM_PROTO_GetShiftState done [07:56:22]FM_GetShiftState done [07:56:22]opened in 1726877463 [07:56:22]opened+sec_in_day 1726963863 [07:56:22]quantity*price = 60003 [07:56:22]sum+1 = 60004 [07:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 11 21.09.2024 07:56 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19561 ФПД: 83629559828270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075624&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19561&fm=83629559828270&tin=02508201610067®Number=0000000000146239&sum=60003 [07:56:23]StoreToDocumentArchive [07:56:23]shift 232 fd 19561 [07:56:23]save to /storage/0232/doc_00019561 [07:56:23]save last doc name /storage/0232/doc_00019561 to /storage/kkm_last_doc_name [07:56:23]save OK [07:56:23]Clear old archive folders... [07:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:23]tlvbuf is 01DCFE40 [07:56:23]SAM_PROTO_ClearQueue [07:56:23]wFMCommunicate request_size=4 [07:56:23]MH_SAM_APDU [07:56:23]CAPDU: 80 09 00 00 [07:56:23]Write to MH i2c: E2 08 00 2D 03 80 09 00 00 00 00 00 00 A2 [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:23]Read from MH i2c: E2 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [07:56:23]RAPDU: 90 00 [07:56:23]wFMCommunicate OK [07:56:23]SAM_PROTO_ClearQueue done [07:56:23]KKMCreateOFDPacket [07:56:23]OFDProtocolAddRootSTLVToBuf [07:56:23]FM_MakeSignedData [07:56:23]FM_MakeSignedData [07:56:23]SAM_PROTO_SignData [07:56:23]wFMCommunicate request_size=4 [07:56:23]MH_SAM_APDU [07:56:23]CAPDU: 80 0D 01 02 [07:56:23]Write to MH i2c: E2 08 00 2E 03 80 0D 01 02 00 00 00 00 AA [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:23]Read from MH i2c: E2 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [07:56:23]RAPDU: 90 00 [07:56:23]wFMCommunicate OK [07:56:23]wFMCommunicate request_size=255 [07:56:23]MH_SAM_APDU [07:56:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 28 7C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 69 4C 00 00 35 04 06 00 4C [07:56:23]Write to MH i2c: E2 02 01 2F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 28 7C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 69 4C 00 00 35 04 06 00 4C 00 00 E4 [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:23]Read from MH i2c: E2 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [07:56:23]RAPDU: 90 00 [07:56:23]wFMCommunicate OK [07:56:23]wFMCommunicate request_size=10 [07:56:23]MH_SAM_APDU [07:56:23]CAPDU: 80 0D 02 02 05 0F 86 34 CF 2E [07:56:23]Write to MH i2c: E2 0D 00 30 03 80 0D 02 02 05 00 0F 86 34 CF 2E 00 00 7D [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:23]Read from MH i2c: E2 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: E2 03 00 30 03 00 90 00 A7 [07:56:23]RAPDU: 90 00 [07:56:23]wFMCommunicate OK [07:56:23]wFMCommunicate request_size=4 [07:56:23]MH_SAM_APDU [07:56:23]CAPDU: 80 0D 03 02 [07:56:23]Write to MH i2c: E2 08 00 31 03 80 0D 03 02 00 00 00 00 AF [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0B 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0B 00 31 03 00 EC FD 67 C6 39 68 D9 51 90 00 91 [07:56:24]RAPDU: EC FD 67 C6 39 68 D9 51 90 00 [07:56:24]wFMCommunicate OK [07:56:24]SAM_PROTO_SignData done [07:56:24]FM_MakeSignedData done [07:56:24]CreateOFDProtocolMessage [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 11 00 00 [07:56:24]Write to MH i2c: E2 08 00 32 03 80 11 00 00 00 00 00 00 AF [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 32 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 04 [07:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:56:24]wFMCommunicate OK [07:56:24]CreateOFDProtocolMessage done [07:56:24]OFDSenderStorePacket 19561 [07:56:24]StoreOFDPacket docnum=19561 [07:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 BA 03 07 01 D7 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 28 7C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 69 4C 00 00 35 04 06 00 4C 0F 86 34 CF 2E EC FD 67 C6 39 68 D9 51 [07:56:24]CheckFolder [07:56:24]dirname=/storage/ofd_packets [07:56:24]CheckFolder done [07:56:24]ProducePacketName [07:56:24]name=ofd_packets/00019561 [07:56:24]NVStorageSaveData ofd_packets/00019561 [07:56:24]File name is /storage/ofd_packets/00019561 [07:56:24]Write 301 bytes [07:56:24]NVStorageSaveData done [07:56:24]OFDSenderStorePacket done [07:56:24]KKMCreateOFDPacket done [07:56:24]NVStorageSaveData kkm_last_timestamp [07:56:24]File name is /storage/kkm_last_timestamp [07:56:24]Write 4 bytes [07:56:24]NVStorageSaveData done [07:56:24]ExternCall_PrintAddStr [07:56:24]wPrintStart [07:56:24]Write to MH i2c: 01 00 00 33 03 36 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [07:56:24]RasterBufferAndPrint [07:56:24]line Счет N : (1)23699516 [07:56:24]line ИНН: 02508201610067 [07:56:24]line Контрольно-Кассовый Чек [07:56:24]line ПРОДАЖА [07:56:24]line ТРК (МРК, ГНК) : 12 [07:56:24]line Товар: 2710124130 [07:56:24]line Аи-92-К-5 [07:56:24]line 8.850 * 67.80 [07:56:24]line = 600.03 [07:56:24]line НДС 12% НСП 1% [07:56:24]line > о реализуемом товаре [07:56:24]line ИТОГО: 600.03 [07:56:24]line НСП 1% : 5.31 [07:56:24]line НДС 12% : 63.72 [07:56:24]line Наличными: 0.00 [07:56:24]line Безнал.: 600.03 [07:56:24]line Место: АЗС № 93 "Партнер Нефть" [07:56:24]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [07:56:24]line СНО: Общий режим [07:56:24]line Чек 11 21.09.2024 07:56 [07:56:24]line Смена: 232 ФФД: 1.0 [07:56:24]line ЗНМ: 0300000060 [07:56:24]line РНМ: 0000000000146239 [07:56:24]line Версия ККМ: v1.0 [07:56:24]line Платежная система: Mbank [07:56:24]line ФМ: 0000000000959362 [07:56:24]line ФД: 19561 [07:56:24]line ФПД: 83629559828270 [07:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T075624&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19561&fm=83629559828270&tin=02508201610067®Number=0000000000146239&sum=60003 [07:56:24]OFD Sender: Processing packet 19561 [packets to send 63, broken 62] [07:56:24]ProducePacketName [07:56:24]name=ofd_packets/00019561 [07:56:24]OFD Sender: To server: pG, [07:56:24]CommunicateWithHost lk.salyk.kg:30040 [07:56:24]ConnectInit lk.salyk.kg [07:56:24]written 0, free lines is 4095 [07:56:24]Write to MH i2c: 01 00 00 5C 03 5F [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 B1 0C 23 [07:56:24]RasterBufferAndPrint [07:56:24]line [07:56:24]line [07:56:24]line [07:56:24]line [07:56:24]line [07:56:24]written 0, free lines is 3252 [07:56:24]MH_Cut [07:56:24]Write to MH i2c: D1 01 00 63 03 01 38 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: D1 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: D1 01 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: D1 01 00 63 03 00 37 [07:56:24]Write to MH i2c: 01 00 00 64 03 67 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:25]Connected sock=11 [07:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 BA 03 07 01 D7 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 28 7C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 69 4C 00 00 35 04 06 00 4C 0F 86 34 CF 2E EC FD 67 C6 39 68 D9 51 [07:56:25]*** Cut start [07:56:25]*** Partial cut [07:56:25]*** CUTSNS_PIN = 1 [07:56:25]*** CUTSNS_PIN = 0 [07:56:26]*** Brake cut motor [07:56:26]Read from MH i2c: 01 [07:56:26]MH_I2C_Read... [07:56:26]*** Stop cut motor [07:56:26]*** Cut end [07:56:26]Read from MH i2c: 01 07 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [07:56:26]process_action close_receipt done [07:56:26]requested_data is exist [07:56:26]produce_requested_data [07:56:26]requested_item fm.sn is exist - process it [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 11 00 00 [07:56:26]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 17 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 37 [07:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [07:56:26]wFMCommunicate OK [07:56:26]requested_item fd.num is exist - process it [07:56:26]SAM_PROTO_GetFieldsCounters [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 13 00 00 [07:56:26]Write to MH i2c: E2 08 00 66 03 80 13 00 00 00 00 00 00 E5 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 62 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 62 00 66 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 69 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [07:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 69 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:26]wFMCommunicate OK [07:56:26]SAM_PROTO_GetFieldsCounters done [07:56:26]requested_item shift.num is exist - process it [07:56:26]requested_item shift.opened is exist - process it [07:56:26]req_shift_opened [07:56:26]FM_GetShiftState [07:56:26]SAM_PROTO_GetShiftState [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 13 01 00 [07:56:26]Write to MH i2c: E2 08 00 67 03 80 13 01 00 00 00 00 00 E7 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 67 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6D [07:56:26]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [07:56:26]wFMCommunicate OK [07:56:26]SAM_PROTO_GetShiftState done [07:56:26]FM_GetShiftState done [07:56:26]req_shift_opened done [07:56:26]requested_item shift.open_date is exist - process it [07:56:26]req_shift_open_date [07:56:26]req_shift_open_date done [07:56:26]produce_requested_data done [07:56:26]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19561,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [07:56:26]process_action_free close_receipt [07:56:26]json_value_free [07:56:26]json_value_free done [07:56:26]process_json_proto returns [07:56:26]Send response to host [07:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19561,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [07:56:26]free response buf [07:56:26]execute_script done [07:56:26]execute_script returns [07:56:26]free content buf [07:56:26]Sock 8.Close socket [07:56:26]Sock 8.Thread stoped [07:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A4 99 47 00 9D DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 69 4C 00 00 F4 03 04 00 C4 26 EE 66 B6 04 01 00 00 BB 0E 33 21 C9 00 0C 3E [07:56:27]CommunicateWithHost err = 0 [07:56:27]CheckOFDResponse [07:56:27]1017 (14) - 77093643461234 [07:56:27]1041 (16) - 0000000000959362 [07:56:27]1040 (4) - 19561 [07:56:27]1012 (4) - 21.09.2024 01:52 [07:56:27]1206 (1) - 0 [07:56:27]OFD Sender: Remove packet 19561 [07:56:27]ProducePacketName [07:56:27]name=ofd_packets/00019561 [07:56:27]NVStorageDeleteData [07:56:27]OFD Sender: No OFD packet to send [07:56:28]recv_with_timeout no data received [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]recv_with_timeout no data received [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:14]recv_with_timeout no data received [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:40]int [08:00:40]Write to MH i2c: 01 00 00 68 03 6B [08:00:40]*** FLAG_PRN_KEY set [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 68 03 00 08 00 00 00 FF 0F 88 [08:00:40]state=0 [08:00:40]Key pressed [08:00:40]Feed [08:00:40]Write to MH i2c: D8 00 00 69 03 43 [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D8 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D8 01 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D8 01 00 69 03 00 44 [08:00:40]int [08:00:40]Write to MH i2c: 01 00 00 6A 03 6D [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 6A 03 00 48 00 00 00 3C 00 F8 [08:00:40]state=2 [08:00:40]Key pressed [08:00:40]int [08:00:40]Write to MH i2c: 01 00 00 6B 03 6E [08:00:40]*** FLAG_PRN_KEY reset [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 F6 0F 7A [08:00:40]state=2 [08:00:40]Stop feed [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]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:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:27]recv_with_timeout no data received [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:13]recv_with_timeout no data received [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:32]recv_with_timeout no data received [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:12]recv_with_timeout no data received [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:29]recv_with_timeout no data received [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:14]recv_with_timeout no data received [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:04]recv_with_timeout no data received [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:47]recv_with_timeout no data received [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:50]recv_with_timeout no data received [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:05]recv_with_timeout no data received [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:21]accept exits with 9 [08:19:21]New connection [08:19:21]New thread 3067252068 created [08:19:21]Thread 3067395428 joined [08:19:21]Waiting for new connection... [08:19:21] Sock 9.Parse request [08:19:21]Sock 9.Check first char [08:19:21]Sock 9.First char is OK [08:19:21]request: POST /json_proto HTTP/1.0 [08:19:21]Method: POST [08:19:21]URL: /json_proto [08:19:21]Method is POST - this is cgi request [08:19:21]url: /json_proto [08:19:21]query_string will be loaded in cgi processing [08:19:21]execute_cgi json_proto POST (null) [08:19:21]execute_cgi path=json_proto method=POST [08:19:21]POST find Content-Length [08:19:21]Host: 172.17.42.73:8080 [08:19:21]Content-Length: 1943 [08:19:21]Content-Type: application/json [08:19:21] [08:19:21]POST finish read [08:19:21]Found Content-Length = 1943 [08:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117490", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 694.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:21]execute_script... [08:19: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)117490", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 694.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:21]POST & json_proto [08:19:21]process_json_proto [08:19:21]json parsed OK: [08:19:21]protocol is kg_v1.0 [08:19:21]action value=close_receipt [08:19:21]process_action close_receipt [08:19:21]cmd_close_receipt [08:19:21]MH_GetDate [08:19:21]Write to MH i2c: F0 00 00 6C 03 5E [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: F0 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: F0 09 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: F0 09 00 6C 03 00 8B 81 EE 66 99 54 47 66 61 [08:19:21]GetLastDocTimeStamp 1726905384 [08:19:21]current date 1726906763 [08:19:21]FM_GetShiftState [08:19:21]SAM_PROTO_GetShiftState [08:19:21]wFMCommunicate request_size=4 [08:19:21]MH_SAM_APDU [08:19:21]CAPDU: 80 13 01 00 [08:19:21]Write to MH i2c: E2 08 00 6D 03 80 13 01 00 00 00 00 00 ED [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:22]Read from MH i2c: E2 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 6D 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 73 [08:19:22]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:19:22]wFMCommunicate OK [08:19:22]SAM_PROTO_GetShiftState done [08:19:22]FM_GetShiftState done [08:19:22]opened in 1726877463 [08:19:22]opened+sec_in_day 1726963863 [08:19:22]quantity*price = 9000 [08:19:22]sum+1 = 9001 [08:19:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650063110756 Масло Gazpromneft Super 10w40 1л 1.000 * 405.00 = 405.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 1.000 * 17.00 = 17.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 694.00 НСП 1% : 6.14 НДС 12% : 73.69 Наличными: 694.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 12 21.09.2024 08:19 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19562 ФПД: 245753753360105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T081923&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19562&fm=245753753360105&tin=02508201610067®Number=0000000000146239&sum=69400 0 [08:19:23]StoreToDocumentArchive [08:19:23]shift 232 fd 19562 [08:19:23]save to /storage/0232/doc_00019562 [08:19:23]save last doc name /storage/0232/doc_00019562 to /storage/kkm_last_doc_name [08:19:23]save OK [08:19:23]Clear old archive folders... [08:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=837 [08:19:23]tlvbuf is 01DD1730 [08:19:23]SAM_PROTO_ClearQueue [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 09 00 00 [08:19:23]Write to MH i2c: E2 08 00 7A 03 80 09 00 00 00 00 00 00 EF [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [08:19:23]RAPDU: 90 00 [08:19:23]wFMCommunicate OK [08:19:23]SAM_PROTO_ClearQueue done [08:19:23]KKMCreateOFDPacket [08:19:23]OFDProtocolAddRootSTLVToBuf [08:19:23]FM_MakeSignedData [08:19:23]FM_MakeSignedData [08:19:23]SAM_PROTO_SignData [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 0D 01 02 [08:19:23]Write to MH i2c: E2 08 00 7B 03 80 0D 01 02 00 00 00 00 F7 [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [08:19:23]RAPDU: 90 00 [08:19:23]wFMCommunicate OK [08:19:23]wFMCommunicate request_size=255 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 0D 02 02 FA 03 00 45 03 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 [08:19:23]Write to MH i2c: E2 02 01 7C 03 80 0D 02 02 FA 00 03 00 45 03 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 00 00 D4 [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [08:19:23]RAPDU: 90 00 [08:19:23]wFMCommunicate OK [08:19:23]wFMCommunicate request_size=255 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 0D 02 02 FA 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 68 10 00 00 00 00 13 04 06 00 68 10 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 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 [08:19:23]Write to MH i2c: E2 02 01 7D 03 80 0D 02 02 FA 00 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 68 10 00 00 00 00 13 04 06 00 68 10 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 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 00 00 09 [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]OFD Sender: No OFD packet to send [08:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [08:19:24]RAPDU: 90 00 [08:19:24]wFMCommunicate OK [08:19:24]wFMCommunicate request_size=255 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 0D 02 02 FA 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 [08:19:24]Write to MH i2c: E2 02 01 7E 03 80 0D 02 02 FA 00 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 00 00 37 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [08:19:24]RAPDU: 90 00 [08:19:24]wFMCommunicate OK [08:19:24]wFMCommunicate request_size=96 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 0D 02 02 5B 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6A 4C 00 00 35 04 06 00 DF 83 01 2B D6 E9 [08:19:24]Write to MH i2c: E2 63 00 7F 03 80 0D 02 02 5B 00 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6A 4C 00 00 35 04 06 00 DF 83 01 2B D6 E9 00 00 CE [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [08:19:24]RAPDU: 90 00 [08:19:24]wFMCommunicate OK [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 0D 03 02 [08:19:24]Write to MH i2c: E2 08 00 80 03 80 0D 03 02 00 00 00 00 FE [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0B 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0B 00 80 03 00 32 C7 A2 E1 4C 6C F1 85 90 00 A9 [08:19:24]RAPDU: 32 C7 A2 E1 4C 6C F1 85 90 00 [08:19:24]wFMCommunicate OK [08:19:24]SAM_PROTO_SignData done [08:19:24]FM_MakeSignedData done [08:19:24]CreateOFDProtocolMessage [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 11 00 00 [08:19:24]Write to MH i2c: E2 08 00 81 03 80 11 00 00 00 00 00 00 FE [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 17 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 17 00 81 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 53 [08:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:19:24]wFMCommunicate OK [08:19:24]CreateOFDProtocolMessage done [08:19:24]OFDSenderStorePacket 19562 [08:19:24]StoreOFDPacket docnum=19562 [08:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 59 03 00 00 A6 DE 51 03 D3 F7 5A 03 01 00 03 00 45 03 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 68 10 00 00 00 00 13 04 06 00 68 10 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 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 1C 00 00 00 00 07 04 06 00 18 0F 01 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 8B 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6A 4C 00 00 35 04 06 00 DF 83 01 2B D6 E9 32 C7 A2 E1 4C 6C F1 85 [08:19:24]CheckFolder [08:19:24]dirname=/storage/ofd_packets [08:19:24]CheckFolder done [08:19:24]ProducePacketName [08:19:24]name=ofd_packets/00019562 [08:19:24]NVStorageSaveData ofd_packets/00019562 [08:19:24]File name is /storage/ofd_packets/00019562 [08:19:24]Write 887 bytes [08:19:24]NVStorageSaveData done [08:19:24]OFDSenderStorePacket done [08:19:24]KKMCreateOFDPacket done [08:19:24]NVStorageSaveData kkm_last_timestamp [08:19:24]File name is /storage/kkm_last_timestamp [08:19:24]Write 4 bytes [08:19:24]NVStorageSaveData done [08:19:24]ExternCall_PrintAddStr [08:19:24]wPrintStart [08:19:24]Write to MH i2c: 01 00 00 82 03 85 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 07 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [08:19:24]RasterBufferAndPrint [08:19:24]line Счет N : (3)117490 [08:19:24]line ИНН: 02508201610067 [08:19:24]line Контрольно-Кассовый Чек [08:19:24]line ПРОДАЖА [08:19:24]line Товар: 4870022003305 [08:19:24]line Напиток Gorilla эн нат ж/б 0,5/0,45л [08:19:24]line 1.000 * 90.00 [08:19:24]line = 90.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line Товар: 2000036220012 [08:19:24]line Кофе Капучино XL(GABB TRADE) [08:19:24]line 1.000 * 130.00 [08:19:24]line = 130.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line Товар: 5449000005489 [08:19:24]line Вода Бонаква 1л б/г [08:19:24]line 1.000 * 42.00 [08:19:24]line = 42.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line Товар: 4650063110756 [08:19:24]line Масло Gazpromneft Super 10w40 1л [08:19:24]line 1.000 * 405.00 [08:19:24]line = 405.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line Товар: 4620017451303 [08:19:24]line Кар.с жев.конф.Страйк 11.3г/50 [08:19:24]line 1.000 * 17.00 [08:19:24]line = 17.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line Товар: 46231529 [08:19:24]line Mentos ПФ Арбуз 6*100*2 [08:19:24]line 1.000 * 10.00 [08:19:24]line = 10.00 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line ИТОГО: 694.00 [08:19:24]line НСП 1% : 6.14 [08:19:24]line НДС 12% : 73.69 [08:19:24]line Наличными: 694.00 [08:19:24]line Безнал.: 0.00 [08:19:24]line Место: АЗС № 93 "Партнер Нефть" [08:19:24]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [08:19:24]line СНО: Общий режим [08:19:24]line Чек 12 21.09.2024 08:19 [08:19:24]line Смена: 232 ФФД: 1.0 [08:19:24]line ЗНМ: 0300000060 [08:19:24]line РНМ: 0000000000146239 [08:19:24]line Версия ККМ: v1.0 [08:19:24]line ФМ: 0000000000959362 [08:19:24]line ФД: 19562 [08:19:24]OFD Sender: Processing packet 19562 [packets to send 63, broken 62] [08:19:24]line ФПД: 245753753360105 [08:19:24]ProducePacketName [08:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T081923&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19562&fm=245753753360105&tin=02508201610067®Number=0000000000146239&sum=69400 [08:19:24]name=ofd_packets/00019562 [08:19:24]OFD Sender: To server: pG, [08:19:24]CommunicateWithHost lk.salyk.kg:30040 [08:19:24]ConnectInit lk.salyk.kg [08:19:24]line 0 [08:19:24]written 0, free lines is 4095 [08:19:25]Connected sock=10 [08:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 59 03 00 00 A6 DE 51 03 D3 F7 5A 03 01 00 03 00 45 03 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 68 10 00 00 00 00 13 04 06 00 68 10 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 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 1C 00 00 00 00 07 04 06 00 18 0F 01 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 8B 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6A 4C 00 00 35 04 06 00 DF 83 01 2B D6 E9 32 C7 A2 E1 4C 6C F1 85 [08:19:25]Write to MH i2c: 01 00 00 CC 03 CF [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 9B 0A 7B [08:19:25]RasterBufferAndPrint [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]written 0, free lines is 2722 [08:19:25]MH_Cut [08:19:25]Write to MH i2c: D1 01 00 D3 03 01 A8 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 01 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 01 00 D3 03 00 A7 [08:19:25]Write to MH i2c: 01 00 00 D4 03 D7 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 33 6B 47 00 13 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6A 4C 00 00 F4 03 04 00 27 2C EE 66 B6 04 01 00 00 C5 C6 E3 0D F7 C0 8C 7E [08:19:26]CommunicateWithHost err = 0 [08:19:26]CheckOFDResponse [08:19:26]1017 (14) - 77093643461234 [08:19:26]1041 (16) - 0000000000959362 [08:19:26]1040 (4) - 19562 [08:19:26]1012 (4) - 21.09.2024 02:15 [08:19:26]1206 (1) - 0 [08:19:26]OFD Sender: Remove packet 19562 [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00019562 [08:19:26]NVStorageDeleteData [08:19:27]OFD Sender: No OFD packet to send [08:19:27]*** Cut start [08:19:27]*** Partial cut [08:19:27]*** CUTSNS_PIN = 1 [08:19:27]*** CUTSNS_PIN = 0 [08:19:27]*** Brake cut motor [08:19:27]Read from MH i2c: 01 [08:19:27]MH_I2C_Read... [08:19:27]*** Stop cut motor [08:19:27]*** Cut end [08:19:27]Read from MH i2c: 01 07 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [08:19:27]process_action close_receipt done [08:19:27]requested_data is exist [08:19:27]produce_requested_data [08:19:27]requested_item fm.sn is exist - process it [08:19:27]wFMCommunicate request_size=4 [08:19:27]MH_SAM_APDU [08:19:27]CAPDU: 80 11 00 00 [08:19:27]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:27]Read from MH i2c: E2 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: E2 17 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 A7 [08:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:19:27]wFMCommunicate OK [08:19:27]requested_item fd.num is exist - process it [08:19:27]SAM_PROTO_GetFieldsCounters [08:19:27]wFMCommunicate request_size=4 [08:19:27]MH_SAM_APDU [08:19:27]CAPDU: 80 13 00 00 [08:19:27]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 D6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [08:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetFieldsCounters done [08:19:28]requested_item shift.num is exist - process it [08:19:28]requested_item shift.opened is exist - process it [08:19:28]req_shift_opened [08:19:28]FM_GetShiftState [08:19:28]SAM_PROTO_GetShiftState [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 01 00 [08:19:28]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 DD [08:19:28]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetShiftState done [08:19:28]FM_GetShiftState done [08:19:28]req_shift_opened done [08:19:28]requested_item shift.open_date is exist - process it [08:19:28]req_shift_open_date [08:19:28]req_shift_open_date done [08:19:28]produce_requested_data done [08:19:28]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19562,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [08:19:28]process_action_free close_receipt [08:19:28]json_value_free [08:19:28]json_value_free done [08:19:28]process_json_proto returns [08:19:28]Send response to host [08:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19562,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [08:19:28]free response buf [08:19:28]execute_script done [08:19:28]execute_script returns [08:19:28]free content buf [08:19:28]Sock 9.Close socket [08:19:28]Sock 9.Thread stoped [08:19:32]OFD Sender: No OFD packet to send [08:19:33]recv_with_timeout no data received [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:44]recv_with_timeout no data received [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:55]recv_with_timeout no data received [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:38]accept exits with 8 [08:20:38]New connection [08:20:38]New thread 3067395428 created [08:20:38]Thread 3067252068 joined [08:20:38]Waiting for new connection... [08:20:38] Sock 8.Parse request [08:20:38]Sock 8.Check first char [08:20:38]Sock 8.First char is OK [08:20:38]request: POST /json_proto HTTP/1.0 [08:20:38]Method: POST [08:20:38]URL: /json_proto [08:20:38]Method is POST - this is cgi request [08:20:38]url: /json_proto [08:20:38]query_string will be loaded in cgi processing [08:20:38]execute_cgi json_proto POST (null) [08:20:38]execute_cgi path=json_proto method=POST [08:20:38]POST find Content-Length [08:20:38]Host: 172.17.42.73:8080 [08:20:38]Content-Length: 645 [08:20:38]Content-Type: application/json [08:20:38] [08:20:38]POST finish read [08:20:38]Found Content-Length = 645 [08:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117491", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:38]execute_script... [08:20: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)117491", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:38]POST & json_proto [08:20:38]process_json_proto [08:20:38]json parsed OK: [08:20:38]protocol is kg_v1.0 [08:20:38]action value=close_receipt [08:20:38]process_action close_receipt [08:20:38]cmd_close_receipt [08:20:38]MH_GetDate [08:20:38]Write to MH i2c: F0 00 00 D8 03 CA [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: F0 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: F0 09 00 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: F0 09 00 D8 03 00 D8 81 EE 66 99 54 47 66 1A [08:20:38]GetLastDocTimeStamp 1726906763 [08:20:38]current date 1726906840 [08:20:38]FM_GetShiftState [08:20:38]SAM_PROTO_GetShiftState [08:20:38]wFMCommunicate request_size=4 [08:20:38]MH_SAM_APDU [08:20:38]CAPDU: 80 13 01 00 [08:20:38]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:38]Read from MH i2c: E2 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 0E 00 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 DF [08:20:38]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:20:38]wFMCommunicate OK [08:20:38]SAM_PROTO_GetShiftState done [08:20:38]FM_GetShiftState done [08:20:38]opened in 1726877463 [08:20:38]opened+sec_in_day 1726963863 [08:20:38]quantity*price = 6500 [08:20:38]sum+1 = 6501 [08:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 13 21.09.2024 08:20 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19563 ФПД: 226825764182847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T082040&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19563&fm=226825764182847&tin=02508201610067®Number=0000000000146239&sum=6500 0 [08:20:39]StoreToDocumentArchive [08:20:39]shift 232 fd 19563 [08:20:39]save to /storage/0232/doc_00019563 [08:20:39]save last doc name /storage/0232/doc_00019563 to /storage/kkm_last_doc_name [08:20:39]save OK [08:20:39]Clear old archive folders... [08:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:20:39]tlvbuf is 01DD73A0 [08:20:39]SAM_PROTO_ClearQueue [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 09 00 00 [08:20:39]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 03 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [08:20:39]RAPDU: 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_ClearQueue done [08:20:39]KKMCreateOFDPacket [08:20:39]OFDProtocolAddRootSTLVToBuf [08:20:39]FM_MakeSignedData [08:20:39]FM_MakeSignedData [08:20:39]SAM_PROTO_SignData [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 0D 01 02 [08:20:39]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 03 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [08:20:39]RAPDU: 90 00 [08:20:39]wFMCommunicate OK [08:20:39]wFMCommunicate request_size=255 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [08:20:39]Write to MH i2c: E2 02 01 E8 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 51 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=31 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 6B 4C 00 00 35 04 06 00 CE 4B FD 19 9B 3F [08:20:40]Write to MH i2c: E2 22 00 E9 03 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 6B 4C 00 00 35 04 06 00 CE 4B FD 19 9B 3F 00 00 53 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 0D 03 02 [08:20:40]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 0B 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 0B 00 EA 03 00 74 7D 50 14 84 23 D2 96 90 00 CD [08:20:40]RAPDU: 74 7D 50 14 84 23 D2 96 90 00 [08:20:40]wFMCommunicate OK [08:20:40]SAM_PROTO_SignData done [08:20:40]FM_MakeSignedData done [08:20:40]CreateOFDProtocolMessage [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 11 00 00 [08:20:40]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 17 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 BD [08:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:20:40]wFMCommunicate OK [08:20:40]CreateOFDProtocolMessage done [08:20:40]OFDSenderStorePacket 19563 [08:20:40]StoreOFDPacket docnum=19563 [08:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 A6 98 1C 01 0A 69 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6B 4C 00 00 35 04 06 00 CE 4B FD 19 9B 3F 74 7D 50 14 84 23 D2 96 [08:20:40]CheckFolder [08:20:40]dirname=/storage/ofd_packets [08:20:40]CheckFolder done [08:20:40]ProducePacketName [08:20:40]name=ofd_packets/00019563 [08:20:40]NVStorageSaveData ofd_packets/00019563 [08:20:40]File name is /storage/ofd_packets/00019563 [08:20:40]Write 322 bytes [08:20:40]NVStorageSaveData done [08:20:40]OFDSenderStorePacket done [08:20:40]KKMCreateOFDPacket done [08:20:40]NVStorageSaveData kkm_last_timestamp [08:20:40]File name is /storage/kkm_last_timestamp [08:20:40]Write 4 bytes [08:20:40]NVStorageSaveData done [08:20:40]ExternCall_PrintAddStr [08:20:40]wPrintStart [08:20:40]Write to MH i2c: 01 00 00 EC 03 EF [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: 01 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: 01 07 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [08:20:40]RasterBufferAndPrint [08:20:40]line Счет N : (3)117491 [08:20:40]line ИНН: 02508201610067 [08:20:40]line Контрольно-Кассовый Чек [08:20:40]line ПРОДАЖА [08:20:40]line Товар: 47011656 [08:20:40]line Водка Пшеничная 0,1л [08:20:40]line 1.000 * 65.00 [08:20:40]line = 65.00 [08:20:40]line НДС 12% НСП 1% [08:20:40]line > о реализуемом товаре [08:20:40]line ИТОГО: 65.00 [08:20:40]line НСП 1% : 0.57 [08:20:40]line НДС 12% : 6.90 [08:20:40]line Наличными: 65.00 [08:20:40]line Безнал.: 0.00 [08:20:40]line Место: АЗС № 93 "Партнер Нефть" [08:20:40]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [08:20:40]line СНО: Общий режим [08:20:40]line Чек 13 21.09.2024 08:20 [08:20:40]line Смена: 232 ФФД: 1.0 [08:20:40]line ЗНМ: 0300000060 [08:20:40]line РНМ: 0000000000146239 [08:20:40]line Версия ККМ: v1.0 [08:20:40]line ФМ: 0000000000959362 [08:20:40]line ФД: 19563 [08:20:40]line ФПД: 226825764182847 [08:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T082040&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19563&fm=226825764182847&tin=02508201610067®Number=0000000000146239&sum=6500 [08:20:40]line 0 [08:20:40]OFD Sender: Processing packet 19563 [packets to send 63, broken 62] [08:20:40]ProducePacketName [08:20:40]name=ofd_packets/00019563 [08:20:40]OFD Sender: To server: pG, [08:20:40]CommunicateWithHost lk.salyk.kg:30040 [08:20:40]ConnectInit lk.salyk.kg [08:20:40]written 0, free lines is 4095 [08:20:41]Write to MH i2c: 01 00 00 14 04 18 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 B5 0C E0 [08:20:41]RasterBufferAndPrint [08:20:41]line [08:20:41]line [08:20:41]line [08:20:41]line [08:20:41]line [08:20:41]written 0, free lines is 3256 [08:20:41]MH_Cut [08:20:41]Write to MH i2c: D1 01 00 1B 04 01 F1 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: D1 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: D1 01 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: D1 01 00 1B 04 00 F0 [08:20:41]Write to MH i2c: 01 00 00 1C 04 20 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Connected sock=10 [08:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 A6 98 1C 01 0A 69 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 81 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6B 4C 00 00 35 04 06 00 CE 4B FD 19 9B 3F 74 7D 50 14 84 23 D2 96 [08:20:42]*** Cut start [08:20:42]*** Partial cut [08:20:42]*** CUTSNS_PIN = 1 [08:20:42]*** CUTSNS_PIN = 0 [08:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 80 47 47 00 B0 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6B 4C 00 00 F4 03 04 00 73 2C EE 66 B6 04 01 00 00 2A ED E6 91 A1 F0 4A 37 [08:20:42]CommunicateWithHost err = 0 [08:20:42]CheckOFDResponse [08:20:42]1017 (14) - 77093643461234 [08:20:42]1041 (16) - 0000000000959362 [08:20:42]1040 (4) - 19563 [08:20:42]1012 (4) - 21.09.2024 02:16 [08:20:42]1206 (1) - 0 [08:20:42]OFD Sender: Remove packet 19563 [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00019563 [08:20:42]NVStorageDeleteData [08:20:42]*** Brake cut motor [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]*** Stop cut motor [08:20:42]*** Cut end [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [08:20:42]process_action close_receipt done [08:20:42]requested_data is exist [08:20:42]produce_requested_data [08:20:42]requested_item fm.sn is exist - process it [08:20:42]wFMCommunicate request_size=4 [08:20:42]MH_SAM_APDU [08:20:42]CAPDU: 80 11 00 00 [08:20:42]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:42]Read from MH i2c: E2 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 17 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F0 [08:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:20:42]wFMCommunicate OK [08:20:42]requested_item fd.num is exist - process it [08:20:42]SAM_PROTO_GetFieldsCounters [08:20:42]wFMCommunicate request_size=4 [08:20:42]MH_SAM_APDU [08:20:42]CAPDU: 80 13 00 00 [08:20:42]Write to MH i2c: E2 08 00 1E 04 80 13 00 00 00 00 00 00 9E [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]OFD Sender: No OFD packet to send [08:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:42]Read from MH i2c: E2 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 62 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 62 00 1E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [08:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:42]wFMCommunicate OK [08:20:42]SAM_PROTO_GetFieldsCounters done [08:20:42]requested_item shift.num is exist - process it [08:20:42]requested_item shift.opened is exist - process it [08:20:42]req_shift_opened [08:20:42]FM_GetShiftState [08:20:42]SAM_PROTO_GetShiftState [08:20:42]wFMCommunicate request_size=4 [08:20:42]MH_SAM_APDU [08:20:42]CAPDU: 80 13 01 00 [08:20:42]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:42]Read from MH i2c: E2 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 0E 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 26 [08:20:42]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:20:42]wFMCommunicate OK [08:20:42]SAM_PROTO_GetShiftState done [08:20:42]FM_GetShiftState done [08:20:42]req_shift_opened done [08:20:42]requested_item shift.open_date is exist - process it [08:20:42]req_shift_open_date [08:20:42]req_shift_open_date done [08:20:42]produce_requested_data done [08:20:42]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19563,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [08:20:42]process_action_free close_receipt [08:20:42]json_value_free [08:20:42]json_value_free done [08:20:42]process_json_proto returns [08:20:42]Send response to host [08:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19563,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [08:20:42]free response buf [08:20:42]execute_script done [08:20:42]execute_script returns [08:20:42]free content buf [08:20:42]Sock 8.Close socket [08:20:42]Sock 8.Thread stoped [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:20:58]recv_with_timeout no data received [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:13]recv_with_timeout no data received [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:39]recv_with_timeout no data received [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:00]recv_with_timeout no data received [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:38]accept exits with 9 [08:23:38]New connection [08:23:38]New thread 3067252068 created [08:23:38]Thread 3067395428 joined [08:23:38]Waiting for new connection... [08:23:38] Sock 9.Parse request [08:23:38]Sock 9.Check first char [08:23:38]Sock 9.First char is OK [08:23:38]request: POST /json_proto HTTP/1.0 [08:23:38]Method: POST [08:23:38]URL: /json_proto [08:23:38]Method is POST - this is cgi request [08:23:38]url: /json_proto [08:23:38]query_string will be loaded in cgi processing [08:23:38]execute_cgi json_proto POST (null) [08:23:38]execute_cgi path=json_proto method=POST [08:23:38]POST find Content-Length [08:23:38]Host: 172.17.42.73:8080 [08:23:38]Content-Length: 987 [08:23:38]Content-Type: application/json [08:23:38] [08:23:38]POST finish read [08:23:38]Found Content-Length = 987 [08:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 57.190, "sum" : 4300.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 57.19 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 4300.00, "payments": [ { "type": 0, "sum" : 4300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:38]execute_script... [08:23:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 57.190, "sum" : 4300.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 57.19 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 4300.00, "payments": [ { "type": 0, "sum" : 4300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:38]POST & json_proto [08:23:38]process_json_proto [08:23:38]json parsed OK: [08:23:38]protocol is kg_v1.0 [08:23:38]action value=close_receipt [08:23:38]process_action close_receipt [08:23:38]cmd_close_receipt [08:23:38]MH_GetDate [08:23:38]Write to MH i2c: F0 00 00 20 04 13 [08:23:38]Write i2c OK [08:23:38]MH_I2C_Read... [08:23:38]Read from MH i2c: F0 [08:23:38]MH_I2C_Read... [08:23:38]Read from MH i2c: F0 09 00 [08:23:38]MH_I2C_Read... [08:23:38]Read from MH i2c: F0 09 00 20 04 00 8C 82 EE 66 99 54 47 66 18 [08:23:38]GetLastDocTimeStamp 1726906840 [08:23:38]current date 1726907020 [08:23:38]FM_GetShiftState [08:23:38]SAM_PROTO_GetShiftState [08:23:38]wFMCommunicate request_size=4 [08:23:38]MH_SAM_APDU [08:23:38]CAPDU: 80 13 01 00 [08:23:38]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [08:23:38]Write i2c OK [08:23:38]MH_I2C_Read... [08:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:39]Read from MH i2c: E2 [08:23:39]MH_I2C_Read... [08:23:39]Read from MH i2c: E2 0E 00 [08:23:39]MH_I2C_Read... [08:23:39]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 28 [08:23:39]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:23:39]wFMCommunicate OK [08:23:39]SAM_PROTO_GetShiftState done [08:23:39]FM_GetShiftState done [08:23:39]opened in 1726877463 [08:23:39]opened+sec_in_day 1726963863 [08:23:39]quantity*price = 430068 [08:23:39]sum+1 = 430070 [08:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 4300.00 Внесено: 6000.00 СДАЧА: 1700.00 НСП 1% : 38.06 НДС 12% : 456.71 Наличными: 4300.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 14 21.09.2024 08:23 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Дисконтная программа ДТ номер 93 сэкономлено 57.19 сом ФМ: 0000000000959362 ФД: 19564 ФПД: 17903538242380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T082340&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19564&fm=17903538242380&tin=02508201610067®Number=0000000000146239&sum=430000 [08:23:40]StoreToDocumentArchive [08:23:40]shift 232 fd 19564 [08:23:40]save to /storage/0232/doc_00019564 [08:23:40]save last doc name /storage/0232/doc_00019564 to /storage/kkm_last_doc_name [08:23:40]save OK [08:23:40]Clear old archive folders... [08:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:23:40]tlvbuf is 01D58730 [08:23:40]SAM_PROTO_ClearQueue [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 09 00 00 [08:23:40]Write to MH i2c: E2 08 00 2E 04 80 09 00 00 00 00 00 00 A4 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [08:23:40]RAPDU: 90 00 [08:23:40]wFMCommunicate OK [08:23:40]SAM_PROTO_ClearQueue done [08:23:40]KKMCreateOFDPacket [08:23:40]OFDProtocolAddRootSTLVToBuf [08:23:40]FM_MakeSignedData [08:23:40]FM_MakeSignedData [08:23:40]SAM_PROTO_SignData [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 0D 01 02 [08:23:40]Write to MH i2c: E2 08 00 2F 04 80 0D 01 02 00 00 00 00 AC [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [08:23:40]RAPDU: 90 00 [08:23:40]wFMCommunicate OK [08:23:40]wFMCommunicate request_size=255 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 DF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F5 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 B2 00 00 00 00 07 04 06 00 B0 8F 06 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 8C 82 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6C 4C 00 00 35 04 06 00 [08:23:40]Write to MH i2c: E2 02 01 30 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 DF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F5 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 B2 00 00 00 00 07 04 06 00 B0 8F 06 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 8C 82 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6C 4C 00 00 35 04 06 00 00 00 DE [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [08:23:40]RAPDU: 90 00 [08:23:40]wFMCommunicate OK [08:23:40]wFMCommunicate request_size=11 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 0D 02 02 06 10 48 7E 09 83 4C [08:23:40]Write to MH i2c: E2 0E 00 31 04 80 0D 02 02 06 00 10 48 7E 09 83 4C 00 00 69 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [08:23:40]RAPDU: 90 00 [08:23:40]wFMCommunicate OK [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 0D 03 02 [08:23:40]Write to MH i2c: E2 08 00 32 04 80 0D 03 02 00 00 00 00 B1 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 0B 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 0B 00 32 04 00 E5 E3 35 C9 FF A1 4C 05 90 00 69 [08:23:40]RAPDU: E5 E3 35 C9 FF A1 4C 05 90 00 [08:23:40]wFMCommunicate OK [08:23:40]SAM_PROTO_SignData done [08:23:40]FM_MakeSignedData done [08:23:40]CreateOFDProtocolMessage [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 11 00 00 [08:23:40]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 17 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 06 [08:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:23:40]wFMCommunicate OK [08:23:40]CreateOFDProtocolMessage done [08:23:40]OFDSenderStorePacket 19564 [08:23:40]StoreOFDPacket docnum=19564 [08:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 EB E8 08 01 10 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 DF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F5 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 B2 00 00 00 00 07 04 06 00 B0 8F 06 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 8C 82 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6C 4C 00 00 35 04 06 00 10 48 7E 09 83 4C E5 E3 35 C9 FF A1 4C 05 [08:23:40]CheckFolder [08:23:40]dirname=/storage/ofd_packets [08:23:40]CheckFolder done [08:23:40]ProducePacketName [08:23:40]name=ofd_packets/00019564 [08:23:40]NVStorageSaveData ofd_packets/00019564 [08:23:40]File name is /storage/ofd_packets/00019564 [08:23:40]Write 302 bytes [08:23:40]NVStorageSaveData done [08:23:40]OFDSenderStorePacket done [08:23:40]KKMCreateOFDPacket done [08:23:40]NVStorageSaveData kkm_last_timestamp [08:23:40]File name is /storage/kkm_last_timestamp [08:23:40]Write 4 bytes [08:23:40]NVStorageSaveData done [08:23:40]ExternCall_PrintAddStr [08:23:40]wPrintStart [08:23:40]Write to MH i2c: 01 00 00 34 04 38 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: 01 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: 01 07 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [08:23:40]RasterBufferAndPrint [08:23:40]line Счет N : (1)23699529 [08:23:40]line ИНН: 02508201610067 [08:23:40]line Контрольно-Кассовый Чек [08:23:40]line ПРОДАЖА [08:23:40]line ТРК (МРК, ГНК) : 52 [08:23:40]line Товар: 2710194210 [08:23:40]line ДТ(л)-К-5 [08:23:40]line 57.190 * 75.20 [08:23:40]line = 4300.69 [08:23:40]line НДС 12% НСП 1% [08:23:40]line > о реализуемом товаре [08:23:40]line ОКРУГЛЕНИЕ: -0.69 [08:23:40]line ИТОГО: 4300.00 [08:23:40]line Внесено: 6000.00 [08:23:40]line СДАЧА: 1700.00 [08:23:40]line НСП 1% : 38.06 [08:23:40]line НДС 12% : 456.71 [08:23:40]line Наличными: 4300.00 [08:23:40]line Безнал.: 0.00 [08:23:40]line Место: АЗС № 93 "Партнер Нефть" [08:23:40]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [08:23:40]line СНО: Общий режим [08:23:40]line Чек 14 21.09.2024 08:23 [08:23:40]line Смена: 232 ФФД: 1.0 [08:23:40]line ЗНМ: 0300000060 [08:23:40]line РНМ: 0000000000146239 [08:23:40]line Версия ККМ: v1.0 [08:23:40]line [08:23:40]line Дисконтная программа [08:23:40]line ДТ [08:23:40]line номер 93 [08:23:40]line сэкономлено 57.19 сом [08:23:40]line ФМ: 0000000000959362 [08:23:40]line ФД: 19564 [08:23:40]line ФПД: 17903538242380 [08:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T082340&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19564&fm=17903538242380&tin=02508201610067®Number=0000000000146239&sum=430000 [08:23:40]OFD Sender: Processing packet 19564 [packets to send 63, broken 62] [08:23:40]ProducePacketName [08:23:40]name=ofd_packets/00019564 [08:23:40]OFD Sender: To server: pG, [08:23:40]CommunicateWithHost lk.salyk.kg:30040 [08:23:40]ConnectInit lk.salyk.kg [08:23:40]written 0, free lines is 4095 [08:23:41]Write to MH i2c: 01 00 00 64 04 68 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: 01 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: 01 07 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 19 0C 94 [08:23:41]RasterBufferAndPrint [08:23:41]line [08:23:41]line [08:23:41]line [08:23:41]line [08:23:41]line [08:23:41]written 0, free lines is 3100 [08:23:41]MH_Cut [08:23:41]Write to MH i2c: D1 01 00 6B 04 01 41 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: D1 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: D1 01 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: D1 01 00 6B 04 00 40 [08:23:41]Write to MH i2c: 01 00 00 6C 04 70 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:42]*** Cut start [08:23:42]*** Partial cut [08:23:42]*** CUTSNS_PIN = 1 [08:23:42]*** CUTSNS_PIN = 0 [08:23:42]*** Brake cut motor [08:23:43]Read from MH i2c: 01 [08:23:43]MH_I2C_Read... [08:23:43]*** Stop cut motor [08:23:43]*** Cut end [08:23:43]Read from MH i2c: 01 07 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [08:23:43]process_action close_receipt done [08:23:43]requested_data is exist [08:23:43]produce_requested_data [08:23:43]requested_item fm.sn is exist - process it [08:23:43]wFMCommunicate request_size=4 [08:23:43]MH_SAM_APDU [08:23:43]CAPDU: 80 11 00 00 [08:23:43]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [08:23:43]Write i2c OK [08:23:43]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 17 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 40 [08:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:23:43]wFMCommunicate OK [08:23:43]requested_item fd.num is exist - process it [08:23:43]SAM_PROTO_GetFieldsCounters [08:23:43]wFMCommunicate request_size=4 [08:23:43]MH_SAM_APDU [08:23:43]CAPDU: 80 13 00 00 [08:23:43]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [08:23:43]Write i2c OK [08:23:43]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 62 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 62 00 6E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [08:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:43]wFMCommunicate OK [08:23:43]SAM_PROTO_GetFieldsCounters done [08:23:43]requested_item shift.num is exist - process it [08:23:43]requested_item shift.opened is exist - process it [08:23:43]req_shift_opened [08:23:43]FM_GetShiftState [08:23:43]SAM_PROTO_GetShiftState [08:23:43]wFMCommunicate request_size=4 [08:23:43]MH_SAM_APDU [08:23:43]CAPDU: 80 13 01 00 [08:23:43]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [08:23:43]Write i2c OK [08:23:43]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 0E 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 76 [08:23:43]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:23:43]wFMCommunicate OK [08:23:43]SAM_PROTO_GetShiftState done [08:23:43]FM_GetShiftState done [08:23:43]req_shift_opened done [08:23:43]requested_item shift.open_date is exist - process it [08:23:43]req_shift_open_date [08:23:43]req_shift_open_date done [08:23:43]produce_requested_data done [08:23:43]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19564,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [08:23:43]process_action_free close_receipt [08:23:43]json_value_free [08:23:43]json_value_free done [08:23:43]process_json_proto returns [08:23:43]Send response to host [08:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19564,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [08:23:43]free response buf [08:23:43]execute_script done [08:23:43]execute_script returns [08:23:43]free content buf [08:23:43]Sock 9.Close socket [08:23:43]Sock 9.Thread stoped [08:23:43]Connected sock=11 [08:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 EB E8 08 01 10 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 DF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F5 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 B2 00 00 00 00 07 04 06 00 B0 8F 06 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 8C 82 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6C 4C 00 00 35 04 06 00 10 48 7E 09 83 4C E5 E3 35 C9 FF A1 4C 05 [08:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A9 07 47 00 B2 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6C 4C 00 00 F4 03 04 00 29 2D EE 66 B6 04 01 00 00 A7 40 6A A7 59 71 05 33 [08:23:44]CommunicateWithHost err = 0 [08:23:44]CheckOFDResponse [08:23:44]1017 (14) - 77093643461234 [08:23:44]1041 (16) - 0000000000959362 [08:23:44]1040 (4) - 19564 [08:23:44]1012 (4) - 21.09.2024 02:19 [08:23:44]1206 (1) - 0 [08:23:44]OFD Sender: Remove packet 19564 [08:23:44]ProducePacketName [08:23:44]name=ofd_packets/00019564 [08:23:44]NVStorageDeleteData [08:23:44]OFD Sender: No OFD packet to send [08:23:46]recv_with_timeout no data received [08:23:49]OFD Sender: No OFD packet to send [08:23:54]int [08:23:54]Write to MH i2c: 01 00 00 70 04 74 [08:23:54]*** FLAG_PRN_KEY set [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 70 04 00 08 00 00 00 FF 0F 91 [08:23:54]state=0 [08:23:54]Key pressed [08:23:54]Feed [08:23:54]Write to MH i2c: D8 00 00 71 04 4C [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: D8 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: D8 01 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: D8 01 00 71 04 00 4D [08:23:54]int [08:23:54]Write to MH i2c: 01 00 00 72 04 76 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 72 04 00 48 00 00 00 3C 00 01 [08:23:54]state=2 [08:23:54]Key pressed [08:23:54]int [08:23:54]Write to MH i2c: 01 00 00 73 04 77 [08:23:54]*** FLAG_PRN_KEY reset [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [08:23:54]state=2 [08:23:54]Stop feed [08:23:54]OFD Sender: No OFD packet to send [08:23:57]recv_with_timeout no data received [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:06]recv_with_timeout no data received [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:27]recv_with_timeout no data received [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:47]recv_with_timeout no data received [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]recv_with_timeout no data received [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:29]recv_with_timeout no data received [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:46]recv_with_timeout no data received [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:10]recv_with_timeout no data received [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:38]recv_with_timeout no data received [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:43]ConnectInit Can't connect to host [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:42]recv_with_timeout no data received [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]accept exits with 8 [08:41:30]New connection [08:41:30]New thread 3067395428 created [08:41:30]Thread 3067252068 joined [08:41:30]Waiting for new connection... [08:41:30] Sock 8.Parse request [08:41:30]Sock 8.Check first char [08:41:30]Sock 8.First char is OK [08:41:30]request: POST /json_proto HTTP/1.0 [08:41:30]Method: POST [08:41:30]URL: /json_proto [08:41:30]Method is POST - this is cgi request [08:41:30]url: /json_proto [08:41:30]query_string will be loaded in cgi processing [08:41:30]execute_cgi json_proto POST (null) [08:41:30]execute_cgi path=json_proto method=POST [08:41:30]POST find Content-Length [08:41:30]Host: 172.17.42.73:8080 [08:41:30]Content-Length: 215 [08:41:30]Content-Type: application/json [08:41:30] [08:41:30]POST finish read [08:41:30]Found Content-Length = 215 [08:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:30]execute_script... [08:41:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:30]POST & json_proto [08:41:30]process_json_proto [08:41:30]json parsed OK: [08:41:30]protocol is kg_v1.0 [08:41:30]action value=get_value [08:41:30]process_action get_value [08:41:30]cmd_get_value [08:41:30]process_action get_value done [08:41:30]requested_data is exist [08:41:30]produce_requested_data [08:41:30]requested_item kkm.sn is exist - process it [08:41:30]requested_item kkm.ver is exist - process it [08:41:30]requested_item fm.sn is exist - process it [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 11 00 00 [08:41:30]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 17 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 47 [08:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [08:41:30]wFMCommunicate OK [08:41:30]requested_item fd.num is exist - process it [08:41:30]SAM_PROTO_GetFieldsCounters [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 13 00 00 [08:41:30]Write to MH i2c: E2 08 00 75 04 80 13 00 00 00 00 00 00 F5 [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 62 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 62 00 75 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [08:41:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:30]wFMCommunicate OK [08:41:30]SAM_PROTO_GetFieldsCounters done [08:41:30]requested_item shift.num is exist - process it [08:41:30]requested_item shift.opened is exist - process it [08:41:30]req_shift_opened [08:41:30]FM_GetShiftState [08:41:30]SAM_PROTO_GetShiftState [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 13 01 00 [08:41:30]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 7D [08:41:30]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [08:41:30]wFMCommunicate OK [08:41:30]SAM_PROTO_GetShiftState done [08:41:30]FM_GetShiftState done [08:41:30]req_shift_opened done [08:41:30]requested_item shift.open_date is exist - process it [08:41:30]req_shift_open_date [08:41:30]req_shift_open_date done [08:41:30]produce_requested_data done [08:41:30]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19564,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [08:41:30]process_action_free get_value [08:41:30]json_value_free [08:41:30]json_value_free done [08:41:30]process_json_proto returns [08:41:30]Send response to host [08:41:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19564,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [08:41:30]free response buf [08:41:30]execute_script done [08:41:30]execute_script returns [08:41:30]free content buf [08:41:30]Sock 8.Close socket [08:41:30]Sock 8.Thread stoped [08:41:30]accept exits with 9 [08:41:30]New connection [08:41:30]New thread 3067252068 created [08:41:30]Thread 3067395428 joined [08:41:30]Waiting for new connection... [08:41:30] Sock 9.Parse request [08:41:30]Sock 9.Check first char [08:41:30]Sock 9.First char is OK [08:41:30]request: POST /json_proto HTTP/1.0 [08:41:30]Method: POST [08:41:30]URL: /json_proto [08:41:30]Method is POST - this is cgi request [08:41:30]url: /json_proto [08:41:30]query_string will be loaded in cgi processing [08:41:30]execute_cgi json_proto POST (null) [08:41:30]execute_cgi path=json_proto method=POST [08:41:30]POST find Content-Length [08:41:30]Host: 172.17.42.73:8080 [08:41:30]Content-Length: 331 [08:41:30]Content-Type: application/json [08:41:30] [08:41:30]POST finish read [08:41:30]Found Content-Length = 331 [08:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:41:30]execute_script... [08:41:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:41:31]POST & json_proto [08:41:31]process_json_proto [08:41:31]json parsed OK: [08:41:31]protocol is kg_v1.0 [08:41:31]action value=get_value [08:41:31]process_action get_value [08:41:31]cmd_get_value [08:41:31]process_action get_value done [08:41:31]requested_data is exist [08:41:31]produce_requested_data [08:41:31]requested_item fm.sale.total is exist - process it [08:41:31]SAM_PROTO_GetFMData [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 13 03 00 [08:41:31]Write to MH i2c: E2 08 00 77 04 80 13 03 00 00 00 00 00 FA [08:41:31]OFD Sender: No OFD packet to send [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 77 04 00 C1 04 85 04 BD 04 6E 04 04 00 9C 4A 00 00 69 04 A0 00 6F 04 04 00 84 4A 00 00 B1 04 04 00 90 23 A1 67 70 04 04 00 4C 64 84 43 72 04 04 00 44 BF 1C 24 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 4A 7A 01 0B 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 52 C1 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 32 [08:41:31]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 9C 4A 00 00 69 04 A0 00 6F 04 04 00 84 4A 00 00 B1 04 04 00 90 23 A1 67 70 04 04 00 4C 64 84 43 72 04 04 00 44 BF 1C 24 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 4A 7A 01 0B 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 52 C1 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 17 00 00 [08:41:31]Write to MH i2c: E2 08 00 78 04 80 17 00 00 00 00 00 00 FC [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 78 04 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 DB [08:41:31]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 17 00 00 [08:41:31]Write to MH i2c: E2 08 00 79 04 80 17 00 00 00 00 00 00 FD [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 FD 00 79 04 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 9D [08:41:31]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 17 00 00 [08:41:31]Write to MH i2c: E2 08 00 7A 04 80 17 00 00 00 00 00 00 FE [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 FD 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 FD 00 7A 04 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 83 [08:41:32]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 17 00 00 [08:41:32]Write to MH i2c: E2 08 00 7B 04 80 17 00 00 00 00 00 00 FF [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 DE 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 DE 00 7B 04 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [08:41:32]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:41:32]wFMCommunicate OK [08:41:32]SAM_PROTO_GetFMData done [08:41:32]requested_item fm.sale_refund.total is exist - process it [08:41:32]requested_item fm.buy.total is exist - process it [08:41:32]requested_item shift.sale.total is exist - process it [08:41:32]SAM_PROTO_GetShiftData [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 13 02 00 [08:41:32]Write to MH i2c: E2 08 00 7C 04 80 13 02 00 00 00 00 00 FE [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 FD 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 FD 00 7C 04 00 AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 EB E8 10 70 04 03 00 88 FE 0F 72 04 02 00 63 EA 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 C9 CB 01 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 4F 26 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 A9 [08:41:32]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 EB E8 10 70 04 03 00 88 FE 0F 72 04 02 00 63 EA 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 C9 CB 01 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 4F 26 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 17 00 00 [08:41:32]Write to MH i2c: E2 08 00 7D 04 80 17 00 00 00 00 00 00 01 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 7D 04 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 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 90 00 13 [08:41:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 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 90 00 [08:41:33]wFMCommunicate OK [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 17 00 00 [08:41:33]Write to MH i2c: E2 08 00 7E 04 80 17 00 00 00 00 00 00 02 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 7E 04 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 C6 [08:41:33]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 17 00 00 [08:41:33]Write to MH i2c: E2 08 00 7F 04 80 17 00 00 00 00 00 00 03 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 FD 00 7F 04 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 78 [08:41:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [08:41:33]wFMCommunicate OK [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 17 00 00 [08:41:33]Write to MH i2c: E2 08 00 80 04 80 17 00 00 00 00 00 00 04 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 CA 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 CA 00 80 04 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [08:41:34]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_GetShiftData done [08:41:34]requested_item shift.sale.total_cash is exist - process it [08:41:34]requested_item shift.sale_refund.total is exist - process it [08:41:34]requested_item shift.sale_refund.total_cash is exist - process it [08:41:34]requested_item shift.buy.total is exist - process it [08:41:34]requested_item shift.buy.total_cash is exist - process it [08:41:34]produce_requested_data done [08:41:34]produce_requested_data return {"fm.sale.total":17386136.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":11082.03,"shift.sale.total_cash":10482.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} [08:41:34]process_action_free get_value [08:41:34]json_value_free [08:41:34]json_value_free done [08:41:34]process_json_proto returns [08:41:34]Send response to host [08:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17386136.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":11082.03,"shift.sale.total_cash":10482.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}}} [08:41:34]free response buf [08:41:34]execute_script done [08:41:34]execute_script returns [08:41:34]free content buf [08:41:34]Sock 9.Close socket [08:41:34]Sock 9.Thread stoped [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:06]recv_with_timeout no data received [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:12]recv_with_timeout no data received [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:47:02]ConnectInit Can't connect to host [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:24]recv_with_timeout no data received [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:49]recv_with_timeout no data received [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:45]recv_with_timeout no data received [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:48]recv_with_timeout no data received [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:33]recv_with_timeout no data received [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]recv_with_timeout no data received [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:35]recv_with_timeout no data received [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:20]recv_with_timeout no data received [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:31]recv_with_timeout no data received [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:53]recv_with_timeout no data received [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:04]recv_with_timeout no data received [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:25]recv_with_timeout no data received [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:40]recv_with_timeout no data received [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:00:57]accept exits with 8 [09:00:57]New connection [09:00:57]New thread 3067395428 created [09:00:57]Thread 3067252068 joined [09:00:57]Waiting for new connection... [09:00:57] Sock 8.Parse request [09:00:57]Sock 8.Check first char [09:00:57]Sock 8.First char is OK [09:00:57]request: POST /json_proto HTTP/1.0 [09:00:57]Method: POST [09:00:57]URL: /json_proto [09:00:57]Method is POST - this is cgi request [09:00:57]url: /json_proto [09:00:57]query_string will be loaded in cgi processing [09:00:57]execute_cgi json_proto POST (null) [09:00:57]execute_cgi path=json_proto method=POST [09:00:57]POST find Content-Length [09:00:57]Host: 172.17.42.73:8080 [09:00:57]Content-Length: 645 [09:00:57]Content-Type: application/json [09:00:57] [09:00:57]POST finish read [09:00:57]Found Content-Length = 645 [09:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117492", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:57]execute_script... [09:00:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117492", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:57]POST & json_proto [09:00:57]process_json_proto [09:00:57]json parsed OK: [09:00:57]protocol is kg_v1.0 [09:00:57]action value=close_receipt [09:00:57]process_action close_receipt [09:00:57]cmd_close_receipt [09:00:57]MH_GetDate [09:00:57]Write to MH i2c: F0 00 00 81 04 74 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 09 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 09 00 81 04 00 4B 8B EE 66 99 54 47 66 41 [09:00:57]GetLastDocTimeStamp 1726907020 [09:00:57]current date 1726909259 [09:00:57]FM_GetShiftState [09:00:57]SAM_PROTO_GetShiftState [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 13 01 00 [09:00:57]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0E 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 89 [09:00:57]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:00:57]wFMCommunicate OK [09:00:57]SAM_PROTO_GetShiftState done [09:00:57]FM_GetShiftState done [09:00:57]opened in 1726877463 [09:00:57]opened+sec_in_day 1726963863 [09:00:57]quantity*price = 6500 [09:00:57]sum+1 = 6501 [09:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 15 21.09.2024 09:00 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19565 ФПД: 134937375005550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T090059&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19565&fm=134937375005550&tin=02508201610067®Number=0000000000146239&sum=6500 0 [09:00:58]StoreToDocumentArchive [09:00:58]shift 232 fd 19565 [09:00:58]save to /storage/0232/doc_00019565 [09:00:58]save last doc name /storage/0232/doc_00019565 to /storage/kkm_last_doc_name [09:00:58]save OK [09:00:58]Clear old archive folders... [09:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:00:58]tlvbuf is 01DE72A0 [09:00:58]SAM_PROTO_ClearQueue [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 09 00 00 [09:00:58]Write to MH i2c: E2 08 00 8F 04 80 09 00 00 00 00 00 00 05 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_ClearQueue done [09:00:58]KKMCreateOFDPacket [09:00:58]OFDProtocolAddRootSTLVToBuf [09:00:58]FM_MakeSignedData [09:00:58]FM_MakeSignedData [09:00:58]SAM_PROTO_SignData [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 01 02 [09:00:58]Write to MH i2c: E2 08 00 90 04 80 0D 01 02 00 00 00 00 0D [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]wFMCommunicate request_size=255 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4B 8B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [09:00:58]Write to MH i2c: E2 02 01 91 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 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 0F 00 00 00 F4 03 04 00 4B 8B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7A [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]wFMCommunicate request_size=31 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 6D 4C 00 00 35 04 06 00 7A B9 8E 4D DB 6E [09:00:58]Write to MH i2c: E2 22 00 92 04 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 6D 4C 00 00 35 04 06 00 7A B9 8E 4D DB 6E 00 00 4D [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [09:00:59]RAPDU: 90 00 [09:00:59]wFMCommunicate OK [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 0D 03 02 [09:00:59]Write to MH i2c: E2 08 00 93 04 80 0D 03 02 00 00 00 00 12 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 0B 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 0B 00 93 04 00 64 D2 7F 2F BC F4 E0 7E 90 00 05 [09:00:59]RAPDU: 64 D2 7F 2F BC F4 E0 7E 90 00 [09:00:59]wFMCommunicate OK [09:00:59]SAM_PROTO_SignData done [09:00:59]FM_MakeSignedData done [09:00:59]CreateOFDProtocolMessage [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 11 00 00 [09:00:59]Write to MH i2c: E2 08 00 94 04 80 11 00 00 00 00 00 00 12 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 17 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 17 00 94 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 67 [09:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:00:59]wFMCommunicate OK [09:00:59]CreateOFDProtocolMessage done [09:00:59]OFDSenderStorePacket 19565 [09:00:59]StoreOFDPacket docnum=19565 [09:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 58 99 1C 01 67 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4B 8B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6D 4C 00 00 35 04 06 00 7A B9 8E 4D DB 6E 64 D2 7F 2F BC F4 E0 7E [09:00:59]CheckFolder [09:00:59]dirname=/storage/ofd_packets [09:00:59]CheckFolder done [09:00:59]ProducePacketName [09:00:59]name=ofd_packets/00019565 [09:00:59]NVStorageSaveData ofd_packets/00019565 [09:00:59]File name is /storage/ofd_packets/00019565 [09:00:59]Write 322 bytes [09:00:59]NVStorageSaveData done [09:00:59]OFDSenderStorePacket done [09:00:59]KKMCreateOFDPacket done [09:00:59]NVStorageSaveData kkm_last_timestamp [09:00:59]File name is /storage/kkm_last_timestamp [09:00:59]Write 4 bytes [09:00:59]NVStorageSaveData done [09:00:59]OFD Sender: Processing packet 19565 [packets to send 63, broken 62] [09:00:59]ProducePacketName [09:00:59]name=ofd_packets/00019565 [09:00:59]OFD Sender: To server: pG, [09:00:59]CommunicateWithHost lk.salyk.kg:30040 [09:00:59]ConnectInit lk.salyk.kg [09:00:59]ExternCall_PrintAddStr [09:00:59]wPrintStart [09:00:59]Write to MH i2c: 01 00 00 95 04 99 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [09:00:59]RasterBufferAndPrint [09:00:59]line Счет N : (3)117492 [09:00:59]line ИНН: 02508201610067 [09:00:59]line Контрольно-Кассовый Чек [09:00:59]line ПРОДАЖА [09:00:59]line Товар: 47011656 [09:00:59]line Водка Пшеничная 0,1л [09:00:59]line 1.000 * 65.00 [09:00:59]line = 65.00 [09:00:59]line НДС 12% НСП 1% [09:00:59]line > о реализуемом товаре [09:00:59]line ИТОГО: 65.00 [09:00:59]line НСП 1% : 0.57 [09:00:59]line НДС 12% : 6.90 [09:00:59]line Наличными: 65.00 [09:00:59]line Безнал.: 0.00 [09:00:59]line Место: АЗС № 93 "Партнер Нефть" [09:00:59]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:00:59]line СНО: Общий режим [09:00:59]line Чек 15 21.09.2024 09:00 [09:00:59]line Смена: 232 ФФД: 1.0 [09:00:59]line ЗНМ: 0300000060 [09:00:59]line РНМ: 0000000000146239 [09:00:59]line Версия ККМ: v1.0 [09:00:59]line ФМ: 0000000000959362 [09:00:59]line ФД: 19565 [09:00:59]line ФПД: 134937375005550 [09:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T090059&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19565&fm=134937375005550&tin=02508201610067®Number=0000000000146239&sum=6500 [09:00:59]line 0 [09:00:59]written 0, free lines is 4095 [09:00:59]Connected sock=11 [09:00:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 58 99 1C 01 67 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4B 8B EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6D 4C 00 00 35 04 06 00 7A B9 8E 4D DB 6E 64 D2 7F 2F BC F4 E0 7E [09:00:59]Write to MH i2c: 01 00 00 BD 04 C1 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 B4 0C 88 [09:00:59]RasterBufferAndPrint [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]written 0, free lines is 3256 [09:00:59]MH_Cut [09:00:59]Write to MH i2c: D1 01 00 C4 04 01 9A [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 01 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 01 00 C4 04 00 99 [09:00:59]Write to MH i2c: 01 00 00 C5 04 C9 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 9F 34 47 00 7A 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6D 4C 00 00 F4 03 04 00 E5 35 EE 66 B6 04 01 00 00 C0 97 68 27 7F A5 7C E1 [09:01:00]CommunicateWithHost err = 0 [09:01:00]CheckOFDResponse [09:01:00]1017 (14) - 77093643461234 [09:01:00]1041 (16) - 0000000000959362 [09:01:00]1040 (4) - 19565 [09:01:00]1012 (4) - 21.09.2024 02:56 [09:01:00]1206 (1) - 0 [09:01:00]OFD Sender: Remove packet 19565 [09:01:00]ProducePacketName [09:01:00]name=ofd_packets/00019565 [09:01:00]NVStorageDeleteData [09:01:00]OFD Sender: No OFD packet to send [09:01:00]*** Cut start [09:01:00]*** Partial cut [09:01:00]*** CUTSNS_PIN = 1 [09:01:00]*** CUTSNS_PIN = 0 [09:01:01]*** Brake cut motor [09:01:01]Read from MH i2c: 01 [09:01:01]MH_I2C_Read... [09:01:01]*** Stop cut motor [09:01:01]*** Cut end [09:01:01]Read from MH i2c: 01 07 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [09:01:01]process_action close_receipt done [09:01:01]requested_data is exist [09:01:01]produce_requested_data [09:01:01]requested_item fm.sn is exist - process it [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 11 00 00 [09:01:01]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 17 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 99 [09:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:01:01]wFMCommunicate OK [09:01:01]requested_item fd.num is exist - process it [09:01:01]SAM_PROTO_GetFieldsCounters [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 00 00 [09:01:01]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 62 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 62 00 C7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [09:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:01]wFMCommunicate OK [09:01:01]SAM_PROTO_GetFieldsCounters done [09:01:01]requested_item shift.num is exist - process it [09:01:01]requested_item shift.opened is exist - process it [09:01:01]req_shift_opened [09:01:01]FM_GetShiftState [09:01:01]SAM_PROTO_GetShiftState [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 01 00 [09:01:01]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 CF [09:01:01]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:01:01]wFMCommunicate OK [09:01:01]SAM_PROTO_GetShiftState done [09:01:01]FM_GetShiftState done [09:01:01]req_shift_opened done [09:01:01]requested_item shift.open_date is exist - process it [09:01:01]req_shift_open_date [09:01:01]req_shift_open_date done [09:01:01]produce_requested_data done [09:01:01]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19565,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:01:01]process_action_free close_receipt [09:01:01]json_value_free [09:01:01]json_value_free done [09:01:01]process_json_proto returns [09:01:01]Send response to host [09:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19565,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:01:01]free response buf [09:01:01]execute_script done [09:01:01]execute_script returns [09:01:01]free content buf [09:01:01]Sock 8.Close socket [09:01:01]Sock 8.Thread stoped [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:14]recv_with_timeout no data received [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:54]recv_with_timeout no data received [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]recv_with_timeout no data received [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]recv_with_timeout no data received [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]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:07:58]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:47]accept exits with 9 [09:08:47]New connection [09:08:47]New thread 3067252068 created [09:08:47]Thread 3067395428 joined [09:08:47]Waiting for new connection... [09:08:47] Sock 9.Parse request [09:08:47]Sock 9.Check first char [09:08:47]Sock 9.First char is OK [09:08:47]request: POST /json_proto HTTP/1.0 [09:08:47]Method: POST [09:08:47]URL: /json_proto [09:08:47]Method is POST - this is cgi request [09:08:47]url: /json_proto [09:08:47]query_string will be loaded in cgi processing [09:08:47]execute_cgi json_proto POST (null) [09:08:47]execute_cgi path=json_proto method=POST [09:08:47]POST find Content-Length [09:08:47]Host: 172.17.42.73:8080 [09:08:47]Content-Length: 953 [09:08:47]Content-Type: application/json [09:08:47] [09:08:47]POST finish read [09:08:47]Found Content-Length = 953 [09:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117493", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 493.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:47]execute_script... [09:08:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117493", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 493.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:47]POST & json_proto [09:08:47]process_json_proto [09:08:47]json parsed OK: [09:08:47]protocol is kg_v1.0 [09:08:47]action value=close_receipt [09:08:47]process_action close_receipt [09:08:47]cmd_close_receipt [09:08:47]MH_GetDate [09:08:47]Write to MH i2c: F0 00 00 C9 04 BC [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: F0 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: F0 09 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: F0 09 00 C9 04 00 21 8D EE 66 99 54 47 66 61 [09:08:47]GetLastDocTimeStamp 1726909259 [09:08:47]current date 1726909729 [09:08:47]FM_GetShiftState [09:08:47]SAM_PROTO_GetShiftState [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 13 01 00 [09:08:47]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0E 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 D1 [09:08:47]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_GetShiftState done [09:08:47]FM_GetShiftState done [09:08:47]opened in 1726877463 [09:08:47]opened+sec_in_day 1726963863 [09:08:47]quantity*price = 28800 [09:08:47]sum+1 = 28801 [09:08:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46114709 Жев Ментос Тутти Фрутти 8*6*54г банка 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 493.00 НСП 1% : 4.36 НДС 12% : 52.35 Наличными: 493.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 16 21.09.2024 09:08 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19566 ФПД: 176180231460547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T090849&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19566&fm=176180231460547&tin=02508201610067®Number=0000000000146239&sum=49300 0 [09:08:48]StoreToDocumentArchive [09:08:48]shift 232 fd 19566 [09:08:48]save to /storage/0232/doc_00019566 [09:08:48]save last doc name /storage/0232/doc_00019566 to /storage/kkm_last_doc_name [09:08:48]save OK [09:08:48]Clear old archive folders... [09:08:48]ProcessDocumentItem done err = 0, tmpTLVsize=399 [09:08:48]tlvbuf is 01D58CA0 [09:08:48]SAM_PROTO_ClearQueue [09:08:48]wFMCommunicate request_size=4 [09:08:48]MH_SAM_APDU [09:08:48]CAPDU: 80 09 00 00 [09:08:48]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:48]Read from MH i2c: E2 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: E2 03 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [09:08:48]RAPDU: 90 00 [09:08:48]wFMCommunicate OK [09:08:48]SAM_PROTO_ClearQueue done [09:08:48]KKMCreateOFDPacket [09:08:48]OFDProtocolAddRootSTLVToBuf [09:08:48]FM_MakeSignedData [09:08:48]FM_MakeSignedData [09:08:48]SAM_PROTO_SignData [09:08:48]wFMCommunicate request_size=4 [09:08:48]MH_SAM_APDU [09:08:48]CAPDU: 80 0D 01 02 [09:08:48]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:48]Read from MH i2c: E2 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: E2 03 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [09:08:48]RAPDU: 90 00 [09:08:48]wFMCommunicate OK [09:08:48]wFMCommunicate request_size=255 [09:08:48]MH_SAM_APDU F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 A3 01 00 00 A4 21 9B 01 6D ED 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 14 00 00 00 00 07 04 06 00 94 C0 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 21 8D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6E 4C 00 00 35 04 06 00 A0 3C 28 1C D6 C3 E6 A5 82 0A 28 CF 88 2E [09:08:51]*** Brake cut motor [09:08:51]Read from MH i2c: 01 [09:08:51]MH_I2C_Read... [09:08:51]*** Stop cut motor [09:08:51]*** Cut end [09:08:51]Read from MH i2c: 01 07 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [09:08:51]process_action close_receipt done [09:08:51]requested_data is exist [09:08:51]produce_requested_data [09:08:51]requested_item fm.sn is exist - process it [09:08:51]wFMCommunicate request_size=4 [09:08:51]MH_SAM_APDU [09:08:51]CAPDU: 80 11 00 00 [09:08:51]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:51]Read from MH i2c: E2 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 17 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E9 [09:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:08:51]wFMCommunicate OK [09:08:51]requested_item fd.num is exist - process it [09:08:51]SAM_PROTO_GetFieldsCounters [09:08:51]wFMCommunicate request_size=4 [09:08:51]MH_SAM_APDU [09:08:51]CAPDU: 80 13 00 00 [09:08:51]Write to MH i2c: E2 08 00 16 05 80 13 00 00 00 00 00 00 97 [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:52]Read from MH i2c: E2 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 62 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 62 00 16 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [09:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 6E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:52]wFMCommunicate OK [09:08:52]SAM_PROTO_GetFieldsCounters done [09:08:52]requested_item shift.num is exist - process it [09:08:52]requested_item shift.opened is exist - process it [09:08:52]req_shift_opened [09:08:52]FM_GetShiftState [09:08:52]SAM_PROTO_GetShiftState [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 13 01 00 [09:08:52]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:52]Read from MH i2c: E2 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 0E 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 1F [09:08:52]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:08:52]wFMCommunicate OK [09:08:52]SAM_PROTO_GetShiftState done [09:08:52]FM_GetShiftState done [09:08:52]req_shift_opened done [09:08:52]requested_item shift.open_date is exist - process it [09:08:52]req_shift_open_date [09:08:52]req_shift_open_date done [09:08:52]produce_requested_data done [09:08:52]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19566,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:08:52]process_action_free close_receipt [09:08:52]json_value_free [09:08:52]json_value_free done [09:08:52]process_json_proto returns [09:08:52]Send response to host [09:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19566,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:08:52]free response buf [09:08:52]execute_script done [09:08:52]execute_script returns [09:08:52]free content buf [09:08:52]Sock 9.Close socket [09:08:52]Sock 9.Thread stoped [09:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 4D 10 47 00 53 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6E 4C 00 00 F4 03 04 00 BD 37 EE 66 B6 04 01 00 00 B0 E2 F7 8A 6F 5E 5C F8 [09:08:52]CommunicateWithHost err = 0 [09:08:52]CheckOFDResponse [09:08:52]1017 (14) - 77093643461234 [09:08:52]1041 (16) - 0000000000959362 [09:08:52]1040 (4) - 19566 [09:08:52]1012 (4) - 21.09.2024 03:04 [09:08:52]1206 (1) - 0 [09:08:52]OFD Sender: Remove packet 19566 [09:08:52]ProducePacketName [09:08:52]name=ofd_packets/00019566 [09:08:52]NVStorageDeleteData [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]recv_with_timeout no data received [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]recv_with_timeout no data received [09:09:12]OFD Sender: No OFD packet to send [09:08:48]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 [09:08:48]Write to MH i2c: E2 02 01 D9 04 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 00 00 C7 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 03 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [09:08:49]RAPDU: 90 00 [09:08:49]wFMCommunicate OK [09:08:49]wFMCommunicate request_size=158 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 14 00 00 00 00 07 04 06 00 94 C0 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 21 8D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6E 4C 00 00 35 04 06 00 A0 3C 28 1C D6 C3 [09:08:49]Write to MH i2c: E2 A1 00 DA 04 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 14 00 00 00 00 07 04 06 00 94 C0 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 21 8D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6E 4C 00 00 35 04 06 00 A0 3C 28 1C D6 C3 00 00 D8 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 03 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [09:08:49]RAPDU: 90 00 [09:08:49]wFMCommunicate OK [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 0D 03 02 [09:08:49]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0B 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0B 00 DB 04 00 E6 A5 82 0A 28 CF 88 2E 90 00 1F [09:08:49]RAPDU: E6 A5 82 0A 28 CF 88 2E 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_SignData done [09:08:49]FM_MakeSignedData done [09:08:49]CreateOFDProtocolMessage [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 11 00 00 [09:08:49]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 AF [09:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:08:49]wFMCommunicate OK [09:08:49]CreateOFDProtocolMessage done [09:08:49]OFDSenderStorePacket 19566 [09:08:49]StoreOFDPacket docnum=19566 [09:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 A3 01 00 00 A4 21 9B 01 6D ED 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 14 00 00 00 00 07 04 06 00 94 C0 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 21 8D EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6E 4C 00 00 35 04 06 00 A0 3C 28 1C D6 C3 E6 A5 82 0A 28 CF 88 2E [09:08:49]CheckFolder [09:08:49]dirname=/storage/ofd_packets [09:08:49]CheckFolder done [09:08:49]ProducePacketName [09:08:49]name=ofd_packets/00019566 [09:08:49]NVStorageSaveData ofd_packets/00019566 [09:08:49]File name is /storage/ofd_packets/00019566 [09:08:49]Write 449 bytes [09:08:49]NVStorageSaveData done [09:08:49]OFDSenderStorePacket done [09:08:49]KKMCreateOFDPacket done [09:08:49]NVStorageSaveData kkm_last_timestamp [09:08:49]File name is /storage/kkm_last_timestamp [09:08:49]Write 4 bytes [09:08:49]NVStorageSaveData done [09:08:49]ExternCall_PrintAddStr [09:08:49]wPrintStart [09:08:49]Write to MH i2c: 01 00 00 DD 04 E1 [09:08:49]OFD Sender: Processing packet 19566 [packets to send 63, broken 62] [09:08:49]ProducePacketName [09:08:49]name=ofd_packets/00019566 [09:08:49]OFD Sender: To server: pG, [09:08:49]CommunicateWithHost lk.salyk.kg:30040 [09:08:49]ConnectInit lk.salyk.kg [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 07 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [09:08:49]RasterBufferAndPrint [09:08:49]line Счет N : (3)117493 [09:08:49]line ИНН: 02508201610067 [09:08:49]line Контрольно-Кассовый Чек [09:08:49]line ПРОДАЖА [09:08:49]line Товар: 47803008 [09:08:49]line Сигареты Winston XS Blue [09:08:49]line 2.000 * 144.00 [09:08:49]line = 288.00 [09:08:49]line НДС 12% НСП 1% [09:08:49]line > о реализуемом товаре [09:08:49]line Товар: 46114709 [09:08:49]line Жев Ментос Тутти Фрутти 8*6*54г банка [09:08:49]line 1.000 * 205.00 [09:08:49]line = 205.00 [09:08:49]line НДС 12% НСП 1% [09:08:49]line > о реализуемом товаре [09:08:49]line ИТОГО: 493.00 [09:08:49]line НСП 1% : 4.36 [09:08:49]line НДС 12% : 52.35 [09:08:49]line Наличными: 493.00 [09:08:49]line Безнал.: 0.00 [09:08:49]line Место: АЗС № 93 "Партнер Нефть" [09:08:49]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:08:49]line СНО: Общий режим [09:08:49]line Чек 16 21.09.2024 09:08 [09:08:49]line Смена: 232 ФФД: 1.0 [09:08:49]line ЗНМ: 0300000060 [09:08:49]line РНМ: 0000000000146239 [09:08:49]line Версия ККМ: v1.0 [09:08:49]line ФМ: 0000000000959362 [09:08:49]line ФД: 19566 [09:08:49]line ФПД: 176180231460547 [09:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T090849&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19566&fm=176180231460547&tin=02508201610067®Number=0000000000146239&sum=49300 [09:08:49]line 0 [09:08:49]written 0, free lines is 4095 [09:08:50]Write to MH i2c: 01 00 00 0C 05 11 [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: 01 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: 01 07 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 1A 0C 3E [09:08:50]RasterBufferAndPrint [09:08:50]line [09:08:50]line [09:08:50]line [09:08:50]line [09:08:50]line [09:08:50]written 0, free lines is 3101 [09:08:50]MH_Cut [09:08:50]Write to MH i2c: D1 01 00 13 05 01 EA [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: D1 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: D1 01 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: D1 01 00 13 05 00 E9 [09:08:50]Write to MH i2c: 01 00 00 14 05 19 [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:51]*** Cut start [09:08:51]*** Partial cut [09:08:51]*** CUTSNS_PIN = 1 [09:08:51]*** CUTSNS_PIN = 0 [09:08:51]Connected sock=11 [09:08:51]Data to sent: 87 95 [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:48]recv_with_timeout no data received [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:34]recv_with_timeout no data received [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]recv_with_timeout no data received [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:13:58]int [09:13:58]Write to MH i2c: 01 00 00 18 05 1D [09:13:58]*** FLAG_PRN_KEY set [09:13:58]Write i2c OK [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 18 05 00 08 00 00 00 FF 0F 3A [09:13:58]state=0 [09:13:58]Key pressed [09:13:58]Feed [09:13:58]Write to MH i2c: D8 00 00 19 05 F5 [09:13:58]Write i2c OK [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: D8 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: D8 01 00 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: D8 01 00 19 05 00 F6 [09:13:58]int [09:13:58]Write to MH i2c: 01 00 00 1A 05 1F [09:13:58]Write i2c OK [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 1A 05 00 48 00 00 00 3C 00 AA [09:13:58]state=2 [09:13:58]Key pressed [09:13:58]int [09:13:58]Write to MH i2c: 01 00 00 1B 05 20 [09:13:58]*** FLAG_PRN_KEY reset [09:13:58]Write i2c OK [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 [09:13:58]MH_I2C_Read... [09:13:58]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 F5 0F 2B [09:13:58]state=2 [09:13:58]Stop feed [09:14:01]recv_with_timeout no data received [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:25]recv_with_timeout no data received [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:43]recv_with_timeout no data received [09:16:48]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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:27]accept exits with 8 [09:24:27]New connection [09:24:27]New thread 3067395428 created [09:24:27]Thread 3067252068 joined [09:24:27]Waiting for new connection... [09:24:27] Sock 8.Parse request [09:24:27]Sock 8.Check first char [09:24:27]Sock 8.First char is OK [09:24:27]request: POST /json_proto HTTP/1.0 [09:24:27]Method: POST [09:24:27]URL: /json_proto [09:24:27]Method is POST - this is cgi request [09:24:27]url: /json_proto [09:24:27]query_string will be loaded in cgi processing [09:24:27]execute_cgi json_proto POST (null) [09:24:27]execute_cgi path=json_proto method=POST [09:24:27]POST find Content-Length [09:24:27]Host: 172.17.42.73:8080 [09:24:27]Content-Length: 646 [09:24:27]Content-Type: application/json [09:24:27] [09:24:27]POST finish read [09:24:27]Found Content-Length = 646 [09:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117494", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:27]execute_script... [09:24: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)117494", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:27]POST & json_proto [09:24:27]process_json_proto [09:24:27]json parsed OK: [09:24:27]protocol is kg_v1.0 [09:24:27]action value=close_receipt [09:24:27]process_action close_receipt [09:24:27]cmd_close_receipt [09:24:27]MH_GetDate [09:24:27]Write to MH i2c: F0 00 00 1C 05 10 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 09 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 09 00 1C 05 00 CD 90 EE 66 99 54 47 66 64 [09:24:27]GetLastDocTimeStamp 1726909729 [09:24:27]current date 1726910669 [09:24:27]FM_GetShiftState [09:24:27]SAM_PROTO_GetShiftState [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 13 01 00 [09:24:27]Write to MH i2c: E2 08 00 1D 05 80 13 01 00 00 00 00 00 9F [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0E 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0E 00 1D 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 25 [09:24:27]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:24:27]wFMCommunicate OK [09:24:27]SAM_PROTO_GetShiftState done [09:24:27]FM_GetShiftState done [09:24:27]opened in 1726877463 [09:24:27]opened+sec_in_day 1726963863 [09:24:27]quantity*price = 13000 [09:24:27]sum+1 = 13001 [09:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 17 21.09.2024 09:24 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19567 ФПД: 37485276897920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092429&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19567&fm=37485276897920&tin=02508201610067®Number=0000000000146239&sum=13000 0 [09:24:28]StoreToDocumentArchive [09:24:28]shift 232 fd 19567 [09:24:28]save to /storage/0232/doc_00019567 [09:24:28]save last doc name /storage/0232/doc_00019567 to /storage/kkm_last_doc_name [09:24:28]save OK [09:24:28]Clear old archive folders... [09:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:24:28]tlvbuf is 01DD6250 [09:24:28]SAM_PROTO_ClearQueue [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 09 00 00 [09:24:28]Write to MH i2c: E2 08 00 2A 05 80 09 00 00 00 00 00 00 A1 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_ClearQueue done [09:24:28]KKMCreateOFDPacket [09:24:28]OFDProtocolAddRootSTLVToBuf [09:24:28]FM_MakeSignedData [09:24:28]FM_MakeSignedData [09:24:28]SAM_PROTO_SignData [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 01 02 [09:24:28]Write to MH i2c: E2 08 00 2B 05 80 0D 01 02 00 00 00 00 A9 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=255 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD 90 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 [09:24:28]Write to MH i2c: E2 02 01 2C 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 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 11 00 00 00 F4 03 04 00 CD 90 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 00 00 62 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]OFD Sender: No OFD packet to send [09:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:29]Read from MH i2c: E2 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 03 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [09:24:29]RAPDU: 90 00 [09:24:29]wFMCommunicate OK [09:24:29]wFMCommunicate request_size=41 [09:24:29]MH_SAM_APDU [09:24:29]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6F 4C 00 00 35 04 06 00 22 17 B8 9D 22 80 [09:24:29]Write to MH i2c: E2 2C 00 2D 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 6F 4C 00 00 35 04 06 00 22 17 B8 9D 22 80 00 00 68 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:29]Read from MH i2c: E2 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 03 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [09:24:29]RAPDU: 90 00 [09:24:29]wFMCommunicate OK [09:24:29]wFMCommunicate request_size=4 [09:24:29]MH_SAM_APDU [09:24:29]CAPDU: 80 0D 03 02 [09:24:29]Write to MH i2c: E2 08 00 2E 05 80 0D 03 02 00 00 00 00 AE [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:29]Read from MH i2c: E2 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 0B 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 0B 00 2E 05 00 E8 74 98 9F 20 0F F0 64 90 00 C5 [09:24:29]RAPDU: E8 74 98 9F 20 0F F0 64 90 00 [09:24:29]wFMCommunicate OK [09:24:29]SAM_PROTO_SignData done [09:24:29]FM_MakeSignedData done [09:24:29]CreateOFDProtocolMessage [09:24:29]wFMCommunicate request_size=4 [09:24:29]MH_SAM_APDU [09:24:29]CAPDU: 80 11 00 00 [09:24:29]Write to MH i2c: E2 08 00 2F 05 80 11 00 00 00 00 00 00 AE [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:29]Read from MH i2c: E2 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 17 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 17 00 2F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 03 [09:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:24:29]wFMCommunicate OK [09:24:29]CreateOFDProtocolMessage done [09:24:29]OFDSenderStorePacket 19567 [09:24:29]StoreOFDPacket docnum=19567 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572569 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10960012+1715950745=1726910757 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 50 00 FF FF A6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 26 91 EE 66 99 54 47 66 A4 [09:25:58]Current date/time: 21.09.2024 09:25 [09:25:58]FM_Init [09:25:58]wFMConnect [09:25:58]MH_SAM_On [09:25:58]Write to MH i2c: E0 00 00 08 00 E7 [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_init finished! [09:25:58]*** atr: [09:25:58]*** 0F 3B D5 18 FF 81 91 FE [09:25:58]*** 1F C3 80 73 C8 21 10 0A [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]*** 00 00 00 00 00 00 00 00 [09:25:58]Read from MH i2c: E0 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E0 10 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:25:58]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:25:58]wFMCommunicate request_size=10 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:25:58]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 0E 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [09:26:00]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:26:00]wFMCommunicate OK [09:26:00]SAM_PROTO_GetShiftState done [09:26:00]FM_GetShiftState done [09:26:00]req_shift_opened done [09:26:00]requested_item shift.open_date is exist - process it [09:26:00]req_shift_open_date [09:26:00]req_shift_open_date done [09:26:00]produce_requested_data done [09:26:00]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19567,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:26:00]process_action_free get_value [09:26:00]json_value_free [09:26:00]json_value_free done [09:26:00]process_json_proto returns [09:26:00]Send response to host [09:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19567,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:26:00]free response buf [09:26:00]execute_script done [09:26:00]execute_script returns [09:26:00]free content buf [09:26:00]Sock 6.Close socket [09:26:00]Sock 6.Thread stoped [09:26:00]accept exits with 8 [09:26:00]New connection [09:26:00]New thread 3067260260 created [09:26:00]Thread 3067403620 joined [09:26:00]Waiting for new connection... [09:26:00] Sock 8.Parse request [09:26:00]Sock 8.Check first char [09:26:00]Sock 8.First char is OK [09:26:00]request: POST /json_proto HTTP/1.0 [09:26:00]Method: POST [09:26:00]URL: /json_proto [09:26:00]Method is POST - this is cgi request [09:26:00]url: /json_proto [09:26:00]query_string will be loaded in cgi processing [09:26:00]execute_cgi json_proto POST (null) [09:26:00]execute_cgi path=json_proto method=POST [09:26:00]POST find Content-Length [09:26:00]Host: 172.17.42.73:8080 [09:26:00]Content-Length: 331 [09:26:00]Content-Type: application/json [09:26:00] [09:26:00]POST finish read [09:26:00]Found Content-Length = 331 [09:26:00]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" ] } } [09:26:00]execute_script... [09:26:00]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" ] } } [09:26:00]POST & json_proto [09:26:00]process_json_proto [09:26:00]json parsed OK: [09:26:00]protocol is kg_v1.0 [09:26:00]action value=get_value [09:26:00]process_action get_value [09:26:00]cmd_get_value [09:26:00]process_action get_value done [09:26:00]requested_data is exist [09:26:00]produce_requested_data [09:26:00]requested_item fm.sale.total is exist - process it [09:26:00]SAM_PROTO_GetFMData [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 13 03 00 [09:26:00]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 FD 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 9F 4A 00 00 69 04 A0 00 6F 04 04 00 87 4A 00 00 B1 04 04 00 50 30 A2 67 70 04 04 00 0C 71 85 43 72 04 04 00 44 BF 1C 24 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 D3 96 01 0B 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 B2 C3 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 73 [09:26:00]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 9F 4A 00 00 69 04 A0 00 6F 04 04 00 87 4A 00 00 B1 04 04 00 50 30 A2 67 70 04 04 00 0C 71 85 43 72 04 04 00 44 BF 1C 24 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 D3 96 01 0B 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 B2 C3 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 17 00 00 [09:26:00]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 FD 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 73 [09:26:00]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 17 00 00 [09:26:00]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 FD 00 [09:26:00]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [09:26:01]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [09:26:01]wFMCommunicate OK [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 17 00 00 [09:26:01]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 FD 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 [09:26:02]Read from MH i2c: E2 FD 00 1B 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 03 90 00 10 [09:26:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [09:26:03]wFMCommunicate OK [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 17 00 00 [09:26:03]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 CA 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [09:26:03]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetShiftData done [09:26:03]requested_item shift.sale.total_cash is exist - process it [09:26:03]requested_item shift.sale_refund.total is exist - process it [09:26:03]requested_item shift.sale_refund.total_cash is exist - process it [09:26:03]requested_item shift.buy.total is exist - process it [09:26:03]requested_item shift.buy.total_cash is exist - process it [09:26:03]produce_requested_data done [09:26:03]produce_requested_data return {"fm.sale.total":17386824.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":11770.03,"shift.sale.total_cash":11170.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} [09:26:03]process_action_free get_value [09:26:03]json_value_free [09:26:03]json_value_free done [09:26:03]process_json_proto returns [09:26:03]Send response to host [09:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17386824.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":11770.03,"shift.sale.total_cash":11170.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}}} [09:26:03]free response buf [09:26:03]execute_script done [09:26:03]execute_script returns [09:26:03]free content buf [09:26:03]Sock 8.Close socket [09:26:03]Sock 8.Thread stoped [09:26:03]accept exits with 6 [09:26:03]New connection [09:26:03]New thread 3067403620 created [09:26:03]Thread 3067260260 joined [09:26:03]Waiting for new connection... [09:26:03] Sock 6.Parse request [09:26:03]Sock 6.Check first char [09:26:03]Sock 6.First char is OK [09:26:03]request: POST /json_proto HTTP/1.0 [09:26:03]Method: POST [09:26:03]URL: /json_proto [09:26:03]Method is POST - this is cgi request [09:26:03]url: /json_proto [09:26:03]query_string will be loaded in cgi processing [09:26:03]execute_cgi json_proto POST (null) [09:26:03]execute_cgi path=json_proto method=POST [09:26:03]POST find Content-Length [09:26:03]Host: 172.17.42.73:8080 [09:26:03]Content-Length: 679 [09:26:03]Content-Type: application/json [09:26:03] [09:26:03]POST finish read [09:26:03]Found Content-Length = 679 [09:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:03]execute_script... [09:26:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:03]POST & json_proto [09:26:03]process_json_proto [09:26:03]json parsed OK: [09:26:03]protocol is kg_v1.0 [09:26:03]action value=close_receipt [09:26:03]process_action close_receipt [09:26:03]cmd_close_receipt [09:26:03]MH_GetDate [09:26:03]Write to MH i2c: F0 00 00 1D 00 0C [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: F0 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: F0 09 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: F0 09 00 1D 00 00 2C 91 EE 66 99 54 47 66 C0 [09:26:03]GetLastDocTimeStamp 1726910669 [09:26:03]current date 1726910764 [09:26:03]FM_GetShiftState [09:26:03]SAM_PROTO_GetShiftState [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 13 01 00 [09:26:03]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 21 [09:26:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetShiftState done [09:26:03]FM_GetShiftState done [09:26:03]opened in 1726877463 [09:26:03]opened+sec_in_day 1726963863 [09:26:03]quantity*price = 50010 [09:26:03]sum+1 = 50012 [09:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 18 21.09.2024 09:26 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19568 ФПД: 112982028651661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092604&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19568&fm=112982028651661&tin=02508201610067®Number=0000000000146239&sum=50000 [09:26:05]StoreToDocumentArchive [09:26:05]shift 232 fd 19568 [09:26:05]save to /storage/0232/doc_00019568 [09:26:05]save last doc name /storage/0232/doc_00019568 to /storage/kkm_last_doc_name [09:26:05]save OK [09:26:05]Clear old archive folders... [09:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:05]tlvbuf is 00F0D1D0 [09:26:05]SAM_PROTO_ClearQueue [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 09 00 00 [09:26:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:26:05]RAPDU: 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_ClearQueue done [09:26:05]KKMCreateOFDPacket [09:26:05]OFDProtocolAddRootSTLVToBuf [09:26:05]FM_MakeSignedData [09:26:05]FM_MakeSignedData [09:26:05]SAM_PROTO_SignData [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 0D 01 02 [09:26:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:26:05]RAPDU: 90 00 [09:26:05]wFMCommunicate OK [09:26:05]wFMCommunicate request_size=255 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2C 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 70 4C 00 00 35 04 06 00 66 [09:26:05]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2C 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 70 4C 00 00 35 04 06 00 66 00 00 3B [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:26:05]RAPDU: 90 00 [09:26:05]wFMCommunicate OK [09:26:05]wFMCommunicate request_size=10 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 0D 02 02 05 C1 AD AF 0C 8D [09:26:05]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C1 AD AF 0C 8D 00 00 68 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:26:05]RAPDU: 90 00 [09:26:05]wFMCommunicate OK [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 0D 03 02 [09:26:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0B 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0B 00 2F 00 00 F7 5A 73 8D A3 DA FA B2 90 00 25 [09:26:05]RAPDU: F7 5A 73 8D A3 DA FA B2 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_SignData done [09:26:05]FM_MakeSignedData done [09:26:05]CreateOFDProtocolMessage [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 11 00 00 [09:26:05]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [09:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:26:05]wFMCommunicate OK [09:26:05]CreateOFDProtocolMessage done [09:26:05]OFDSenderStorePacket 19568 [09:26:05]StoreOFDPacket docnum=19568 [09:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 09 8F 07 01 67 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2C 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 70 4C 00 00 35 04 06 00 66 C1 AD AF 0C 8D F7 5A 73 8D A3 DA FA B2 [09:26:05]CheckFolder [09:26:05]dirname=/storage/ofd_packets [09:26:05]CheckFolder done [09:26:05]ProducePacketName [09:26:05]name=ofd_packets/00019568 [09:26:05]NVStorageSaveData ofd_packets/00019568 [09:26:05]File name is /storage/ofd_packets/00019568 [09:26:05]Write 301 bytes [09:26:05]NVStorageSaveData done [09:26:05]OFDSenderStorePacket done [09:26:05]KKMCreateOFDPacket done [09:26:05]NVStorageSaveData kkm_last_timestamp [09:26:05]File name is /storage/kkm_last_timestamp [09:26:05]Write 4 bytes [09:26:05]NVStorageSaveData done [09:26:05]ExternCall_PrintAddStr [09:26:05]wPrintStart [09:26:05]Write to MH i2c: 01 00 00 31 00 31 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: 01 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: 01 07 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:26:05]RasterBufferAndPrint [09:26:05]line Счет N : (1)23699559 [09:26:05]line ИНН: 02508201610067 [09:26:05]line Контрольно-Кассовый Чек [09:26:05]line ПРОДАЖА [09:26:05]line ТРК (МРК, ГНК) : 31 [09:26:05]line Товар: 2710124500 [09:26:05]line Аи-95-К-5 [09:26:05]line 6.740 * 74.20 [09:26:05]line = 500.11 [09:26:05]line НДС 12% НСП 1% [09:26:05]line > о реализуемом товаре [09:26:06]line ОКРУГЛЕНИЕ: -0.11 [09:26:06]line ИТОГО: 500.00 [09:26:06]line Внесено: 500.00 [09:26:06]line СДАЧА: 0.00 [09:26:06]line НСП 1% : 4.43 [09:26:06]line НДС 12% : 53.11 [09:26:06]line Наличными: 500.00 [09:26:06]line Безнал.: 0.00 [09:26:06]line Место: АЗС № 93 "Партнер Нефть" [09:26:06]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:26:06]line СНО: Общий режим [09:26:06]line Чек 18 21.09.2024 09:26 [09:26:06]line Смена: 232 ФФД: 1.0 [09:26:06]line ЗНМ: 0300000060 [09:26:06]line РНМ: 0000000000146239 [09:26:06]line Версия ККМ: v1.0 [09:26:06]line ФМ: 0000000000959362 [09:26:06]line ФД: 19568 [09:26:06]line ФПД: 112982028651661 [09:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092604&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19568&fm=112982028651661&tin=02508201610067®Number=0000000000146239&sum=50000 [09:26:06]OFD Sender: Processing packet 19568 [packets to send 63, broken 62] [09:26:06]ProducePacketName [09:26:06]name=ofd_packets/00019568 [09:26:06]OFD Sender: To server: pG, [09:26:06]CommunicateWithHost lk.salyk.kg:30040 [09:26:06]ConnectInit lk.salyk.kg [09:26:06]written 0, free lines is 4095 [09:26:06]Write to MH i2c: 01 00 00 5C 00 5C [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 07 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 8C 0C FB [09:26:06]RasterBufferAndPrint [09:26:06]line [09:26:06]line [09:26:06]line [09:26:06]line [09:26:06]line [09:26:06]written 0, free lines is 3228 [09:26:06]MH_Cut [09:26:06]Write to MH i2c: D1 01 00 63 00 01 35 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: D1 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: D1 01 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: D1 01 00 63 00 00 34 [09:26:06]Write to MH i2c: 01 00 00 64 00 64 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]Connected sock=11 [09:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 09 8F 07 01 67 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2C 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 70 4C 00 00 35 04 06 00 66 C1 AD AF 0C 8D F7 5A 73 8D A3 DA FA B2 [09:26:07]*** Cut start [09:26:07]*** Partial cut [09:26:07]*** CUTSNS_PIN = 1 [09:26:07]*** CUTSNS_PIN = 0 [09:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 3D 63 47 00 11 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 39 35 39 33 36 32 10 04 04 00 70 4C 00 00 F4 03 04 00 C7 3B EE 66 B6 04 01 00 00 8C C9 23 26 3F 46 CE 35 [09:26:07]CommunicateWithHost err = 0 [09:26:07]CheckOFDResponse [09:26:07]1017 (14) - 77093643461234 [09:26:07]1041 (16) - 0000000000959362 [09:26:07]1040 (4) - 19568 [09:26:07]1012 (4) - 21.09.2024 03:21 [09:26:07]1206 (1) - 0 [09:26:07]OFD Sender: Remove packet 19568 [09:26:07]ProducePacketName [09:26:07]name=ofd_packets/00019568 [09:26:07]NVStorageDeleteData [09:26:07]*** Brake cut motor [09:26:08]Read from MH i2c: 01 [09:26:08]MH_I2C_Read... [09:26:08]*** Stop cut motor [09:26:08]*** Cut end [09:26:08]Read from MH i2c: 01 07 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [09:26:08]process_action close_receipt done [09:26:08]requested_data is exist [09:26:08]produce_requested_data [09:26:08]requested_item fm.sn is exist - process it [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 11 00 00 [09:26:08]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 34 [09:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:26:08]wFMCommunicate OK [09:26:08]requested_item fd.num is exist - process it [09:26:08]SAM_PROTO_GetFieldsCounters [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 13 00 00 [09:26:08]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]OFD Sender: No OFD packet to send [09:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 62 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 70 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [09:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 70 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_GetFieldsCounters done [09:26:08]requested_item shift.num is exist - process it [09:26:08]requested_item shift.opened is exist - process it [09:26:08]req_shift_opened [09:26:08]FM_GetShiftState [09:26:08]SAM_PROTO_GetShiftState [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 13 01 00 [09:26:08]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6A [09:26:08]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_GetShiftState done [09:26:08]FM_GetShiftState done [09:26:08]req_shift_opened done [09:26:08]requested_item shift.open_date is exist - process it [09:26:08]req_shift_open_date [09:26:08]req_shift_open_date done [09:26:08]produce_requested_data done [09:26:08]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19568,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:26:08]process_action_free close_receipt [09:26:08]json_value_free [09:26:08]json_value_free done [09:26:08]process_json_proto returns [09:26:08]Send response to host [09:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19568,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:26:08]free response buf [09:26:08]execute_script done [09:26:08]execute_script returns [09:26:08]free content buf [09:26:08]Sock 6.Close socket [09:26:08]Sock 6.Thread stoped [09:26:13]OFD Sender: No OFD packet to send [09:26:17]recv_with_timeout no data received [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:28]recv_with_timeout no data received [09:26:33]OFD Sender: No OFD packet to send [09:26:37]accept exits with 9 [09:26:37]New connection [09:26:37]New thread 3067260260 created [09:26:37]Thread 3067403620 joined [09:26:37]Waiting for new connection... [09:26:37] Sock 9.Parse request [09:26:37]Sock 9.Check first char [09:26:37]Sock 9.First char is OK [09:26:37]request: POST /json_proto HTTP/1.0 [09:26:37]Method: POST [09:26:37]URL: /json_proto [09:26:37]Method is POST - this is cgi request [09:26:37]url: /json_proto [09:26:37]query_string will be loaded in cgi processing [09:26:37]execute_cgi json_proto POST (null) [09:26:37]execute_cgi path=json_proto method=POST [09:26:37]POST find Content-Length [09:26:37]Host: 172.17.42.73:8080 [09:26:37]Content-Length: 794 [09:26:37]Content-Type: application/json [09:26:37] [09:26:37]POST finish read [09:26:37]Found Content-Length = 794 [09:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:37]execute_script... [09:26:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:37]POST & json_proto [09:26:37]process_json_proto [09:26:37]json parsed OK: [09:26:37]protocol is kg_v1.0 [09:26:37]action value=close_receipt [09:26:37]process_action close_receipt [09:26:37]cmd_close_receipt [09:26:37]MH_GetDate [09:26:37]Write to MH i2c: F0 00 00 68 00 57 [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 09 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 09 00 68 00 00 4D 91 EE 66 99 54 47 66 2C [09:26:37]GetLastDocTimeStamp 1726910764 [09:26:37]current date 1726910797 [09:26:37]FM_GetShiftState [09:26:37]SAM_PROTO_GetShiftState [09:26:37]wFMCommunicate request_size=4 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 13 01 00 [09:26:37]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6C [09:26:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:26:37]wFMCommunicate OK [09:26:37]SAM_PROTO_GetShiftState done [09:26:37]FM_GetShiftState done [09:26:37]opened in 1726877463 [09:26:37]opened+sec_in_day 1726963863 [09:26:37]quantity*price = 0 [09:26:37]sum+1 = 1 [09:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 19 21.09.2024 09:26 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Талоны: Топливная Карта 73053 ФМ: 0000000000959362 ФД: 19569 ФПД: 10556770282730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092637&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19569&fm=10556770282730&tin=02508201610067®Number=0000000000146239&sum=0 [09:26:38]StoreToDocumentArchive [09:26:38]shift 232 fd 19569 [09:26:38]save to /storage/0232/doc_00019569 [09:26:38]save last doc name /storage/0232/doc_00019569 to /storage/kkm_last_doc_name [09:26:38]save OK [09:26:38]Clear old archive folders... [09:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:38]tlvbuf is 00EA1310 [09:26:38]SAM_PROTO_ClearQueue [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 09 00 00 [09:26:38]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]SAM_PROTO_ClearQueue done [09:26:38]KKMCreateOFDPacket [09:26:38]OFDProtocolAddRootSTLVToBuf [09:26:38]FM_MakeSignedData [09:26:38]FM_MakeSignedData [09:26:38]SAM_PROTO_SignData [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 0D 01 02 [09:26:38]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]wFMCommunicate request_size=255 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4D 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 71 4C 00 00 35 04 06 00 09 [09:26:38]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4D 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 71 4C 00 00 35 04 06 00 09 00 00 26 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:26:39]RAPDU: 90 00 [09:26:39]wFMCommunicate OK [09:26:39]wFMCommunicate request_size=10 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 0D 02 02 05 99 F0 8A EC EA [09:26:39]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 99 F0 8A EC EA 00 00 E6 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [09:26:39]RAPDU: 90 00 [09:26:39]wFMCommunicate OK [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 0D 03 02 [09:26:39]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 0B 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 0B 00 7A 00 00 4B E9 AC 8B 21 4A 51 6D 90 00 8A [09:26:39]RAPDU: 4B E9 AC 8B 21 4A 51 6D 90 00 [09:26:39]wFMCommunicate OK [09:26:39]SAM_PROTO_SignData done [09:26:39]FM_MakeSignedData done [09:26:39]CreateOFDProtocolMessage [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 11 00 00 [09:26:39]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 4A [09:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:26:39]wFMCommunicate OK [09:26:39]CreateOFDProtocolMessage done [09:26:39]OFDSenderStorePacket 19569 [09:26:39]StoreOFDPacket docnum=19569 [09:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 B7 85 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4D 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 71 4C 00 00 35 04 06 00 09 99 F0 8A EC EA 4B E9 AC 8B 21 4A 51 6D [09:26:39]CheckFolder [09:26:39]dirname=/storage/ofd_packets [09:26:39]CheckFolder done [09:26:39]ProducePacketName [09:26:39]name=ofd_packets/00019569 [09:26:39]NVStorageSaveData ofd_packets/00019569 [09:26:39]File name is /storage/ofd_packets/00019569 [09:26:39]Write 301 bytes [09:26:39]NVStorageSaveData done [09:26:39]OFDSenderStorePacket done [09:26:39]KKMCreateOFDPacket done [09:26:39]NVStorageSaveData kkm_last_timestamp [09:26:39]File name is /storage/kkm_last_timestamp [09:26:39]Write 4 bytes [09:26:39]NVStorageSaveData done [09:26:39]ExternCall_PrintAddStr [09:26:39]wPrintStart [09:26:39]Write to MH i2c: 01 00 00 7C 00 7C [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 [09:26:39]MH_I2C_Read... [09:26:39]OFD Sender: Processing packet 19569 [packets to send 63, broken 62] [09:26:39]ProducePacketName [09:26:39]name=ofd_packets/00019569 [09:26:39]OFD Sender: To server: pG, [09:26:39]CommunicateWithHost lk.salyk.kg:30040 [09:26:39]ConnectInit lk.salyk.kg [09:26:39]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [09:26:39]RasterBufferAndPrint [09:26:39]line Счет N : (1)23699560 [09:26:39]line ИНН: 02508201610067 [09:26:39]line Контрольно-Кассовый Чек [09:26:39]line ПРОДАЖА [09:26:39]line ТРК (МРК, ГНК) : 42 [09:26:39]line Товар: 2710124130 [09:26:39]line Аи-92-К-5 [09:26:39]line 10.000 * 0.00 [09:26:39]line = 0.00 [09:26:39]line НДС 12% НСП 1% [09:26:39]line > о реализуемом товаре [09:26:39]line ИТОГО: 0.00 [09:26:39]line НСП 1% : 0.00 [09:26:39]line НДС 12% : 0.00 [09:26:39]line Наличными: 0.00 [09:26:39]line Безнал.: 0.00 [09:26:39]line Место: АЗС № 93 "Партнер Нефть" [09:26:39]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:26:39]line СНО: Общий режим [09:26:39]line Чек 19 21.09.2024 09:26 [09:26:39]line Смена: 232 ФФД: 1.0 [09:26:39]line ЗНМ: 0300000060 [09:26:39]line РНМ: 0000000000146239 [09:26:39]line Версия ККМ: v1.0 [09:26:39]line Талоны: Топливная Карта [09:26:39]line 73053 [09:26:39]line ФМ: 0000000000959362 [09:26:39]line ФД: 19569 [09:26:39]line ФПД: 10556770282730 [09:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092637&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19569&fm=10556770282730&tin=02508201610067®Number=0000000000146239&sum=0 [09:26:39]written 0, free lines is 4095 [09:26:39]Write to MH i2c: 01 00 00 A6 00 A6 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 A2 0C 5B [09:26:39]RasterBufferAndPrint [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]written 0, free lines is 3244 [09:26:39]MH_Cut [09:26:39]Write to MH i2c: D1 01 00 AD 00 01 7F [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 01 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 01 00 AD 00 00 7E [09:26:39]Write to MH i2c: 01 00 00 AE 00 AE [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Connected sock=11 [09:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 B7 85 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 recv_with_timeout no data received [09:26:40]04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4D 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 71 4C 00 00 35 04 06 00 09 99 F0 8A EC EA 4B E9 AC 8B 21 4A 51 6D [09:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F5 C4 47 00 E1 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 39 35 39 33 36 32 10 04 04 00 71 4C 00 00 F4 03 04 00 E8 3B EE 66 B6 04 01 00 00 E5 8E 99 35 27 BF 3B EC [09:26:40]CommunicateWithHost err = 0 [09:26:40]CheckOFDResponse [09:26:40]1017 (14) - 77093643461234 [09:26:40]1041 (16) - 0000000000959362 [09:26:40]1040 (4) - 19569 [09:26:40]1012 (4) - 21.09.2024 03:22 [09:26:40]1206 (1) - 0 [09:26:40]OFD Sender: Remove packet 19569 [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00019569 [09:26:40]NVStorageDeleteData [09:26:40]*** Cut start [09:26:40]*** Partial cut [09:26:40]*** CUTSNS_PIN = 1 [09:26:40]*** CUTSNS_PIN = 0 [09:26:41]*** Brake cut motor [09:26:41]OFD Sender: No OFD packet to send [09:26:41]Read from MH i2c: 01 [09:26:41]MH_I2C_Read... [09:26:41]*** Stop cut motor [09:26:41]*** Cut end [09:26:41]Read from MH i2c: 01 07 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [09:26:41]process_action close_receipt done [09:26:41]requested_data is exist [09:26:41]produce_requested_data [09:26:41]requested_item fm.sn is exist - process it [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 11 00 00 [09:26:41]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:41]Read from MH i2c: E2 17 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7E [09:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:26:41]wFMCommunicate OK [09:26:41]requested_item fd.num is exist - process it [09:26:41]SAM_PROTO_GetFieldsCounters [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 13 00 00 [09:26:41]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 62 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 71 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [09:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 71 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:41]wFMCommunicate OK [09:26:41]SAM_PROTO_GetFieldsCounters done [09:26:41]requested_item shift.num is exist - process it [09:26:41]requested_item shift.opened is exist - process it [09:26:41]req_shift_opened [09:26:41]FM_GetShiftState [09:26:41]SAM_PROTO_GetShiftState [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 13 01 00 [09:26:41]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B4 [09:26:41]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:26:41]wFMCommunicate OK [09:26:41]SAM_PROTO_GetShiftState done [09:26:41]FM_GetShiftState done [09:26:41]req_shift_opened done [09:26:41]requested_item shift.open_date is exist - process it [09:26:41]req_shift_open_date [09:26:41]req_shift_open_date done [09:26:41]produce_requested_data done [09:26:41]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19569,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:26:41]process_action_free close_receipt [09:26:41]json_value_free [09:26:41]json_value_free done [09:26:41]process_json_proto returns [09:26:41]Send response to host [09:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19569,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:26:41]free response buf [09:26:41]execute_script done [09:26:41]execute_script returns [09:26:41]free content buf [09:26:41]Sock 9.Close socket [09:26:41]Sock 9.Thread stoped [09:26:46]OFD Sender: No OFD packet to send [09:26:50]recv_with_timeout no data received [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:00]recv_with_timeout no data received [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send A5 91 EE 66 00 00 D1 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=25 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [09:28:05]Write to MH i2c: E2 1C 00 BD 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 9F [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 15 03 00 [09:28:05]Write to MH i2c: E2 08 00 BE 00 80 15 03 00 00 00 00 00 3F [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 40 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 40 00 BE 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 72 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 14 00 00 00 35 04 06 00 75 49 89 DB E1 75 90 00 69 [09:28:06]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 72 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 14 00 00 00 35 04 06 00 75 49 89 DB E1 75 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_ProcessDocument answer len = 59 [09:28:06]SAM_PROTO_ProcessDocument done [09:28:06]SetTLVBufToDocument [09:28:06]Processing tag 1209 (04B9) [09:28:06]Malloc new data [09:28:06]Processing tag 1041 (0411) [09:28:06]Processing tag 1040 (0410) [09:28:06]Malloc new data [09:28:06]Processing tag 1038 (040E) [09:28:06]Malloc new data [09:28:06]Processing tag 1042 (0412) [09:28:06]Malloc new data [09:28:06]Processing tag 1077 (0435) [09:28:06]Malloc new data [09:28:06]SetTLVBufToDocument err=0 [09:28:06]KKMLoadAndSignReceiptData store KKM data [09:28:06]KKMLoadAndSignReceiptData err=0 [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 BF 00 80 11 00 00 00 00 00 00 39 [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 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 8E [09:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:28:06]wFMCommunicate OK [09:28:06]Счет N : (3)117495 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 47803008 Сигареты Winston XS Blue 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 20 21.09.2024 09:28 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19570 ФПД: 128958705951093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092805&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19570&fm=128958705951093&tin=02508201610067®Number=0000000000146239&sum=28800 0 [09:28:06]StoreToDocumentArchive [09:28:06]shift 232 fd 19570 [09:28:06]save to /storage/0232/doc_00019570 [09:28:06]save last doc name /storage/0232/doc_00019570 to /storage/kkm_last_doc_name [09:28:06]save OK [09:28:06]Clear old archive folders... [09:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=269 [09:28:06]tlvbuf is 00EAF4C0 [09:28:06]SAM_PROTO_ClearQueue [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 09 00 00 [09:28:06]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]OFD Sender: No OFD packet to send [09:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_ClearQueue done [09:28:06]KKMCreateOFDPacket [09:28:06]OFDProtocolAddRootSTLVToBuf [09:28:06]FM_MakeSignedData [09:28:06]FM_MakeSignedData [09:28:06]SAM_PROTO_SignData [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 0D 01 02 [09:28:06]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]wFMCommunicate request_size=255 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A5 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [09:28:06]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A5 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 F4 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]wFMCommunicate request_size=28 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 0D 02 02 17 35 39 33 36 32 10 04 04 00 72 4C 00 00 35 04 06 00 75 49 89 DB E1 75 [09:28:06]Write to MH i2c: E2 1F 00 C3 00 80 0D 02 02 17 00 35 39 33 36 32 10 04 04 00 72 4C 00 00 35 04 06 00 75 49 89 DB E1 75 00 00 01 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 0D 03 02 [09:28:06]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0B 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0B 00 C4 00 00 27 6B B1 4D 17 92 E5 35 90 00 93 [09:28:06]RAPDU: 27 6B B1 4D 17 92 E5 35 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_SignData done [09:28:06]FM_MakeSignedData done [09:28:06]CreateOFDProtocolMessage [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 C5 00 80 11 00 00 00 00 00 00 3F [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 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 94 [09:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:28:06]wFMCommunicate OK [09:28:06]CreateOFDProtocolMessage done [09:28:06]OFDSenderStorePacket 19570 [09:28:06]StoreOFDPacket docnum=19570 [09:28:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 27 CE 19 01 CF AA 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A5 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 72 4C 00 00 35 04 06 00 75 49 89 DB E1 75 27 6B B1 4D 17 92 E5 35 [09:28:06]CheckFolder [09:28:06]dirname=/storage/ofd_packets [09:28:06]CheckFolder done [09:28:06]ProducePacketName [09:28:06]name=ofd_packets/00019570 [09:28:06]NVStorageSaveData ofd_packets/00019570 [09:28:06]File name is /storage/ofd_packets/00019570 [09:28:06]Write 319 bytes [09:28:06]NVStorageSaveData done [09:28:06]OFDSenderStorePacket done [09:28:06]KKMCreateOFDPacket done [09:28:06]NVStorageSaveData kkm_last_timestamp [09:28:06]File name is /storage/kkm_last_timestamp [09:28:06]Write 4 bytes [09:28:06]NVStorageSaveData done [09:28:06]OFD Sender: Processing packet 19570 [packets to send 63, broken 62] [09:28:06]ProducePacketName [09:28:06]name=ofd_packets/00019570 [09:28:06]OFD Sender: To server: pG, [09:28:06]CommunicateWithHost lk.salyk.kg:30040 [09:28:06]ConnectInit lk.salyk.kg [09:28:06]ExternCall_PrintAddStr [09:28:06]wPrintStart [09:28:06]Write to MH i2c: 01 00 00 C6 00 C6 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 [09:28:06]MH_I2C_Read... [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 C6 00 00 00 00 00 00 FF 0F DB [09:28:06]RasterBufferAndPrint [09:28:06]line Счет N : (3)117495 [09:28:06]line ИНН: 02508201610067 [09:28:06]line Контрольно-Кассовый Чек [09:28:06]line ПРОДАЖА [09:28:06]line Товар: 47803008 [09:28:06]line Сигареты Winston XS Blue [09:28:06]line 2.000 * 144.00 [09:28:06]line = 288.00 [09:28:06]line НДС 12% НСП 1% [09:28:06]line > о реализуемом товаре [09:28:06]line ИТОГО: 288.00 [09:28:06]line НСП 1% : 2.55 [09:28:06]line НДС 12% : 30.58 [09:28:06]line Наличными: 288.00 [09:28:06]line Безнал.: 0.00 [09:28:06]line Место: АЗС № 93 "Партнер Нефть" [09:28:06]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:28:06]line СНО: Общий режим [09:28:06]line Чек 20 21.09.2024 09:28 [09:28:06]line Смена: 232 ФФД: 1.0 [09:28:06]line ЗНМ: 0300000060 [09:28:06]line РНМ: 0000000000146239 [09:28:06]line Версия ККМ: v1.0 [09:28:06]line ФМ: 0000000000959362 [09:28:06]line ФД: 19570 [09:28:06]line ФПД: 128958705951093 [09:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T092805&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19570&fm=128958705951093&tin=02508201610067®Number=0000000000146239&sum=28800 [09:28:07]line 0 [09:28:07]*** FLAG_PRN_KEY set [09:28:07]int [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD 05 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD 05 00 C7 00 00 00 00 FF 0F B6 [09:28:07]written 0, free lines is 4095 [09:28:07]Write to MH i2c: DD 85 01 C8 00 00 00 00 00 21 00 00 00 40 01 60 06 2D 0C 38 00 C0 75 1D 03 F0 07 80 E0 C0 FC 03 7C F8 0F FF 3C F8 07 FE 2D 0C 10 00 C0 0E 06 0F FC C0 C1 FF 03 FC 07 03 FC 2C 0C 00 00 E0 7F 07 1E 0E 01 81 07 01 83 1C 06 38 00 0F 7C 07 8E 2C 0C 10 00 C0 4B 07 38 06 E0 80 03 81 80 00 0E FC 0F 07 2C 0C 00 00 20 02 07 70 00 03 C0 DC 0E 03 2C F0 13 00 00 C0 09 38 38 0F 80 FF FE F0 1E 01 9C 87 2D C4 10 00 48 C1 10 E0 3F E0 70 0E 00 80 1C 03 F8 2D C0 13 00 A0 03 11 78 F0 03 80 78 07 07 00 E0 1C FC 2D C0 10 00 80 C0 1E 70 70 38 7C 3C 06 0F 07 84 1E 2D C0 10 00 88 C0 1E E0 38 3C 00 7E 38 0E 07 8F 80 0E 2D 10 10 00 80 81 16 3C 1C 07 80 0C 03 FB 07 2D F0 10 00 80 C1 06 1F F8 FF F8 1E 03 C0 78 18 01 F3 2D 10 10 00 80 C0 07 0F 0E 01 70 1F FF 80 03 2D F4 10 00 00 00 0C 70 00 38 E0 00 0F 07 00 2D 00 10 00 20 C2 03 07 03 C0 F0 00 1C 00 2D 4C 00 00 C0 41 14 38 06 70 80 03 C1 E0 0E 0E 2D CC 10 00 C8 01 1E 1E 0E 78 10 03 0E 82 07 81 04 1E 08 1E 2D CC 00 00 E0 3F 1E 0F FC 3F F0 01 83 FF 01 81 FF C3 FF 81 07 FC 0F FC 2D CC 10 00 C0 40 1E 03 F0 0F C0 01 80 FC C0 03 F0 03 F0 21 EC 3B 00 E8 01 00 00 00 00 00 00 00 00 00 00 00 00 C0 00 03 21 00 00 00 00 00 21 00 00 00 40 01 60 06 00 00 00 1F [09:28:07]Write to MH i2c: 01 00 00 C8 00 C8 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD 05 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: DD 05 00 [09:28:07]answer for other command [DD] [09:28:07]MH Int Process stopped [09:28:07]Read from MH i2c: DD 05 00 C8 00 00 1E 00 E1 0F B7 [09:28:07]answer with wrong packet_num 00C8 - expected 00C9 [09:28:07]process_action_free close_receipt [09:28:07]json_value_free [09:28:07]json_value_free done [09:28:07]process_json_proto returns [09:28:07]Send response to host [09:28:07]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [09:28:07]free response buf [09:28:07]execute_script done [09:28:07]execute_script returns [09:28:07]free content buf [09:28:07]Sock 10.Close socket [09:28:07]Sock 10.Thread stoped [09:28:07]*** FLAG_PRN_KEY reset [09:28:08]*** FLAG_PRN_KEY set [09:28:08]*** FLAG_PRN_KEY reset [09:28:10]*** FLAG_PRN_PAP1 set [09:28:10]*** FLAG_PRN_PAP2 set [09:28:11]ConnectInit Can't take IP for lk.salyk.kg [09:28:11]CommunicateWithHost connect error [09:28:11]CommunicateWithHost err = -1 [09:28:11]OFD Sender: Server communicate error [09:28:11]*** FLAG_PRN_PAP2 reset [09:28:12]*** FLAG_PRN_PAP2 set [09:28:13]*** FLAG_PRN_PAP2 reset [09:28:13]*** FLAG_PRN_PAP1 reset [09:28:16]OFD Sender: Processing packet 19570 [packets to send 63, broken 62] [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00019570 [09:28:16]OFD Sender: To server: pG, [09:28:16]CommunicateWithHost lk.salyk.kg:30040 [09:28:16]ConnectInit lk.salyk.kg [09:28:21]ConnectInit Can't take IP for lk.salyk.kg [09:28:21]CommunicateWithHost connect error [09:28:21]CommunicateWithHost err = -1 [09:28:21]OFD Sender: Server communicate error [09:28:22]recv_with_timeout no data received [09:28:26]OFD Sender: Processing packet 19570 [packets to send 63, broken 62] [09:28:26]ProducePacketName [09:28:26]name=ofd_packets/00019570 [09:28:26]OFD Sender: To server: pG, [09:28:26]CommunicateWithHost lk.salyk.kg:30040 [09:28:26]ConnectInit lk.salyk.kg [09:28:31]ConnectInit Can't take IP for lk.salyk.kg [09:28:31]CommunicateWithHost connect error [09:28:31]CommunicateWithHost err = -1 [09:28:31]OFD Sender: Server communicate error [09:28:36]OFD Sender: Processing packet 19570 [packets to send 63, broken 62] [09:28:36]ProducePacketName [09:28:36]name=ofd_packets/00019570 [09:28:36]OFD Sender: To server: pG, [09:28:36]CommunicateWithHost lk.salyk.kg:30040 [09:28:36]ConnectInit lk.salyk.kg [09:28:40]recv_with_timeout no data received [09:28:40]Connected sock=6 [09:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 27 CE 19 01 CF AA 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A5 91 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 72 4C 00 00 35 04 06 00 75 49 89 DB E1 75 27 6B B1 4D 17 92 E5 35 [09:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F5 B0 47 00 71 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 72 4C 00 00 F4 03 04 00 61 3C EE 66 B6 04 01 00 00 02 AE CB 1F A8 94 B8 B3 [09:28:41]CommunicateWithHost err = 0 [09:28:41]CheckOFDResponse [09:28:41]1017 (14) - 77093643461234 [09:28:41]1041 (16) - 0000000000959362 [09:28:41]1040 (4) - 19570 [09:28:41]1012 (4) - 21.09.2024 03:24 [09:28:41]1206 (1) - 0 [09:28:41]OFD Sender: Remove packet 19570 [09:28:41]ProducePacketName [09:28:41]name=ofd_packets/00019570 [09:28:41]NVStorageDeleteData [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:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:04]recv_with_timeout no data received [09:28:04]accept exits with 10 [09:28:04]New connection [09:28:04]New thread 3067403620 created [09:28:04]Thread 3067260260 joined [09:28:04]Waiting for new connection... [09:28:04] Sock 10.Parse request [09:28:04]Sock 10.Check first char [09:28:04]Sock 10.First char is OK [09:28:04]request: POST /json_proto HTTP/1.0 [09:28:04]Method: POST [09:28:04]URL: /json_proto [09:28:04]Method is POST - this is cgi request [09:28:04]url: /json_proto [09:28:04]query_string will be loaded in cgi processing [09:28:04]execute_cgi json_proto POST (null) [09:28:04]execute_cgi path=json_proto method=POST [09:28:04]POST find Content-Length [09:28:04]Host: 172.17.42.73:8080 [09:28:04]Content-Length: 617 [09:28:04]Content-Type: application/json [09:28:04] [09:28:04]POST finish read [09:28:04]Found Content-Length = 617 [09:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117495", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:04]execute_script... [09:28: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)117495", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:04]POST & json_proto [09:28:04]process_json_proto [09:28:04]json parsed OK: [09:28:04]protocol is kg_v1.0 [09:28:04]action value=close_receipt [09:28:04]process_action close_receipt [09:28:04]cmd_close_receipt [09:28:04]MH_GetDate [09:28:04]Write to MH i2c: F0 00 00 B2 00 A1 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 09 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 09 00 B2 00 00 A5 91 EE 66 99 54 47 66 CE [09:28:04]GetLastDocTimeStamp 1726910797 [09:28:04]current date 1726910885 [09:28:04]FM_GetShiftState [09:28:04]SAM_PROTO_GetShiftState [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 13 01 00 [09:28:04]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B6 [09:28:04]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_GetShiftState done [09:28:04]FM_GetShiftState done [09:28:04]opened in 1726877463 [09:28:04]opened+sec_in_day 1726963863 [09:28:04]quantity*price = 28800 [09:28:04]sum+1 = 28801 [09:28:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 21 21.09.2024 09:30 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19571 ФПД: 262535429821434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T093022&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19571&fm=262535429821434&tin=02508201610067®Number=0000000000146239&sum=50000 [09:30:22]StoreToDocumentArchive [09:30:22]shift 232 fd 19571 [09:30:22]save to /storage/0232/doc_00019571 [09:30:22]save last doc name /storage/0232/doc_00019571 to /storage/kkm_last_doc_name [09:30:22]save OK [09:30:22]Clear old archive folders... [09:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:30:22]tlvbuf is 00B17740 [09:30:22]SAM_PROTO_ClearQueue [09:30:22]wFMCommunicate request_size=4 [09:30:22]MH_SAM_APDU [09:30:22]CAPDU: 80 09 00 00 [09:30:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:22]Read from MH i2c: E2 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 03 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:30:22]RAPDU: 90 00 [09:30:22]wFMCommunicate OK [09:30:22]SAM_PROTO_ClearQueue done [09:30:22]KKMCreateOFDPacket [09:30:22]OFDProtocolAddRootSTLVToBuf [09:30:22]FM_MakeSignedData [09:30:22]FM_MakeSignedData [09:30:22]SAM_PROTO_SignData [09:30:22]wFMCommunicate request_size=4 [09:30:22]MH_SAM_APDU [09:30:22]CAPDU: 80 0D 01 02 [09:30:22]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:22]Read from MH i2c: E2 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 03 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:30:22]RAPDU: 90 00 [09:30:22]wFMCommunicate OK [09:30:22]wFMCommunicate request_size=255 [09:30:22]MH_SAM_APDU [09:30:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2E 92 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 73 4C 00 00 35 04 06 00 [09:30:22]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2E 92 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 73 4C 00 00 35 04 06 00 00 00 6C [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:30:23]RAPDU: 90 00 [09:30:23]wFMCommunicate OK [09:30:23]wFMCommunicate request_size=11 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 0D 02 02 06 EE C6 4B 09 13 FA [09:30:23]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 EE C6 4B 09 13 FA 00 00 C9 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:30:23]RAPDU: 90 00 [09:30:23]wFMCommunicate OK [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 0D 03 02 [09:30:23]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0B 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0B 00 2F 00 00 86 96 B1 07 17 A5 09 FE 90 00 42 [09:30:23]RAPDU: 86 96 B1 07 17 A5 09 FE 90 00 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_SignData done [09:30:23]FM_MakeSignedData done [09:30:23]CreateOFDProtocolMessage [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 11 00 00 [09:30:23]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [09:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:30:23]wFMCommunicate OK [09:30:23]CreateOFDProtocolMessage done [09:30:23]OFDSenderStorePacket 19571 [09:30:23]StoreOFDPacket docnum=19571 [09:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 16 86 08 01 07 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2E 92 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 73 4C 00 00 35 04 06 00 EE C6 4B 09 13 FA 86 96 B1 07 17 A5 09 FE [09:30:23]CheckFolder [09:30:23]dirname=/storage/ofd_packets [09:30:23]CheckFolder done [09:30:23]ProducePacketName [09:30:23]name=ofd_packets/00019571 [09:30:23]NVStorageSaveData ofd_packets/00019571 [09:30:23]File name is /storage/ofd_packets/00019571 [09:30:23]Write 302 bytes [09:30:23]NVStorageSaveData done [09:30:23]OFDSenderStorePacket done [09:30:23]KKMCreateOFDPacket done [09:30:23]NVStorageSaveData kkm_last_timestamp [09:30:23]File name is /storage/kkm_last_timestamp [09:30:23]Write 4 bytes [09:30:23]NVStorageSaveData done [09:30:23]ExternCall_PrintAddStr [09:30:23]wPrintStart [09:30:23]Write to MH i2c: 01 00 00 31 00 31 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:30:23]RasterBufferAndPrint [09:30:23]line Счет N : (1)23699563 [09:30:23]line ИНН: 02508201610067 [09:30:23]line Контрольно-Кассовый Чек [09:30:23]line ПРОДАЖА [09:30:23]line ТРК (МРК, ГНК) : 52 [09:30:23]line Товар: 2710194210 [09:30:23]line ДТ(л)-К-5 [09:30:23]line 6.570 * 76.20 [09:30:23]line = 500.63 [09:30:23]line НДС 12% НСП 1% [09:30:23]line > о реализуемом товаре [09:30:23]line ОКРУГЛЕНИЕ: -0.63 [09:30:23]line ИТОГО: 500.00 [09:30:23]line Внесено: 500.00 [09:30:23]line СДАЧА: 0.00 [09:30:23]line НСП 1% : 4.43 [09:30:23]line НДС 12% : 53.16 [09:30:23]line Наличными: 500.00 [09:30:23]line Безнал.: 0.00 [09:30:23]line Место: АЗС № 93 "Партнер Нефть" [09:30:23]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [09:30:23]line СНО: Общий режим [09:30:23]line Чек 21 21.09.2024 09:30 [09:30:23]line Смена: 232 ФФД: 1.0 [09:30:23]line ЗНМ: 0300000060 [09:30:23]line РНМ: 0000000000146239 [09:30:23]line Версия ККМ: v1.0 [09:30:23]line ФМ: 0000000000959362 [09:30:23]line ФД: 19571 [09:30:23]line ФПД: 262535429821434 [09:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T093022&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19571&fm=262535429821434&tin=02508201610067®Number=0000000000146239&sum=50000 [09:30:23]OFD Sender: Processing packet 19571 [packets to send 63, broken 62] [09:30:23]ProducePacketName [09:30:23]name=ofd_packets/00019571 [09:30:23]OFD Sender: To server: pG, [09:30:23]CommunicateWithHost lk.salyk.kg:30040 [09:30:23]ConnectInit lk.salyk.kg [09:30:23]written 0, free lines is 4095 [09:30:23]Connected sock=7 [09:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 16 86 08 01 07 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2E 92 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 73 4C 00 00 35 04 06 00 EE C6 4B 09 13 FA 86 96 B1 07 17 A5 09 FE [09:30:23]Write to MH i2c: 01 00 00 5C 00 5C [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 97 0C 06 [09:30:23]RasterBufferAndPrint [09:30:23]line [09:30:23]line [09:30:23]line [09:30:23]line [09:30:23]line [09:30:23]written 0, free lines is 3227 [09:30:24]MH_Cut [09:30:24]Write to MH i2c: D1 01 00 63 00 01 35 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 01 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 01 00 63 00 00 34 [09:30:24]Write to MH i2c: 01 00 00 64 00 64 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 89 53 47 00 E0 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 73 4C 00 00 F4 03 04 00 C8 3C EE 66 B6 04 01 00 00 FC C8 6B F3 BA 83 42 1E [09:30:24]CommunicateWithHost err = 0 [09:30:24]CheckOFDResponse [09:30:24]1017 (14) - 77093643461234 [09:30:24]1041 (16) - 0000000000959362 [09:30:24]1040 (4) - 19571 [09:30:24]1012 (4) - 21.09.2024 03:26 [09:30:24]1206 (1) - 0 [09:30:24]OFD Sender: Remove packet 19571 [09:30:24]ProducePacketName [09:30:24]name=ofd_packets/00019571 [09:30:24]NVStorageDeleteData [09:30:24]OFD Sender: No OFD packet to send [09:30:24]*** Cut start [09:30:24]*** Partial cut [09:30:24]*** CUTSNS_PIN = 1 [09:30:24]*** CUTSNS_PIN = 0 [09:30:25]*** Brake cut motor [09:30:25]Read from MH i2c: 01 [09:30:25]MH_I2C_Read... [09:30:25]*** Stop cut motor [09:30:25]*** Cut end [09:30:25]Read from MH i2c: 01 07 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [09:30:25]process_action close_receipt done [09:30:25]requested_data is exist [09:30:25]produce_requested_data [09:30:25]requested_item fm.sn is exist - process it [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 11 00 00 [09:30:25]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 34 [09:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [09:30:25]wFMCommunicate OK [09:30:25]requested_item fd.num is exist - process it [09:30:25]SAM_PROTO_GetFieldsCounters [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 13 00 00 [09:30:25]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 62 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 73 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [09:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 73 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_GetFieldsCounters done [09:30:25]requested_item shift.num is exist - process it [09:30:25]requested_item shift.opened is exist - process it [09:30:25]req_shift_opened [09:30:25]FM_GetShiftState [09:30:25]SAM_PROTO_GetShiftState [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 13 01 00 [09:30:25]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:25]Read from MH i2c: E2 0E 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6A [09:30:25]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_GetShiftState done [09:30:25]FM_GetShiftState done [09:30:25]req_shift_opened done [09:30:25]requested_item shift.open_date is exist - process it [09:30:25]req_shift_open_date [09:30:25]req_shift_open_date done [09:30:25]produce_requested_data done [09:30:25]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19571,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [09:30:25]process_action_free close_receipt [09:30:25]json_value_free [09:30:25]json_value_free done [09:30:25]process_json_proto returns [09:30:25]Send response to host [09:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19571,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [09:30:25]free response buf [09:30:25]execute_script done [09:30:25]execute_script returns [09:30:25]free content buf [09:30:25]Sock 9.Close socket [09:30:25]Sock 9.Thread stoped [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:17]recv_with_timeout no data received [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:02]recv_with_timeout no data received [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34: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 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [09:26:01]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [09:26:01]wFMCommunicate OK [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 17 00 00 [09:26:01]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 DE 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [09:26:01]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:26:01]wFMCommunicate OK [09:26:01]SAM_PROTO_GetFMData done [09:26:01]requested_item fm.sale_refund.total is exist - process it [09:26:01]requested_item fm.buy.total is exist - process it [09:26:01]requested_item shift.sale.total is exist - process it [09:26:01]SAM_PROTO_GetShiftData [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 13 02 00 [09:26:01]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 FD 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 11 00 00 00 69 04 9A 00 6F 04 04 00 11 00 00 00 B1 04 03 00 AB F5 11 70 04 03 00 48 0B 11 72 04 02 00 63 EA 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 52 E8 01 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 AF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 EC [09:26:02]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 11 00 00 00 69 04 9A 00 6F 04 04 00 11 00 00 00 B1 04 03 00 AB F5 11 70 04 03 00 48 0B 11 72 04 02 00 63 EA 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 52 E8 01 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 AF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [09:26:02]wFMCommunicate OK [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 17 00 00 [09:26:02]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 FD 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00[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:35]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:49]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:36]recv_with_timeout no data received [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:14]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:00]recv_with_timeout no data received [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:25]recv_with_timeout no data received [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:47]recv_with_timeout no data received [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:06]recv_with_timeout no data received [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:34]recv_with_timeout no data received [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:02]recv_with_timeout no data received [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:40]recv_with_timeout no data received [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:52]recv_with_timeout no data received [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:11]recv_with_timeout no data received [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:30]recv_with_timeout no data received [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:38]recv_with_timeout no data received [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:26]recv_with_timeout no data received [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:10]recv_with_timeout no data received [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:19]recv_with_timeout no data received [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:40]recv_with_timeout no data received [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:29]accept exits with 10 [10:15:29]New connection [10:15:29]New thread 3066895716 created [10:15:29]Thread 3067039076 joined [10:15:29]Waiting for new connection... [10:15:29] Sock 10.Parse request [10:15:29]Sock 10.Check first char [10:15:29]Sock 10.First char is OK [10:15:29]request: POST /json_proto HTTP/1.0 [10:15:29]Method: POST [10:15:29]URL: /json_proto [10:15:29]Method is POST - this is cgi request [10:15:29]url: /json_proto [10:15:29]query_string will be loaded in cgi processing [10:15:29]execute_cgi json_proto POST (null) [10:15:29]execute_cgi path=json_proto method=POST [10:15:29]POST find Content-Length [10:15:29]Host: 172.17.42.73:8080 [10:15:29]Content-Length: 660 [10:15:29]Content-Type: application/json [10:15:29] [10:15:29]POST finish read [10:15:29]Found Content-Length = 660 [10:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117496", "tax_sys" : 0, "items" : [ { "code": "4600682039990", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "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" ] } } [10:15:29]execute_script... [10:15: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)117496", "tax_sys" : 0, "items" : [ { "code": "4600682039990", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "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" ] } } [10:15:29]POST & json_proto [10:15:29]process_json_proto [10:15:29]json parsed OK: [10:15:29]protocol is kg_v1.0 [10:15:29]action value=close_receipt [10:15:29]process_action close_receipt [10:15:29]cmd_close_receipt [10:15:29]MH_GetDate [10:15:29]Write to MH i2c: F0 00 00 68 00 57 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 09 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 09 00 68 00 00 C2 9C EE 66 99 54 47 66 AC [10:15:29]GetLastDocTimeStamp 1726911022 [10:15:29]current date 1726913730 [10:15:29]FM_GetShiftState [10:15:29]SAM_PROTO_GetShiftState [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 13 01 00 [10:15:29]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0E 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6C [10:15:29]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:15:29]wFMCommunicate OK [10:15:29]SAM_PROTO_GetShiftState done [10:15:29]FM_GetShiftState done [10:15:29]opened in 1726877463 [10:15:29]opened+sec_in_day 1726963863 [10:15:29]quantity*price = 9500 [10:15:29]sum+1 = 9501 [10:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 22 21.09.2024 10:15 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19572 ФПД: 10759059370572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T101530&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19572&fm=10759059370572&tin=02508201610067®Number=0000000000146239&sum=9500 0 [10:15:30]StoreToDocumentArchive [10:15:30]shift 232 fd 19572 [10:15:30]save to /storage/0232/doc_00019572 [10:15:30]save last doc name /storage/0232/doc_00019572 to /storage/kkm_last_doc_name [10:15:30]save OK [10:15:30]Clear old archive folders... [10:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=295 [10:15:30]tlvbuf is B6F6A7D0 [10:15:30]SAM_PROTO_ClearQueue [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 09 00 00 [10:15:30]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_ClearQueue done [10:15:30]KKMCreateOFDPacket [10:15:30]OFDProtocolAddRootSTLVToBuf [10:15:30]FM_MakeSignedData [10:15:30]FM_MakeSignedData [10:15:30]SAM_PROTO_SignData [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 01 02 [10:15:30]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]wFMCommunicate request_size=255 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 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 16 00 00 00 F4 03 04 00 C2 9C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [10:15:30]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 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 16 00 00 00 F4 03 04 00 C2 9C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 39 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]wFMCommunicate request_size=54 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 74 4C 00 00 35 04 06 00 09 C9 09 E9 72 4C [10:15:31]Write to MH i2c: E2 39 00 79 00 80 0D 02 02 31 00 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 74 4C 00 00 35 04 06 00 09 C9 09 E9 72 4C 00 00 5E [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 03 02 [10:15:31]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0B 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0B 00 7A 00 00 28 D0 A5 25 85 83 DF B7 90 00 56 [10:15:31]RAPDU: 28 D0 A5 25 85 83 DF B7 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_SignData done [10:15:31]FM_MakeSignedData done [10:15:31]CreateOFDProtocolMessage [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 11 00 00 [10:15:31]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 4A [10:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:15:31]wFMCommunicate OK [10:15:31]CreateOFDProtocolMessage done [10:15:31]OFDSenderStorePacket 19572 [10:15:31]StoreOFDPacket docnum=19572 [10:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3B 01 00 00 01 5B 33 01 D6 28 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 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 16 00 00 00 F4 03 04 00 C2 9C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 74 4C 00 00 35 04 06 00 09 C9 09 E9 72 4C 28 D0 A5 25 85 83 DF B7 [10:15:31]CheckFolder [10:15:31]dirname=/storage/ofd_packets [10:15:31]CheckFolder done [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00019572 [10:15:31]NVStorageSaveData ofd_packets/00019572 [10:15:31]File name is /storage/ofd_packets/00019572 [10:15:31]Write 345 bytes [10:15:31]NVStorageSaveData done [10:15:31]OFDSenderStorePacket done [10:15:31]KKMCreateOFDPacket done [10:15:31]NVStorageSaveData kkm_last_timestamp [10:15:31]File name is /storage/kkm_last_timestamp [10:15:31]Write 4 bytes [10:15:31]NVStorageSaveData done [10:15:31]ExternCall_PrintAddStr [10:15:31]wPrintStart [10:15:31]Write to MH i2c: 01 00 00 7C 00 7C [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [10:15:31]RasterBufferAndPrint [10:15:31]line Счет N : (3)117496 [10:15:31]line ИНН: 02508201610067 [10:15:31]line Контрольно-Кассовый Чек [10:15:31]line ПРОДАЖА [10:15:31]line Товар: 4600682039990 [10:15:31]line Напиток безалк Flash Up Bubble Gum 0,45 [10:15:31]line 1.000 * 95.00 [10:15:31]line = 95.00 [10:15:31]line НДС 12% НСП 1% [10:15:31]line > о реализуемом товаре [10:15:31]line ИТОГО: 95.00 [10:15:31]line НСП 1% : 0.84 [10:15:31]line НДС 12% : 10.09 [10:15:31]line Наличными: 95.00 [10:15:31]line Безнал.: 0.00 [10:15:31]line Место: АЗС № 93 "Партнер Нефть" [10:15:31]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [10:15:31]line СНО: Общий режим [10:15:31]line Чек 22 21.09.2024 10:15 [10:15:31]line Смена: 232 ФФД: 1.0 [10:15:31]line ЗНМ: 0300000060 [10:15:31]line РНМ: 0000000000146239 [10:15:31]line Версия ККМ: v1.0 [10:15:31]line ФМ: 0000000000959362 [10:15:31]line ФД: 19572 [10:15:31]line ФПД: 10759059370572 [10:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T101530&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19572&fm=10759059370572&tin=02508201610067®Number=0000000000146239&sum=9500 [10:15:31]line 0 [10:15:31]OFD Sender: Processing packet 19572 [packets to send 63, broken 62] [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00019572 [10:15:31]OFD Sender: To server: pG, [10:15:31]CommunicateWithHost lk.salyk.kg:30040 [10:15:31]ConnectInit lk.salyk.kg [10:15:31]written 0, free lines is 4095 [10:15:32]Write to MH i2c: 01 00 00 A5 00 A5 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 07 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 A9 0C 61 [10:15:32]RasterBufferAndPrint [10:15:32]line [10:15:32]line [10:15:32]line [10:15:32]line [10:15:32]line [10:15:32]written 0, free lines is 3243 [10:15:32]MH_Cut [10:15:32]Write to MH i2c: D1 01 00 AC 00 01 7E [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: D1 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: D1 01 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: D1 01 00 AC 00 00 7D [10:15:32]Write to MH i2c: 01 00 00 AD 00 AD [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:33]*** Cut start [10:15:33]*** Partial cut [10:15:33]*** CUTSNS_PIN = 1 [10:15:33]*** CUTSNS_PIN = 0 [10:15:33]*** Brake cut motor [10:15:33]Read from MH i2c: 01 [10:15:33]MH_I2C_Read... [10:15:33]*** Stop cut motor [10:15:33]*** Cut end [10:15:33]Read from MH i2c: 01 07 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [10:15:33]process_action close_receipt done [10:15:33]requested_data is exist [10:15:33]produce_requested_data [10:15:33]requested_item fm.sn is exist - process it [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 11 00 00 [10:15:33]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 17 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7D [10:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:15:33]wFMCommunicate OK [10:15:33]requested_item fd.num is exist - process it [10:15:33]SAM_PROTO_GetFieldsCounters [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 13 00 00 [10:15:33]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 62 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 74 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 74 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:33]wFMCommunicate OK [10:15:33]SAM_PROTO_GetFieldsCounters done [10:15:33]requested_item shift.num is exist - process it [10:15:33]requested_item shift.opened is exist - process it [10:15:33]req_shift_opened [10:15:33]FM_GetShiftState [10:15:33]SAM_PROTO_GetShiftState [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 13 01 00 [10:15:33]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 0E 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B3 [10:15:33]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:15:33]wFMCommunicate OK [10:15:33]SAM_PROTO_GetShiftState done [10:15:33]FM_GetShiftState done [10:15:33]req_shift_opened done [10:15:33]requested_item shift.open_date is exist - process it [10:15:33]req_shift_open_date [10:15:33]req_shift_open_date done [10:15:33]produce_requested_data done [10:15:33]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19572,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [10:15:33]process_action_free close_receipt [10:15:33]json_value_free [10:15:33]json_value_free done [10:15:33]process_json_proto returns [10:15:33]Send response to host [10:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19572,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [10:15:33]free response buf [10:15:33]execute_script done [10:15:33]execute_script returns [10:15:33]free content buf [10:15:33]Sock 10.Close socket [10:15:33]Sock 10.Thread stoped [10:15:36]recv_with_timeout no data received [10:15:36]ConnectInit Can't take IP for lk.salyk.kg [10:15:36]CommunicateWithHost connect error [10:15:36]CommunicateWithHost err = -1 [10:15:36]OFD Sender: Server communicate error [10:15:41]OFD Sender: Processing packet 19572 [packets to send 63, broken 62] [10:15:41]ProducePacketName [10:15:41]name=ofd_packets/00019572 [10:15:41]OFD Sender: To server: pG, [10:15:41]CommunicateWithHost lk.salyk.kg:30040 [10:15:41]ConnectInit lk.salyk.kg [10:15:44]Connected sock=10 [10:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3B 01 00 00 01 5B 33 01 D6 28 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 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 16 00 00 00 F4 03 04 00 C2 9C EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 74 4C 00 00 35 04 06 00 09 C9 09 E9 72 4C 28 D0 A5 25 85 83 DF B7 [10:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 EB 89 47 00 DE BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 74 4C 00 00 F4 03 04 00 69 47 EE 66 B6 04 01 00 00 61 62 75 44 3E B6 ED 92 [10:15:45]CommunicateWithHost err = 0 [10:15:45]CheckOFDResponse [10:15:45]1017 (14) - 77093643461234 [10:15:45]1041 (16) - 0000000000959362 [10:15:45]1040 (4) - 19572 [10:15:45]1012 (4) - 21.09.2024 04:11 [10:15:45]1206 (1) - 0 [10:15:45]OFD Sender: Remove packet 19572 [10:15:45]ProducePacketName [10:15:45]name=ofd_packets/00019572 [10:15:45]NVStorageDeleteData [10:15:45]OFD Sender: No OFD packet to send [10:15:46]recv_with_timeout no data received [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:15:56]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:16:56]recv_with_timeout no data received [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:19]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:53]recv_with_timeout no data received [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:38]recv_with_timeout no data received [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:29]recv_with_timeout no data received [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:39]recv_with_timeout no data received [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:03]recv_with_timeout no data received [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:22]recv_with_timeout no data received [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:09]recv_with_timeout no data received [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:40]recv_with_timeout no data received [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]recv_with_timeout no data received [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:54]recv_with_timeout no data received [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:32]accept exits with 7 [10:39:32]New connection [10:39:32]New thread 3067039076 created [10:39:32]Thread 3066895716 joined [10:39:32]Waiting for new connection... [10:39:32] Sock 7.Parse request [10:39:32]Sock 7.Check first char [10:39:32]Sock 7.First char is OK [10:39:32]request: POST /json_proto HTTP/1.0 [10:39:32]Method: POST [10:39:32]URL: /json_proto [10:39:32]Method is POST - this is cgi request [10:39:32]url: /json_proto [10:39:32]query_string will be loaded in cgi processing [10:39:32]execute_cgi json_proto POST (null) [10:39:32]execute_cgi path=json_proto method=POST [10:39:32]POST find Content-Length [10:39:32]Host: 172.17.42.73:8080 [10:39:32]Content-Length: 630 [10:39:32]Content-Type: application/json [10:39:32] [10:39:32]POST finish read [10:39:32]Found Content-Length = 630 [10:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117497", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:32]execute_script... [10:39: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)117497", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:32]POST & json_proto [10:39:32]process_json_proto [10:39:32]json parsed OK: [10:39:32]protocol is kg_v1.0 [10:39:32]action value=close_receipt [10:39:32]process_action close_receipt [10:39:32]cmd_close_receipt [10:39:32]MH_GetDate [10:39:32]Write to MH i2c: F0 00 00 B1 00 A0 [10:39:32]Write i2c OK [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: F0 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: F0 09 00 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: F0 09 00 B1 00 00 65 A2 EE 66 99 54 47 66 9E [10:39:32]GetLastDocTimeStamp 1726913730 [10:39:32]current date 1726915173 [10:39:32]FM_GetShiftState [10:39:32]SAM_PROTO_GetShiftState [10:39:32]wFMCommunicate request_size=4 [10:39:32]MH_SAM_APDU [10:39:32]CAPDU: 80 13 01 00 [10:39:32]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [10:39:32]Write i2c OK [10:39:32]MH_I2C_Read... [10:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:32]Read from MH i2c: E2 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: E2 0E 00 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B5 [10:39:32]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:39:32]wFMCommunicate OK [10:39:32]SAM_PROTO_GetShiftState done [10:39:32]FM_GetShiftState done [10:39:32]opened in 1726877463 [10:39:32]opened+sec_in_day 1726963863 [10:39:32]quantity*price = 5000 [10:39:32]sum+1 = 5001 [10:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре [10:39:34]line ИТОГО: 50.00 [10:39:34]line НСП 1% : 0.44 [10:39:34]line НДС 12% : 5.31 [10:39:34]line Наличными: 50.00 [10:39:34]line Безнал.: 0.00 [10:39:34]line Место: АЗС № 93 "Партнер Нефть" [10:39:34]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [10:39:34]line СНО: Общий режим [10:39:34]line Чек 23 21.09.2024 10:39 [10:39:34]line Смена: 232 ФФД: 1.0 [10:39:34]line ЗНМ: 0300000060 [10:39:34]line РНМ: 0000000000146239 [10:39:34]line Версия ККМ: v1.0 [10:39:34]line ФМ: 0000000000959362 [10:39:34]line ФД: 19573 [10:39:34]line ФПД: 110242751912867 [10:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T103933&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19573&fm=110242751912867&tin=02508201610067®Number=0000000000146239&sum=5000 [10:39:34]line 0 [10:39:34]OFD Sender: Processing packet 19573 [packets to send 63, broken 62] [10:39:34]ProducePacketName [10:39:34]name=ofd_packets/00019573 [10:39:34]OFD Sender: To server: pG, [10:39:34]CommunicateWithHost lk.salyk.kg:30040 [10:39:34]ConnectInit lk.salyk.kg [10:39:34]written 0, free lines is 4095 [10:39:35]Write to MH i2c: 01 00 00 ED 00 ED [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 BA 0C BA [10:39:35]RasterBufferAndPrint [10:39:35]line [10:39:35]line [10:39:35]line [10:39:35]line [10:39:35]line [10:39:35]written 0, free lines is 3262 [10:39:35]MH_Cut [10:39:35]Write to MH i2c: D1 01 00 F4 00 01 C6 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: D1 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: D1 01 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: D1 01 00 F4 00 00 C5 [10:39:35]Write to MH i2c: 01 00 00 F5 00 F5 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:36]*** Cut start [10:39:36]*** Partial cut [10:39:36]*** CUTSNS_PIN = 1 [10:39:36]*** CUTSNS_PIN = 0 [10:39:36]*** Brake cut motor [10:39:36]Read from MH i2c: 01 [10:39:36]MH_I2C_Read... [10:39:36]*** Stop cut motor [10:39:36]*** Cut end [10:39:36]Read from MH i2c: 01 07 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [10:39:36]process_action close_receipt done [10:39:36]requested_data is exist [10:39:36]produce_requested_data [10:39:36]requested_item fm.sn is exist - process it [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 11 00 00 [10:39:36]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 17 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C5 [10:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:39:36]wFMCommunicate OK [10:39:36]requested_item fd.num is exist - process it [10:39:36]SAM_PROTO_GetFieldsCounters [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 13 00 00 [10:39:36]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 62 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 75 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 75 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:36]wFMCommunicate OK [10:39:36]SAM_PROTO_GetFieldsCounters done [10:39:36]requested_item shift.num is exist - process it [10:39:36]requested_item shift.opened is exist - process it [10:39:36]req_shift_opened [10:39:36]FM_GetShiftState [10:39:36]SAM_PROTO_GetShiftState [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 13 01 00 [10:39:36]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 0E 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FB [10:39:36]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:39:36]wFMCommunicate OK [10:39:36]SAM_PROTO_GetShiftState done [10:39:36]FM_GetShiftState done [10:39:36]req_shift_opened done [10:39:36]requested_item shift.open_date is exist - process it [10:39:36]req_shift_open_date [10:39:36]req_shift_open_date done [10:39:36]produce_requested_data done [10:39:36]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19573,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [10:39:36]process_action_free close_receipt [10:39:36]json_value_free [10:39:36]json_value_free done [10:39:36]process_json_proto returns [10:39:36]Send response to host [10:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19573,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [10:39:36]free response buf [10:39:36]execute_script done [10:39:36]execute_script returns [10:39:36]free content buf [10:39:36]Sock 7.Close socket [10:39:36]Sock 7.Thread stoped [10:39:38]Connected sock=11 [10:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 44 75 19 01 DC 89 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 17 00 00 00 F4 03 04 00 65 A2 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 75 4C 00 00 35 04 06 00 64 43 E4 11 1B A3 3A E8 82 22 7C 3F 93 69 [10:39:43]recv_with_timeout no data received [10:39:43]CommunicateWithHost answer receiving error [10:39:43]CommunicateWithHost err = -3 [10:39:43]OFD Sender: Server communicate error [10:39:48]OFD Sender: Processing packet 19573 [packets to send 63, broken 62] [10:39:48]ProducePacketName [10:39:48]name=ofd_packets/00019573 [10:39:48]OFD Sender: To server: pG, [10:39:48]CommunicateWithHost lk.salyk.kg:30040 [10:39:48]ConnectInit lk.salyk.kg [10:39:49]recv_with_timeout no data received [10:39:49]Connected sock=10 [10:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 44 75 19 01 DC 89 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 17 00 00 00 F4 03 04 00 65 A2 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 75 4C 00 00 35 04 06 00 64 43 E4 11 1B A3 3A E8 82 22 7C 3F 93 69 [10:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A1 88 47 00 06 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 75 4C 00 00 F4 03 04 00 0D 4D EE 66 B6 04 01 00 00 71 D0 95 1A 96 7E 72 02 [10:39:49]CommunicateWithHost err = 0 [10:39:49]CheckOFDResponse [10:39:49]1017 (14) - 77093643461234 [10:39:49]1041 (16) - 0000000000959362 [10:39:49]1040 (4) - 19573 [10:39:49]1012 (4) - 21.09.2024 04:35 [10:39:49]1206 (1) - 0 [10:39:49]OFD Sender: Remove packet 19573 [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00019573 [10:39:49]NVStorageDeleteData [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]recv_with_timeout no data received [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:08]recv_with_timeout no data received [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42: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:01]recv_with_timeout no data received [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:39:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [10:39:33]RAPDU: 90 00 [10:39:33]wFMCommunicate OK [10:39:33]wFMCommunicate request_size=25 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [10:39:33]Write to MH i2c: E2 1C 00 BC 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 9E [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [10:39:33]RAPDU: 90 00 [10:39:33]wFMCommunicate OK [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 15 03 00 [10:39:33]Write to MH i2c: E2 08 00 BD 00 80 15 03 00 00 00 00 00 3E [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 40 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 40 00 BD 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 75 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 17 00 00 00 35 04 06 00 64 43 E4 11 1B A3 90 00 50 [10:39:33]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 75 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 17 00 00 00 35 04 06 00 64 43 E4 11 1B A3 90 00 [10:39:33]wFMCommunicate OK [10:39:33]SAM_PROTO_ProcessDocument answer len = 59 [10:39:33]SAM_PROTO_ProcessDocument done [10:39:33]SetTLVBufToDocument [10:39:33]Processing tag 1209 (04B9) [10:39:33]Malloc new data [10:39:33]Processing tag 1041 (0411) [10:39:33]Processing tag 1040 (0410) [10:39:33]Malloc new data [10:39:33]Processing tag 1038 (040E) [10:39:33]Malloc new data [10:39:33]Processing tag 1042 (0412) [10:39:33]Malloc new data [10:39:33]Processing tag 1077 (0435) [10:39:33]Malloc new data [10:39:33]SetTLVBufToDocument err=0 [10:39:33]KKMLoadAndSignReceiptData store KKM data [10:39:33]KKMLoadAndSignReceiptData err=0 [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 11 00 00 [10:39:33]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 17 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 8D [10:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:39:33]wFMCommunicate OK [10:39:33]Счет N : (3)117497 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 23 21.09.2024 10:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19573 ФПД: 110242751912867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T103933&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19573&fm=110242751912867&tin=02508201610067®Number=0000000000146239&sum=5000 0 [10:39:33]StoreToDocumentArchive [10:39:33]shift 232 fd 19573 [10:39:33]save to /storage/0232/doc_00019573 [10:39:33]save last doc name /storage/0232/doc_00019573 to /storage/kkm_last_doc_name [10:39:33]save OK [10:39:33]Clear old archive folders... [10:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:39:33]tlvbuf is 00B07340 [10:39:33]SAM_PROTO_ClearQueue [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 09 00 00 [10:39:33]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [10:39:33]RAPDU: 90 00 [10:39:33]wFMCommunicate OK [10:39:33]SAM_PROTO_ClearQueue done [10:39:33]KKMCreateOFDPacket [10:39:33]OFDProtocolAddRootSTLVToBuf [10:39:33]FM_MakeSignedData [10:39:33]FM_MakeSignedData [10:39:33]SAM_PROTO_SignData [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 0D 01 02 [10:39:33]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:39:33]RAPDU: 90 00 [10:39:33]wFMCommunicate OK [10:39:33]wFMCommunicate request_size=255 [10:39:33]MH_SAM_APDU [10:39:33]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 17 00 00 00 F4 03 04 00 65 A2 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [10:39:33]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 9[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:02]recv_with_timeout no data received [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]accept exits with 9 [10:45:15]New connection [10:45:15]New thread 3066895716 created [10:45:15]Thread 3067039076 joined [10:45:15]Waiting for new connection... [10:45:15] Sock 9.Parse request [10:45:15]Sock 9.Check first char [10:45:15]Sock 9.First char is OK [10:45:15]request: POST /json_proto HTTP/1.0 [10:45:15]Method: POST [10:45:15]URL: /json_proto [10:45:15]Method is POST - this is cgi request [10:45:15]url: /json_proto [10:45:15]query_string will be loaded in cgi processing [10:45:15]execute_cgi json_proto POST (null) [10:45:15]execute_cgi path=json_proto method=POST [10:45:15]POST find Content-Length [10:45:15]Host: 172.17.42.73:8080 [10:45:15]Content-Length: 684 [10:45:15]Content-Type: application/json [10:45:15] [10:45:15]POST finish read [10:45:15]Found Content-Length = 684 [10:45:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:15]execute_script... [10:45:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:15]POST & json_proto [10:45:15]process_json_proto [10:45:15]json parsed OK: [10:45:15]protocol is kg_v1.0 [10:45:15]action value=close_receipt [10:45:15]process_action close_receipt [10:45:15]cmd_close_receipt [10:45:15]MH_GetDate [10:45:15]Write to MH i2c: F0 00 00 F9 00 E8 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: F0 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: F0 09 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: F0 09 00 F9 00 00 BC A3 EE 66 99 54 47 66 3E [10:45:15]GetLastDocTimeStamp 1726915173 [10:45:15]current date 1726915516 [10:45:15]FM_GetShiftState [10:45:15]SAM_PROTO_GetShiftState [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 13 01 00 [10:45:15]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0E 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FD [10:45:15]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:45:15]wFMCommunicate OK [10:45:15]SAM_PROTO_GetShiftState done [10:45:15]FM_GetShiftState done [10:45:15]opened in 1726877463 [10:45:15]opened+sec_in_day 1726963863 [10:45:15]quantity*price = 65074 [10:45:15]sum+1 = 65076 [10:45:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 25 21.09.2024 10:48 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19575 ФПД: 128006000082799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T104831&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19575&fm=128006000082799&tin=02508201610067®Number=0000000000146239&sum=19000 0 [10:48:31]StoreToDocumentArchive [10:48:31]shift 232 fd 19575 [10:48:31]save to /storage/0232/doc_00019575 [10:48:31]save last doc name /storage/0232/doc_00019575 to /storage/kkm_last_doc_name [10:48:31]save OK [10:48:31]Clear old archive folders... [10:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=297 [10:48:31]tlvbuf is 00B079A0 [10:48:31]SAM_PROTO_ClearQueue [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 09 00 00 [10:48:31]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 03 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [10:48:31]RAPDU: 90 00 [10:48:31]wFMCommunicate OK [10:48:31]SAM_PROTO_ClearQueue done [10:48:31]KKMCreateOFDPacket [10:48:31]OFDProtocolAddRootSTLVToBuf [10:48:31]FM_MakeSignedData [10:48:31]FM_MakeSignedData [10:48:31]SAM_PROTO_SignData [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 0D 01 02 [10:48:31]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 03 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [10:48:31]RAPDU: 90 00 [10:48:31]wFMCommunicate OK [10:48:31]wFMCommunicate request_size=255 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7F A4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [10:48:31]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7F A4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 76 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]wFMCommunicate request_size=56 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 77 4C 00 00 35 04 06 00 74 6B B8 29 FF 6F [10:48:32]Write to MH i2c: E2 3B 00 55 01 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 77 4C 00 00 35 04 06 00 74 6B B8 29 FF 6F 00 00 4E [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 03 02 [10:48:32]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 0B 00 [10:48:32]MH_I2C_Read... [10:48:34]produce_requested_data done [10:48:34]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19575,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [10:48:34]process_action_free close_receipt [10:48:34]json_value_free [10:48:34]json_value_free done [10:48:34]process_json_proto returns [10:48:34]Send response to host [10:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19575,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [10:48:34]free response buf [10:48:34]execute_script done [10:48:34]execute_script returns [10:48:34]free content buf [10:48:34]Sock 10.Close socket [10:48:34]Sock 10.Thread stoped [10:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 4A BD 47 00 58 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 39 35 39 33 36 32 10 04 04 00 77 4C 00 00 F4 03 04 00 1B 4F EE 66 B6 04 01 00 00 FE B1 83 A8 A9 25 84 0F [10:48:35]CommunicateWithHost err = 0 [10:48:35]CheckOFDResponse [10:48:35]1017 (14) - 77093643461234 [10:48:35]1041 (16) - 0000000000959362 [10:48:35]1040 (4) - 19575 [10:48:35]1012 (4) - 21.09.2024 04:44 [10:48:35]1206 (1) - 0 [10:48:35]OFD Sender: Remove packet 19575 [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00019575 [10:48:35]NVStorageDeleteData [10:48:35]OFD Sender: No OFD packet to send [10:48:37]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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]recv_with_timeout no data received [10:49:10]OFD Sender: No OFD packet to send [10:48:32]Read from MH i2c: E2 0B 00 56 01 00 34 31 25 F2 57 30 2A BA 90 00 BA [10:48:32]RAPDU: 34 31 25 F2 57 30 2A BA 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_SignData done [10:48:32]FM_MakeSignedData done [10:48:32]CreateOFDProtocolMessage [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 11 00 00 [10:48:32]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 27 [10:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:48:32]wFMCommunicate OK [10:48:32]CreateOFDProtocolMessage done [10:48:32]OFDSenderStorePacket 19575 [10:48:32]StoreOFDPacket docnum=19575 [10:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3D 01 00 00 0A 63 35 01 9C FD 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7F A4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 77 4C 00 00 35 04 06 00 74 6B B8 29 FF 6F 34 31 25 F2 57 30 2A BA [10:48:32]CheckFolder [10:48:32]dirname=/storage/ofd_packets [10:48:32]CheckFolder done [10:48:32]ProducePacketName [10:48:32]name=ofd_packets/00019575 [10:48:32]NVStorageSaveData ofd_packets/00019575 [10:48:32]File name is /storage/ofd_packets/00019575 [10:48:32]Write 347 bytes [10:48:32]NVStorageSaveData done [10:48:32]OFDSenderStorePacket done [10:48:32]KKMCreateOFDPacket done [10:48:32]NVStorageSaveData kkm_last_timestamp [10:48:32]File name is /storage/kkm_last_timestamp [10:48:32]Write 4 bytes [10:48:32]NVStorageSaveData done [10:48:32]ExternCall_PrintAddStr [10:48:32]wPrintStart [10:48:32]Write to MH i2c: 01 00 00 58 01 59 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 07 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [10:48:32]RasterBufferAndPrint [10:48:32]line Счет N : (3)117498 [10:48:32]line ИНН: 02508201610067 [10:48:32]line Контрольно-Кассовый Чек [10:48:32]line ПРОДАЖА [10:48:32]line Товар: 4700041420084 [10:48:32]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [10:48:32]line 1.000 * 190.00 [10:48:32]line = 190.00 [10:48:32]line НДС 12% НСП 1% [10:48:32]line > о реализуемом товаре [10:48:32]line ИТОГО: 190.00 [10:48:32]line НСП 1% : 1.68 [10:48:32]line НДС 12% : 20.18 [10:48:32]line Наличными: 190.00 [10:48:32]line Безнал.: 0.00 [10:48:32]line Место: АЗС № 93 "Партнер Нефть" [10:48:32]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [10:48:32]line СНО: Общий режим [10:48:32]line Чек 25 21.09.2024 10:48 [10:48:32]line Смена: 232 ФФД: 1.0 [10:48:32]line ЗНМ: 0300000060 [10:48:32]line РНМ: 0000000000146239 [10:48:32]line Версия ККМ: v1.0 [10:48:32]line ФМ: 0000000000959362 [10:48:32]line ФД: 19575 [10:48:32]line ФПД: 128006000082799 [10:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T104831&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19575&fm=128006000082799&tin=02508201610067®Number=0000000000146239&sum=19000 [10:48:32]line 0 [10:48:32]OFD Sender: Processing packet 19575 [packets to send 63, broken 62] [10:48:32]ProducePacketName [10:48:32]name=ofd_packets/00019575 [10:48:32]OFD Sender: To server: pG, [10:48:32]CommunicateWithHost lk.salyk.kg:30040 [10:48:32]ConnectInit lk.salyk.kg [10:48:32]written 0, free lines is 4095 [10:48:33]Write to MH i2c: 01 00 00 81 01 82 [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 07 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 A9 0C 3E [10:48:33]RasterBufferAndPrint [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]written 0, free lines is 3244 [10:48:33]MH_Cut [10:48:33]Write to MH i2c: D1 01 00 88 01 01 5B [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 01 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 01 00 88 01 00 5A [10:48:33]Write to MH i2c: 01 00 00 89 01 8A [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:34]*** Cut start [10:48:34]*** Partial cut [10:48:34]*** CUTSNS_PIN = 1 [10:48:34]*** CUTSNS_PIN = 0 [10:48:34]*** Brake cut motor [10:48:34]Connected sock=11 [10:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3D 01 00 00 0A 63 35 01 9C FD 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7F A4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 77 4C 00 00 35 04 06 00 74 6B B8 29 FF 6F 34 31 25 F2 57 30 2A BA [10:48:34]Read from MH i2c: 01 [10:48:34]MH_I2C_Read... [10:48:34]*** Stop cut motor [10:48:34]*** Cut end [10:48:34]Read from MH i2c: 01 07 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [10:48:34]process_action close_receipt done [10:48:34]requested_data is exist [10:48:34]produce_requested_data [10:48:34]requested_item fm.sn is exist - process it [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 11 00 00 [10:48:34]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 5A [10:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:48:34]wFMCommunicate OK [10:48:34]requested_item fd.num is exist - process it [10:48:34]SAM_PROTO_GetFieldsCounters [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 13 00 00 [10:48:34]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 62 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 77 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 77 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_GetFieldsCounters done [10:48:34]requested_item shift.num is exist - process it [10:48:34]requested_item shift.opened is exist - process it [10:48:34]req_shift_opened [10:48:34]FM_GetShiftState [10:48:34]SAM_PROTO_GetShiftState [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 13 01 00 [10:48:34]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 90 [10:48:34]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_GetShiftState done [10:48:34]FM_GetShiftState done [10:48:34]req_shift_opened done [10:48:34]requested_item shift.open_date is exist - process it [10:48:34]req_shift_open_date [10:48:34]req_shift_open_date done [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:29]recv_with_timeout no data received [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:01]accept exits with 7 [10:50:01]New connection [10:50:01]New thread 3066895716 created [10:50:01]Thread 3067039076 joined [10:50:01]Waiting for new connection... [10:50:01] Sock 7.Parse request [10:50:01]Sock 7.Check first char [10:50:01]Sock 7.First char is OK [10:50:01]request: POST /json_proto HTTP/1.0 [10:50:01]Method: POST [10:50:01]URL: /json_proto [10:50:01]Method is POST - this is cgi request [10:50:01]url: /json_proto [10:50:01]query_string will be loaded in cgi processing [10:50:01]execute_cgi json_proto POST (null) [10:50:01]execute_cgi path=json_proto method=POST [10:50:01]POST find Content-Length [10:50:01]Host: 172.17.42.73:8080 [10:50:01]Content-Length: 689 [10:50:01]Content-Type: application/json [10:50:01] [10:50:01]POST finish read [10:50:01]Found Content-Length = 689 [10:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:01]execute_script... [10: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 : (1)23699614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:01]POST & json_proto [10:50:01]process_json_proto [10:50:01]json parsed OK: [10:50:01]protocol is kg_v1.0 [10:50:01]action value=close_receipt [10:50:01]process_action close_receipt [10:50:01]cmd_close_receipt [10:50:01]MH_GetDate [10:50:01]Write to MH i2c: F0 00 00 8D 01 7D [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: F0 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: F0 09 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: F0 09 00 8D 01 00 DA A4 EE 66 99 54 47 66 F2 [10:50:01]GetLastDocTimeStamp 1726915711 [10:50:01]current date 1726915802 [10:50:01]FM_GetShiftState [10:50:01]SAM_PROTO_GetShiftState [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 13 01 00 [10:50:01]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0E 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 92 [10:50:01]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:50:01]wFMCommunicate OK [10:50:01]SAM_PROTO_GetShiftState done [10:50:01]FM_GetShiftState done [10:50:01]opened in 1726877463 [10:50:01]opened+sec_in_day 1726963863 [10:50:01]quantity*price = 300075 [10:50:01]sum+1 = 300077 [10:50:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 117.00 НСП 1% : 1.03 НДС 12% : 12.42 Наличными: 117.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 27 21.09.2024 10:54 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19577 ФПД: 196515953328671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T105437&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19577&fm=196515953328671&tin=02508201610067®Number=0000000000146239&sum=11700 0 [10:54:37]StoreToDocumentArchive [10:54:37]shift 232 fd 19577 [10:54:37]save to /storage/0232/doc_00019577 [10:54:37]save last doc name /storage/0232/doc_00019577 to /storage/kkm_last_doc_name [10:54:37]save OK [10:54:37]Clear old archive folders... [10:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=383 [10:54:37]tlvbuf is 00B4B3B0 [10:54:37]SAM_PROTO_ClearQueue [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 09 00 00 [10:54:37]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [10:54:37]RAPDU: 90 00 [10:54:37]wFMCommunicate OK [10:54:37]SAM_PROTO_ClearQueue done [10:54:37]KKMCreateOFDPacket [10:54:37]OFDProtocolAddRootSTLVToBuf [10:54:37]FM_MakeSignedData [10:54:37]FM_MakeSignedData [10:54:37]SAM_PROTO_SignData [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 0D 01 02 [10:54:37]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=255 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 02 02 FA 03 00 7F 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 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 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 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 [10:54:38]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 7F 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 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 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 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 18 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=142 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 B4 2D 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 ED A5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 79 4C 00 00 35 04 06 00 B2 BA EF 97 42 1F [10:50:02]wFMCommunicate request_size=13 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 15 02 00 08 F4 03 04 00 DA A4 EE 66 [10:50:02]Write to MH i2c: E2 10 00 97 01 80 15 02 00 08 00 F4 03 04 00 DA A4 EE 66 00 00 F5 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 03 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [10:50:02]RAPDU: 90 00 [10:50:02]wFMCommunicate OK [10:50:02]wFMCommunicate request_size=25 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [10:50:02]Write to MH i2c: E2 1C 00 98 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 7B [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 03 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [10:50:02]RAPDU: 90 00 [10:50:02]wFMCommunicate OK [10:50:02]wFMCommunicate request_size=4 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 15 03 00 [10:50:02]Write to MH i2c: E2 08 00 99 01 80 15 03 00 00 00 00 00 1B [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 40 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 40 00 99 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 78 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1A 00 00 00 35 04 06 00 42 93 90 A8 79 59 90 00 B8 [10:50:02]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 78 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1A 00 00 00 35 04 06 00 42 93 90 A8 79 59 90 00 [10:50:02]wFMCommunicate OK [10:50:02]SAM_PROTO_ProcessDocument answer len = 59 [10:50:02]SAM_PROTO_ProcessDocument done [10:50:02]SetTLVBufToDocument [10:50:02]Processing tag 1209 (04B9) [10:50:02]Malloc new data [10:50:02]Processing tag 1041 (0411) [10:50:02]Processing tag 1040 (0410) [10:50:02]Malloc new data [10:50:02]Processing tag 1038 (040E) [10:50:02]Malloc new data [10:50:02]Processing tag 1042 (0412) [10:50:02]Malloc new data [10:50:02]Processing tag 1077 (0435) [10:50:02]Malloc new data [10:50:02]SetTLVBufToDocument err=0 [10:50:02]KKMLoadAndSignReceiptData store KKM data [10:50:02]KKMLoadAndSignReceiptData err=0 [10:50:02]wFMCommunicate request_size=4 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 11 00 00 [10:50:02]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:02]Read from MH i2c: E2 17 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 6A [10:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:50:02]wFMCommunicate OK [10:50:02]Счет N : (1)23699614 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 43 Товар: 2710194210 ДТ(л)-К-5 39.380 * 76.20 = 3000.76 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Об[10:54:38]Write to MH i2c: E2 91 00 E9 01 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 B4 2D 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 ED A5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 79 4C 00 00 35 04 06 00 B2 BA EF 97 42 1F 00 00 65 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 03 02 [10:54:38]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0B 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0B 00 EA 01 00 F3 2B 09 AC 9C 4D 04 D8 90 00 FF [10:54:38]RAPDU: F3 2B 09 AC 9C 4D 04 D8 90 00 [10:54:38]wFMCommunicate OK [10:54:38]SAM_PROTO_SignData done [10:54:38]FM_MakeSignedData done [10:54:38]CreateOFDProtocolMessage [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 11 00 00 [10:54:38]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 17 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 BB [10:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:54:38]wFMCommunicate OK [10:54:38]CreateOFDProtocolMessage done [10:54:38]OFDSenderStorePacket 19577 [10:54:38]StoreOFDPacket docnum=19577 [10:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 93 01 00 00 8C CF 8B 01 CE 39 5A 03 01 00 03 00 7F 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 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 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 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 B4 2D 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 ED A5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 79 4C 00 00 35 04 06 00 B2 BA EF 97 42 1F F3 2B 09 AC 9C 4D 04 D8 [10:54:38]CheckFolder [10:54:38]dirname=/storage/ofd_packets [10:54:38]CheckFolder done [10:54:38]ProducePacketName [10:54:38]name=ofd_packets/00019577 [10:54:38]NVStorageSaveData ofd_packets/00019577 [10:54:38]File name is /storage/ofd_packets/00019577 [10:54:38]Write 433 bytes [10:54:38]NVStorageSaveData done [10:54:38]OFDSenderStorePacket done [10:54:38]KKMCreateOFDPacket done [10:54:38]NVStorageSaveData kkm_last_timestamp [10:54:38]File name is /storage/kkm_last_timestamp [10:54:38]Write 4 bytes [10:54:38]NVStorageSaveData done [10:54:38]ExternCall_PrintAddStr [10:54:38]wPrintStart [10:54:38]Write to MH i2c: 01 00 00 EC 01 ED [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [10:54:38]RasterBufferAndPrint [10:54:38]line Счет N : (3)117499 [10:54:38]line ИНН: 02508201610067 [10:54:38]line Контрольно-Кассовый Чек [10:54:38]line ПРОДАЖА [10:54:38]line Товар: 4870001570071 [10:54:38]line Напиток Pepsi 1л [10:54:38]line 1.000 * 110.00 [10:54:38]line = 110.00 [10:54:38]line НДС 12% НСП 1% [10:54:38]line > о реализуемом товаре [10:54:38]line Товар: 2000053020015 [10:54:38]line Бумажные стаканы 250мл 1шт [10:54:38]line 1.000 * 7.00 [10:54:38]line = 7.00 [10:54:38]line НДС 12% НСП 1% [10:54:38]line > о реализуемом товаре [10:54:38]line ИТОГО: 117.00 [10:54:38]line НСП 1% : 1.03 [10:54:38]line НДС 12% : 12.42 [10:54:38]line Наличными: 117.00 [10:54:38]line Безнал.: 0.00 [10:54:38]line Место: АЗС № 93 "Партнер Нефть" [10:54:38]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [10:54:38]line СНО: Общий режим [10:54:38]line Чек 27 21.09.2024 10:54 [10:54:38]line Смена: 232 ФФД: 1.0 [10:54:38]line ЗНМ: 0300000060 [10:54:38]line РНМ: 0000000000146239 [10:54:38]line Версия ККМ: v1.0 [10:54:38]line ФМ: 0000000000959362 [10:54:38]line ФД: 19577 [10:54:38]line ФПД: 196515953328671 [10:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T105437&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19577&fm=196515953328671&tin=02508201610067®Number=0000000000146239&sum=11700 [10:54:38]line 0 [10:54:38]OFD Sender: Processing packet 19577 [packets to send 63, broken 62] [10:54:38]ProducePacketName [10:54:38]name=ofd_packets/00019577 [10:54:38]OFD Sender: To server: pG, [10:54:38]CommunicateWithHost lk.salyk.kg:30040 [10:54:38]ConnectInit lk.salyk.kg [10:54:38]written 0, free lines is 4095 [10:54:39]Write to MH i2c: 01 00 00 1B 02 1D [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 07 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 23 0C 53 [10:54:39]RasterBufferAndPrint [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]written 0, free lines is 3110 [10:54:39]MH_Cut [10:54:39]Write to MH i2c: D1 01 00 22 02 01 F6 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 01 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 01 00 22 02 00 F5 [10:54:39]Write to MH i2c: 01 00 00 23 02 25 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:40]*** Cut start [10:54:40]*** Partial cut [10:54:40]*** CUTSNS_PIN = 1 [10:54:40]*** CUTSNS_PIN = 0 [10:54:40]*** Brake cut motor [10:54:41]Read from MH i2c: 01 [10:54:41]MH_I2C_Read... [10:54:41]*** Stop cut motor [10:54:41]*** Cut end [10:54:41]Read from MH i2c: 01 07 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [10:54:41]process_action close_receipt done [10:54:41]requested_data is exist [10:54:41]produce_requested_data [10:54:41]requested_item fm.sn is exist - process it [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 11 00 00 [10:54:41]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F5 [10:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [10:54:41]wFMCommunicate OK [10:54:41]requested_item fd.num is exist - process it [10:54:41]SAM_PROTO_GetFieldsCounters [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 13 00 00 [10:54:41]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 62 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 62 00 25 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 79 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [10:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 79 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_GetFieldsCounters done [10:54:41]requested_item shift.num is exist - process it [10:54:41]requested_item shift.opened is exist - process it [10:54:41]req_shift_opened [10:54:41]FM_GetShiftState [10:54:41]SAM_PROTO_GetShiftState [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 13 01 00 [10:54:41]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 2B [10:54:41]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_GetShiftState done [10:54:41]FM_GetShiftState done [10:54:41]req_shift_opened done [10:54:41]requested_item shift.open_date is exist - process it [10:54:41]req_shift_open_date [10:54:41]req_shift_open_date done [10:54:41]produce_requested_data done [10:54:41]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19577,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [10:54:41]process_action_free close_receipt [10:54:41]json_value_free [10:54:41]json_value_free done [10:54:41]process_json_proto returns [10:54:41]Send response to host [10:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19577,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [10:54:41]free response buf [10:54:41]execute_script done [10:54:41]execute_script returns [10:54:41]free content buf [10:54:41]Sock 9.Close socket [10:54:41]Sock 9.Thread stoped [10:54:43]ConnectInit Can't take IP for lk.salyk.kg [10:54:43]CommunicateWithHost connect error [10:54:43]CommunicateWithHost err = -1 [10:54:43]OFD Sender: Server communicate error [10:54:44]recv_with_timeout no data received [10:54:48]OFD Sender: Processing packet 19577 [packets to send 63, broken 62] [10:54:48]ProducePacketName [10:54:48]name=ofd_packets/00019577 [10:54:48]OFD Sender: To server: pG, [10:54:48]CommunicateWithHost lk.salyk.kg:30040 [10:54:48]ConnectInit lk.salyk.kg [10:54:53]ConnectInit Can't take IP for lk.salyk.kg [10:54:53]CommunicateWithHost connect error [10:54:53]CommunicateWithHost err = -1 [10:54:53]OFD Sender: Server communicate error [10:54:58]OFD Sender: Processing packet 19577 [packets to send 63, broken 62] [10:54:58]ProducePacketName [10:54:58]name=ofd_packets/00019577 [10:54:58]OFD Sender: To server: pG, [10:54:58]CommunicateWithHost lk.salyk.kg:30040 [10:54:58]ConnectInit lk.salyk.kg [10:55:03]ConnectInit Can't take IP for lk.salyk.kg [10:55:03]CommunicateWithHost connect error [10:55:03]CommunicateWithHost err = -1 [10:55:03]OFD Sender: Server communicate error [10:55:08]OFD Sender: Processing packet 19577 [packets to send 63, broken 62] [10:55:08]ProducePacketName [10:55:08]name=ofd_packets/00019577 [10:55:08]OFD Sender: To server: pG, [10:55:08]CommunicateWithHost lk.salyk.kg:30040 [10:55:08]ConnectInit lk.salyk.kg [10:55:09]Connected sock=7 [10:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 93 01 00 00 8C CF 8B 01 CE 39 5A 03 01 00 03 00 7F 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 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 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 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 B4 2D 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 ED A5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 79 4C 00 00 35 04 06 00 B2 BA EF 97 42 1F F3 2B 09 AC 9C 4D 04 D8 [10:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 51 B2 47 00 BC 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 39 35 39 33 36 32 10 04 04 00 79 4C 00 00 F4 03 04 00 A6 50 EE 66 B6 04 01 00 00 42 19 E9 72 22 69 F8 DD [10:55:10]CommunicateWithHost err = 0 [10:55:10]CheckOFDResponse [10:55:10]1017 (14) - 77093643461234 [10:55:10]1041 (16) - 0000000000959362 [10:55:10]1040 (4) - 19577 [10:55:10]1012 (4) - 21.09.2024 04:50 [10:55:10]1206 (1) - 0 [10:55:10]OFD Sender: Remove packet 19577 [10:55:10]ProducePacketName [10:55:10]name=ofd_packets/00019577 [10:55:10]NVStorageDeleteData [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:54]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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]recv_with_timeout no data received [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]accept exits with 10 [11:01:30]New connection [11:01:30]New thread 3066895716 created [11:01:30]Thread 3067039076 joined [11:01:30]Waiting for new connection... [11:01:30] Sock 10.Parse request [11:01:30]Sock 10.Check first char [11:01:30]Sock 10.First char is OK [11:01:30]request: POST /json_proto HTTP/1.0 [11:01:30]Method: POST [11:01:30]URL: /json_proto [11:01:30]Method is POST - this is cgi request [11:01:30]url: /json_proto [11:01:30]query_string will be loaded in cgi processing [11:01:30]execute_cgi json_proto POST (null) [11:01:30]execute_cgi path=json_proto method=POST [11:01:30]POST find Content-Length [11:01:30]Host: 172.17.42.73:8080 [11:01:30]Content-Length: 684 [11:01:30]Content-Type: application/json [11:01:30] [11:01:30]POST finish read [11:01:30]Found Content-Length = 684 [11:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:30]execute_script... [11:01:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:30]POST & json_proto [11:01:30]process_json_proto [11:01:30]json parsed OK: [11:01:30]protocol is kg_v1.0 [11:01:30]action value=close_receipt [11:01:30]process_action close_receipt [11:01:30]cmd_close_receipt [11:01:30]MH_GetDate [11:01:30]Write to MH i2c: F0 00 00 27 02 18 [11:01:30]Write i2c OK [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 09 00 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 09 00 27 02 00 8B A7 EE 66 99 54 47 66 41 [11:01:30]GetLastDocTimeStamp 1726916077 [11:01:30]current date 1726916491 [11:01:30]FM_GetShiftState [11:01:30]SAM_PROTO_GetShiftState [11:01:30]wFMCommunicate request_size=4 [11:01:30]MH_SAM_APDU [11:01:30]CAPDU: 80 13 01 00 [11:01:30]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [11:01:30]Write i2c OK [11:01:30]MH_I2C_Read... [11:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:30]Read from MH i2c: E2 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 2D [11:01:30]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:01:30]wFMCommunicate OK [11:01:30]SAM_PROTO_GetShiftState done [11:01:30]FM_GetShiftState done [11:01:30]opened in 1726877463 [11:01:30]opened+sec_in_day 1726963863 [11:01:30]quantity*price = 140015 [11:01:30]sum+1 = 140016 [11:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 28 21.09.2024 11:01 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19578 ФПД: 160077255002077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110131&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19578&fm=160077255002077&tin=02508201610067®Number=0000000000146239&sum=140000 [11:01:31]StoreToDocumentArchive [11:01:31]shift 232 fd 19578 [11:01:31]save to /storage/0232/doc_00019578 [11:01:31]save last doc name /storage/0232/doc_00019578 to /storage/kkm_last_doc_name [11:01:31]save OK [11:01:31]Clear old archive folders... [11:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:31]tlvbuf is 00B04770 [11:01:31]SAM_PROTO_ClearQueue [11:01:31]wFMCommunicate request_size=4 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 09 00 00 [11:01:31]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:31]Read from MH i2c: E2 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [11:01:31]RAPDU: 90 00 [11:01:31]wFMCommunicate OK [11:01:31]SAM_PROTO_ClearQueue done [11:01:31]KKMCreateOFDPacket [11:01:31]OFDProtocolAddRootSTLVToBuf [11:01:31]FM_MakeSignedData [11:01:31]FM_MakeSignedData [11:01:31]SAM_PROTO_SignData [11:01:31]wFMCommunicate request_size=4 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 0D 01 02 [11:01:31]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:31]Read from MH i2c: E2 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [11:01:31]RAPDU: 90 00 [11:01:31]wFMCommunicate OK [11:01:31]wFMCommunicate request_size=255 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8B A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7A 4C 00 00 35 04 06 00 91 [11:01:31]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8B A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7A 4C 00 00 35 04 06 00 91 00 00 FE [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [11:01:32]RAPDU: 90 00 [11:01:32]wFMCommunicate OK [11:01:32]wFMCommunicate request_size=10 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 0D 02 02 05 96 E3 EB C7 DD [11:01:32]Write to MH i2c: E2 0D 00 38 02 80 0D 02 02 05 00 96 E3 EB C7 DD 00 00 C6 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [11:01:32]RAPDU: 90 00 [11:01:32]wFMCommunicate OK [11:01:32]wFMCommunicate request_size=4 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 0D 03 02 [11:01:32]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0B 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0B 00 39 02 00 92 83 E7 DC 11 DB 54 2A 90 00 F9 [11:01:32]RAPDU: 92 83 E7 DC 11 DB 54 2A 90 00 [11:01:32]wFMCommunicate OK [11:01:32]SAM_PROTO_SignData done [11:01:32]FM_MakeSignedData done [11:01:32]CreateOFDProtocolMessage [11:01:32]wFMCommunicate request_size=4 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 11 00 00 [11:01:32]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 17 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 0B [11:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:01:32]wFMCommunicate OK [11:01:32]CreateOFDProtocolMessage done [11:01:32]OFDSenderStorePacket 19578 [11:01:32]StoreOFDPacket docnum=19578 [11:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 5B 4D 07 01 E5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8B A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7A 4C 00 00 35 04 06 00 91 96 E3 EB C7 DD 92 83 E7 DC 11 DB 54 2A [11:01:32]CheckFolder [11:01:32]dirname=/storage/ofd_packets [11:01:32]CheckFolder done [11:01:32]ProducePacketName [11:01:32]name=ofd_packets/00019578 [11:01:32]NVStorageSaveData ofd_packets/00019578 [11:01:32]File name is /storage/ofd_packets/00019578 [11:01:32]Write 301 bytes [11:01:32]NVStorageSaveData done [11:01:32]OFDSenderStorePacket done [11:01:32]KKMCreateOFDPacket done [11:01:32]NVStorageSaveData kkm_last_timestamp [11:01:32]File name is /storage/kkm_last_timestamp [11:01:32]Write 4 bytes [11:01:32]NVStorageSaveData done [11:01:32]ExternCall_PrintAddStr [11:01:32]wPrintStart [11:01:32]Write to MH i2c: 01 00 00 3B 02 3D [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 07 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [11:01:32]RasterBufferAndPrint [11:01:32]line Счет N : (1)23699622 [11:01:32]line ИНН: 02508201610067 [11:01:32]line Контрольно-Кассовый Чек [11:01:32]line ПРОДАЖА [11:01:32]line ТРК (МРК, ГНК) : 21 [11:01:32]line Товар: 2710124500 [11:01:32]line Аи-95-К-5 [11:01:32]line 18.870 * 74.20 [11:01:32]line = 1400.15 [11:01:32]line НДС 12% НСП 1% [11:01:32]line > о реализуемом товаре [11:01:32]line ОКРУГЛЕНИЕ: -0.15 [11:01:32]line ИТОГО: 1400.00 [11:01:32]line Внесено: 1400.00 [11:01:32]line СДАЧА: 0.00 [11:01:32]line НСП 1% : 12.39 [11:01:32]line НДС 12% : 148.69 [11:01:32]line Наличными: 1400.00 [11:01:32]line Безнал.: 0.00 [11:01:32]line Место: АЗС № 93 "Партнер Нефть" [11:01:32]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:01:32]line СНО: Общий режим [11:01:32]line Чек 28 21.09.2024 11:01 [11:01:32]line Смена: 232 ФФД: 1.0 [11:01:32]line ЗНМ: 0300000060 [11:01:32]line РНМ: 0000000000146239 [11:01:32]line Версия ККМ: v1.0 [11:01:32]line ФМ: 0000000000959362 [11:01:32]line ФД: 19578 [11:01:32]line ФПД: 160077255002077 [11:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110131&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19578&fm=160077255002077&tin=02508201610067®Number=0000000000146239&sum=140000 [11:01:32]OFD Sender: Processing packet 19578 [packets to send 63, broken 62] [11:01:32]ProducePacketName [11:01:32]name=ofd_packets/00019578 [11:01:32]OFD Sender: To server: pG, [11:01:32]CommunicateWithHost lk.salyk.kg:30040 [11:01:32]ConnectInit lk.salyk.kg [11:01:32]written 0, free lines is 4095 [11:01:33]Write to MH i2c: 01 00 00 66 02 68 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 07 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 93 0C 0E [11:01:33]RasterBufferAndPrint [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]written 0, free lines is 3224 [11:01:33]MH_Cut [11:01:33]Write to MH i2c: D1 01 00 6D 02 01 41 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 01 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 01 00 6D 02 00 40 [11:01:33]Write to MH i2c: 01 00 00 6E 02 70 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Connected sock=11 [11:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 5B 4D 07 01 E5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8B A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7A 4C 00 00 35 04 06 00 91 96 E3 EB C7 DD 92 83 E7 DC 11 DB 54 2A [11:01:34]*** Cut start [11:01:34]*** Partial cut [11:01:34]*** CUTSNS_PIN = 1 [11:01:34]*** CUTSNS_PIN = 0 [11:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 55 91 47 00 EA 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7A 4C 00 00 F4 03 04 00 26 52 EE 66 B6 04 01 00 00 0E 9E 4E 76 E9 B3 84 D9 [11:01:34]CommunicateWithHost err = 0 [11:01:34]CheckOFDResponse [11:01:34]1017 (14) - 77093643461234 [11:01:34]1041 (16) - 0000000000959362 [11:01:34]1040 (4) - 19578 [11:01:34]1012 (4) - 21.09.2024 04:57 [11:01:34]1206 (1) - 0 [11:01:34]OFD Sender: Remove packet 19578 [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00019578 [11:01:34]NVStorageDeleteData [11:01:34]*** Brake cut motor [11:01:34]Read from MH i2c: 01 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 [11:01:34]MH_I2C_Read... [11:01:34]*** Stop cut motor [11:01:34]*** Cut end [11:01:34]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [11:01:34]process_action close_receipt done [11:01:34]requested_data is exist [11:01:34]produce_requested_data [11:01:34]requested_item fm.sn is exist - process it [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 11 00 00 [11:01:34]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 40 [11:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:01:34]wFMCommunicate OK [11:01:34]requested_item fd.num is exist - process it [11:01:34]SAM_PROTO_GetFieldsCounters [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 13 00 00 [11:01:34]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]OFD Sender: No OFD packet to send [11:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 62 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_GetFieldsCounters done [11:01:34]requested_item shift.num is exist - process it [11:01:34]requested_item shift.opened is exist - process it [11:01:34]req_shift_opened [11:01:34]FM_GetShiftState [11:01:34]SAM_PROTO_GetShiftState [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 13 01 00 [11:01:34]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 76 [11:01:34]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_GetShiftState done [11:01:34]FM_GetShiftState done [11:01:34]req_shift_opened done [11:01:34]requested_item shift.open_date is exist - process it [11:01:34]req_shift_open_date [11:01:34]req_shift_open_date done [11:01:34]produce_requested_data done [11:01:34]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19578,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:01:34]process_action_free close_receipt [11:01:34]json_value_free [11:01:34]json_value_free done [11:01:34]process_json_proto returns [11:01:34]Send response to host [11:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19578,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:01:34]free response buf [11:01:34]execute_script done [11:01:34]execute_script returns [11:01:34]free content buf [11:01:34]Sock 10.Close socket [11:01:34]Sock 10.Thread stoped [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:25]accept exits with 7 [11:02:25]New connection [11:02:25]New thread 3067039076 created [11:02:25]Thread 3066895716 joined [11:02:25]Waiting for new connection... [11:02:25] Sock 7.Parse request [11:02:25]Sock 7.Check first char [11:02:25]Sock 7.First char is OK [11:02:25]request: POST /json_proto HTTP/1.0 [11:02:25]Method: POST [11:02:25]URL: /json_proto [11:02:25]Method is POST - this is cgi request [11:02:25]url: /json_proto [11:02:25]query_string will be loaded in cgi processing [11:02:25]execute_cgi json_proto POST (null) [11:02:25]execute_cgi path=json_proto method=POST [11:02:25]POST find Content-Length [11:02:25]Host: 172.17.42.73:8080 [11:02:25]Content-Length: 614 [11:02:25]Content-Type: application/json [11:02:25] [11:02:25]POST finish read [11:02:25]Found Content-Length = 614 [11:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117500", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [11:02:25]execute_script... [11:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117500", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [11:02:25]POST & json_proto [11:02:25]process_json_proto [11:02:25]json parsed OK: [11:02:25]protocol is kg_v1.0 [11:02:25]action value=close_receipt [11:02:25]process_action close_receipt [11:02:25]cmd_close_receipt [11:02:25]MH_GetDate [11:02:25]Write to MH i2c: F0 00 00 72 02 63 [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 09 00 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 09 00 72 02 00 C2 A7 EE 66 99 54 47 66 C3 [11:02:25]GetLastDocTimeStamp 1726916491 [11:02:25]current date 1726916546 [11:02:25]FM_GetShiftState [11:02:25]SAM_PROTO_GetShiftState [11:02:25]wFMCommunicate request_size=4 [11:02:25]MH_SAM_APDU [11:02:25]CAPDU: 80 13 01 00 [11:02:25]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:25]Read from MH i2c: E2 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 0E 00 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 78 [11:02:25]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:02:25]wFMCommunicate OK [11:02:25]SAM_PROTO_GetShiftState done [11:02:25]FM_GetShiftState done [11:02:25]opened in 1726877463 [11:02:25]opened+sec_in_day 1726963863 [11:02:25]quantity*price = 11000 [11:02:25]sum+1 = 11001 [11:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 29 21.09.2024 11:02 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19579 ФПД: 78294435569036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110226&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19579&fm=78294435569036&tin=02508201610067®Number=0000000000146239&sum=11000 0 [11:02:26]StoreToDocumentArchive [11:02:26]shift 232 fd 19579 [11:02:26]save to /storage/0232/doc_00019579 [11:02:26]save last doc name /storage/0232/doc_00019579 to /storage/kkm_last_doc_name [11:02:26]save OK [11:02:26]Clear old archive folders... [11:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:02:26]tlvbuf is 00B46C40 [11:02:26]SAM_PROTO_ClearQueue [11:02:26]wFMCommunicate request_size=4 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 09 00 00 [11:02:26]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [11:02:26]RAPDU: 90 00 [11:02:26]wFMCommunicate OK [11:02:26]SAM_PROTO_ClearQueue done [11:02:26]KKMCreateOFDPacket [11:02:26]OFDProtocolAddRootSTLVToBuf [11:02:26]FM_MakeSignedData [11:02:26]FM_MakeSignedData [11:02:26]SAM_PROTO_SignData [11:02:26]wFMCommunicate request_size=4 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 0D 01 02 [11:02:26]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [11:02:26]RAPDU: 90 00 [11:02:26]wFMCommunicate OK [11:02:26]wFMCommunicate request_size=255 [11:02:26]MH_SAM_APDU [11:02:26]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 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 1D 00 00 00 F4 03 04 00 C2 A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [11:02:26]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1D 00 00 00 F4 03 04 00 C2 A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 37 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [11:02:26]RAPDU: 90 00 [11:02:26]wFMCommunicate OK [11:02:26]wFMCommunicate request_size=25 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 0D 02 02 14 36 32 10 04 04 00 7B 4C 00 00 35 04 06 00 47 35 58 05 1D 8C [11:02:26]Write to MH i2c: E2 1C 00 83 02 80 0D 02 02 14 00 36 32 10 04 04 00 7B 4C 00 00 35 04 06 00 47 35 58 05 1D 8C 00 00 2F [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [11:02:27]RAPDU: 90 00 [11:02:27]wFMCommunicate OK [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 0D 03 02 [11:02:27]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 0B 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 0B 00 84 02 00 93 65 93 41 65 C5 0F EC 90 00 F3 [11:02:27]RAPDU: 93 65 93 41 65 C5 0F EC 90 00 [11:02:27]wFMCommunicate OK [11:02:27]SAM_PROTO_SignData done [11:02:27]FM_MakeSignedData done [11:02:27]CreateOFDProtocolMessage [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 11 00 00 [11:02:27]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 17 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 56 [11:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:02:27]wFMCommunicate OK [11:02:27]CreateOFDProtocolMessage done [11:02:27]OFDSenderStorePacket 19579 [11:02:27]StoreOFDPacket docnum=19579 [11:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 98 6C 16 01 0A 61 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 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 1D 00 00 00 F4 03 04 00 C2 A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7B 4C 00 00 35 04 06 00 47 35 58 05 1D 8C 93 65 93 41 65 C5 0F EC [11:02:27]CheckFolder [11:02:27]dirname=/storage/ofd_packets [11:02:27]CheckFolder done [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00019579 [11:02:27]NVStorageSaveData ofd_packets/00019579 [11:02:27]File name is /storage/ofd_packets/00019579 [11:02:27]Write 316 bytes [11:02:27]NVStorageSaveData done [11:02:27]OFDSenderStorePacket done [11:02:27]KKMCreateOFDPacket done [11:02:27]NVStorageSaveData kkm_last_timestamp [11:02:27]File name is /storage/kkm_last_timestamp [11:02:27]Write 4 bytes [11:02:27]NVStorageSaveData done [11:02:27]ExternCall_PrintAddStr [11:02:27]wPrintStart [11:02:27]Write to MH i2c: 01 00 00 86 02 88 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [11:02:27]RasterBufferAndPrint [11:02:27]line Счет N : (3)117500 [11:02:27]line ИНН: 02508201610067 [11:02:27]line Контрольно-Кассовый Чек [11:02:27]line ПРОДАЖА [11:02:27]line Товар: 4870001570071 [11:02:27]line Напиток Pepsi 1л [11:02:27]line 1.000 * 110.00 [11:02:27]line = 110.00 [11:02:27]line НДС 12% НСП 1% [11:02:27]line > о реализуемом товаре [11:02:27]line ИТОГО: 110.00 [11:02:27]line НСП 1% : 0.97 [11:02:27]line НДС 12% : 11.68 [11:02:27]line Наличными: 110.00 [11:02:27]line Безнал.: 0.00 [11:02:27]line Место: АЗС № 93 "Партнер Нефть" [11:02:27]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:02:27]line СНО: Общий режим [11:02:27]line Чек 29 21.09.2024 11:02 [11:02:27]line Смена: 232 ФФД: 1.0 [11:02:27]line ЗНМ: 0300000060 [11:02:27]line РНМ: 0000000000146239 [11:02:27]line Версия ККМ: v1.0 [11:02:27]line ФМ: 0000000000959362 [11:02:27]line ФД: 19579 [11:02:27]line ФПД: 78294435569036 [11:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110226&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19579&fm=78294435569036&tin=02508201610067®Number=0000000000146239&sum=11000 [11:02:27]line 0 [11:02:27]OFD Sender: Processing packet 19579 [packets to send 63, broken 62] [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00019579 [11:02:27]OFD Sender: To server: pG, [11:02:27]CommunicateWithHost lk.salyk.kg:30040 [11:02:27]ConnectInit lk.salyk.kg [11:02:27]written 0, free lines is 4095 [11:02:27]Write to MH i2c: 01 00 00 AE 02 B0 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 B7 0C 7A [11:02:27]RasterBufferAndPrint [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]written 0, free lines is 3258 [11:02:27]MH_Cut [11:02:27]Write to MH i2c: D1 01 00 B5 02 01 89 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 01 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 01 00 B5 02 00 88 [11:02:27]Write to MH i2c: 01 00 00 B6 02 B8 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Connected sock=10 [11:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 98 6C 16 01 0A 61 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 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 1D 00 00 00 F4 03 04 00 C2 A7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7B 4C 00 00 35 04 06 00 47 35 58 05 1D 8C 93 65 93 41 65 C5 0F EC [11:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FB 9F 47 00 C6 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7B 4C 00 00 F4 03 04 00 5C 52 EE 66 B6 04 01 00 00 A2 2D 72 A6 A1 48 7A 08 [11:02:28]CommunicateWithHost err = 0 [11:02:28]CheckOFDResponse [11:02:28]1017 (14) - 77093643461234 [11:02:28]1041 (16) - 0000000000959362 [11:02:28]1040 (4) - 19579 [11:02:28]1012 (4) - 21.09.2024 04:58 [11:02:28]1206 (1) - 0 [11:02:28]OFD Sender: Remove packet 19579 [11:02:28]ProducePacketName [11:02:28]name=ofd_packets/00019579 [11:02:28]NVStorageDeleteData [11:02:28]OFD Sender: No OFD packet to send [11:02:28]*** Cut start [11:02:28]*** Partial cut [11:02:28]*** CUTSNS_PIN = 1 [11:02:28]*** CUTSNS_PIN = 0 [11:02:29]*** Brake cut motor [11:02:29]Read from MH i2c: 01 [11:02:29]MH_I2C_Read... [11:02:29]*** Stop cut motor [11:02:29]*** Cut end [11:02:29]Read from MH i2c: 01 07 00 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [11:02:29]process_action close_receipt done [11:02:29]requested_data is exist [11:02:29]produce_requested_data [11:02:29]requested_item fm.sn is exist - process it [11:02:29]wFMCommunicate request_size=4 [11:02:29]MH_SAM_APDU [11:02:29]CAPDU: 80 11 00 00 [11:02:29]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [11:02:29]Write i2c OK [11:02:29]MH_I2C_Read... [11:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:29]Read from MH i2c: E2 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 17 00 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 88 [11:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:02:29]wFMCommunicate OK [11:02:29]requested_item fd.num is exist - process it [11:02:29]SAM_PROTO_GetFieldsCounters [11:02:29]wFMCommunicate request_size=4 [11:02:29]MH_SAM_APDU [11:02:29]CAPDU: 80 13 00 00 [11:02:29]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [11:02:29]Write i2c OK [11:02:29]MH_I2C_Read... [11:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:29]Read from MH i2c: E2 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 62 00 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:02:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:29]wFMCommunicate OK [11:02:29]SAM_PROTO_GetFieldsCounters done [11:02:29]requested_item shift.num is exist - process it [11:02:29]requested_item shift.opened is exist - process it [11:02:29]req_shift_opened [11:02:29]FM_GetShiftState [11:02:29]SAM_PROTO_GetShiftState [11:02:29]wFMCommunicate request_size=4 [11:02:29]MH_SAM_APDU [11:02:29]CAPDU: 80 13 01 00 [11:02:29]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [11:02:29]Write i2c OK [11:02:29]MH_I2C_Read... [11:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:29]Read from MH i2c: E2 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 0E 00 [11:02:29]MH_I2C_Read... [11:02:29]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BE [11:02:29]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:02:29]wFMCommunicate OK [11:02:29]SAM_PROTO_GetShiftState done [11:02:29]FM_GetShiftState done [11:02:29]req_shift_opened done [11:02:29]requested_item shift.open_date is exist - process it [11:02:29]req_shift_open_date [11:02:29]req_shift_open_date done [11:02:29]produce_requested_data done [11:02:29]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19579,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:02:29]process_action_free close_receipt [11:02:29]json_value_free [11:02:29]json_value_free done [11:02:29]process_json_proto returns [11:02:29]Send response to host [11:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19579,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:02:29]free response buf [11:02:29]execute_script done [11:02:29]execute_script returns [11:02:29]free content buf [11:02:29]Sock 7.Close socket [11:02:29]Sock 7.Thread stoped [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:51]recv_with_timeout no data received [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:42]recv_with_timeout no data received [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:06:59]recv_with_timeout no data received [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:17]accept exits with 9 [11:09:17]New connection [11:09:17]New thread 3066895716 created [11:09:17]Thread 3067039076 joined [11:09:17]Waiting for new connection... [11:09:17] Sock 9.Parse request [11:09:17]Sock 9.Check first char [11:09:17]Sock 9.First char is OK [11:09:17]request: POST /json_proto HTTP/1.0 [11:09:17]Method: POST [11:09:17]URL: /json_proto [11:09:17]Method is POST - this is cgi request [11:09:17]url: /json_proto [11:09:17]query_string will be loaded in cgi processing [11:09:17]execute_cgi json_proto POST (null) [11:09:17]execute_cgi path=json_proto method=POST [11:09:17]POST find Content-Length [11:09:17]Host: 172.17.42.73:8080 [11:09:17]Content-Length: 1256 [11:09:17]Content-Type: application/json [11:09:17] [11:09:17]POST finish read [11:09:17]Found Content-Length = 1256 [11:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117501", "tax_sys" : 0, "items" : [ { "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:17]execute_script... [11:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117501", "tax_sys" : 0, "items" : [ { "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:17]POST & json_proto [11:09:17]process_json_proto [11:09:17]json parsed OK: [11:09:17]protocol is kg_v1.0 [11:09:17]action value=close_receipt [11:09:17]process_action close_receipt [11:09:17]cmd_close_receipt [11:09:17]MH_GetDate [11:09:17]Write to MH i2c: F0 00 00 BA 02 AB [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 09 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 09 00 BA 02 00 5E A9 EE 66 99 54 47 66 A9 [11:09:17]GetLastDocTimeStamp 1726916546 [11:09:17]current date 1726916958 [11:09:17]FM_GetShiftState [11:09:17]SAM_PROTO_GetShiftState [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 13 01 00 [11:09:17]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 C0 [11:09:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_GetShiftState done [11:09:17]FM_GetShiftState done [11:09:17]opened in 1726877463 [11:09:17]opened+sec_in_day 1726963863 [11:09:17]quantity*price = 4900 [11:09:17]sum+1 = 4901 [11:09:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400976 Арахис жарен Караван орехов Стандарт 90 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.28 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 30 21.09.2024 11:09 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19580 ФПД: 214135882064740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110918&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19580&fm=214135882064740&tin=02508201610067®Number=0000000000146239&sum=14400 0 [11:09:18]StoreToDocumentArchive [11:09:18]shift 232 fd 19580 [11:09:18]save to /storage/0232/doc_00019580 [11:09:18]save last doc name /storage/0232/doc_00019580 to /storage/kkm_last_doc_name [11:09:18]save OK [11:09:18]Clear old archive folders... [11:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=518 [11:09:18]tlvbuf is B6F6A010 [11:09:18]SAM_PROTO_ClearQueue [11:09:18]wFMCommunicate request_size=4 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 09 00 00 [11:09:18]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [11:09:18]RAPDU: 90 00 [11:09:18]wFMCommunicate OK [11:09:18]SAM_PROTO_ClearQueue done [11:09:18]KKMCreateOFDPacket [11:09:18]OFDProtocolAddRootSTLVToBuf [11:09:18]FM_MakeSignedData [11:09:18]FM_MakeSignedData [11:09:18]SAM_PROTO_SignData [11:09:18]wFMCommunicate request_size=4 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 0D 01 02 [11:09:18]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [11:09:18]RAPDU: 90 00 [11:09:18]wFMCommunicate OK [11:09:18]wFMCommunicate request_size=255 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 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 [11:09:18]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 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 00 00 04 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [11:09:18]RAPDU: 90 00 [11:09:18]wFMCommunicate OK [11:09:18]wFMCommunicate request_size=255 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 05 00 00 00 00 07 04 06 00 40 38 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 5E A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 [11:09:18]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 05 00 00 00 00 07 04 06 00 40 38 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 5E A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 00 00 8C [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:19]OFD Sender: No OFD packet to send [11:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]wFMCommunicate request_size=27 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 02 02 16 39 33 36 32 10 04 04 00 7C 4C 00 00 35 04 06 00 C2 C1 65 2F 23 64 [11:09:19]Write to MH i2c: E2 1E 00 CC 02 80 0D 02 02 16 00 39 33 36 32 10 04 04 00 7C 4C 00 00 35 04 06 00 C2 C1 65 2F 23 64 00 00 05 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 03 02 [11:09:19]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 0B 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 0B 00 CD 02 00 76 03 D6 66 C7 A8 D1 BB 90 00 FB [11:09:19]RAPDU: 76 03 D6 66 C7 A8 D1 BB 90 00 [11:09:19]wFMCommunicate OK [11:09:19]SAM_PROTO_SignData done [11:09:19]FM_MakeSignedData done [11:09:19]CreateOFDProtocolMessage [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 11 00 00 [11:09:19]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9F [11:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:09:19]wFMCommunicate OK [11:09:19]CreateOFDProtocolMessage done [11:09:19]OFDSenderStorePacket 19580 [11:09:19]StoreOFDPacket docnum=19580 [11:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1A 02 00 00 D5 1F 12 02 49 77 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 05 00 00 00 00 07 04 06 00 40 38 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 5E A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7C 4C 00 00 35 04 06 00 C2 C1 65 2F 23 64 76 03 D6 66 C7 A8 D1 BB [11:09:19]CheckFolder [11:09:19]dirname=/storage/ofd_packets [11:09:19]CheckFolder done [11:09:19]ProducePacketName [11:09:19]name=ofd_packets/00019580 [11:09:19]NVStorageSaveData ofd_packets/00019580 [11:09:19]File name is /storage/ofd_packets/00019580 [11:09:19]Write 568 bytes [11:09:19]NVStorageSaveData done [11:09:19]OFDSenderStorePacket done [11:09:19]KKMCreateOFDPacket done [11:09:19]NVStorageSaveData kkm_last_timestamp [11:09:19]File name is /storage/kkm_last_timestamp [11:09:19]Write 4 bytes [11:09:19]NVStorageSaveData done [11:09:19]ExternCall_PrintAddStr [11:09:19]wPrintStart [11:09:19]Write to MH i2c: 01 00 00 CF 02 D1 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 07 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [11:09:19]RasterBufferAndPrint [11:09:19]line Счет N : (3)117501 [11:09:19]line ИНН: 02508201610067 [11:09:19]line Контрольно-Кассовый Чек [11:09:19]line ПРОДАЖА [11:09:19]line Товар: 4700026030017 [11:09:19]line Курут классический [11:09:19]line 1.000 * 49.00 [11:09:19]line = 49.00 [11:09:19]line НДС 12% НСП 1% [11:09:19]line > о реализуемом товаре [11:09:19]line Товар: 4630007400976 [11:09:19]line Арахис жарен Караван орехов Стандарт 90 [11:09:19]line 1.000 * 75.00 [11:09:19]line = 75.00 [11:09:19]line НДС 12% НСП 1% [11:09:19]line > о реализуемом товаре [11:09:19]line Товар: 46231529 [11:09:19]line Mentos ПФ Арбуз 6*100*2 [11:09:19]line 2.000 * 10.00 [11:09:19]line = 20.00 [11:09:19]line НДС 12% НСП 1% [11:09:19]line > о реализуемом товаре [11:09:19]line ИТОГО: 144.00 [11:09:19]line НСП 1% : 1.27 [11:09:19]line НДС 12% : 15.28 [11:09:19]line Наличными: 144.00 [11:09:19]line Безнал.: 0.00 [11:09:19]line Место: АЗС № 93 "Партнер Нефть" [11:09:19]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:09:19]line СНО: Общий режим [11:09:19]line Чек 30 21.09.2024 11:09 [11:09:19]line Смена: 232 ФФД: 1.0 [11:09:19]line ЗНМ: 0300000060 [11:09:19]line РНМ: 0000000000146239 [11:09:19]line Версия ККМ: v1.0 [11:09:19]line ФМ: 0000000000959362 [11:09:19]line ФД: 19580 [11:09:19]line ФПД: 214135882064740 [11:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T110918&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19580&fm=214135882064740&tin=02508201610067®Number=0000000000146239&sum=14400 [11:09:19]line 0 [11:09:19]written 0, free lines is 4095 [11:09:19]OFD Sender: Processing packet 19580 [packets to send 63, broken 62] [11:09:19]ProducePacketName [11:09:19]name=ofd_packets/00019580 [11:09:19]OFD Sender: To server: pG, [11:09:19]CommunicateWithHost lk.salyk.kg:30040 [11:09:19]ConnectInit lk.salyk.kg [11:09:19]Connected sock=7 [11:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1A 02 00 00 D5 1F 12 02 49 77 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 05 00 00 00 00 07 04 06 00 40 38 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 5E A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7C 4C 00 00 35 04 06 00 C2 C1 65 2F 23 64 76 03 D6 66 C7 A8 D1 BB [11:09:20]Write to MH i2c: 01 00 00 04 03 07 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 07 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 F1 0B 0A [11:09:20]RasterBufferAndPrint [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]written 0, free lines is 3062 [11:09:20]MH_Cut [11:09:20]Write to MH i2c: D1 01 00 0B 03 01 E0 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 01 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 01 00 0B 03 00 DF [11:09:20]Write to MH i2c: 01 00 00 0C 03 0F [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A6 F7 47 00 3E 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 39 35 39 33 36 32 10 04 04 00 7C 4C 00 00 F4 03 04 00 F8 53 EE 66 B6 04 01 00 00 C8 97 C1 09 9F A2 C9 6F [11:09:20]CommunicateWithHost err = 0 [11:09:20]CheckOFDResponse [11:09:20]1017 (14) - 77093643461234 [11:09:20]1041 (16) - 0000000000959362 [11:09:20]1040 (4) - 19580 [11:09:20]1012 (4) - 21.09.2024 05:04 [11:09:20]1206 (1) - 0 [11:09:20]OFD Sender: Remove packet 19580 [11:09:20]ProducePacketName [11:09:20]name=ofd_packets/00019580 [11:09:20]NVStorageDeleteData [11:09:20]OFD Sender: No OFD packet to send [11:09:21]*** Cut start [11:09:21]*** Partial cut [11:09:21]*** CUTSNS_PIN = 1 [11:09:21]*** CUTSNS_PIN = 0 [11:09:21]*** Brake cut motor [11:09:21]Read from MH i2c: 01 [11:09:21]MH_I2C_Read... [11:09:21]*** Stop cut motor [11:09:21]*** Cut end [11:09:21]Read from MH i2c: 01 07 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [11:09:21]process_action close_receipt done [11:09:21]requested_data is exist [11:09:21]produce_requested_data [11:09:21]requested_item fm.sn is exist - process it [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 11 00 00 [11:09:21]Write to MH i2c: E2 08 00 0D 03 80 11 00 00 00 00 00 00 8A [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 0D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DF [11:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:09:21]wFMCommunicate OK [11:09:21]requested_item fd.num is exist - process it [11:09:21]SAM_PROTO_GetFieldsCounters [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 00 00 [11:09:21]Write to MH i2c: E2 08 00 0E 03 80 13 00 00 00 00 00 00 8D [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 62 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 62 00 0E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [11:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetFieldsCounters done [11:09:21]requested_item shift.num is exist - process it [11:09:21]requested_item shift.opened is exist - process it [11:09:21]req_shift_opened [11:09:21]FM_GetShiftState [11:09:21]SAM_PROTO_GetShiftState [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 01 00 [11:09:21]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [11:09:21]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetShiftState done [11:09:21]FM_GetShiftState done [11:09:21]req_shift_opened done [11:09:21]requested_item shift.open_date is exist - process it [11:09:21]req_shift_open_date [11:09:21]req_shift_open_date done [11:09:21]produce_requested_data done [11:09:21]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19580,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:09:21]process_action_free close_receipt [11:09:21]json_value_free [11:09:21]json_value_free done [11:09:21]process_json_proto returns [11:09:21]Send response to host [11:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19580,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:09:21]free response buf [11:09:21]execute_script done [11:09:21]execute_script returns [11:09:21]free content buf [11:09:21]Sock 9.Close socket [11:09:21]Sock 9.Thread stoped [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:38]recv_with_timeout no data received [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11: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:52]accept exits with 10 [11:11:52]New connection [11:11:52]New thread 3067039076 created [11:11:52]Thread 3066895716 joined [11:11:52]Waiting for new connection... [11:11:52] Sock 10.Parse request [11:11:52]Sock 10.Check first char [11:11:52]Sock 10.First char is OK [11:11:52]request: POST /json_proto HTTP/1.0 [11:11:52]Method: POST [11:11:52]URL: /json_proto [11:11:52]Method is POST - this is cgi request [11:11:52]url: /json_proto [11:11:52]query_string will be loaded in cgi processing [11:11:52]execute_cgi json_proto POST (null) [11:11:52]execute_cgi path=json_proto method=POST [11:11:52]POST find Content-Length [11:11:52]Host: 172.17.42.73:8080 [11:11:52]Content-Length: 647 [11:11:52]Content-Type: application/json [11:11:52] [11:11:52]POST finish read [11:11:52]Found Content-Length = 647 [11:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117502", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:52]execute_script... [11:11: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)117502", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:52]POST & json_proto [11:11:52]process_json_proto [11:11:52]json parsed OK: [11:11:52]protocol is kg_v1.0 [11:11:52]action value=close_receipt [11:11:52]process_action close_receipt [11:11:52]cmd_close_receipt [11:11:52]MH_GetDate [11:11:52]Write to MH i2c: F0 00 00 10 03 02 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 09 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 09 00 10 03 00 F9 A9 EE 66 99 54 47 66 9B [11:11:52]GetLastDocTimeStamp 1726916958 [11:11:52]current date 1726917113 [11:11:52]FM_GetShiftState [11:11:52]SAM_PROTO_GetShiftState [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 13 01 00 [11:11:52]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 17 [11:11:52]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:11:52]wFMCommunicate OK [11:11:52]SAM_PROTO_GetShiftState done [11:11:52]FM_GetShiftState done [11:11:52]opened in 1726877463 [11:11:52]opened+sec_in_day 1726963863 [11:11:52]quantity*price = 4000 [11:11:52]sum+1 = 4001 [11:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 31 21.09.2024 11:11 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19581 ФПД: 67295871939780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T111153&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19581&fm=67295871939780&tin=02508201610067®Number=0000000000146239&sum=4000 0 [11:11:53]StoreToDocumentArchive [11:11:53]shift 232 fd 19581 [11:11:53]save to /storage/0232/doc_00019581 [11:11:53]save last doc name /storage/0232/doc_00019581 to /storage/kkm_last_doc_name [11:11:53]save OK [11:11:53]Clear old archive folders... [11:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:11:53]tlvbuf is 00AE8B10 [11:11:53]SAM_PROTO_ClearQueue [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 09 00 00 [11:11:53]Write to MH i2c: E2 08 00 1E 03 80 09 00 00 00 00 00 00 93 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]SAM_PROTO_ClearQueue done [11:11:53]KKMCreateOFDPacket [11:11:53]OFDProtocolAddRootSTLVToBuf [11:11:53]FM_MakeSignedData [11:11:53]FM_MakeSignedData [11:11:53]SAM_PROTO_SignData [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 01 02 [11:11:53]Write to MH i2c: E2 08 00 1F 03 80 0D 01 02 00 00 00 00 9B [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]wFMCommunicate request_size=255 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F9 A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 [11:11:53]Write to MH i2c: E2 02 01 20 03 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F9 A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 00 00 94 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]wFMCommunicate request_size=37 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7D 4C 00 00 35 04 06 00 3D 34 8A 8A B4 C4 [11:11:53]Write to MH i2c: E2 28 00 21 03 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7D 4C 00 00 35 04 06 00 3D 34 8A 8A B4 C4 00 00 BD [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [11:11:54]RAPDU: 90 00 [11:11:54]wFMCommunicate OK [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 0D 03 02 [11:11:54]Write to MH i2c: E2 08 00 22 03 80 0D 03 02 00 00 00 00 A0 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0B 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0B 00 22 03 00 8D 31 96 D6 B3 98 FF B0 90 00 C5 [11:11:54]RAPDU: 8D 31 96 D6 B3 98 FF B0 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_SignData done [11:11:54]FM_MakeSignedData done [11:11:54]CreateOFDProtocolMessage [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 11 00 00 [11:11:54]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F5 [11:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:11:54]wFMCommunicate OK [11:11:54]CreateOFDProtocolMessage done [11:11:54]OFDSenderStorePacket 19581 [11:11:54]StoreOFDPacket docnum=19581 [11:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2A 01 00 00 E2 ED 22 01 F6 F4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F9 A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7D 4C 00 00 35 04 06 00 3D 34 8A 8A B4 C4 8D 31 96 D6 B3 98 FF B0 [11:11:54]CheckFolder [11:11:54]dirname=/storage/ofd_packets [11:11:54]CheckFolder done [11:11:54]ProducePacketName [11:11:54]name=ofd_packets/00019581 [11:11:54]NVStorageSaveData ofd_packets/00019581 [11:11:54]File name is /storage/ofd_packets/00019581 [11:11:54]Write 328 bytes [11:11:54]NVStorageSaveData done [11:11:54]OFDSenderStorePacket done [11:11:54]KKMCreateOFDPacket done [11:11:54]NVStorageSaveData kkm_last_timestamp [11:11:54]File name is /storage/kkm_last_timestamp [11:11:54]Write 4 bytes [11:11:54]NVStorageSaveData done [11:11:54]ExternCall_PrintAddStr [11:11:54]wPrintStart [11:11:54]Write to MH i2c: 01 00 00 24 03 27 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 24 03 00 00 00 00 00 FF 0F 3C [11:11:54]RasterBufferAndPrint [11:11:54]line Счет N : (3)117502 [11:11:54]line ИНН: 02508201610067 [11:11:54]line Контрольно-Кассовый Чек [11:11:54]line ПРОДАЖА [11:11:54]line Товар: 4700000310036 [11:11:54]line Вода Жалалабат 27 0,5л [11:11:54]line 1.000 * 40.00 [11:11:54]line = 40.00 [11:11:54]line НДС 12% НСП 1% [11:11:54]line > о реализуемом товаре [11:11:54]line ИТОГО: 40.00 [11:11:54]line НСП 1% : 0.35 [11:11:54]line НДС 12% : 4.25 [11:11:54]line Наличными: 40.00 [11:11:54]line Безнал.: 0.00 [11:11:54]line Место: АЗС № 93 "Партнер Нефть" [11:11:54]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:11:54]line СНО: Общий режим [11:11:54]line Чек 31 21.09.2024 11:11 [11:11:54]line Смена: 232 ФФД: 1.0 [11:11:54]line ЗНМ: 0300000060 [11:11:54]line РНМ: 0000000000146239 [11:11:54]line Версия ККМ: v1.0 [11:11:54]line ФМ: 0000000000959362 [11:11:54]line ФД: 19581 [11:11:54]line ФПД: 67295871939780 [11:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T111153&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19581&fm=67295871939780&tin=02508201610067®Number=0000000000146239&sum=4000 [11:11:54]line 0 [11:11:54]OFD Sender: Processing packet 19581 [packets to send 63, broken 62] [11:11:54]ProducePacketName [11:11:54]name=ofd_packets/00019581 [11:11:54]OFD Sender: To server: pG, [11:11:54]CommunicateWithHost lk.salyk.kg:30040 [11:11:54]ConnectInit lk.salyk.kg [11:11:54]written 0, free lines is 4095 [11:11:54]Write to MH i2c: 01 00 00 4C 03 4F [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 AF 0C 11 [11:11:54]RasterBufferAndPrint [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]written 0, free lines is 3249 [11:11:54]MH_Cut [11:11:54]Write to MH i2c: D1 01 00 53 03 01 28 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: D1 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: D1 01 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: D1 01 00 53 03 00 27 [11:11:54]Write to MH i2c: 01 00 00 54 03 57 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:55]Connected sock=11 [11:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2A 01 00 00 E2 ED 22 01 F6 F4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F9 A9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7D 4C 00 00 35 04 06 00 3D 34 8A 8A B4 C4 8D 31 96 D6 B3 98 FF B0 [11:11:55]*** Cut start [11:11:55]*** Partial cut [11:11:55]*** CUTSNS_PIN = 1 [11:11:55]*** CUTSNS_PIN = 0 [11:11:56]*** Brake cut motor [11:11:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 C0 45 47 00 20 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7D 4C 00 00 F4 03 04 00 94 54 EE 66 B6 04 01 00 00 C0 E0 35 81 BB 63 65 53 [11:11:56]CommunicateWithHost err = 0 [11:11:56]CheckOFDResponse [11:11:56]1017 (14) - 77093643461234 [11:11:56]1041 (16) - 0000000000959362 [11:11:56]1040 (4) - 19581 [11:11:56]1012 (4) - 21.09.2024 05:07 [11:11:56]1206 (1) - 0 [11:11:56]OFD Sender: Remove packet 19581 [11:11:56]ProducePacketName [11:11:56]name=ofd_packets/00019581 [11:11:56]NVStorageDeleteData [11:11:56]Read from MH i2c: 01 [11:11:56]MH_I2C_Read... [11:11:56]*** Stop cut motor [11:11:56]*** Cut end [11:11:56]Read from MH i2c: 01 07 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [11:11:56]process_action close_receipt done [11:11:56]requested_data is exist [11:11:56]produce_requested_data [11:11:56]requested_item fm.sn is exist - process it [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 11 00 00 [11:11:56]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 17 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 27 [11:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:11:56]wFMCommunicate OK [11:11:56]requested_item fd.num is exist - process it [11:11:56]SAM_PROTO_GetFieldsCounters [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 13 00 00 [11:11:56]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]OFD Sender: No OFD packet to send [11:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 62 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_GetFieldsCounters done [11:11:56]requested_item shift.num is exist - process it [11:11:56]requested_item shift.opened is exist - process it [11:11:56]req_shift_opened [11:11:56]FM_GetShiftState [11:11:56]SAM_PROTO_GetShiftState [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 13 01 00 [11:11:56]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0E 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 5D [11:11:56]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_GetShiftState done [11:11:56]FM_GetShiftState done [11:11:56]req_shift_opened done [11:11:56]requested_item shift.open_date is exist - process it [11:11:56]req_shift_open_date [11:11:56]req_shift_open_date done [11:11:56]produce_requested_data done [11:11:56]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19581,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:11:56]process_action_free close_receipt [11:11:56]json_value_free [11:11:56]json_value_free done [11:11:56]process_json_proto returns [11:11:56]Send response to host [11:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19581,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:11:56]free response buf [11:11:56]execute_script done [11:11:56]execute_script returns [11:11:56]free content buf [11:11:56]Sock 10.Close socket [11:11:56]Sock 10.Thread stoped [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:14]recv_with_timeout no data received [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:52]recv_with_timeout no data received [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:03]recv_with_timeout no data received [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:24]accept exits with 7 [11:13:24]New connection [11:13:24]New thread 3066895716 created [11:13:24]Thread 3067039076 joined [11:13:24]Waiting for new connection... [11:13:24] Sock 7.Parse request [11:13:24]Sock 7.Check first char [11:13:24]Sock 7.First char is OK [11:13:24]request: POST /json_proto HTTP/1.0 [11:13:24]Method: POST [11:13:24]URL: /json_proto [11:13:24]Method is POST - this is cgi request [11:13:24]url: /json_proto [11:13:24]query_string will be loaded in cgi processing [11:13:24]execute_cgi json_proto POST (null) [11:13:24]execute_cgi path=json_proto method=POST [11:13:24]POST find Content-Length [11:13:24]Host: 172.17.42.73:8080 [11:13:24]Content-Length: 904 [11:13:24]Content-Type: application/json [11:13:24] [11:13:24]POST finish read [11:13:24]Found Content-Length = 904 [11:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117503", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]execute_script... [11:13: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)117503", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]POST & json_proto [11:13:24]process_json_proto [11:13:24]json parsed OK: [11:13:24]protocol is kg_v1.0 [11:13:24]action value=close_receipt [11:13:24]process_action close_receipt [11:13:24]cmd_close_receipt [11:13:24]MH_GetDate [11:13:24]Write to MH i2c: F0 00 00 58 03 4A [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 58 03 00 55 AA EE 66 99 54 47 66 40 [11:13:24]GetLastDocTimeStamp 1726917113 [11:13:24]current date 1726917205 [11:13:24]FM_GetShiftState [11:13:24]SAM_PROTO_GetShiftState [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 13 01 00 [11:13:24]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 5F [11:13:24]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_GetShiftState done [11:13:24]FM_GetShiftState done [11:13:24]opened in 1726877463 [11:13:24]opened+sec_in_day 1726963863 [11:13:24]quantity*price = 10000 [11:13:24]sum+1 = 10001 [11:13:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 32 21.09.2024 11:13 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19582 ФПД: 15807433596064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T111325&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19582&fm=15807433596064&tin=02508201610067®Number=0000000000146239&sum=18500 0 [11:13:26]StoreToDocumentArchive [11:13:26]shift 232 fd 19582 [11:13:26]save to /storage/0232/doc_00019582 [11:13:26]save last doc name /storage/0232/doc_00019582 to /storage/kkm_last_doc_name [11:13:26]save OK [11:13:26]Clear old archive folders... [11:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=393 [11:13:26]tlvbuf is 00B4AD70 [11:13:26]SAM_PROTO_ClearQueue [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 09 00 00 [11:13:26]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_ClearQueue done [11:13:26]KKMCreateOFDPacket [11:13:26]OFDProtocolAddRootSTLVToBuf [11:13:26]FM_MakeSignedData [11:13:26]FM_MakeSignedData [11:13:26]SAM_PROTO_SignData [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 01 02 [11:13:26]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=255 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 [11:13:26]Write to MH i2c: E2 02 01 68 03 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 BD [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=152 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 55 AA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7E 4C 00 00 35 04 06 00 0E 60 74 76 DC A0 [11:13:26]Write to MH i2c: E2 9B 00 69 03 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 55 AA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7E 4C 00 00 35 04 06 00 0E 60 74 76 DC A0 00 00 12 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 03 02 [11:13:26]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 6A 03 00 06 03 6A D3 DF 98 60 DB 90 00 E1 [11:13:26]RAPDU: 06 03 6A D3 DF 98 60 DB 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_SignData done [11:13:26]FM_MakeSignedData done [11:13:26]CreateOFDProtocolMessage [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 11 00 00 [11:13:26]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 17 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 3D [11:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:13:26]wFMCommunicate OK [11:13:26]CreateOFDProtocolMessage done [11:13:26]OFDSenderStorePacket 19582 [11:13:26]StoreOFDPacket docnum=19582 [11:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 9D 01 00 00 6B 8C 95 01 FA 1E 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 55 AA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7E 4C 00 00 35 04 06 00 0E 60 74 76 DC A0 06 03 6A D3 DF 98 60 DB [11:13:26]CheckFolder [11:13:26]dirname=/storage/ofd_packets [11:13:26]CheckFolder done [11:13:26]ProducePacketName [11:13:26]name=ofd_packets/00019582 [11:13:26]NVStorageSaveData ofd_packets/00019582 [11:13:26]File name is /storage/ofd_packets/00019582 [11:13:26]Write 443 bytes [11:13:26]NVStorageSaveData done [11:13:26]OFDSenderStorePacket done [11:13:26]KKMCreateOFDPacket done [11:13:26]NVStorageSaveData kkm_last_timestamp [11:13:26]File name is /storage/kkm_last_timestamp [11:13:26]Write 4 bytes [11:13:26]NVStorageSaveData done [11:13:26]ExternCall_PrintAddStr [11:13:26]wPrintStart [11:13:26]Write to MH i2c: 01 00 00 6C 03 6F [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [11:13:26]RasterBufferAndPrint [11:13:26]line Счет N : (3)117503 [11:13:26]line ИНН: 02508201610067 [11:13:26]line Контрольно-Кассовый Чек [11:13:26]line ПРОДАЖА [11:13:26]line Товар: 4700000160358 [11:13:26]line Вода Легенда 1л [11:13:26]line 2.000 * 50.00 [11:13:26]line = 100.00 [11:13:26]line НДС 12% НСП 1% [11:13:26]line > о реализуемом товаре [11:13:26]line Товар: 4600682557456 [11:13:27]line Напиток FLash up energy эн ж/б 0,5/0,45л [11:13:27]line 1.000 * 85.00 [11:13:27]line = 85.00 [11:13:27]line НДС 12% НСП 1% [11:13:27]line > о реализуемом товаре [11:13:27]line ИТОГО: 185.00 [11:13:27]line НСП 1% : 1.63 [11:13:27]line НДС 12% : 19.65 [11:13:27]line Наличными: 185.00 [11:13:27]line Безнал.: 0.00 [11:13:27]line Место: АЗС № 93 "Партнер Нефть" [11:13:27]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:13:27]line СНО: Общий режим [11:13:27]line Чек 32 21.09.2024 11:13 [11:13:27]line Смена: 232 ФФД: 1.0 [11:13:27]line ЗНМ: 0300000060 [11:13:27]line РНМ: 0000000000146239 [11:13:27]line Версия ККМ: v1.0 [11:13:27]line ФМ: 0000000000959362 [11:13:27]line ФД: 19582 [11:13:27]line ФПД: 15807433596064 [11:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T111325&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19582&fm=15807433596064&tin=02508201610067®Number=0000000000146239&sum=18500 [11:13:27]line 0 [11:13:27]OFD Sender: Processing packet 19582 [packets to send 63, broken 62] [11:13:27]ProducePacketName [11:13:27]name=ofd_packets/00019582 [11:13:27]OFD Sender: To server: pG, [11:13:27]CommunicateWithHost lk.salyk.kg:30040 [11:13:27]ConnectInit lk.salyk.kg [11:13:27]written 0, free lines is 4095 [11:13:27]Write to MH i2c: 01 00 00 9B 03 9E [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 39 0C EA [11:13:27]RasterBufferAndPrint [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]written 0, free lines is 3133 [11:13:27]MH_Cut [11:13:27]Write to MH i2c: D1 01 00 A2 03 01 77 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 A2 03 00 76 [11:13:27]Write to MH i2c: 01 00 00 A3 03 A6 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:28]*** Cut start [11:13:28]*** Partial cut [11:13:28]*** CUTSNS_PIN = 1 [11:13:28]*** CUTSNS_PIN = 0 [11:13:28]*** Brake cut motor [11:13:29]Read from MH i2c: 01 [11:13:29]MH_I2C_Read... [11:13:29]*** Stop cut motor [11:13:29]*** Cut end [11:13:29]Read from MH i2c: 01 07 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 FF 0F BB [11:13:29]process_action close_receipt done [11:13:29]requested_data is exist [11:13:29]produce_requested_data [11:13:29]requested_item fm.sn is exist - process it [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 11 00 00 [11:13:29]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 76 [11:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:13:29]wFMCommunicate OK [11:13:29]requested_item fd.num is exist - process it [11:13:29]SAM_PROTO_GetFieldsCounters [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 13 00 00 [11:13:29]Write to MH i2c: E2 08 00 A5 03 80 13 00 00 00 00 00 00 24 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 62 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 62 00 A5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:29]wFMCommunicate OK [11:13:29]SAM_PROTO_GetFieldsCounters done [11:13:29]requested_item shift.num is exist - process it [11:13:29]requested_item shift.opened is exist - process it [11:13:29]req_shift_opened [11:13:29]FM_GetShiftState [11:13:29]SAM_PROTO_GetShiftState [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 13 01 00 [11:13:29]Write to MH i2c: E2 08 00 A6 03 80 13 01 00 00 00 00 00 26 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 0E 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 0E 00 A6 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 AC [11:13:29]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:13:29]wFMCommunicate OK [11:13:29]SAM_PROTO_GetShiftState done [11:13:29]FM_GetShiftState done [11:13:29]req_shift_opened done [11:13:29]requested_item shift.open_date is exist - process it [11:13:29]req_shift_open_date [11:13:29]req_shift_open_date done [11:13:29]produce_requested_data done [11:13:29]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19582,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:13:29]process_action_free close_receipt [11:13:29]json_value_free [11:13:29]json_value_free done [11:13:29]process_json_proto returns [11:13:29]Send response to host [11:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19582,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:13:29]free response buf [11:13:29]execute_script done [11:13:29]execute_script returns [11:13:29]free content buf [11:13:29]Sock 7.Close socket [11:13:29]Sock 7.Thread stoped [11:13:29]Connected sock=11 [11:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 9D 01 00 00 6B 8C 95 01 FA 1E 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 55 AA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7E 4C 00 00 35 04 06 00 0E 60 74 76 DC A0 06 03 6A D3 DF 98 60 DB [11:13:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 EC 44 47 00 0D D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7E 4C 00 00 F4 03 04 00 F2 54 EE 66 B6 04 01 00 00 6A B6 B0 D8 36 F2 3B 20 [11:13:30]CommunicateWithHost err = 0 [11:13:30]CheckOFDResponse [11:13:30]1017 (14) - 77093643461234 [11:13:30]1041 (16) - 0000000000959362 [11:13:30]1040 (4) - 19582 [11:13:30]1012 (4) - 21.09.2024 05:09 [11:13:30]1206 (1) - 0 [11:13:30]OFD Sender: Remove packet 19582 [11:13:30]ProducePacketName [11:13:30]name=ofd_packets/00019582 [11:13:30]NVStorageDeleteData [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:40]recv_with_timeout no data received [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:13:59]recv_with_timeout no data received [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:10]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:18]accept exits with 9 [11:21:18]New connection [11:21:18]New thread 3067039076 created [11:21:18]Thread 3066895716 joined [11:21:18]Waiting for new connection... [11:21:18] Sock 9.Parse request [11:21:18]Sock 9.Check first char [11:21:18]Sock 9.First char is OK [11:21:18]request: POST /json_proto HTTP/1.0 [11:21:18]Method: POST [11:21:18]URL: /json_proto [11:21:18]Method is POST - this is cgi request [11:21:18]url: /json_proto [11:21:18]query_string will be loaded in cgi processing [11:21:18]execute_cgi json_proto POST (null) [11:21:18]execute_cgi path=json_proto method=POST [11:21:18]POST find Content-Length [11:21:18]Host: 172.17.42.73:8080 [11:21:18]Content-Length: 1010 [11:21:18]Content-Type: application/json [11:21:18] [11:21:18]POST finish read [11:21:18]Found Content-Length = 1010 [11:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117504", "tax_sys" : 0, "items" : [ { "code": "4823077639753", "name": "\u041F\u0435\u0447 \u0441\u0430\u0445 Multicake \u043A\u0440\u0435\u043C-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 195 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077639760", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445 Multicake \u0441 \u043D\u0430\u0447 \u0432\u0438\u0448\u043D\u044F-\u043A\u043E\u043A\u043E\u0441 195 ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:18]execute_script... [11:21: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)117504", "tax_sys" : 0, "items" : [ { "code": "4823077639753", "name": "\u041F\u0435\u0447 \u0441\u0430\u0445 Multicake \u043A\u0440\u0435\u043C-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 195 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077639760", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445 Multicake \u0441 \u043D\u0430\u0447 \u0432\u0438\u0448\u043D\u044F-\u043A\u043E\u043A\u043E\u0441 195 ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:18]POST & json_proto [11:21:18]process_json_proto [11:21:18]json parsed OK: [11:21:18]protocol is kg_v1.0 [11:21:18]action value=close_receipt [11:21:18]process_action close_receipt [11:21:18]cmd_close_receipt [11:21:18]MH_GetDate [11:21:18]Write to MH i2c: F0 00 00 A7 03 99 [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: F0 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: F0 09 00 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: F0 09 00 A7 03 00 2F AC EE 66 99 54 47 66 6B [11:21:18]GetLastDocTimeStamp 1726917205 [11:21:18]current date 1726917679 [11:21:18]FM_GetShiftState [11:21:18]SAM_PROTO_GetShiftState [11:21:18]wFMCommunicate request_size=4 [11:21:18]MH_SAM_APDU [11:21:18]CAPDU: 80 13 01 00 [11:21:18]Write to MH i2c: E2 08 00 A8 03 80 13 01 00 00 00 00 00 28 [11:21:18]Write i2c OK [11:21:18]MH_I2C_Read... [11:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:18]Read from MH i2c: E2 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: E2 0E 00 [11:21:18]MH_I2C_Read... [11:21:18]Read from MH i2c: E2 0E 00 A8 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 AE [11:21:18]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:21:18]wFMCommunicate OK [11:21:18]SAM_PROTO_GetShiftState done [11:21:18]FM_GetShiftState done [11:21:18]opened in 1726877463 [11:21:18]opened+sec_in_day 1726963863 [11:21:18]quantity*price = 10000 [11:21:18]sum+1 = 10001 [11:21:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077639760 Печ.сах Multicake с нач вишня-кокос 195 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.76 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 33 21.09.2024 11:21 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19583 ФПД: 272006464747704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112119&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19583&fm=272006464747704&tin=02508201610067®Number=0000000000146239&sum=20000 0 [11:21:19]StoreToDocumentArchive [11:21:19]shift 232 fd 19583 [11:21:19]save to /storage/0232/doc_00019583 [11:21:19]save last doc name /storage/0232/doc_00019583 to /storage/kkm_last_doc_name [11:21:19]save OK [11:21:19]Clear old archive folders... [11:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=432 [11:21:19]tlvbuf is 00B3DAC0 [11:21:19]SAM_PROTO_ClearQueue [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 09 00 00 [11:21:19]Write to MH i2c: E2 08 00 B5 03 80 09 00 00 00 00 00 00 2A [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:19]Read from MH i2c: E2 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 03 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [11:21:19]RAPDU: 90 00 [11:21:19]wFMCommunicate OK [11:21:19]SAM_PROTO_ClearQueue done [11:21:19]KKMCreateOFDPacket [11:21:19]OFDProtocolAddRootSTLVToBuf [11:21:19]FM_MakeSignedData [11:21:19]FM_MakeSignedData [11:21:19]SAM_PROTO_SignData [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 0D 01 02 [11:21:19]Write to MH i2c: E2 08 00 B6 03 80 0D 01 02 00 00 00 00 32 [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=255 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 02 02 FA 03 00 B0 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 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 80 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 36 30 06 04 3C 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BD D0 B0 D1 87 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 31 39 35 20 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 [11:21:20]Write to MH i2c: E2 02 01 B7 03 80 0D 02 02 FA 00 03 00 B0 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 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 80 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 36 30 06 04 3C 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BD D0 B0 D1 87 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 31 39 35 20 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 00 00 0E [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=191 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 02 02 BA 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7F 4C 00 00 35 04 06 00 F7 63 70 B5 38 B8 [11:21:20]Write to MH i2c: E2 C2 00 B8 03 80 0D 02 02 BA 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7F 4C 00 00 35 04 06 00 F7 63 70 B5 38 B8 00 00 2A [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 03 02 [11:21:20]Write to MH i2c: E2 08 00 B9 03 80 0D 03 02 00 00 00 00 37 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 0B 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 0B 00 B9 03 00 0B 6B 97 D6 B6 76 AD ED 90 00 E1 [11:21:20]RAPDU: 0B 6B 97 D6 B6 76 AD ED 90 00 [11:21:20]wFMCommunicate OK [11:21:20]SAM_PROTO_SignData done [11:21:20]FM_MakeSignedData done [11:21:20]CreateOFDProtocolMessage [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 11 00 00 [11:21:20]Write to MH i2c: E2 08 00 BA 03 80 11 00 00 00 00 00 00 37 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 17 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 17 00 BA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 8C [11:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:21:20]wFMCommunicate OK [11:21:20]CreateOFDProtocolMessage done [11:21:20]OFDSenderStorePacket 19583 [11:21:20]StoreOFDPacket docnum=19583 [11:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 C4 01 00 00 B2 78 BC 01 D8 3C 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 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 80 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 36 30 06 04 3C 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BD D0 B0 D1 87 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 31 39 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7F 4C 00 00 35 04 06 00 F7 63 70 B5 38 B8 0B 6B 97 D6 B6 76 AD ED [11:21:20]CheckFolder [11:21:20]dirname=/storage/ofd_packets [11:21:20]CheckFolder done [11:21:20]ProducePacketName [11:21:20]name=ofd_packets/00019583 [11:21:20]NVStorageSaveData ofd_packets/00019583 [11:21:20]File name is /storage/ofd_packets/00019583 [11:21:20]Write 482 bytes [11:21:20]NVStorageSaveData done [11:21:20]OFDSenderStorePacket done [11:21:20]KKMCreateOFDPacket done [11:21:20]NVStorageSaveData kkm_last_timestamp [11:21:20]File name is /storage/kkm_last_timestamp [11:21:20]Write 4 bytes [11:21:20]NVStorageSaveData done [11:21:20]ExternCall_PrintAddStr [11:21:20]wPrintStart [11:21:20]Write to MH i2c: 01 00 00 BB 03 BE [11:21:20]OFD Sender: Processing packet 19583 [packets to send 63, broken 62] [11:21:20]ProducePacketName [11:21:20]name=ofd_packets/00019583 [11:21:20]OFD Sender: To server: pG, [11:21:20]CommunicateWithHost lk.salyk.kg:30040 [11:21:20]ConnectInit lk.salyk.kg [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 07 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FF 0F D3 [11:21:20]RasterBufferAndPrint [11:21:20]line Счет N : (3)117504 [11:21:20]line ИНН: 02508201610067 [11:21:20]line Контрольно-Кассовый Чек [11:21:20]line ПРОДАЖА [11:21:20]line Товар: 4823077639753 [11:21:20]line Печ сах Multicake крем-клубника 195 гр [11:21:20]line 1.000 * 100.00 [11:21:20]line = 100.00 [11:21:20]line НДС 12% НСП 1% [11:21:20]line > о реализуемом товаре [11:21:20]line Товар: 4823077639760 [11:21:20]line Печ.сах Multicake с нач вишня-кокос 195 [11:21:20]line 1.000 * 100.00 [11:21:20]line = 100.00 [11:21:20]line НДС 12% НСП 1% [11:21:20]line > о реализуемом товаре [11:21:20]line ИТОГО: 200.00 [11:21:20]line НСП 1% : 1.76 [11:21:20]line НДС 12% : 21.24 [11:21:20]line Наличными: 200.00 [11:21:20]line Безнал.: 0.00 [11:21:20]line Место: АЗС № 93 "Партнер Нефть" [11:21:20]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:21:20]line СНО: Общий режим [11:21:20]line Чек 33 21.09.2024 11:21 [11:21:20]line Смена: 232 ФФД: 1.0 [11:21:20]line ЗНМ: 0300000060 [11:21:20]line РНМ: 0000000000146239 [11:21:20]line Версия ККМ: v1.0 [11:21:20]line ФМ: 0000000000959362 [11:21:20]line ФД: 19583 [11:21:20]line ФПД: 272006464747704 [11:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112119&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19583&fm=272006464747704&tin=02508201610067®Number=0000000000146239&sum=20000 [11:21:20]line 0 [11:21:20]written 0, free lines is 4095 [11:21:21]Write to MH i2c: 01 00 00 EB 03 EE [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 07 00 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 1E 0C 1F [11:21:21]RasterBufferAndPrint [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]written 0, free lines is 3105 [11:21:21]MH_Cut [11:21:21]Write to MH i2c: D1 01 00 F2 03 01 C7 [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 01 00 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 01 00 F2 03 00 C6 [11:21:21]Write to MH i2c: 01 00 00 F3 03 F6 [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:22]*** Cut start [11:21:22]*** Partial cut [11:21:22]*** CUTSNS_PIN = 1 [11:21:22]*** CUTSNS_PIN = 0 [11:21:22]Connected sock=11 [11:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 C4 01 00 00 B2 78 BC 01 D8 3C 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 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 80 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 36 30 06 04 3C 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BD D0 B0 D1 87 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 31 39 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 7F 4C 00 00 35 04 06 00 F7 63 70 B5 38 B8 0B 6B 97 D6 B6 76 AD ED [11:21:22]*** Brake cut motor [11:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FA E9 47 00 D4 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 39 35 39 33 36 32 10 04 04 00 7F 4C 00 00 F4 03 04 00 CB 56 EE 66 B6 04 01 00 00 B6 52 54 BD BF 80 58 2E [11:21:23]CommunicateWithHost err = 0 [11:21:23]CheckOFDResponse [11:21:23]1017 (14) - 77093643461234 [11:21:23]1041 (16) - 0000000000959362 [11:21:23]1040 (4) - 19583 [11:21:23]1012 (4) - 21.09.2024 05:16 [11:21:23]1206 (1) - 0 [11:21:23]OFD Sender: Remove packet 19583 [11:21:23]ProducePacketName [11:21:23]name=ofd_packets/00019583 [11:21:23]NVStorageDeleteData [11:21:23]Read from MH i2c: 01 [11:21:23]MH_I2C_Read... [11:21:23]*** Stop cut motor [11:21:23]*** Cut end [11:21:23]Read from MH i2c: 01 07 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [11:21:23]process_action close_receipt done [11:21:23]requested_data is exist [11:21:23]produce_requested_data [11:21:23]requested_item fm.sn is exist - process it [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 11 00 00 [11:21:23]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 17 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C6 [11:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:21:23]wFMCommunicate OK [11:21:23]requested_item fd.num is exist - process it [11:21:23]SAM_PROTO_GetFieldsCounters [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 13 00 00 [11:21:23]Write to MH i2c: E2 08 00 F5 03 80 13 00 00 00 00 00 00 74 [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 62 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 62 00 F5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 7F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:23]wFMCommunicate OK [11:21:23]SAM_PROTO_GetFieldsCounters done [11:21:23]requested_item shift.num is exist - process it [11:21:23]requested_item shift.opened is exist - process it [11:21:23]req_shift_opened [11:21:23]FM_GetShiftState [11:21:23]SAM_PROTO_GetShiftState [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 13 01 00 [11:21:23]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:23]Read from MH i2c: E2 0E 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FC [11:21:23]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:21:23]wFMCommunicate OK [11:21:23]SAM_PROTO_GetShiftState done [11:21:23]FM_GetShiftState done [11:21:23]req_shift_opened done [11:21:23]requested_item shift.open_date is exist - process it [11:21:23]req_shift_open_date [11:21:23]req_shift_open_date done [11:21:23]produce_requested_data done [11:21:23]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19583,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:21:23]process_action_free close_receipt [11:21:23]json_value_free [11:21:23]json_value_free done [11:21:23]process_json_proto returns [11:21:23]Send response to host [11:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19583,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:21:23]free response buf [11:21:23]execute_script done [11:21:23]execute_script returns [11:21:23]free content buf [11:21:23]Sock 9.Close socket [11:21:23]Sock 9.Thread stoped [11:21:23]OFD Sender: No OFD packet to send [11:21:25]recv_with_timeout no data received [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:42]recv_with_timeout no data received [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:50]accept exits with 7 [11:21:50]New connection [11:21:50]New thread 3066895716 created [11:21:50]Thread 3067039076 joined [11:21:50]Waiting for new connection... [11:21:50] Sock 7.Parse request [11:21:50]Sock 7.Check first char [11:21:50]Sock 7.First char is OK [11:21:50]request: POST /json_proto HTTP/1.0 [11:21:50]Method: POST [11:21:50]URL: /json_proto [11:21:50]Method is POST - this is cgi request [11:21:50]url: /json_proto [11:21:50]query_string will be loaded in cgi processing [11:21:50]execute_cgi json_proto POST (null) [11:21:50]execute_cgi path=json_proto method=POST [11:21:50]POST find Content-Length [11:21:50]Host: 172.17.42.73:8080 [11:21:50]Content-Length: 728 [11:21:50]Content-Type: application/json [11:21:50] [11:21:50]POST finish read [11:21:50]Found Content-Length = 728 [11:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117505", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:50]execute_script... [11: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)117505", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:50]POST & json_proto [11:21:50]process_json_proto [11:21:50]json parsed OK: [11:21:50]protocol is kg_v1.0 [11:21:50]action value=close_receipt [11:21:50]process_action close_receipt [11:21:50]cmd_close_receipt [11:21:50]MH_GetDate [11:21:50]Write to MH i2c: F0 00 00 F7 03 E9 [11:21:50]Write i2c OK [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: F0 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: F0 09 00 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: F0 09 00 F7 03 00 4F AC EE 66 99 54 47 66 DB [11:21:50]GetLastDocTimeStamp 1726917679 [11:21:50]current date 1726917711 [11:21:50]FM_GetShiftState [11:21:50]SAM_PROTO_GetShiftState [11:21:50]wFMCommunicate request_size=4 [11:21:50]MH_SAM_APDU [11:21:50]CAPDU: 80 13 01 00 [11:21:50]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [11:21:50]Write i2c OK [11:21:50]MH_I2C_Read... [11:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:50]Read from MH i2c: E2 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 0E 00 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FE [11:21:50]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:21:50]wFMCommunicate OK [11:21:50]SAM_PROTO_GetShiftState done [11:21:50]FM_GetShiftState done [11:21:50]opened in 1726877463 [11:21:50]opened+sec_in_day 1726963863 [11:21:50]quantity*price = 10500 [11:21:50]sum+1 = 10501 [11:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 34 21.09.2024 11:21 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19584 ФПД: 156313892329553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112151&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19584&fm=156313892329553&tin=02508201610067®Number=0000000000146239&sum=10500 0 [11:21:51]StoreToDocumentArchive [11:21:51]shift 232 fd 19584 [11:21:51]save to /storage/0232/doc_00019584 [11:21:51]save last doc name /storage/0232/doc_00019584 to /storage/kkm_last_doc_name [11:21:51]save OK [11:21:51]Clear old archive folders... [11:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=308 [11:21:51]tlvbuf is 00B70F40 [11:21:51]SAM_PROTO_ClearQueue [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 09 00 00 [11:21:51]Write to MH i2c: E2 08 00 05 04 80 09 00 00 00 00 00 00 7B [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_ClearQueue done [11:21:51]KKMCreateOFDPacket [11:21:51]OFDProtocolAddRootSTLVToBuf [11:21:51]FM_MakeSignedData [11:21:51]FM_MakeSignedData [11:21:51]SAM_PROTO_SignData [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 0D 01 02 [11:21:51]Write to MH i2c: E2 08 00 06 04 80 0D 01 02 00 00 00 00 83 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]wFMCommunicate request_size=255 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4F AC EE 66 0E 04 04 00 E8 00 00 00 B9 [11:21:51]Write to MH i2c: E2 02 01 07 04 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4F AC EE 66 0E 04 04 00 E8 00 00 00 B9 00 00 DC [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [11:21:52]RAPDU: 90 00 [11:21:52]wFMCommunicate OK [11:21:52]wFMCommunicate request_size=67 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 80 4C 00 00 35 04 06 00 8E 2A AA 06 98 51 [11:21:52]Write to MH i2c: E2 46 00 08 04 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 80 4C 00 00 35 04 06 00 8E 2A AA 06 98 51 00 00 FD [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [11:21:52]RAPDU: 90 00 [11:21:52]wFMCommunicate OK [11:21:52]wFMCommunicate request_size=4 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 0D 03 02 [11:21:52]Write to MH i2c: E2 08 00 09 04 80 0D 03 02 00 00 00 00 88 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 0B 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 0B 00 09 04 00 1D DA BF 85 F0 19 6F C6 90 00 02 [11:21:52]RAPDU: 1D DA BF 85 F0 19 6F C6 90 00 [11:21:52]wFMCommunicate OK [11:21:52]SAM_PROTO_SignData done [11:21:52]FM_MakeSignedData done [11:21:52]CreateOFDProtocolMessage [11:21:52]wFMCommunicate request_size=4 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 11 00 00 [11:21:52]Write to MH i2c: E2 08 00 0A 04 80 11 00 00 00 00 00 00 88 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 17 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 17 00 0A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DD [11:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:21:52]wFMCommunicate OK [11:21:52]CreateOFDProtocolMessage done [11:21:52]OFDSenderStorePacket 19584 [11:21:52]StoreOFDPacket docnum=19584 [11:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 48 01 00 00 5A A7 40 01 47 73 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 80 4C 00 00 35 04 06 00 8E 2A AA 06 98 51 1D DA BF 85 F0 19 6F C6 [11:21:52]CheckFolder [11:21:52]dirname=/storage/ofd_packets [11:21:52]CheckFolder done [11:21:52]ProducePacketName [11:21:52]name=ofd_packets/00019584 [11:21:52]NVStorageSaveData ofd_packets/00019584 [11:21:52]File name is /storage/ofd_packets/00019584 [11:21:52]Write 358 bytes [11:21:52]NVStorageSaveData done [11:21:52]OFDSenderStorePacket done [11:21:52]KKMCreateOFDPacket done [11:21:52]NVStorageSaveData kkm_last_timestamp [11:21:52]File name is /storage/kkm_last_timestamp [11:21:52]Write 4 bytes [11:21:52]NVStorageSaveData done [11:21:52]ExternCall_PrintAddStr [11:21:52]wPrintStart [11:21:52]Write to MH i2c: 01 00 00 0B 04 0F [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [11:21:52]RasterBufferAndPrint [11:21:52]line Счет N : (3)117505 [11:21:52]line ИНН: 02508201610067 [11:21:52]line Контрольно-Кассовый Чек [11:21:52]line ПРОДАЖА [11:21:52]line Товар: 5449000027474 [11:21:52]line Напиток FuzeTea зел чай манго,ромашка 1л [11:21:52]line 1.000 * 105.00 [11:21:52]line = 105.00 [11:21:52]line НДС 12% НСП 1% [11:21:52]line > о реализуемом товаре [11:21:52]line ИТОГО: 105.00 [11:21:52]line НСП 1% : 0.93 [11:21:52]line НДС 12% : 11.15 [11:21:52]line Наличными: 105.00 [11:21:52]line Безнал.: 0.00 [11:21:52]line Место: АЗС № 93 "Партнер Нефть" [11:21:52]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:21:52]line СНО: Общий режим [11:21:52]line Чек 34 21.09.2024 11:21 [11:21:52]line Смена: 232 ФФД: 1.0 [11:21:52]line ЗНМ: 0300000060 [11:21:52]line РНМ: 0000000000146239 [11:21:52]line Версия ККМ: v1.0 [11:21:52]line ФМ: 0000000000959362 [11:21:52]line ФД: 19584 [11:21:52]line ФПД: 156313892329553 [11:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112151&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19584&fm=156313892329553&tin=02508201610067®Number=0000000000146239&sum=10500 [11:21:52]line 0 [11:21:52]OFD Sender: Processing packet 19584 [packets to send 63, broken 62] [11:21:52]ProducePacketName [11:21:52]name=ofd_packets/00019584 [11:21:52]OFD Sender: To server: pG, [11:21:52]CommunicateWithHost lk.salyk.kg:30040 [11:21:52]ConnectInit lk.salyk.kg [11:21:52]written 0, free lines is 4095 [11:21:52]Write to MH i2c: 01 00 00 34 04 38 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 A7 0C F2 [11:21:52]RasterBufferAndPrint [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]written 0, free lines is 3243 [11:21:53]MH_Cut [11:21:53]Write to MH i2c: D1 01 00 3B 04 01 11 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: D1 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: D1 01 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: D1 01 00 3B 04 00 10 [11:21:53]Write to MH i2c: 01 00 00 3C 04 40 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** Cut start [11:21:53]*** Partial cut [11:21:53]*** CUTSNS_PIN = 1 [11:21:53]*** CUTSNS_PIN = 0 [11:21:54]*** Brake cut motor [11:21:54]Read from MH i2c: 01 [11:21:54]MH_I2C_Read... [11:21:54]*** Stop cut motor [11:21:54]*** Cut end [11:21:54]Read from MH i2c: 01 07 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [11:21:54]process_action close_receipt done [11:21:54]requested_data is exist [11:21:54]produce_requested_data [11:21:54]requested_item fm.sn is exist - process it [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 11 00 00 [11:21:54]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 17 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 10 [11:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:21:54]wFMCommunicate OK [11:21:54]requested_item fd.num is exist - process it [11:21:54]SAM_PROTO_GetFieldsCounters [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 13 00 00 [11:21:54]Write to MH i2c: E2 08 00 3E 04 80 13 00 00 00 00 00 00 BE [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 62 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 62 00 3E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 80 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 80 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_GetFieldsCounters done [11:21:54]requested_item shift.num is exist - process it [11:21:54]requested_item shift.opened is exist - process it [11:21:54]req_shift_opened [11:21:54]FM_GetShiftState [11:21:54]SAM_PROTO_GetShiftState [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 13 01 00 [11:21:54]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 46 [11:21:54]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_GetShiftState done [11:21:54]FM_GetShiftState done [11:21:54]req_shift_opened done [11:21:54]requested_item shift.open_date is exist - process it [11:21:54]req_shift_open_date [11:21:54]req_shift_open_date done [11:21:54]produce_requested_data done [11:21:54]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19584,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:21:54]process_action_free close_receipt [11:21:54]json_value_free [11:21:54]json_value_free done [11:21:54]process_json_proto returns [11:21:54]Send response to host [11:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19584,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:21:54]free response buf [11:21:54]execute_script done [11:21:54]execute_script returns [11:21:54]free content buf [11:21:54]Sock 7.Close socket [11:21:54]Sock 7.Thread stoped [11:21:55]Connected sock=11 [11:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 48 01 00 00 5A A7 40 01 47 73 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4F AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 80 4C 00 00 35 04 06 00 8E 2A AA 06 98 51 1D DA BF 85 F0 19 6F C6 [11:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 0C 13 47 00 96 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 80 4C 00 00 F4 03 04 00 EC 56 EE 66 B6 04 01 00 00 E5 5E 61 7B 82 C8 87 67 [11:21:56]CommunicateWithHost err = 0 [11:21:56]CheckOFDResponse [11:21:56]1017 (14) - 77093643461234 [11:21:56]1041 (16) - 0000000000959362 [11:21:56]1040 (4) - 19584 [11:21:56]1012 (4) - 21.09.2024 05:17 [11:21:56]1206 (1) - 0 [11:21:56]OFD Sender: Remove packet 19584 [11:21:56]ProducePacketName [11:21:56]name=ofd_packets/00019584 [11:21:56]NVStorageDeleteData [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:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:17]accept exits with 10 [11:23:17]New connection [11:23:17]New thread 3067039076 created [11:23:17]Thread 3066895716 joined [11:23:17]Waiting for new connection... [11:23:17] Sock 10.Parse request [11:23:17]Sock 10.Check first char [11:23:17]Sock 10.First char is OK [11:23:17]request: POST /json_proto HTTP/1.0 [11:23:17]Method: POST [11:23:17]URL: /json_proto [11:23:17]Method is POST - this is cgi request [11:23:17]url: /json_proto [11:23:17]query_string will be loaded in cgi processing [11:23:17]execute_cgi json_proto POST (null) [11:23:17]execute_cgi path=json_proto method=POST [11:23:17]POST find Content-Length [11:23:17]Host: 172.17.42.73:8080 [11:23:17]Content-Length: 684 [11:23:17]Content-Type: application/json [11:23:17] [11:23:17]POST finish read [11:23:17]Found Content-Length = 684 [11:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:17]execute_script... [11:23:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:17]POST & json_proto [11:23:17]process_json_proto [11:23:17]json parsed OK: [11:23:17]protocol is kg_v1.0 [11:23:17]action value=close_receipt [11:23:17]process_action close_receipt [11:23:17]cmd_close_receipt [11:23:17]MH_GetDate [11:23:17]Write to MH i2c: F0 00 00 40 04 33 [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: F0 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: F0 09 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: F0 09 00 40 04 00 A6 AC EE 66 99 54 47 66 7C [11:23:17]GetLastDocTimeStamp 1726917711 [11:23:17]current date 1726917798 [11:23:17]FM_GetShiftState [11:23:17]SAM_PROTO_GetShiftState [11:23:17]wFMCommunicate request_size=4 [11:23:17]MH_SAM_APDU [11:23:17]CAPDU: 80 13 01 00 [11:23:17]Write to MH i2c: E2 08 00 41 04 80 13 01 00 00 00 00 00 C2 [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:17]Read from MH i2c: E2 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 0E 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 0E 00 41 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 48 [11:23:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:23:17]wFMCommunicate OK [11:23:17]SAM_PROTO_GetShiftState done [11:23:17]FM_GetShiftState done [11:23:17]opened in 1726877463 [11:23:17]opened+sec_in_day 1726963863 [11:23:17]quantity*price = 100005 [11:23:17]sum+1 = 100006 [11:23:17]Check (price>sum+1) || (price+1 о реализуемом товаре [11:23:19]line ОКРУГЛЕНИЕ: -0.05 [11:23:19]line ИТОГО: 1000.00 [11:23:19]line Внесено: 1000.00 [11:23:19]line СДАЧА: 0.00 [11:23:19]line НСП 1% : 8.85 [11:23:19]line НДС 12% : 106.20 [11:23:19]line Наличными: 1000.00 [11:23:19]line Безнал.: 0.00 [11:23:19]line Место: АЗС № 93 "Партнер Нефть" [11:23:19]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:23:19]line СНО: Общий режим [11:23:19]line Чек 35 21.09.2024 11:23 [11:23:19]line Смена: 232 ФФД: 1.0 [11:23:19]line ЗНМ: 0300000060 [11:23:19]line РНМ: 0000000000146239 [11:23:19]line Версия ККМ: v1.0 [11:23:19]line ФМ: 0000000000959362 [11:23:19]line ФД: 19585 [11:23:19]line ФПД: 247159144652955 [11:23:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112318&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19585&fm=247159144652955&tin=02508201610067®Number=0000000000146239&sum=100000 [11:23:19]OFD Sender: Processing packet 19585 [packets to send 63, broken 62] [11:23:19]ProducePacketName [11:23:19]name=ofd_packets/00019585 [11:23:19]OFD Sender: To server: pG, [11:23:19]CommunicateWithHost lk.salyk.kg:30040 [11:23:19]ConnectInit lk.salyk.kg [11:23:19]written 0, free lines is 4095 [11:23:20]Write to MH i2c: 01 00 00 7F 04 83 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: 01 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: 01 07 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 95 0C 2B [11:23:20]RasterBufferAndPrint [11:23:20]line [11:23:20]line [11:23:20]line [11:23:20]line [11:23:20]line [11:23:20]written 0, free lines is 3226 [11:23:20]MH_Cut [11:23:20]Write to MH i2c: D1 01 00 86 04 01 5C [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: D1 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: D1 01 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: D1 01 00 86 04 00 5B [11:23:20]Write to MH i2c: 01 00 00 87 04 8B [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:21]*** Cut start [11:23:21]*** Partial cut [11:23:21]*** CUTSNS_PIN = 1 [11:23:21]*** CUTSNS_PIN = 0 [11:23:21]*** Brake cut motor [11:23:21]Read from MH i2c: 01 [11:23:21]MH_I2C_Read... [11:23:21]*** Stop cut motor [11:23:21]*** Cut end [11:23:21]Read from MH i2c: 01 07 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [11:23:21]process_action close_receipt done [11:23:21]requested_data is exist [11:23:21]produce_requested_data [11:23:21]requested_item fm.sn is exist - process it [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 11 00 00 [11:23:21]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 17 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 5B [11:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:23:21]wFMCommunicate OK [11:23:21]requested_item fd.num is exist - process it [11:23:21]SAM_PROTO_GetFieldsCounters [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 13 00 00 [11:23:21]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 62 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 62 00 89 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 81 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:23:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 81 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:21]wFMCommunicate OK [11:23:21]SAM_PROTO_GetFieldsCounters done [11:23:21]requested_item shift.num is exist - process it [11:23:21]requested_item shift.opened is exist - process it [11:23:21]req_shift_opened [11:23:21]FM_GetShiftState [11:23:21]SAM_PROTO_GetShiftState [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 13 01 00 [11:23:21]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 0E 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 91 [11:23:21]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:23:21]wFMCommunicate OK [11:23:21]SAM_PROTO_GetShiftState done [11:23:21]FM_GetShiftState done [11:23:21]req_shift_opened done [11:23:21]requested_item shift.open_date is exist - process it [11:23:21]req_shift_open_date [11:23:21]req_shift_open_date done [11:23:21]produce_requested_data done [11:23:21]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19585,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:23:21]process_action_free close_receipt [11:23:21]json_value_free [11:23:21]json_value_free done [11:23:21]process_json_proto returns [11:23:21]Send response to host [11:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19585,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:23:21]free response buf [11:23:21]execute_script done [11:23:21]execute_script returns [11:23:21]free content buf [11:23:21]Sock 10.Close socket [11:23:21]Sock 10.Thread stoped [11:23:24]ConnectInit Can't take IP for lk.salyk.kg [11:23:24]CommunicateWithHost connect error [11:23:24]CommunicateWithHost err = -1 [11:23:24]OFD Sender: Server communicate error [11:23:29]OFD Sender: Processing packet 19585 [packets to send 63, broken 62] [11:23:29]ProducePacketName [11:23:29]name=ofd_packets/00019585 [11:23:29]OFD Sender: To server: pG, [11:23:29]CommunicateWithHost lk.salyk.kg:30040 [11:23:29]ConnectInit lk.salyk.kg [11:23:34]ConnectInit Can't take IP for lk.salyk.kg [11:23:34]CommunicateWithHost connect error [11:23:34]CommunicateWithHost err = -1 [11:23:34]OFD Sender: Server communicate error [11:23:39]OFD Sender: Processing packet 19585 [packets to send 63, broken 62] [11:23:39]ProducePacketName [11:23:39]name=ofd_packets/00019585 [11:23:39]OFD Sender: To server: pG, [11:23:39]CommunicateWithHost lk.salyk.kg:30040 [11:23:39]ConnectInit lk.salyk.kg [11:23:41]Connected sock=10 [11:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 4B E5 07 01 DC D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A6 AC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 81 4C 00 00 35 04 06 00 E0 CA 39 05 20 9B DA C2 46 D8 7F 6B FE 3A [11:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 12 A4 47 00 E3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 81 4C 00 00 F4 03 04 00 56 57 EE 66 B6 04 01 00 00 21 CE 75 3A 49 09 2E 21 [11:23:42]CommunicateWithHost err = 0 [11:23:42]CheckOFDResponse [11:23:42]1017 (14) - 77093643461234 [11:23:42]1041 (16) - 0000000000959362 [11:23:42]1040 (4) - 19585 [11:23:42]1012 (4) - 21.09.2024 05:19 [11:23:42]1206 (1) - 0 [11:23:42]OFD Sender: Remove packet 19585 [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00019585 [11:23:42]NVStorageDeleteData [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]recv_with_timeout no data received [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]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:15]accept exits with 9 [11:27:15]New connection [11:27:15]New thread 3066895716 created [11:27:15]Thread 3067039076 joined [11:27:15]Waiting for new connection... [11:27:15] Sock 9.Parse request [11:27:15]Sock 9.Check first char [11:27:15]Sock 9.First char is OK [11:27:15]request: POST /json_proto HTTP/1.0 [11:27:15]Method: POST [11:27:15]URL: /json_proto [11:27:15]Method is POST - this is cgi request [11:27:15]url: /json_proto [11:27:15]query_string will be loaded in cgi processing [11:27:15]execute_cgi json_proto POST (null) [11:27:15]execute_cgi path=json_proto method=POST [11:27:15]POST find Content-Length [11:27:15]Host: 172.17.42.73:8080 [11:27:15]Content-Length: 746 [11:27:15]Content-Type: application/json [11:27:15] [11:27:15]POST finish read [11:27:15]Found Content-Length = 746 [11:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117506", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:15]execute_script... [11:27:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117506", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:15]POST & json_proto [11:27:15]process_json_proto [11:27:15]json parsed OK: [11:27:15]protocol is kg_v1.0 [11:27:15]action value=close_receipt [11:27:15]process_action close_receipt [11:27:15]cmd_close_receipt [11:27:15]MH_GetDate [11:27:15]Write to MH i2c: F0 00 00 8B 04 7E [11:27:15]Write i2c OK [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: F0 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: F0 09 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: F0 09 00 8B 04 00 94 AD EE 66 99 54 47 66 B6 [11:27:15]GetLastDocTimeStamp 1726917798 [11:27:15]current date 1726918036 [11:27:15]FM_GetShiftState [11:27:15]SAM_PROTO_GetShiftState [11:27:15]wFMCommunicate request_size=4 [11:27:15]MH_SAM_APDU [11:27:15]CAPDU: 80 13 01 00 [11:27:15]Write to MH i2c: E2 08 00 8C 04 80 13 01 00 00 00 00 00 0D [11:27:15]Write i2c OK [11:27:15]MH_I2C_Read... [11:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:15]Read from MH i2c: E2 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 0E 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 0E 00 8C 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 93 [11:27:15]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:27:15]wFMCommunicate OK [11:27:15]SAM_PROTO_GetShiftState done [11:27:15]FM_GetShiftState done [11:27:15]opened in 1726877463 [11:27:15]opened+sec_in_day 1726963863 [11:27:15]quantity*price = 28800 [11:27:15]sum+1 = 28801 [11:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 0.00 Безнал.: 288.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 36 21.09.2024 11:27 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19586 ФПД: 230763212421176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112716&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19586&fm=230763212421176&tin=02508201610067®Number=0000000000146239&sum=28800 0 [11:27:16]StoreToDocumentArchive [11:27:16]shift 232 fd 19586 [11:27:16]save to /storage/0232/doc_00019586 [11:27:16]save last doc name /storage/0232/doc_00019586 to /storage/kkm_last_doc_name [11:27:16]save OK [11:27:16]Clear old archive folders... [11:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:27:16]tlvbuf is 00B067F0 [11:27:16]SAM_PROTO_ClearQueue [11:27:16]wFMCommunicate request_size=4 [11:27:16]MH_SAM_APDU [11:27:16]CAPDU: 80 09 00 00 [11:27:16]Write to MH i2c: E2 08 00 99 04 80 09 00 00 00 00 00 00 0F [11:27:16]Write i2c OK [11:27:16]MH_I2C_Read... [11:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:16]Read from MH i2c: E2 [11:27:16]MH_I2C_Read... [11:27:16]Read from MH i2c: E2 03 00 [11:27:16]MH_I2C_Read... [11:27:16]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [11:27:16]RAPDU: 90 00 [11:27:16]wFMCommunicate OK [11:27:16]SAM_PROTO_ClearQueue done [11:27:16]KKMCreateOFDPacket [11:27:16]OFDProtocolAddRootSTLVToBuf [11:27:16]FM_MakeSignedData [11:27:16]FM_MakeSignedData [11:27:16]SAM_PROTO_SignData [11:27:16]wFMCommunicate request_size=4 [11:27:16]MH_SAM_APDU [11:27:16]CAPDU: 80 0D 01 02 [11:27:16]Write to MH i2c: E2 08 00 9A 04 80 0D 01 02 00 00 00 00 17 [11:27:16]Write i2c OK [11:27:16]MH_I2C_Read... [11:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:16]Read from MH i2c: E2 [11:27:16]MH_I2C_Read... [11:27:16]Read from MH i2c: E2 03 00 [11:27:16]MH_I2C_Read... [11:27:16]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [11:27:16]RAPDU: 90 00 [11:27:16]wFMCommunicate OK [11:27:16]wFMCommunicate request_size=255 [11:27:16]MH_SAM_APDU [11:27:16]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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 AD EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:27:16]Write to MH i2c: E2 02 01 9B 04 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 AD EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 84 [11:27:16]Write i2c OK [11:27:16]MH_I2C_Read... [11:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:17]Read from MH i2c: E2 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 03 00 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [11:27:17]RAPDU: 90 00 [11:27:17]wFMCommunicate OK [11:27:17]wFMCommunicate request_size=30 [11:27:17]MH_SAM_APDU [11:27:17]CAPDU: 80 0D 02 02 19 30 39 35 39 33 36 32 10 04 04 00 82 4C 00 00 35 04 06 00 D1 E0 BF 4D B8 38 [11:27:17]Write to MH i2c: E2 21 00 9C 04 80 0D 02 02 19 00 30 39 35 39 33 36 32 10 04 04 00 82 4C 00 00 35 04 06 00 D1 E0 BF 4D B8 38 00 00 90 [11:27:17]Write i2c OK [11:27:17]MH_I2C_Read... [11:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:17]Read from MH i2c: E2 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 03 00 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [11:27:17]RAPDU: 90 00 [11:27:17]wFMCommunicate OK [11:27:17]wFMCommunicate request_size=4 [11:27:17]MH_SAM_APDU [11:27:17]CAPDU: 80 0D 03 02 [11:27:17]Write to MH i2c: E2 08 00 9D 04 80 0D 03 02 00 00 00 00 1C [11:27:17]Write i2c OK [11:27:17]MH_I2C_Read... [11:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:17]Read from MH i2c: E2 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 0B 00 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 0B 00 9D 04 00 ED FB 6E 19 7C 83 BF 88 90 00 D2 [11:27:17]RAPDU: ED FB 6E 19 7C 83 BF 88 90 00 [11:27:17]wFMCommunicate OK [11:27:17]SAM_PROTO_SignData done [11:27:17]FM_MakeSignedData done [11:27:17]CreateOFDProtocolMessage [11:27:17]wFMCommunicate request_size=4 [11:27:17]MH_SAM_APDU [11:27:17]CAPDU: 80 11 00 00 [11:27:17]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [11:27:17]Write i2c OK [11:27:17]MH_I2C_Read... [11:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:17]Read from MH i2c: E2 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 17 00 [11:27:17]MH_I2C_Read... [11:27:17]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 71 [11:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:27:17]wFMCommunicate OK [11:27:17]CreateOFDProtocolMessage done [11:27:17]OFDSenderStorePacket 19586 [11:27:17]StoreOFDPacket docnum=19586 [11:23:18]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=13 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 15 02 00 08 F4 03 04 00 A6 AC EE 66 [11:23:18]Write to MH i2c: E2 10 00 4A 04 80 15 02 00 08 00 F4 03 04 00 A6 AC EE 66 00 00 7F [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=25 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [11:23:18]Write to MH i2c: E2 1C 00 4B 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 31 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 15 03 00 [11:23:18]Write to MH i2c: E2 08 00 4C 04 80 15 03 00 00 00 00 00 D1 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 40 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 40 00 4C 04 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 81 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 23 00 00 00 35 04 06 00 E0 CA 39 05 20 9B 90 00 44 [11:23:18]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 81 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 23 00 00 00 35 04 06 00 E0 CA 39 05 20 9B 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_ProcessDocument answer len = 59 [11:23:18]SAM_PROTO_ProcessDocument done [11:23:18]SetTLVBufToDocument [11:23:18]Processing tag 1209 (04B9) [11:23:18]Malloc new data [11:23:18]Processing tag 1041 (0411) [11:23:18]Processing tag 1040 (0410) [11:23:18]Malloc new data [11:23:18]Processing tag 1038 (040E) [11:23:18]Malloc new data [11:23:18]Processing tag 1042 (0412) [11:23:18]Malloc new data [11:23:18]Processing tag 1077 (0435) [11:23:18]Malloc new data [11:23:18]SetTLVBufToDocument err=0 [11:23:18]KKMLoadAndSignReceiptData store KKM data [11:23:18]KKMLoadAndSignReceiptData err=0 [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 11 00 00 [11:23:18]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 20 [11:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:23:18]wFMCommunicate OK [11:23:18]Счет N : (1)23699634 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-5 14.750 * 67.80 = 1000.05 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 35 21.09.2024 11:23 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19585 ФПД: 247159144652955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T112318&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19585&fm=247159144652955&tin=02508201610067®Number=0000000000146239&sum=100000 [11:23:18]StoreToDocumentArchive [11:23:18]shift 232 fd 19585 [11:23:18]save to /storage/0232/doc_00019585 [11:23:18]save last doc name /storage/0232/doc_00019585 to /storage/kkm_last_doc_name [11:23:18]save OK [11:23:18]Clear old archive folders... [11:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:18]tlvbuf is 00B04620 [11:23:18]SAM_PROTO_ClearQueue [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 09 00 00 [11:23:18]Write to MH i2c: E2 08 00 4E 04 80 09 00 00 00 00 00 00 C4 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_ClearQueue done [11:23:18]KKMCreateOFDPacket [11:23:18]OFDProtocolAddRootSTLVToBuf [11:23:18]FM_MakeSignedData [11:23:18]FM_MakeSignedData [11:23:18]SAM_PROTO_SignData [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 0D 01 02 [11:23:18]Write to MH i2c: E2 08 00 4F 04 80 0D 01 02 00 00 00 00 CC [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=255 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00[00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572569 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10967493+1715950745=1726918238 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 50 00 FF FF A6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 5E AE EE 66 99 54 47 66 F9 [11:30:38]Current date/time: 21.09.2024 11:30 [11:30:38]FM_Init [11:30:38]wFMConnect [11:30:38]MH_SAM_On [11:30:38]Write to MH i2c: E0 00 00 08 00 E7 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_init finished! [11:30:38]*** atr: [11:30:38]*** 0F 3B D5 18 FF 81 91 FE [11:30:38]*** 1F C3 80 73 C8 21 10 0A [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]*** 00 00 00 00 00 00 00 00 [11:30:38]Read from MH i2c: E0 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E0 10 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:30:38]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:30:38]wFMCommunicate request_size=10 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:30:38]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 11 00 00 [11:30:38]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [11:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:30:38]wFMCommunicate OK [11:30:38]Detected FM SN is 0000000000959362 [11:30:38]Stored FM SN is 0000000000959362 [11:30:38]wFMCommunicate request_size=9 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 16 00 00 04 B7 57 01 00 [11:30:38]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 B7 57 01 00 00 00 A1 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]FM PIN OK [11:30:38]wFMCommunicate request_size=8 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 14 04 00 03 02 00 01 [11:30:38]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]wFMCommunicate request_size=13 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:30:38]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 11 00 00 [11:30:38]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DD [11:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:30:38]wFMCommunicate OK [11:30:38]DocumentArchiveInit [11:30:38]Start Httpd... [11:30:38]Httpd thread 3067448676 created [11:30:38]Write to MH i2c: 01 00 00 0F 00 0F [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: 01 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: 01 07 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:30:38]Allocated Socket 5 [11:30:38]Bind OK [11:30:38]Listen OK [11:30:38]httpd running on port 8080 [11:30:38]Waiting for new connection... [11:30:38]MH Int Process started [11:30:38]OFD Sender: Processing packet 19586 [packets to send 63, broken 62] [11:30:38]ProducePacketName [11:30:38]name=ofd_packets/00019586 [11:30:38]OFD Sender: To server: pG, [11:30:38]CommunicateWithHost lk.salyk.kg:30040 [11:30:38]ConnectInit lk.salyk.kg [11:30:39]accept exits with 6 [11:30:39]New connection [11:30:39]New thread 3067161956 created [11:30:39]Waiting for new connection... [11:30:39] Sock 6.Parse request [11:30:39]Sock 6.Check first char [11:30:39]Sock 6.First char is OK [11:30:39]request: POST /json_proto HTTP/1.0 [11:30:39]Method: POST [11:30:39]URL: /json_proto [11:30:39]Method is POST - this is cgi request [11:30:39]url: /json_proto [11:30:39]query_string will be loaded in cgi processing [11:30:39]execute_cgi json_proto POST (null) [11:30:39]execute_cgi path=json_proto method=POST [11:30:39]POST find Content-Length [11:30:39]Host: 172.17.42.73:8080 [11:30:39]Content-Length: 215 [11:30:39]Content-Type: application/json [11:30:39] [11:30:39]POST finish read [11:30:39]Found Content-Length = 215 [11:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:39]execute_script... [11:30:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:39]POST & json_proto [11:30:39]process_json_proto [11:30:39]json parsed OK: [11:30:39]protocol is kg_v1.0 [11:30:39]action value=get_value [11:30:39]process_action get_value [11:30:39]cmd_get_value [11:30:39]process_action get_value done [11:30:39]requested_data is exist [11:30:39]produce_requested_data [11:30:39]requested_item kkm.sn is exist - process it [11:30:39]requested_item kkm.ver is exist - process it [11:30:39]requested_item fm.sn is exist - process it [11:30:39]wFMCommunicate request_size=4 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 11 00 00 [11:30:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 [11:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 17 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DF [11:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:30:39]wFMCommunicate OK [11:30:39]requested_item fd.num is exist - process it [11:30:39]SAM_PROTO_GetFieldsCounters [11:30:39]wFMCommunicate request_size=4 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 13 00 00 [11:30:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:40]Read from MH i2c: E2 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 62 00 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 82 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 82 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:40]wFMCommunicate OK [11:30:40]SAM_PROTO_GetFieldsCounters done [11:30:40]requested_item shift.num is exist - process it [11:30:40]requested_item shift.opened is exist - process it [11:30:40]req_shift_opened [11:30:40]FM_GetShiftState [11:30:40]SAM_PROTO_GetShiftState [11:30:40]wFMCommunicate request_size=4 [11:30:40]MH_SAM_APDU [11:30:40]CAPDU: 80 13 01 00 [11:30:40]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:30:40]Write i2c OK [11:30:40]MH_I2C_Read... [11:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:40]Read from MH i2c: E2 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 0E 00 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [11:30:40]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:30:40]wFMCommunicate OK [11:30:40]SAM_PROTO_GetShiftState done [11:30:40]FM_GetShiftState done [11:30:40]req_shift_opened done [11:30:40]requested_item shift.open_date is exist - process it [11:30:40]req_shift_open_date [11:30:40]req_shift_open_date done [11:30:40]produce_requested_data done [11:30:40]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19586,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:30:40]process_action_free get_value [11:30:40]json_value_free [11:30:40]json_value_free done [11:30:40]process_json_proto returns [11:30:40]Send response to host [11:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19586,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:30:40]free response buf [11:30:40]execute_script done [11:30:40]execute_script returns [11:30:40]free content buf [11:30:40]Sock 6.Close socket [11:30:40]Sock 6.Thread stoped [11:30:40]accept exits with 11 [11:30:40]New connection [11:30:40]New thread 3067018596 created [11:30:40]Thread 3067161956 joined [11:30:40]Waiting for new connection... [11:30:40] Sock 11.Parse request [11:30:40]Sock 11.Check first char [11:30:40]Sock 11.First char is OK [11:30:40]request: POST /json_proto HTTP/1.0 [11:30:40]Method: POST [11:30:40]URL: /json_proto [11:30:40]Method is POST - this is cgi request [11:30:40]url: /json_proto [11:30:40]query_string will be loaded in cgi processing [11:30:40]execute_cgi json_proto POST (null) [11:30:40]execute_cgi path=json_proto method=POST [11:30:40]POST find Content-Length [11:30:40]Host: 172.17.42.73:8080 [11:30:40]Content-Length: 331 [11:30:40]Content-Type: application/json [11:30:40] [11:30:40]POST finish read [11:30:40]Found Content-Length = 331 [11:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:30:40]execute_script... [11:30:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:30:40]POST & json_proto [11:30:40]process_json_proto [11:30:40]json parsed OK: [11:30:40]protocol is kg_v1.0 [11:30:40]action value=get_value [11:30:40]process_action get_value [11:30:40]cmd_get_value [11:30:40]process_action get_value done [11:30:40]requested_data is exist [11:30:40]produce_requested_data [11:30:40]requested_item fm.sale.total is exist - process it [11:30:40]SAM_PROTO_GetFMData [11:30:40]wFMCommunicate request_size=4 [11:30:40]MH_SAM_APDU [11:30:40]CAPDU: 80 13 03 00 [11:30:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:30:40]Write i2c OK [11:30:40]MH_I2C_Read... [11:30:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:30:40]Read from MH i2c: E2 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 FD 00 [11:30:40]MH_I2C_Read... [11:30:40]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B2 4A 00 00 69 04 A0 00 6F 04 04 00 9A 4A 00 00 B1 04 04 00 08 B6 AF 67 70 04 04 00 44 86 92 43 72 04 04 00 C4 2F 1D 24 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 89 06 03 0B 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 53 E2 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 17 [11:30:40]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B2 4A 00 00 69 04 A0 00 6F 04 04 00 9A 4A 00 00 B1 04 04 00 08 B6 AF 67 70 04 04 00 44 86 92 43 72 04 04 00 C4 2F 1D 24 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 89 06 03 0B 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 53 E2 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [11:30:40]wFMCommunicate OK [11:30:40]wFMCommunicate request_size=4 [11:30:40]MH_SAM_APDU [11:30:40]CAPDU: 80 17 00 00 [11:30:40]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:30:40]Write i2c OK [11:30:40]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 73 [11:30:41]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [11:30:41]wFMCommunicate OK [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 17 00 00 [11:30:41]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [11:30:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [11:30:41]wFMCommunicate OK [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 17 00 00 [11:30:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [11:30:41]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [11:30:41]wFMCommunicate OK [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 17 00 00 [11:30:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 DE 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [11:30:41]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:30:41]wFMCommunicate OK [11:30:41]SAM_PROTO_GetFMData done [11:30:41]requested_item fm.sale_refund.total is exist - process it [11:30:41]requested_item fm.buy.total is exist - process it [11:30:41]requested_item shift.sale.total is exist - process it [11:30:41]SAM_PROTO_GetShiftData [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 13 02 00 [11:30:41]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 63 7B 1F 70 04 03 00 80 20 1E 72 04 03 00 E3 5A 01 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 08 58 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 50 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 92 [11:30:42]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 63 7B 1F 70 04 03 00 80 20 1E 72 04 03 00 E3 5A 01 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 08 58 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 50 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [11:30:42]wFMCommunicate OK [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 17 00 00 [11:30:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 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 BB [11:30:42]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 [11:30:42]wFMCommunicate OK [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 17 00 00 [11:30:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 51 [11:30:43]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 [11:30:43]wFMCommunicate OK [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 17 00 00 [11:30:43]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 FD 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 FD 00 1B 00 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 0D [11:30:43]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 [11:30:43]wFMCommunicate OK [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 17 00 00 [11:30:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]ConnectInit Can't take IP for lk.salyk.kg [11:30:43]CommunicateWithHost connect error [11:30:43]CommunicateWithHost err = -1 [11:30:43]OFD Sender: Server communicate error [11:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 CB 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 CB 00 1C 00 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 85 [11:30:43]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 [11:30:43]wFMCommunicate OK [11:30:43]SAM_PROTO_GetShiftData done [11:30:43]requested_item shift.sale.total_cash is exist - process it [11:30:43]requested_item shift.sale_refund.total is exist - process it [11:30:43]requested_item shift.sale_refund.total_cash is exist - process it [11:30:43]requested_item shift.buy.total is exist - process it [11:30:43]requested_item shift.buy.total_cash is exist - process it [11:30:43]produce_requested_data done [11:30:43]produce_requested_data return {"fm.sale.total":17395686.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":20632.03,"shift.sale.total_cash":19744.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} [11:30:43]process_action_free get_value [11:30:43]json_value_free [11:30:43]json_value_free done [11:30:43]process_json_proto returns [11:30:43]Send response to host [11:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17395686.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":20632.03,"shift.sale.total_cash":19744.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}}} [11:30:43]free response buf [11:30:43]execute_script done [11:30:43]execute_script returns [11:30:43]free content buf [11:30:43]Sock 11.Close socket [11:30:43]Sock 11.Thread stoped [11:30:48]OFD Sender: Processing packet 19586 [packets to send 63, broken 62] [11:30:48]ProducePacketName [11:30:48]name=ofd_packets/00019586 [11:30:48]OFD Sender: To server: pG, [11:30:48]CommunicateWithHost lk.salyk.kg:30040 [11:30:48]ConnectInit lk.salyk.kg [11:30:50]Connected sock=9 [11:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 23 01 00 00 5D 2F 1B 01 9D F0 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 AD EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 82 4C 00 00 35 04 06 00 D1 E0 BF 4D B8 38 ED FB 6E 19 7C 83 BF 88 [11:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 BA 12 47 00 FA 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 82 4C 00 00 F4 03 04 00 02 59 EE 66 B6 04 01 00 00 3A 0E A9 E3 F2 AD 64 8F [11:30:51]CommunicateWithHost err = 0 [11:30:51]CheckOFDResponse [11:30:51]1017 (14) - 77093643461234 [11:30:51]1041 (16) - 0000000000959362 [11:30:51]1040 (4) - 19586 [11:30:51]1012 (4) - 21.09.2024 05:26 [11:30:51]1206 (1) - 0 [11:30:51]OFD Sender: Remove packet 19586 [11:30:51]ProducePacketName [11:30:51]name=ofd_packets/00019586 [11:30:51]NVStorageDeleteData [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]recv_with_timeout no data received [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:17]recv_with_timeout no data received [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:27]recv_with_timeout no data received [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:16]accept exits with 6 [11:33:16]New connection [11:33:16]New thread 3067161956 created [11:33:16]Thread 3067018596 joined [11:33:16]Waiting for new connection... [11:33:16] Sock 6.Parse request [11:33:16]Sock 6.Check first char [11:33:16]Sock 6.First char is OK [11:33:16]request: POST /json_proto HTTP/1.0 [11:33:16]Method: POST [11:33:16]URL: /json_proto [11:33:16]Method is POST - this is cgi request [11:33:16]url: /json_proto [11:33:16]query_string will be loaded in cgi processing [11:33:16]execute_cgi json_proto POST (null) [11:33:16]execute_cgi path=json_proto method=POST [11:33:16]POST find Content-Length [11:33:16]Host: 172.17.42.73:8080 [11:33:16]Content-Length: 215 [11:33:16]Content-Type: application/json [11:33:16] [11:33:16]POST finish read [11:33:16]Found Content-Length = 215 [11:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:16]execute_script... [11:33:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:16]POST & json_proto [11:33:16]process_json_proto [11:33:16]json parsed OK: [11:33:16]protocol is kg_v1.0 [11:33:16]action value=get_value [11:33:16]process_action get_value [11:33:16]cmd_get_value [11:33:16]process_action get_value done [11:33:16]requested_data is exist [11:33:16]produce_requested_data [11:33:16]requested_item kkm.sn is exist - process it [11:33:16]requested_item kkm.ver is exist - process it [11:33:16]requested_item fm.sn is exist - process it [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 11 00 00 [11:33:16]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 EC [11:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:33:16]wFMCommunicate OK [11:33:16]requested_item fd.num is exist - process it [11:33:16]SAM_PROTO_GetFieldsCounters [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 13 00 00 [11:33:16]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 82 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 82 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetFieldsCounters done [11:33:17]requested_item shift.num is exist - process it [11:33:17]requested_item shift.opened is exist - process it [11:33:17]req_shift_opened [11:33:17]FM_GetShiftState [11:33:17]SAM_PROTO_GetShiftState [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 13 01 00 [11:33:17]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 22 [11:33:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetShiftState done [11:33:17]FM_GetShiftState done [11:33:17]req_shift_opened done [11:33:17]requested_item shift.open_date is exist - process it [11:33:17]req_shift_open_date [11:33:17]req_shift_open_date done [11:33:17]produce_requested_data done [11:33:17]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19586,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:33:17]process_action_free get_value [11:33:17]json_value_free [11:33:17]json_value_free done [11:33:17]process_json_proto returns [11:33:17]Send response to host [11:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19586,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:33:17]free response buf [11:33:17]execute_script done [11:33:17]execute_script returns [11:33:17]free content buf [11:33:17]Sock 6.Close socket [11:33:17]Sock 6.Thread stoped [11:33:17]accept exits with 9 [11:33:17]New connection [11:33:17]New thread 3067018596 created [11:33:17]Thread 3067161956 joined [11:33:17]Waiting for new connection... [11:33:17] Sock 9.Parse request [11:33:17]Sock 9.Check first char [11:33:17]Sock 9.First char is OK [11:33:17]request: POST /json_proto HTTP/1.0 [11:33:17]Method: POST [11:33:17]URL: /json_proto [11:33:17]Method is POST - this is cgi request [11:33:17]url: /json_proto [11:33:17]query_string will be loaded in cgi processing [11:33:17]execute_cgi json_proto POST (null) [11:33:17]execute_cgi path=json_proto method=POST [11:33:17]POST find Content-Length [11:33:17]Host: 172.17.42.73:8080 [11:33:17]Content-Length: 331 [11:33:17]Content-Type: application/json [11:33:17] [11:33:17]POST finish read [11:33:17]Found Content-Length = 331 [11:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:17]execute_script... [11:33:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:17]POST & json_proto [11:33:17]process_json_proto [11:33:17]json parsed OK: [11:33:17]protocol is kg_v1.0 [11:33:17]action value=get_value [11:33:17]process_action get_value [11:33:17]cmd_get_value [11:33:17]process_action get_value done [11:33:17]requested_data is exist [11:33:17]produce_requested_data [11:33:17]requested_item fm.sale.total is exist - process it [11:33:17]SAM_PROTO_GetFMData [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 13 03 00 [11:33:17]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 20 00 00 C1 04 85 04 BD 04 6E 04 04 00 B2 4A 00 00 69 04 A0 00 6F 04 04 00 9A 4A 00 00 B1 04 04 00 08 B6 AF 67 70 04 04 00 44 86 92 43 72 04 04 00 C4 2F 1D 24 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 89 06 03 0B 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 53 E2 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 24 [11:33:17]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B2 4A 00 00 69 04 A0 00 6F 04 04 00 9A 4A 00 00 B1 04 04 00 08 B6 AF 67 70 04 04 00 44 86 92 43 72 04 04 00 C4 2F 1D 24 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 89 06 03 0B 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 53 E2 EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 17 00 00 [11:33:17]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 21 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 80 [11:33:18]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [11:33:18]wFMCommunicate OK [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 17 00 00 [11:33:18]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 22 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 42 [11:33:18]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [11:33:18]wFMCommunicate OK [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 17 00 00 [11:33:18]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 23 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 28 [11:33:18]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [11:33:18]wFMCommunicate OK [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 17 00 00 [11:33:18]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 DE 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 DE 00 24 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [11:33:18]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:18]wFMCommunicate OK [11:33:18]SAM_PROTO_GetFMData done [11:33:18]requested_item fm.sale_refund.total is exist - process it [11:33:18]requested_item fm.buy.total is exist - process it [11:33:18]requested_item shift.sale.total is exist - process it [11:33:18]SAM_PROTO_GetShiftData [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 13 02 00 [11:33:18]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 25 00 00 AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 63 7B 1F 70 04 03 00 80 20 1E 72 04 03 00 E3 5A 01 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 08 58 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 50 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 9F [11:33:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 63 7B 1F 70 04 03 00 80 20 1E 72 04 03 00 E3 5A 01 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 08 58 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 50 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 17 00 00 [11:33:19]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 26 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 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 C8 [11:33:19]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 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 17 00 00 [11:33:19]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 27 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 5E [11:33:19]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 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 17 00 00 [11:33:19]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 FD 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 FD 00 28 00 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 1A [11:33:20]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 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 17 00 00 [11:33:20]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 CB 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 CB 00 29 00 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 92 [11:33:20]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 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetShiftData done [11:33:20]requested_item shift.sale.total_cash is exist - process it [11:33:20]requested_item shift.sale_refund.total is exist - process it [11:33:20]requested_item shift.sale_refund.total_cash is exist - process it [11:33:20]requested_item shift.buy.total is exist - process it [11:33:20]requested_item shift.buy.total_cash is exist - process it [11:33:20]produce_requested_data done [11:33:20]produce_requested_data return {"fm.sale.total":17395686.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":20632.03,"shift.sale.total_cash":19744.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} [11:33:20]process_action_free get_value [11:33:20]json_value_free [11:33:20]json_value_free done [11:33:20]process_json_proto returns [11:33:20]Send response to host [11:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17395686.48,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":20632.03,"shift.sale.total_cash":19744.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}}} [11:33:20]free response buf [11:33:20]execute_script done [11:33:20]execute_script returns [11:33:20]free content buf [11:33:20]Sock 9.Close socket [11:33:20]Sock 9.Thread stoped [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:33]recv_with_timeout no data received [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:38]recv_with_timeout no data received [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:53]recv_with_timeout no data received [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:17]accept exits with 6 [11:38:17]New connection [11:38:17]New thread 3067161956 created [11:38:17]Thread 3067018596 joined [11:38:17]Waiting for new connection... [11:38:17] Sock 6.Parse request [11:38:17]Sock 6.Check first char [11:38:17]Sock 6.First char is OK [11:38:17]request: POST /json_proto HTTP/1.0 [11:38:17]Method: POST [11:38:17]URL: /json_proto [11:38:17]Method is POST - this is cgi request [11:38:17]url: /json_proto [11:38:17]query_string will be loaded in cgi processing [11:38:17]execute_cgi json_proto POST (null) [11:38:17]execute_cgi path=json_proto method=POST [11:38:17]POST find Content-Length [11:38:17]Host: 172.17.42.73:8080 [11:38:17]Content-Length: 630 [11:38:17]Content-Type: application/json [11:38:17] [11:38:17]POST finish read [11:38:17]Found Content-Length = 630 [11:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117507", "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" ] } } [11:38:17]execute_script... [11:38: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)117507", "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" ] } } [11:38:17]POST & json_proto [11:38:17]process_json_proto [11:38:17]json parsed OK: [11:38:17]protocol is kg_v1.0 [11:38:17]action value=close_receipt [11:38:17]process_action close_receipt [11:38:17]cmd_close_receipt [11:38:17]MH_GetDate [11:38:17]Write to MH i2c: F0 00 00 2A 00 19 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: F0 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: F0 09 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: F0 09 00 2A 00 00 2A B0 EE 66 99 54 47 66 EA [11:38:17]GetLastDocTimeStamp 1726918036 [11:38:17]current date 1726918698 [11:38:17]FM_GetShiftState [11:38:17]SAM_PROTO_GetShiftState [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 13 01 00 [11:38:17]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 0E 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 0E 00 2B 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 2E [11:38:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:38:17]wFMCommunicate OK [11:38:17]SAM_PROTO_GetShiftState done [11:38:17]FM_GetShiftState done [11:38:17]opened in 1726877463 [11:38:17]opened+sec_in_day 1726963863 [11:38:17]quantity*price = 5000 [11:38:17]sum+1 = 5001 [11:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 37 21.09.2024 11:38 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19587 ФПД: 169469489429846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T113818&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19587&fm=169469489429846&tin=02508201610067®Number=0000000000146239&sum=5000 0 [11:38:18]StoreToDocumentArchive [11:38:18]shift 232 fd 19587 [11:38:18]save to /storage/0232/doc_00019587 [11:38:18]save last doc name /storage/0232/doc_00019587 to /storage/kkm_last_doc_name [11:38:18]save OK [11:38:18]Clear old archive folders... [11:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:38:18]tlvbuf is 0080E750 [11:38:18]SAM_PROTO_ClearQueue [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 09 00 00 [11:38:18]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [11:38:18]RAPDU: 90 00 [11:38:18]wFMCommunicate OK [11:38:18]SAM_PROTO_ClearQueue done [11:38:18]KKMCreateOFDPacket [11:38:18]OFDProtocolAddRootSTLVToBuf [11:38:18]FM_MakeSignedData [11:38:18]FM_MakeSignedData [11:38:18]SAM_PROTO_SignData [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 0D 01 02 [11:38:18]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [11:38:18]RAPDU: 90 00 [11:38:18]wFMCommunicate OK [11:38:18]wFMCommunicate request_size=255 [11:38:18]MH_SAM_APDU [11:38:18]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 25 00 00 00 F4 03 04 00 2A B0 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:38:18]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2A B0 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 05 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [11:38:19]RAPDU: 90 00 [11:38:19]wFMCommunicate OK [11:38:19]wFMCommunicate request_size=28 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 0D 02 02 17 35 39 33 36 32 10 04 04 00 83 4C 00 00 35 04 06 00 9A 21 B0 B7 BD 56 [11:38:19]Write to MH i2c: E2 1F 00 3B 00 80 0D 02 02 17 00 35 39 33 36 32 10 04 04 00 83 4C 00 00 35 04 06 00 9A 21 B0 B7 BD 56 00 00 47 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [11:38:19]RAPDU: 90 00 [11:38:19]wFMCommunicate OK [11:38:19]wFMCommunicate request_size=4 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 0D 03 02 [11:38:19]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 0B 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 0B 00 3C 00 00 78 D8 2F 12 A5 98 18 22 90 00 C0 [11:38:19]RAPDU: 78 D8 2F 12 A5 98 18 22 90 00 [11:38:19]wFMCommunicate OK [11:38:19]SAM_PROTO_SignData done [11:38:19]FM_MakeSignedData done [11:38:19]CreateOFDProtocolMessage [11:38:19]wFMCommunicate request_size=4 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 11 00 00 [11:38:19]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 17 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 0C [11:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:38:19]wFMCommunicate OK [11:38:19]CreateOFDProtocolMessage done [11:38:19]OFDSenderStorePacket 19587 [11:38:19]StoreOFDPacket docnum=19587 [11:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 ED B9 19 01 A0 4E 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 25 00 00 00 F4 03 04 00 2A B0 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 83 4C 00 00 35 04 06 00 9A 21 B0 B7 BD 56 78 D8 2F 12 A5 98 18 22 [11:38:19]CheckFolder [11:38:19]dirname=/storage/ofd_packets [11:38:19]CheckFolder done [11:38:19]ProducePacketName [11:38:19]name=ofd_packets/00019587 [11:38:19]NVStorageSaveData ofd_packets/00019587 [11:38:19]File name is /storage/ofd_packets/00019587 [11:38:19]Write 319 bytes [11:38:19]NVStorageSaveData done [11:38:19]OFDSenderStorePacket done [11:38:19]KKMCreateOFDPacket done [11:38:19]NVStorageSaveData kkm_last_timestamp [11:38:19]File name is /storage/kkm_last_timestamp [11:38:19]Write 4 bytes [11:38:19]NVStorageSaveData done [11:38:19]ExternCall_PrintAddStr [11:38:19]wPrintStart [11:38:19]Write to MH i2c: 01 00 00 3E 00 3E [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [11:38:19]RasterBufferAndPrint [11:38:19]line Счет N : (3)117507 [11:38:19]line ИНН: 02508201610067 [11:38:19]line Контрольно-Кассовый Чек [11:38:19]line ПРОДАЖА [11:38:19]line Товар: 4700000160358 [11:38:19]line Вода Легенда 1л [11:38:19]line 1.000 * 50.00 [11:38:19]line = 50.00 [11:38:19]line НДС 12% НСП 1% [11:38:19]line > о реализуемом товаре [11:38:19]line ИТОГО: 50.00 [11:38:19]line НСП 1% : 0.44 [11:38:19]line НДС 12% : 5.31 [11:38:19]line Наличными: 50.00 [11:38:19]line Безнал.: 0.00 [11:38:19]line Место: АЗС № 93 "Партнер Нефть" [11:38:19]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [11:38:19]line СНО: Общий режим [11:38:19]line Чек 37 21.09.2024 11:38 [11:38:19]line Смена: 232 ФФД: 1.0 [11:38:19]line ЗНМ: 0300000060 [11:38:19]line РНМ: 0000000000146239 [11:38:19]line Версия ККМ: v1.0 [11:38:19]line ФМ: 0000000000959362 [11:38:19]line ФД: 19587 [11:38:19]line ФПД: 169469489429846 [11:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T113818&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19587&fm=169469489429846&tin=02508201610067®Number=0000000000146239&sum=5000 [11:38:19]line 0 [11:38:19]written 0, free lines is 4095 [11:38:19]OFD Sender: Processing packet 19587 [packets to send 63, broken 62] [11:38:19]ProducePacketName [11:38:19]name=ofd_packets/00019587 [11:38:19]OFD Sender: To server: pG, [11:38:19]CommunicateWithHost lk.salyk.kg:30040 [11:38:19]ConnectInit lk.salyk.kg [11:38:19]Write to MH i2c: 01 00 00 66 00 66 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 BE 0C 37 [11:38:19]RasterBufferAndPrint [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]written 0, free lines is 3265 [11:38:19]MH_Cut [11:38:19]Write to MH i2c: D1 01 00 6D 00 01 3F [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 01 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 01 00 6D 00 00 3E [11:38:19]Write to MH i2c: 01 00 00 6E 00 6E [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:20]*** Cut start [11:38:20]*** Partial cut [11:38:20]*** CUTSNS_PIN = 1 [11:38:20]*** CUTSNS_PIN = 0 [11:38:20]*** Brake cut motor [11:38:21]Read from MH i2c: 01 [11:38:21]MH_I2C_Read... [11:38:21]*** Stop cut motor [11:38:21]*** Cut end [11:38:21]Read from MH i2c: 01 07 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [11:38:21]process_action close_receipt done [11:38:21]requested_data is exist [11:38:21]produce_requested_data [11:38:21]requested_item fm.sn is exist - process it [11:38:21]wFMCommunicate request_size=4 [11:38:21]MH_SAM_APDU [11:38:21]CAPDU: 80 11 00 00 [11:38:21]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:21]Read from MH i2c: E2 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 17 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 3E [11:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [11:38:21]wFMCommunicate OK [11:38:21]requested_item fd.num is exist - process it [11:38:21]SAM_PROTO_GetFieldsCounters [11:38:21]wFMCommunicate request_size=4 [11:38:21]MH_SAM_APDU [11:38:21]CAPDU: 80 13 00 00 [11:38:21]Write to MH i2c: E2 08 00 70 00 80 13 00 00 00 00 00 00 EC [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:21]Read from MH i2c: E2 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 62 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 62 00 70 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 83 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 83 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:21]wFMCommunicate OK [11:38:21]SAM_PROTO_GetFieldsCounters done [11:38:21]requested_item shift.num is exist - process it [11:38:21]requested_item shift.opened is exist - process it [11:38:21]req_shift_opened [11:38:21]FM_GetShiftState [11:38:21]SAM_PROTO_GetShiftState [11:38:21]wFMCommunicate request_size=4 [11:38:21]MH_SAM_APDU [11:38:21]CAPDU: 80 13 01 00 [11:38:21]Write to MH i2c: E2 08 00 71 00 80 13 01 00 00 00 00 00 EE [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:21]Read from MH i2c: E2 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 0E 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: E2 0E 00 71 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 74 [11:38:21]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [11:38:21]wFMCommunicate OK [11:38:21]SAM_PROTO_GetShiftState done [11:38:21]FM_GetShiftState done [11:38:21]req_shift_opened done [11:38:21]requested_item shift.open_date is exist - process it [11:38:21]req_shift_open_date [11:38:21]req_shift_open_date done [11:38:21]produce_requested_data done [11:38:21]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19587,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [11:38:21]process_action_free close_receipt [11:38:21]json_value_free [11:38:21]json_value_free done [11:38:21]process_json_proto returns [11:38:21]Send response to host [11:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19587,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [11:38:21]free response buf [11:38:21]execute_script done [11:38:21]execute_script returns [11:38:21]free content buf [11:38:21]Sock 6.Close socket [11:38:21]Sock 6.Thread stoped [11:38:21]Connected sock=11 [11:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 ED B9 19 01 A0 4E 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 25 00 00 00 F4 03 04 00 2A B0 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 83 4C 00 00 35 04 06 00 9A 21 B0 B7 BD 56 78 D8 2F 12 A5 98 18 22 [11:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 D2 61 47 00 17 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 83 4C 00 00 F4 03 04 00 C6 5A EE 66 B6 04 01 00 00 23 BE FA 51 F3 0A 85 48 [11:38:22]CommunicateWithHost err = 0 [11:38:22]CheckOFDResponse [11:38:22]1017 (14) - 77093643461234 [11:38:22]1041 (16) - 0000000000959362 [11:38:22]1040 (4) - 19587 [11:38:22]1012 (4) - 21.09.2024 05:33 [11:38:22]1206 (1) - 0 [11:38:22]OFD Sender: Remove packet 19587 [11:38:22]ProducePacketName [11:38:22]name=ofd_packets/00019587 [11:38:22]NVStorageDeleteData [11:38:23]OFD Sender: No OFD packet to send [11:38:24]recv_with_timeout no data received [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:35]recv_with_timeout no data received [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:53]recv_with_timeout no data received [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:40]recv_with_timeout no data received [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]recv_with_timeout no data received [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:02]recv_with_timeout no data received [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:49]recv_with_timeout no data received [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:07]recv_with_timeout no data received [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:49]recv_with_timeout no data received [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:12]recv_with_timeout no data received [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:54]recv_with_timeout no data received [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:29]recv_with_timeout no data received [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]recv_with_timeout no data received [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:04:30]ConnectInit Can't connect to host [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:33]accept exits with 9 [12:06:33]New connection [12:06:33]New thread 3067018596 created [12:06:33]Thread 3067161956 joined [12:06:33]Waiting for new connection... [12:06:33] Sock 9.Parse request [12:06:33]Sock 9.Check first char [12:06:33]Sock 9.First char is OK [12:06:33]request: POST /json_proto HTTP/1.0 [12:06:33]Method: POST [12:06:33]URL: /json_proto [12:06:33]Method is POST - this is cgi request [12:06:33]url: /json_proto [12:06:33]query_string will be loaded in cgi processing [12:06:33]execute_cgi json_proto POST (null) [12:06:33]execute_cgi path=json_proto method=POST [12:06:33]POST find Content-Length [12:06:33]Host: 172.17.42.73:8080 [12:06:33]Content-Length: 644 [12:06:33]Content-Type: application/json [12:06:33] [12:06:33]POST finish read [12:06:33]Found Content-Length = 644 [12:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117508", "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" ] } } [12:06:33]execute_script... [12:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117508", "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" ] } } [12:06:33]POST & json_proto [12:06:33]process_json_proto [12:06:33]json parsed OK: [12:06:33]protocol is kg_v1.0 [12:06:33]action value=close_receipt [12:06:33]process_action close_receipt [12:06:33]cmd_close_receipt [12:06:33]MH_GetDate [12:06:33]Write to MH i2c: F0 00 00 72 00 61 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: F0 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: F0 09 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: F0 09 00 72 00 00 CA B6 EE 66 99 54 47 66 D8 [12:06:33]GetLastDocTimeStamp 1726918698 [12:06:33]current date 1726920394 [12:06:33]FM_GetShiftState [12:06:33]SAM_PROTO_GetShiftState [12:06:33]wFMCommunicate request_size=4 [12:06:33]MH_SAM_APDU [12:06:33]CAPDU: 80 13 01 00 [12:06:33]Write to MH i2c: E2 08 00 73 00 80 13 01 00 00 00 00 00 F0 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:33]Read from MH i2c: E2 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 0E 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 0E 00 73 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 76 [12:06:33]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:06:33]wFMCommunicate OK [12:06:33]SAM_PROTO_GetShiftState done [12:06:33]FM_GetShiftState done [12:06:33]opened in 1726877463 [12:06:33]opened+sec_in_day 1726963863 [12:06:33]quantity*price = 11500 [12:06:33]sum+1 = 11501 [12:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 38 21.09.2024 12:06 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19588 ФПД: 69076295102835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T120634&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19588&fm=69076295102835&tin=02508201610067®Number=0000000000146239&sum=11500 0 [12:06:34]StoreToDocumentArchive [12:06:34]shift 232 fd 19588 [12:06:34]save to /storage/0232/doc_00019588 [12:06:34]save last doc name /storage/0232/doc_00019588 to /storage/kkm_last_doc_name [12:06:34]save OK [12:06:34]Clear old archive folders... [12:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:06:34]tlvbuf is 0080EA20 [12:06:34]SAM_PROTO_ClearQueue [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 09 00 00 [12:06:34]Write to MH i2c: E2 08 00 80 00 80 09 00 00 00 00 00 00 F2 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_ClearQueue done [12:06:34]KKMCreateOFDPacket [12:06:34]OFDProtocolAddRootSTLVToBuf [12:06:34]FM_MakeSignedData [12:06:34]FM_MakeSignedData [12:06:34]SAM_PROTO_SignData [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 0D 01 02 [12:06:34]Write to MH i2c: E2 08 00 81 00 80 0D 01 02 00 00 00 00 FA [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]wFMCommunicate request_size=255 [12:06:34]MH_SAM_APDU [12:06:34]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 26 00 00 00 F4 03 04 00 CA B6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 [12:06:34]Write to MH i2c: E2 02 01 82 00 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 26 00 00 00 F4 03 04 00 CA B6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 00 00 1C [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]OFD Sender: No OFD packet to send [12:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [12:06:35]RAPDU: 90 00 [12:06:35]wFMCommunicate OK [12:06:35]wFMCommunicate request_size=39 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 84 4C 00 00 35 04 06 00 3E D3 14 08 31 73 [12:06:35]Write to MH i2c: E2 2A 00 83 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 84 4C 00 00 35 04 06 00 3E D3 14 08 31 73 00 00 5B [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [12:06:35]RAPDU: 90 00 [12:06:35]wFMCommunicate OK [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 0D 03 02 [12:06:35]Write to MH i2c: E2 08 00 84 00 80 0D 03 02 00 00 00 00 FF [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0B 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0B 00 84 00 00 45 CE CA 9F 2A 1B 59 44 90 00 5E [12:06:35]RAPDU: 45 CE CA 9F 2A 1B 59 44 90 00 [12:06:35]wFMCommunicate OK [12:06:35]SAM_PROTO_SignData done [12:06:35]FM_MakeSignedData done [12:06:35]CreateOFDProtocolMessage [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 11 00 00 [12:06:35]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 17 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 54 [12:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:06:35]wFMCommunicate OK [12:06:35]CreateOFDProtocolMessage done [12:06:35]OFDSenderStorePacket 19588 [12:06:35]StoreOFDPacket docnum=19588 [12:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2C 01 00 00 A6 33 24 01 A8 F7 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 26 00 00 00 F4 03 04 00 CA B6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 84 4C 00 00 35 04 06 00 3E D3 14 08 31 73 45 CE CA 9F 2A 1B 59 44 [12:06:35]CheckFolder [12:06:35]dirname=/storage/ofd_packets [12:06:35]CheckFolder done [12:06:35]ProducePacketName [12:06:35]name=ofd_packets/00019588 [12:06:35]NVStorageSaveData ofd_packets/00019588 [12:06:35]File name is /storage/ofd_packets/00019588 [12:06:35]Write 330 bytes [12:06:35]NVStorageSaveData done [12:06:35]OFDSenderStorePacket done [12:06:35]KKMCreateOFDPacket done [12:06:35]NVStorageSaveData kkm_last_timestamp [12:06:35]File name is /storage/kkm_last_timestamp [12:06:35]Write 4 bytes [12:06:35]NVStorageSaveData done [12:06:35]ExternCall_PrintAddStr [12:06:35]wPrintStart [12:06:35]Write to MH i2c: 01 00 00 86 00 86 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 07 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [12:06:35]RasterBufferAndPrint [12:06:35]line Счет N : (3)117508 [12:06:35]line ИНН: 02508201610067 [12:06:35]line Контрольно-Кассовый Чек [12:06:35]line ПРОДАЖА [12:06:35]line Товар: 2000036210013 [12:06:35]line Кофе Капучино (GABB TRADE) [12:06:35]line 1.000 * 115.00 [12:06:35]line = 115.00 [12:06:35]line НДС 12% НСП 1% [12:06:35]line > о реализуемом товаре [12:06:35]line ИТОГО: 115.00 [12:06:35]line НСП 1% : 1.02 [12:06:35]line НДС 12% : 12.21 [12:06:35]line Наличными: 115.00 [12:06:35]line Безнал.: 0.00 [12:06:35]line Место: АЗС № 93 "Партнер Нефть" [12:06:35]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [12:06:35]line СНО: Общий режим [12:06:35]line Чек 38 21.09.2024 12:06 [12:06:35]line Смена: 232 ФФД: 1.0 [12:06:35]line ЗНМ: 0300000060 [12:06:35]line РНМ: 0000000000146239 [12:06:35]line Версия ККМ: v1.0 [12:06:35]line ФМ: 0000000000959362 [12:06:35]line ФД: 19588 [12:06:35]line ФПД: 69076295102835 [12:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T120634&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19588&fm=69076295102835&tin=02508201610067®Number=0000000000146239&sum=11500 [12:06:35]line 0 [12:06:35]OFD Sender: Processing packet 19588 [packets to send 63, broken 62] [12:06:35]ProducePacketName [12:06:35]name=ofd_packets/00019588 [12:06:35]OFD Sender: To server: pG, [12:06:35]CommunicateWithHost lk.salyk.kg:30040 [12:06:35]ConnectInit lk.salyk.kg [12:06:35]written 0, free lines is 4095 [12:06:35]Connected sock=10 [12:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2C 01 00 00 A6 33 24 01 A8 F7 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 26 00 00 00 F4 03 04 00 CA B6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 84 4C 00 00 35 04 06 00 3E D3 14 08 31 73 45 CE CA 9F 2A 1B 59 44 [12:06:36]Write to MH i2c: 01 00 00 AE 00 AE [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 B3 0C 74 [12:06:36]RasterBufferAndPrint [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]written 0, free lines is 3254 [12:06:36]MH_Cut [12:06:36]Write to MH i2c: D1 01 00 B5 00 01 87 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 01 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 01 00 B5 00 00 86 [12:06:36]Write to MH i2c: 01 00 00 B6 00 B6 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 42 E3 47 00 4E A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 84 4C 00 00 F4 03 04 00 64 61 EE 66 B6 04 01 00 00 18 11 D5 39 6B 33 FE 8C [12:06:36]CommunicateWithHost err = 0 [12:06:36]CheckOFDResponse [12:06:36]1017 (14) - 77093643461234 [12:06:36]1041 (16) - 0000000000959362 [12:06:36]1040 (4) - 19588 [12:06:36]1012 (4) - 21.09.2024 06:02 [12:06:36]1206 (1) - 0 [12:06:36]OFD Sender: Remove packet 19588 [12:06:36]ProducePacketName [12:06:36]name=ofd_packets/00019588 [12:06:36]NVStorageDeleteData [12:06:36]OFD Sender: No OFD packet to send [12:06:36]*** Cut start [12:06:36]*** Partial cut [12:06:36]*** CUTSNS_PIN = 1 [12:06:36]*** CUTSNS_PIN = 0 [12:06:37]*** Brake cut motor [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]*** Stop cut motor [12:06:37]*** Cut end [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [12:06:37]process_action close_receipt done [12:06:37]requested_data is exist [12:06:37]produce_requested_data [12:06:37]requested_item fm.sn is exist - process it [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 11 00 00 [12:06:37]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 86 [12:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:06:37]wFMCommunicate OK [12:06:37]requested_item fd.num is exist - process it [12:06:37]SAM_PROTO_GetFieldsCounters [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 13 00 00 [12:06:37]Write to MH i2c: E2 08 00 B8 00 80 13 00 00 00 00 00 00 34 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 62 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 62 00 B8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 84 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 84 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_GetFieldsCounters done [12:06:37]requested_item shift.num is exist - process it [12:06:37]requested_item shift.opened is exist - process it [12:06:37]req_shift_opened [12:06:37]FM_GetShiftState [12:06:37]SAM_PROTO_GetShiftState [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 13 01 00 [12:06:37]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0E 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BC [12:06:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_GetShiftState done [12:06:37]FM_GetShiftState done [12:06:37]req_shift_opened done [12:06:37]requested_item shift.open_date is exist - process it [12:06:37]req_shift_open_date [12:06:37]req_shift_open_date done [12:06:37]produce_requested_data done [12:06:37]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19588,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [12:06:37]process_action_free close_receipt [12:06:37]json_value_free [12:06:37]json_value_free done [12:06:37]process_json_proto returns [12:06:37]Send response to host [12:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19588,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [12:06:37]free response buf [12:06:37]execute_script done [12:06:37]execute_script returns [12:06:37]free content buf [12:06:37]Sock 9.Close socket [12:06:37]Sock 9.Thread stoped [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:07:57]recv_with_timeout no data received [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:09]recv_with_timeout no data received [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:54]recv_with_timeout no data received [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:05]recv_with_timeout no data received [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:32]accept exits with 8 [12:15:32]New connection [12:15:32]New thread 3067161956 created [12:15:32]Thread 3067018596 joined [12:15:32]Waiting for new connection... [12:15:32] Sock 8.Parse request [12:15:32]Sock 8.Check first char [12:15:32]Sock 8.First char is OK [12:15:32]request: POST /json_proto HTTP/1.0 [12:15:32]Method: POST [12:15:32]URL: /json_proto [12:15:32]Method is POST - this is cgi request [12:15:32]url: /json_proto [12:15:32]query_string will be loaded in cgi processing [12:15:32]execute_cgi json_proto POST (null) [12:15:32]execute_cgi path=json_proto method=POST [12:15:32]POST find Content-Length [12:15:32]Host: 172.17.42.73:8080 [12:15:32]Content-Length: 679 [12:15:32]Content-Type: application/json [12:15:32] [12:15:32]POST finish read [12:15:32]Found Content-Length = 679 [12:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:32]execute_script... [12:15:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:32]POST & json_proto [12:15:32]process_json_proto [12:15:32]json parsed OK: [12:15:32]protocol is kg_v1.0 [12:15:32]action value=close_receipt [12:15:32]process_action close_receipt [12:15:32]cmd_close_receipt [12:15:32]MH_GetDate [12:15:32]Write to MH i2c: F0 00 00 BA 00 A9 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: F0 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: F0 09 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: F0 09 00 BA 00 00 E5 B8 EE 66 99 54 47 66 3D [12:15:32]GetLastDocTimeStamp 1726920394 [12:15:32]current date 1726920933 [12:15:32]FM_GetShiftState [12:15:32]SAM_PROTO_GetShiftState [12:15:32]wFMCommunicate request_size=4 [12:15:32]MH_SAM_APDU [12:15:32]CAPDU: 80 13 01 00 [12:15:32]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:32]Read from MH i2c: E2 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: E2 0E 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BE [12:15:32]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:15:32]wFMCommunicate OK [12:15:32]SAM_PROTO_GetShiftState done [12:15:32]FM_GetShiftState done [12:15:32]opened in 1726877463 [12:15:32]opened+sec_in_day 1726963863 [12:15:32]quantity*price = 50036 [12:15:32]sum+1 = 50037 [12:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 39 21.09.2024 12:15 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19589 ФПД: 262445698293379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121533&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19589&fm=262445698293379&tin=02508201610067®Number=0000000000146239&sum=50000 [12:15:33]StoreToDocumentArchive [12:15:33]shift 232 fd 19589 [12:15:33]save to /storage/0232/doc_00019589 [12:15:33]save last doc name /storage/0232/doc_00019589 to /storage/kkm_last_doc_name [12:15:33]save OK [12:15:33]Clear old archive folders... [12:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:33]tlvbuf is 0081C5C0 [12:15:33]SAM_PROTO_ClearQueue [12:15:33]wFMCommunicate request_size=4 [12:15:33]MH_SAM_APDU [12:15:33]CAPDU: 80 09 00 00 [12:15:33]Write to MH i2c: E2 08 00 C8 00 80 09 00 00 00 00 00 00 3A [12:15:33]Write i2c OK [12:15:33]MH_I2C_Read... [12:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [12:15:34]RAPDU: 90 00 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_ClearQueue done [12:15:34]KKMCreateOFDPacket [12:15:34]OFDProtocolAddRootSTLVToBuf [12:15:34]FM_MakeSignedData [12:15:34]FM_MakeSignedData [12:15:34]SAM_PROTO_SignData [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 0D 01 02 [12:15:34]Write to MH i2c: E2 08 00 C9 00 80 0D 01 02 00 00 00 00 42 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [12:15:34]RAPDU: 90 00 [12:15:34]wFMCommunicate OK [12:15:34]wFMCommunicate request_size=255 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E5 B8 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 85 4C 00 00 35 04 06 00 EE [12:15:34]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E5 B8 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 85 4C 00 00 35 04 06 00 EE 00 00 82 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [12:15:34]RAPDU: 90 00 [12:15:34]wFMCommunicate OK [12:15:34]wFMCommunicate request_size=10 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 0D 02 02 05 B1 66 9E 9E 83 [12:15:34]Write to MH i2c: E2 0D 00 CB 00 80 0D 02 02 05 00 B1 66 9E 9E 83 00 00 25 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [12:15:34]RAPDU: 90 00 [12:15:34]wFMCommunicate OK [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 0D 03 02 [12:15:34]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0B 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0B 00 CC 00 00 D6 FA 56 A8 B1 B1 D3 E3 90 00 2E [12:15:34]RAPDU: D6 FA 56 A8 B1 B1 D3 E3 90 00 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_SignData done [12:15:34]FM_MakeSignedData done [12:15:34]CreateOFDProtocolMessage [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 11 00 00 [12:15:34]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 17 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9C [12:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:15:34]wFMCommunicate OK [12:15:34]CreateOFDProtocolMessage done [12:15:34]OFDSenderStorePacket 19589 [12:15:34]StoreOFDPacket docnum=19589 [12:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 61 2B 07 01 D1 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E5 B8 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 85 4C 00 00 35 04 06 00 EE B1 66 9E 9E 83 D6 FA 56 A8 B1 B1 D3 E3 [12:15:34]CheckFolder [12:15:34]dirname=/storage/ofd_packets [12:15:34]CheckFolder done [12:15:34]ProducePacketName [12:15:34]name=ofd_packets/00019589 [12:15:34]NVStorageSaveData ofd_packets/00019589 [12:15:34]File name is /storage/ofd_packets/00019589 [12:15:34]Write 301 bytes [12:15:34]NVStorageSaveData done [12:15:34]OFDSenderStorePacket done [12:15:34]KKMCreateOFDPacket done [12:15:34]NVStorageSaveData kkm_last_timestamp [12:15:34]File name is /storage/kkm_last_timestamp [12:15:34]Write 4 bytes [12:15:34]NVStorageSaveData done [12:15:34]ExternCall_PrintAddStr [12:15:34]wPrintStart [12:15:34]Write to MH i2c: 01 00 00 CE 00 CE [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: 01 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: 01 07 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [12:15:34]RasterBufferAndPrint [12:15:34]line Счет N : (1)23699674 [12:15:34]line ИНН: 02508201610067 [12:15:34]line Контрольно-Кассовый Чек [12:15:34]line ПРОДАЖА [12:15:34]line ТРК (МРК, ГНК) : 42 [12:15:34]line Товар: 2710124130 [12:15:34]line Аи-92-К-5 [12:15:34]line 7.380 * 67.80 [12:15:34]line = 500.36 [12:15:34]line НДС 12% НСП 1% [12:15:34]line > о реализуемом товаре [12:15:34]line ОКРУГЛЕНИЕ: -0.36 [12:15:34]line ИТОГО: 500.00 [12:15:34]line Внесено: 500.00 [12:15:34]line СДАЧА: 0.00 [12:15:34]line НСП 1% : 4.43 [12:15:34]line НДС 12% : 53.14 [12:15:34]line Наличными: 500.00 [12:15:34]line Безнал.: 0.00 [12:15:34]line Место: АЗС № 93 "Партнер Нефть" [12:15:34]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [12:15:34]line СНО: Общий режим [12:15:34]line Чек 39 21.09.2024 12:15 [12:15:34]line Смена: 232 ФФД: 1.0 [12:15:34]line ЗНМ: 0300000060 [12:15:34]line РНМ: 0000000000146239 [12:15:34]line Версия ККМ: v1.0 [12:15:34]line ФМ: 0000000000959362 [12:15:34]line ФД: 19589 [12:15:34]line ФПД: 262445698293379 [12:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121533&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19589&fm=262445698293379&tin=02508201610067®Number=0000000000146239&sum=50000 [12:15:34]OFD Sender: Processing packet 19589 [packets to send 63, broken 62] [12:15:34]ProducePacketName [12:15:34]name=ofd_packets/00019589 [12:15:34]OFD Sender: To server: pG, [12:15:34]CommunicateWithHost lk.salyk.kg:30040 [12:15:34]ConnectInit lk.salyk.kg [12:15:34]written 0, free lines is 4095 [12:15:35]Write to MH i2c: 01 00 00 F9 00 F9 [12:15:35]Write i2c OK [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: 01 [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: 01 07 00 [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 92 0C 9E [12:15:35]RasterBufferAndPrint [12:15:35]line [12:15:35]line [12:15:35]line [12:15:35]line [12:15:35]line [12:15:35]written 0, free lines is 3223 [12:15:35]MH_Cut [12:15:35]Write to MH i2c: D1 01 00 00 01 01 D3 [12:15:35]Write i2c OK [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: D1 [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: D1 01 00 [12:15:35]MH_I2C_Read... [12:15:35]Read from MH i2c: D1 01 00 00 01 00 D2 [12:15:35]Write to MH i2c: 01 00 00 01 01 02 [12:15:35]Write i2c OK [12:15:35]MH_I2C_Read... [12:15:36]*** Cut start [12:15:36]*** Partial cut [12:15:36]*** CUTSNS_PIN = 1 [12:15:36]*** CUTSNS_PIN = 0 [12:15:36]*** Brake cut motor [12:15:36]Read from MH i2c: 01 [12:15:36]MH_I2C_Read... [12:15:36]*** Stop cut motor [12:15:36]*** Cut end [12:15:36]Read from MH i2c: 01 07 00 [12:15:36]MH_I2C_Read... [12:15:36]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [12:15:36]process_action close_receipt done [12:15:36]requested_data is exist [12:15:36]produce_requested_data [12:15:36]requested_item fm.sn is exist - process it [12:15:36]wFMCommunicate request_size=4 [12:15:36]MH_SAM_APDU [12:15:36]CAPDU: 80 11 00 00 [12:15:36]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [12:15:36]Write i2c OK [12:15:36]MH_I2C_Read... [12:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:36]Read from MH i2c: E2 [12:15:36]MH_I2C_Read... [12:15:36]Read from MH i2c: E2 17 00 [12:15:36]MH_I2C_Read... [12:15: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 39 35 39 33 36 32 90 00 D2 [12:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:15:36]wFMCommunicate OK [12:15:36]requested_item fd.num is exist - process it [12:15:36]SAM_PROTO_GetFieldsCounters [12:15:36]wFMCommunicate request_size=4 [12:15:36]MH_SAM_APDU [12:15:36]CAPDU: 80 13 00 00 [12:15:36]Write to MH i2c: E2 08 00 03 01 80 13 00 00 00 00 00 00 80 [12:15:36]Write i2c OK [12:15:36]MH_I2C_Read... [12:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:37]Read from MH i2c: E2 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 62 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 62 00 03 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 85 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [12:15:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 85 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:37]wFMCommunicate OK [12:15:37]SAM_PROTO_GetFieldsCounters done [12:15:37]requested_item shift.num is exist - process it [12:15:37]requested_item shift.opened is exist - process it [12:15:37]req_shift_opened [12:15:37]FM_GetShiftState [12:15:37]SAM_PROTO_GetShiftState [12:15:37]wFMCommunicate request_size=4 [12:15:37]MH_SAM_APDU [12:15:37]CAPDU: 80 13 01 00 [12:15:37]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [12:15:37]Write i2c OK [12:15:37]MH_I2C_Read... [12:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:37]Read from MH i2c: E2 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 08 [12:15:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:15:37]wFMCommunicate OK [12:15:37]SAM_PROTO_GetShiftState done [12:15:37]FM_GetShiftState done [12:15:37]req_shift_opened done [12:15:37]requested_item shift.open_date is exist - process it [12:15:37]req_shift_open_date [12:15:37]req_shift_open_date done [12:15:37]produce_requested_data done [12:15:37]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19589,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [12:15:37]process_action_free close_receipt [12:15:37]json_value_free [12:15:37]json_value_free done [12:15:37]process_json_proto returns [12:15:37]Send response to host [12:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19589,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [12:15:37]free response buf [12:15:37]execute_script done [12:15:37]execute_script returns [12:15:37]free content buf [12:15:37]Sock 8.Close socket [12:15:37]Sock 8.Thread stoped [12:15:38]recv_with_timeout no data received [12:15:39]ConnectInit Can't take IP for lk.salyk.kg [12:15:39]CommunicateWithHost connect error [12:15:39]CommunicateWithHost err = -1 [12:15:39]OFD Sender: Server communicate error [12:15:44]OFD Sender: Processing packet 19589 [packets to send 63, broken 62] [12:15:44]ProducePacketName [12:15:44]name=ofd_packets/00019589 [12:15:44]OFD Sender: To server: pG, [12:15:44]CommunicateWithHost lk.salyk.kg:30040 [12:15:44]ConnectInit lk.salyk.kg [12:15:49]ConnectInit Can't take IP for lk.salyk.kg [12:15:49]CommunicateWithHost connect error [12:15:49]CommunicateWithHost err = -1 [12:15:49]OFD Sender: Server communicate error [12:15:54]OFD Sender: Processing packet 19589 [packets to send 63, broken 62] [12:15:54]ProducePacketName [12:15:54]name=ofd_packets/00019589 [12:15:54]OFD Sender: To server: pG, [12:15:54]CommunicateWithHost lk.salyk.kg:30040 [12:15:54]ConnectInit lk.salyk.kg [12:15:55]Connected sock=9 [12:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 61 2B 07 01 D1 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 E5 B8 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 85 4C 00 00 35 04 06 00 EE B1 66 9E 9E 83 D6 FA 56 A8 B1 B1 D3 E3 [12:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 C0 5E 47 00 C1 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 85 4C 00 00 F4 03 04 00 94 63 EE 66 B6 04 01 00 00 EA BE 92 1B 03 8D E2 65 [12:15:56]CommunicateWithHost err = 0 [12:15:56]CheckOFDResponse [12:15:56]1017 (14) - 77093643461234 [12:15:56]1041 (16) - 0000000000959362 [12:15:56]1040 (4) - 19589 [12:15:56]1012 (4) - 21.09.2024 06:11 [12:15:56]1206 (1) - 0 [12:15:56]OFD Sender: Remove packet 19589 [12:15:56]ProducePacketName [12:15:56]name=ofd_packets/00019589 [12:15:56]NVStorageDeleteData [12:15:56]OFD Sender: No OFD packet to send [12:15:59]accept exits with 10 [12:15:59]New connection [12:15:59]New thread 3067018596 created [12:15:59]Thread 3067161956 joined [12:15:59]Waiting for new connection... [12:15:59] Sock 10.Parse request [12:15:59]Sock 10.Check first char [12:15:59]Sock 10.First char is OK [12:15:59]request: POST /json_proto HTTP/1.0 [12:15:59]Method: POST [12:15:59]URL: /json_proto [12:15:59]Method is POST - this is cgi request [12:15:59]url: /json_proto [12:15:59]query_string will be loaded in cgi processing [12:15:59]execute_cgi json_proto POST (null) [12:15:59]execute_cgi path=json_proto method=POST [12:15:59]POST find Content-Length [12:15:59]Host: 172.17.42.73:8080 [12:15:59]Content-Length: 771 [12:15:59]Content-Type: application/json [12:15:59] [12:15:59]POST finish read [12:15:59]Found Content-Length = 771 [12:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:59]execute_script... [12:15:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:59]POST & json_proto [12:15:59]process_json_proto [12:15:59]json parsed OK: [12:15:59]protocol is kg_v1.0 [12:15:59]action value=close_receipt [12:15:59]process_action close_receipt [12:15:59]cmd_close_receipt [12:15:59]MH_GetDate [12:15:59]Write to MH i2c: F0 00 00 05 01 F5 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: F0 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: F0 09 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: F0 09 00 05 01 00 00 B9 EE 66 99 54 47 66 A5 [12:15:59]GetLastDocTimeStamp 1726920933 [12:15:59]current date 1726920960 [12:15:59]FM_GetShiftState [12:15:59]SAM_PROTO_GetShiftState [12:15:59]wFMCommunicate request_size=4 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 13 01 00 [12:15:59]Write to MH i2c: E2 08 00 06 01 80 13 01 00 00 00 00 00 84 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 0E 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 0E 00 06 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 0A [12:15:59]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:15:59]wFMCommunicate OK [12:15:59]SAM_PROTO_GetShiftState done [12:15:59]FM_GetShiftState done [12:15:59]opened in 1726877463 [12:15:59]opened+sec_in_day 1726963863 [12:15:59]quantity*price = 200043 [12:15:59]sum+1 = 200044 [12:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 40 21.09.2024 12:16 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19590 ФПД: 94994484279046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19590&fm=94994484279046&tin=02508201610067®Number=0000000000146239&sum=200043 [12:16:00]StoreToDocumentArchive [12:16:00]shift 232 fd 19590 [12:16:00]save to /storage/0232/doc_00019590 [12:16:00]save last doc name /storage/0232/doc_00019590 to /storage/kkm_last_doc_name [12:16:00]save OK [12:16:00]Clear old archive folders... [12:16:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:00]tlvbuf is 0082B050 [12:16:00]SAM_PROTO_ClearQueue [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 09 00 00 [12:16:00]Write to MH i2c: E2 08 00 13 01 80 09 00 00 00 00 00 00 86 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 03 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [12:16:00]RAPDU: 90 00 [12:16:00]wFMCommunicate OK [12:16:00]SAM_PROTO_ClearQueue done [12:16:00]KKMCreateOFDPacket [12:16:00]OFDProtocolAddRootSTLVToBuf [12:16:00]FM_MakeSignedData [12:16:00]FM_MakeSignedData [12:16:00]SAM_PROTO_SignData [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 0D 01 02 [12:16:00]Write to MH i2c: E2 08 00 14 01 80 0D 01 02 00 00 00 00 8E [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 03 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [12:16:00]RAPDU: 90 00 [12:16:00]wFMCommunicate OK [12:16:00]wFMCommunicate request_size=255 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 86 4C 00 00 35 04 06 00 56 [12:16:00]Write to MH i2c: E2 02 01 15 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 86 4C 00 00 35 04 06 00 56 00 00 62 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=10 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 02 02 05 65 A0 7D B7 06 [12:16:01]Write to MH i2c: E2 0D 00 16 01 80 0D 02 02 05 00 65 A0 7D B7 06 00 00 DA [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 03 02 [12:16:01]Write to MH i2c: E2 08 00 17 01 80 0D 03 02 00 00 00 00 93 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 0B 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 0B 00 17 01 00 A9 65 CF 10 C0 BA 23 E0 90 00 FE [12:16:01]RAPDU: A9 65 CF 10 C0 BA 23 E0 90 00 [12:16:01]wFMCommunicate OK [12:16:01]SAM_PROTO_SignData done [12:16:01]FM_MakeSignedData done [12:16:01]CreateOFDProtocolMessage [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 11 00 00 [12:16:01]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 17 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E8 [12:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:16:01]wFMCommunicate OK [12:16:01]CreateOFDProtocolMessage done [12:16:01]OFDSenderStorePacket 19590 [12:16:01]StoreOFDPacket docnum=19590 [12:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 94 95 07 01 A8 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 86 4C 00 00 35 04 06 00 56 65 A0 7D B7 06 A9 65 CF 10 C0 BA 23 E0 [12:16:01]CheckFolder [12:16:01]dirname=/storage/ofd_packets [12:16:01]CheckFolder done [12:16:01]ProducePacketName [12:16:01]name=ofd_packets/00019590 [12:16:01]NVStorageSaveData ofd_packets/00019590 [12:16:01]File name is /storage/ofd_packets/00019590 [12:16:01]Write 301 bytes [12:16:01]NVStorageSaveData done [12:16:01]OFDSenderStorePacket done [12:16:01]KKMCreateOFDPacket done [12:16:01]NVStorageSaveData kkm_last_timestamp [12:16:01]File name is /storage/kkm_last_timestamp [12:16:01]Write 4 bytes [12:16:01]NVStorageSaveData done [12:16:01]ExternCall_PrintAddStr [12:16:01]wPrintStart [12:16:01]Write to MH i2c: 01 00 00 19 01 1A [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [12:16:01]RasterBufferAndPrint [12:16:01]line Счет N : (1)23699675 [12:16:01]line ИНН: 02508201610067 [12:16:01]line Контрольно-Кассовый Чек [12:16:01]line ПРОДАЖА [12:16:01]line ТРК (МРК, ГНК) : 31 [12:16:01]line Товар: 2710124500 [12:16:01]line Аи-95-К-5 [12:16:01]line 26.960 * 74.20 [12:16:01]line = 2000.43 [12:16:01]line НДС 12% НСП 1% [12:16:01]line > о реализуемом товаре [12:16:01]line ИТОГО: 2000.43 [12:16:01]line НСП 1% : 17.70 [12:16:01]line НДС 12% : 212.43 [12:16:01]line Наличными: 0.00 [12:16:01]line Безнал.: 2000.43 [12:16:01]line Место: АЗС № 93 "Партнер Нефть" [12:16:01]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [12:16:01]line СНО: Общий режим [12:16:01]line Чек 40 21.09.2024 12:16 [12:16:01]line Смена: 232 ФФД: 1.0 [12:16:01]line ЗНМ: 0300000060 [12:16:01]line РНМ: 0000000000146239 [12:16:01]line Версия ККМ: v1.0 [12:16:01]line Платежная система: Mbank [12:16:01]line ФМ: 0000000000959362 [12:16:01]line ФД: 19590 [12:16:01]line ФПД: 94994484279046 [12:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19590&fm=94994484279046&tin=02508201610067®Number=0000000000146239&sum=200043 [12:16:01]written 0, free lines is 4095 [12:16:01]OFD Sender: Processing packet 19590 [packets to send 63, broken 62] [12:16:01]ProducePacketName [12:16:01]name=ofd_packets/00019590 [12:16:01]OFD Sender: To server: pG, [12:16:01]CommunicateWithHost lk.salyk.kg:30040 [12:16:01]ConnectInit lk.salyk.kg [12:16:01]Write to MH i2c: 01 00 00 42 01 43 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 C7 0C 1D [12:16:01]RasterBufferAndPrint [12:16:01]line [12:16:01]line [12:16:01]line [12:16:01]line [12:16:01]line [12:16:01]written 0, free lines is 3276 [12:16:01]MH_Cut [12:16:01]Write to MH i2c: D1 01 00 49 01 01 1C [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: D1 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: D1 01 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: D1 01 00 49 01 00 1B [12:16:01]Write to MH i2c: 01 00 00 4A 01 4B [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:02]*** Cut start [12:16:02]*** Partial cut [12:16:02]*** CUTSNS_PIN = 1 [12:16:02]*** CUTSNS_PIN = 0 [12:16:02]*** Brake cut motor [12:16:03]Read from MH i2c: 01 [12:16:03]MH_I2C_Read... [12:16:03]*** Stop cut motor [12:16:03]*** Cut end [12:16:03]Read from MH i2c: 01 07 00 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [12:16:03]process_action close_receipt done [12:16:03]requested_data is exist [12:16:03]produce_requested_data [12:16:03]requested_item fm.sn is exist - process it [12:16:03]wFMCommunicate request_size=4 [12:16:03]MH_SAM_APDU [12:16:03]CAPDU: 80 11 00 00 [12:16:03]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [12:16:03]Write i2c OK [12:16:03]MH_I2C_Read... [12:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:03]Read from MH i2c: E2 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 17 00 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1B [12:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:16:03]wFMCommunicate OK [12:16:03]requested_item fd.num is exist - process it [12:16:03]SAM_PROTO_GetFieldsCounters [12:16:03]wFMCommunicate request_size=4 [12:16:03]MH_SAM_APDU [12:16:03]CAPDU: 80 13 00 00 [12:16:03]Write to MH i2c: E2 08 00 4C 01 80 13 00 00 00 00 00 00 C9 [12:16:03]Write i2c OK [12:16:03]MH_I2C_Read... [12:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:03]Read from MH i2c: E2 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 62 00 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 62 00 4C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 86 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 86 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:03]wFMCommunicate OK [12:16:03]SAM_PROTO_GetFieldsCounters done [12:16:03]requested_item shift.num is exist - process it [12:16:03]requested_item shift.opened is exist - process it [12:16:03]req_shift_opened [12:16:03]FM_GetShiftState [12:16:03]SAM_PROTO_GetShiftState [12:16:03]wFMCommunicate request_size=4 [12:16:03]MH_SAM_APDU [12:16:03]CAPDU: 80 13 01 00 [12:16:03]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [12:16:03]Write i2c OK [12:16:03]MH_I2C_Read... [12:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:03]Read from MH i2c: E2 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 0E 00 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 51 [12:16:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:16:03]wFMCommunicate OK [12:16:03]SAM_PROTO_GetShiftState done [12:16:03]FM_GetShiftState done [12:16:03]req_shift_opened done [12:16:03]requested_item shift.open_date is exist - process it [12:16:03]req_shift_open_date [12:16:03]req_shift_open_date done [12:16:03]produce_requested_data done [12:16:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19590,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [12:16:03]process_action_free close_receipt [12:16:03]json_value_free [12:16:03]json_value_free done [12:16:03]process_json_proto returns [12:16:03]Send response to host [12:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19590,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [12:16:03]free response buf [12:16:03]execute_script done [12:16:03]execute_script returns [12:16:03]free content buf [12:16:03]Sock 10.Close socket [12:16:03]Sock 10.Thread stoped [12:16:03]Connected sock=11 [12:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 94 95 07 01 A8 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 86 4C 00 00 35 04 06 00 56 65 A0 7D B7 06 A9 65 CF 10 C0 BA 23 E0 [12:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FE 4B 47 00 F1 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 86 4C 00 00 F4 03 04 00 9C 63 EE 66 B6 04 01 00 00 5F B8 46 8B 46 8E D6 B5 [12:16:04]CommunicateWithHost err = 0 [12:16:04]CheckOFDResponse [12:16:04]1017 (14) - 77093643461234 [12:16:04]1041 (16) - 0000000000959362 [12:16:04]1040 (4) - 19590 [12:16:04]1012 (4) - 21.09.2024 06:11 [12:16:04]1206 (1) - 0 [12:16:04]OFD Sender: Remove packet 19590 [12:16:04]ProducePacketName [12:16:04]name=ofd_packets/00019590 [12:16:04]NVStorageDeleteData [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:13]accept exits with 8 [12:16:13]New connection [12:16:13]New thread 3067161956 created [12:16:13]Thread 3067018596 joined [12:16:13]Waiting for new connection... [12:16:13] Sock 8.Parse request [12:16:13]Sock 8.Check first char [12:16:13]Sock 8.First char is OK [12:16:13]request: POST /json_proto HTTP/1.0 [12:16:13]Method: POST [12:16:13]URL: /json_proto [12:16:13]Method is POST - this is cgi request [12:16:13]url: /json_proto [12:16:13]query_string will be loaded in cgi processing [12:16:13]execute_cgi json_proto POST (null) [12:16:13]execute_cgi path=json_proto method=POST [12:16:13]POST find Content-Length [12:16:13]Host: 172.17.42.73:8080 [12:16:13]Content-Length: 1129 [12:16:13]Content-Type: application/json [12:16:13] [12:16:13]POST finish read [12:16:13]Found Content-Length = 1129 [12:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117509", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: Mbank", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:13]execute_script... [12:16:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117509", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: Mbank", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:13]POST & json_proto [12:16:13]process_json_proto [12:16:13]json parsed OK: [12:16:13]protocol is kg_v1.0 [12:16:13]action value=close_receipt [12:16:13]process_action close_receipt [12:16:13]cmd_close_receipt [12:16:13]MH_GetDate [12:16:13]Write to MH i2c: F0 00 00 4E 01 3E [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: F0 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: F0 09 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: F0 09 00 4E 01 00 0E B9 EE 66 99 54 47 66 FC [12:16:13]GetLastDocTimeStamp 1726920960 [12:16:13]current date 1726920974 [12:16:13]FM_GetShiftState [12:16:13]SAM_PROTO_GetShiftState [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 13 01 00 [12:16:13]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 0E 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 53 [12:16:13]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:16:13]wFMCommunicate OK [12:16:13]SAM_PROTO_GetShiftState done [12:16:13]FM_GetShiftState done [12:16:13]opened in 1726877463 [12:16:13]opened+sec_in_day 1726963863 [12:16:13]quantity*price = 17500 [12:16:13]sum+1 = 17501 [12:16:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 41 21.09.2024 12:16 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19591 ФПД: 87948724774514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121614&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19591&fm=87948724774514&tin=02508201610067®Number=0000000000146239&sum=28000 0 [12:16:14]StoreToDocumentArchive [12:16:14]shift 232 fd 19591 [12:16:14]save to /storage/0232/doc_00019591 [12:16:14]save last doc name /storage/0232/doc_00019591 to /storage/kkm_last_doc_name [12:16:14]save OK [12:16:14]Clear old archive folders... [12:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=416 [12:16:14]tlvbuf is 0083BC50 [12:16:14]SAM_PROTO_ClearQueue [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 09 00 00 [12:16:14]Write to MH i2c: E2 08 00 5C 01 80 09 00 00 00 00 00 00 CF [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:14]Read from MH i2c: E2 03 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [12:16:14]RAPDU: 90 00 [12:16:14]wFMCommunicate OK [12:16:14]SAM_PROTO_ClearQueue done [12:16:14]KKMCreateOFDPacket [12:16:14]OFDProtocolAddRootSTLVToBuf [12:16:14]FM_MakeSignedData [12:16:14]FM_MakeSignedData [12:16:14]SAM_PROTO_SignData [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 0D 01 02 [12:16:14]Write to MH i2c: E2 08 00 5D 01 80 0D 01 02 00 00 00 00 D7 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [12:16:14]RAPDU: 90 00 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=255 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [12:16:14]Write to MH i2c: E2 02 01 5E 01 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 68 [12:16:14]OFD Sender: No OFD packet to send [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [12:16:14]RAPDU: 90 00 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=175 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 0D 02 02 AA 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 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 87 4C 00 00 35 04 06 00 4F FD 28 7F A6 72 [12:16:14]Write to MH i2c: E2 B2 00 5F 01 80 0D 02 02 AA 00 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 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 87 4C 00 00 35 04 06 00 4F FD 28 7F A6 72 00 00 78 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 03 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [12:16:15]RAPDU: 90 00 [12:16:15]wFMCommunicate OK [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 0D 03 02 [12:16:15]Write to MH i2c: E2 08 00 60 01 80 0D 03 02 00 00 00 00 DC [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 0B 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 0B 00 60 01 00 99 43 09 B8 98 C1 5C 20 90 00 4F [12:16:15]RAPDU: 99 43 09 B8 98 C1 5C 20 90 00 [12:16:15]wFMCommunicate OK [12:16:15]SAM_PROTO_SignData done [12:16:15]FM_MakeSignedData done [12:16:15]CreateOFDProtocolMessage [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 11 00 00 [12:16:15]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 17 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 31 [12:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:16:15]wFMCommunicate OK [12:16:15]CreateOFDProtocolMessage done [12:16:15]OFDSenderStorePacket 19591 [12:16:15]StoreOFDPacket docnum=19591 [12:16:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B4 01 00 00 C5 D5 AC 01 76 75 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 87 4C 00 00 35 04 06 00 4F FD 28 7F A6 72 99 43 09 B8 98 C1 5C 20 [12:16:15]CheckFolder [12:16:15]dirname=/storage/ofd_packets [12:16:15]CheckFolder done [12:16:15]ProducePacketName [12:16:15]name=ofd_packets/00019591 [12:16:15]NVStorageSaveData ofd_packets/00019591 [12:16:15]File name is /storage/ofd_packets/00019591 [12:16:15]Write 466 bytes [12:16:15]NVStorageSaveData done [12:16:15]OFDSenderStorePacket done [12:16:15]KKMCreateOFDPacket done [12:16:15]NVStorageSaveData kkm_last_timestamp [12:16:15]File name is /storage/kkm_last_timestamp [12:16:15]Write 4 bytes [12:16:15]NVStorageSaveData done [12:16:15]ExternCall_PrintAddStr [12:16:15]wPrintStart [12:16:15]Write to MH i2c: 01 00 00 62 01 63 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [12:16:15]RasterBufferAndPrint [12:16:15]line Счет N : (3)117509 [12:16:15]line ИНН: 02508201610067 [12:16:15]line Контрольно-Кассовый Чек [12:16:15]line ПРОДАЖА [12:16:15]line Товар: 4607084351378 [12:16:15]line Бисквит Чоко пай 6шт [12:16:15]line 1.000 * 175.00 [12:16:15]line = 175.00 [12:16:15]line НДС 12% НСП 1% [12:16:15]line > о реализуемом товаре [12:16:15]line Товар: 5449000027474 [12:16:15]line Напиток FuzeTea зел чай манго,ромашка 1л [12:16:15]line 1.000 * 105.00 [12:16:15]line = 105.00 [12:16:15]line НДС 12% НСП 1% [12:16:15]line > о реализуемом товаре [12:16:15]line ИТОГО: 280.00 [12:16:15]line НСП 1% : 2.48 [12:16:15]line НДС 12% : 29.73 [12:16:15]line Наличными: 0.00 [12:16:15]line Безнал.: 280.00 [12:16:15]line Место: АЗС № 93 "Партнер Нефть" [12:16:15]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [12:16:15]line СНО: Общий режим [12:16:15]line Чек 41 21.09.2024 12:16 [12:16:15]line Смена: 232 ФФД: 1.0 [12:16:15]line ЗНМ: 0300000060 [12:16:15]line РНМ: 0000000000146239 [12:16:15]line Версия ККМ: v1.0 [12:16:15]line Платежная система: Mbank [12:16:15]line ФМ: 0000000000959362 [12:16:15]line ФД: 19591 [12:16:15]line ФПД: 87948724774514 [12:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T121614&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19591&fm=87948724774514&tin=02508201610067®Number=0000000000146239&sum=28000 [12:16:15]line 0 [12:16:15]written 0, free lines is 4095 [12:16:15]OFD Sender: Processing packet 19591 [packets to send 63, broken 62] [12:16:15]ProducePacketName [12:16:15]name=ofd_packets/00019591 [12:16:15]OFD Sender: To server: pG, [12:16:15]CommunicateWithHost lk.salyk.kg:30040 [12:16:15]ConnectInit lk.salyk.kg [12:16:15]Write to MH i2c: 01 00 00 92 01 93 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 36 0C DC [12:16:15]RasterBufferAndPrint [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]written 0, free lines is 3144 [12:16:15]MH_Cut [12:16:15]Write to MH i2c: D1 01 00 99 01 01 6C [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 01 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 01 00 99 01 00 6B [12:16:15]Write to MH i2c: 01 00 00 9A 01 9B [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:16]*** Cut start [12:16:16]*** Partial cut [12:16:16]*** CUTSNS_PIN = 1 [12:16:16]*** CUTSNS_PIN = 0 [12:16:17]*** Brake cut motor [12:16:17]Read from MH i2c: 01 [12:16:17]MH_I2C_Read... [12:16:17]*** Stop cut motor [12:16:17]*** Cut end [12:16:17]Read from MH i2c: 01 07 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [12:16:17]process_action close_receipt done [12:16:17]requested_data is exist [12:16:17]produce_requested_data [12:16:17]requested_item fm.sn is exist - process it [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 11 00 00 [12:16:17]Write to MH i2c: E2 08 00 9B 01 80 11 00 00 00 00 00 00 16 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 17 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 17 00 9B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 6B [12:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:16:17]wFMCommunicate OK [12:16:17]requested_item fd.num is exist - process it [12:16:17]SAM_PROTO_GetFieldsCounters [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 13 00 00 [12:16:17]Write to MH i2c: E2 08 00 9C 01 80 13 00 00 00 00 00 00 19 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 62 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 62 00 9C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 87 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 87 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:17]wFMCommunicate OK [12:16:17]SAM_PROTO_GetFieldsCounters done [12:16:17]requested_item shift.num is exist - process it [12:16:17]requested_item shift.opened is exist - process it [12:16:17]req_shift_opened [12:16:17]FM_GetShiftState [12:16:17]SAM_PROTO_GetShiftState [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 13 01 00 [12:16:17]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 0E 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A1 [12:16:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:16:17]wFMCommunicate OK [12:16:17]SAM_PROTO_GetShiftState done [12:16:17]FM_GetShiftState done [12:16:17]req_shift_opened done [12:16:17]requested_item shift.open_date is exist - process it [12:16:17]req_shift_open_date [12:16:17]req_shift_open_date done [12:16:17]produce_requested_data done [12:16:17]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19591,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [12:16:17]process_action_free close_receipt [12:16:17]json_value_free [12:16:17]json_value_free done [12:16:17]process_json_proto returns [12:16:17]Send response to host [12:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19591,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [12:16:17]free response buf [12:16:17]execute_script done [12:16:17]execute_script returns [12:16:17]free content buf [12:16:17]Sock 8.Close socket [12:16:17]Sock 8.Thread stoped [12:16:20]ConnectInit Can't take IP for lk.salyk.kg [12:16:20]CommunicateWithHost connect error [12:16:20]CommunicateWithHost err = -1 [12:16:20]OFD Sender: Server communicate error [12:16:25]OFD Sender: Processing packet 19591 [packets to send 63, broken 62] [12:16:25]ProducePacketName [12:16:25]name=ofd_packets/00019591 [12:16:25]OFD Sender: To server: pG, [12:16:25]CommunicateWithHost lk.salyk.kg:30040 [12:16:25]ConnectInit lk.salyk.kg [12:16:30]Connected sock=8 [12:16:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B4 01 00 00 C5 D5 AC 01 76 75 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E B9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 87 4C 00 00 35 04 06 00 4F FD 28 7F A6 72 99 43 09 B8 98 C1 5C 20 [12:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 0D 4D 47 00 98 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 87 4C 00 00 F4 03 04 00 B7 63 EE 66 B6 04 01 00 00 AC 9E 67 30 F7 E8 30 87 [12:16:31]CommunicateWithHost err = 0 [12:16:31]CheckOFDResponse [12:16:31]1017 (14) - 77093643461234 [12:16:31]1041 (16) - 0000000000959362 [12:16:31]1040 (4) - 19591 [12:16:31]1012 (4) - 21.09.2024 06:12 [12:16:31]1206 (1) - 0 [12:16:31]OFD Sender: Remove packet 19591 [12:16:31]ProducePacketName [12:16:31]name=ofd_packets/00019591 [12:16:31]NVStorageDeleteData [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:23]recv_with_timeout no data received [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]recv_with_timeout no data received [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:04]recv_with_timeout no data received [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:34]ConnectInit Can't connect to host [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:48]recv_with_timeout no data received [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:05]recv_with_timeout no data received [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:20]recv_with_timeout no data received [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:23:59]accept exits with 10 [12:23:59]New connection [12:23:59]New thread 3067018596 created [12:23:59]Thread 3067161956 joined [12:23:59]Waiting for new connection... [12:23:59] Sock 10.Parse request [12:23:59]Sock 10.Check first char [12:23:59]Sock 10.First char is OK [12:23:59]request: POST /json_proto HTTP/1.0 [12:23:59]Method: POST [12:23:59]URL: /json_proto [12:23:59]Method is POST - this is cgi request [12:23:59]url: /json_proto [12:23:59]query_string will be loaded in cgi processing [12:23:59]execute_cgi json_proto POST (null) [12:23:59]execute_cgi path=json_proto method=POST [12:23:59]POST find Content-Length [12:23:59]Host: 172.17.42.73:8080 [12:23:59]Content-Length: 647 [12:23:59]Content-Type: application/json [12:23:59] [12:23:59]POST finish read [12:23:59]Found Content-Length = 647 [12:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117510", "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" ] } } [12:23:59]execute_script... [12:23:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117510", "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" ] } } [12:23:59]POST & json_proto [12:23:59]process_json_proto [12:23:59]json parsed OK: [12:23:59]protocol is kg_v1.0 [12:23:59]action value=close_receipt [12:23:59]process_action close_receipt [12:23:59]cmd_close_receipt [12:23:59]MH_GetDate [12:23:59]Write to MH i2c: F0 00 00 9E 01 8E [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 9E 01 00 E0 BA EE 66 99 54 47 66 1F [12:23:59]GetLastDocTimeStamp 1726920974 [12:23:59]current date 1726921440 [12:23:59]FM_GetShiftState [12:23:59]SAM_PROTO_GetShiftState [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 13 01 00 [12:23:59]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A3 [12:23:59]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_GetShiftState done [12:23:59]FM_GetShiftState done [12:23:59]opened in 1726877463 [12:23:59]opened+sec_in_day 1726963863 [12:23:59]quantity*price = 13000 [12:23:59]sum+1 = 13001 [12:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 42 21.09.2024 12:24 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19592 ФПД: 207458356630209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T122400&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19592&fm=207458356630209&tin=02508201610067®Number=0000000000146239&sum=13000 0 [12:24:00]StoreToDocumentArchive [12:24:00]shift 232 fd 19592 [12:24:00]save to /storage/0232/doc_00019592 [12:24:00]save last doc name /storage/0232/doc_00019592 to /storage/kkm_last_doc_name [12:24:00]save OK [12:24:00]Clear old archive folders... [12:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:24:00]tlvbuf is 00807D80 [12:24:00]SAM_PROTO_ClearQueue [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 09 00 00 [12:24:00]Write to MH i2c: E2 08 00 AC 01 80 09 00 00 00 00 00 00 1F [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]SAM_PROTO_ClearQueue done [12:24:00]KKMCreateOFDPacket [12:24:00]OFDProtocolAddRootSTLVToBuf [12:24:00]FM_MakeSignedData [12:24:00]FM_MakeSignedData [12:24:00]SAM_PROTO_SignData [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 01 02 [12:24:00]Write to MH i2c: E2 08 00 AD 01 80 0D 01 02 00 00 00 00 27 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]wFMCommunicate request_size=255 [12:24:00]MH_SAM_APDU [12:24:00]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 2A 00 00 00 F4 03 04 00 E0 BA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [12:24:00]Write to MH i2c: E2 02 01 AE 01 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 2A 00 00 00 F4 03 04 00 E0 BA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C5 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [12:24:01]RAPDU: 90 00 [12:24:01]wFMCommunicate OK [12:24:01]wFMCommunicate request_size=31 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 88 4C 00 00 35 04 06 00 BC AE A9 A7 12 C1 [12:24:01]Write to MH i2c: E2 22 00 AF 01 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 88 4C 00 00 35 04 06 00 BC AE A9 A7 12 C1 00 00 B8 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [12:24:01]RAPDU: 90 00 [12:24:01]wFMCommunicate OK [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 0D 03 02 [12:24:01]Write to MH i2c: E2 08 00 B0 01 80 0D 03 02 00 00 00 00 2C [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0B 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0B 00 B0 01 00 2C 53 F5 13 CA 76 71 EA 90 00 4F [12:24:01]RAPDU: 2C 53 F5 13 CA 76 71 EA 90 00 [12:24:01]wFMCommunicate OK [12:24:01]SAM_PROTO_SignData done [12:24:01]FM_MakeSignedData done [12:24:01]CreateOFDProtocolMessage [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 11 00 00 [12:24:01]Write to MH i2c: E2 08 00 B1 01 80 11 00 00 00 00 00 00 2C [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 17 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 17 00 B1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 81 [12:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:24:01]wFMCommunicate OK [12:24:01]CreateOFDProtocolMessage done [12:24:01]OFDSenderStorePacket 19592 [12:24:01]StoreOFDPacket docnum=19592 [12:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 44 CB 1C 01 64 00 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 2A 00 00 00 F4 03 04 00 E0 BA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 88 4C 00 00 35 04 06 00 BC AE A9 A7 12 C1 2C 53 F5 13 CA 76 71 EA [12:24:01]CheckFolder [12:24:01]dirname=/storage/ofd_packets [12:24:01]CheckFolder done [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00019592 [12:24:01]NVStorageSaveData ofd_packets/00019592 [12:24:01]File name is /storage/ofd_packets/00019592 [12:24:01]Write 322 bytes [12:24:01]NVStorageSaveData done [12:24:01]OFDSenderStorePacket done [12:24:01]KKMCreateOFDPacket done [12:24:01]NVStorageSaveData kkm_last_timestamp [12:24:01]File name is /storage/kkm_last_timestamp [12:24:01]Write 4 bytes [12:24:01]NVStorageSaveData done [12:24:01]ExternCall_PrintAddStr [12:24:01]wPrintStart [12:24:01]Write to MH i2c: 01 00 00 B2 01 B3 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 FF 0F C8 [12:24:01]RasterBufferAndPrint [12:24:01]line Счет N : (3)117510 [12:24:01]line ИНН: 02508201610067 [12:24:01]line Контрольно-Кассовый Чек [12:24:01]line ПРОДАЖА [12:24:01]line Товар: 47011656 [12:24:01]line Водка Пшеничная 0,1л [12:24:01]line 2.000 * 65.00 [12:24:01]line = 130.00 [12:24:01]line НДС 12% НСП 1% [12:24:01]line > о реализуемом товаре [12:24:01]line ИТОГО: 130.00 [12:24:01]line НСП 1% : 1.15 [12:24:01]line НДС 12% : 13.80 [12:24:01]line Наличными: 130.00 [12:24:01]line Безнал.: 0.00 [12:24:01]line Место: АЗС № 93 "Партнер Нефть" [12:24:01]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [12:24:01]line СНО: Общий режим [12:24:01]line Чек 42 21.09.2024 12:24 [12:24:01]line Смена: 232 ФФД: 1.0 [12:24:01]line ЗНМ: 0300000060 [12:24:01]line РНМ: 0000000000146239 [12:24:01]line Версия ККМ: v1.0 [12:24:01]line ФМ: 0000000000959362 [12:24:01]line ФД: 19592 [12:24:01]line ФПД: 207458356630209 [12:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T122400&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19592&fm=207458356630209&tin=02508201610067®Number=0000000000146239&sum=13000 [12:24:01]OFD Sender: Processing packet 19592 [packets to send 63, broken 62] [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00019592 [12:24:01]OFD Sender: To server: pG, [12:24:01]CommunicateWithHost lk.salyk.kg:30040 [12:24:01]ConnectInit lk.salyk.kg [12:24:01]line 0 [12:24:01]written 0, free lines is 4095 [12:24:01]Write to MH i2c: 01 00 00 DA 01 DB [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 C0 0C AE [12:24:01]RasterBufferAndPrint [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]written 0, free lines is 3268 [12:24:01]MH_Cut [12:24:01]Write to MH i2c: D1 01 00 E1 01 01 B4 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 01 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 01 00 E1 01 00 B3 [12:24:01]Write to MH i2c: 01 00 00 E2 01 E3 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:02]*** Cut start [12:24:02]*** Partial cut [12:24:02]*** CUTSNS_PIN = 1 [12:24:02]*** CUTSNS_PIN = 0 [12:24:03]*** Brake cut motor [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]*** Stop cut motor [12:24:03]*** Cut end [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [12:24:03]process_action close_receipt done [12:24:03]requested_data is exist [12:24:03]produce_requested_data [12:24:03]requested_item fm.sn is exist - process it [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 11 00 00 [12:24:03]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 B3 [12:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:24:03]wFMCommunicate OK [12:24:03]requested_item fd.num is exist - process it [12:24:03]SAM_PROTO_GetFieldsCounters [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 13 00 00 [12:24:03]Write to MH i2c: E2 08 00 E4 01 80 13 00 00 00 00 00 00 61 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 E4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 88 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [12:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 88 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetFieldsCounters done [12:24:03]requested_item shift.num is exist - process it [12:24:03]requested_item shift.opened is exist - process it [12:24:03]req_shift_opened [12:24:03]FM_GetShiftState [12:24:03]SAM_PROTO_GetShiftState [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 13 01 00 [12:24:03]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 E9 [12:24:03]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetShiftState done [12:24:03]FM_GetShiftState done [12:24:03]req_shift_opened done [12:24:03]requested_item shift.open_date is exist - process it [12:24:03]req_shift_open_date [12:24:03]req_shift_open_date done [12:24:03]produce_requested_data done [12:24:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19592,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [12:24:03]process_action_free close_receipt [12:24:03]json_value_free [12:24:03]json_value_free done [12:24:03]process_json_proto returns [12:24:03]Send response to host [12:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19592,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [12:24:03]free response buf [12:24:03]execute_script done [12:24:03]execute_script returns [12:24:03]free content buf [12:24:03]Sock 10.Close socket [12:24:03]Sock 10.Thread stoped [12:24:04]Connected sock=11 [12:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 44 CB 1C 01 64 00 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 2A 00 00 00 F4 03 04 00 E0 BA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 88 4C 00 00 35 04 06 00 BC AE A9 A7 12 C1 2C 53 F5 13 CA 76 71 EA [12:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 AD B2 47 00 6D D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 88 4C 00 00 F4 03 04 00 7C 65 EE 66 B6 04 01 00 00 64 40 42 B3 A5 6D A6 CA [12:24:04]CommunicateWithHost err = 0 [12:24:04]CheckOFDResponse [12:24:04]1017 (14) - 77093643461234 [12:24:04]1041 (16) - 0000000000959362 [12:24:04]1040 (4) - 19592 [12:24:04]1012 (4) - 21.09.2024 06:19 [12:24:04]1206 (1) - 0 [12:24:04]OFD Sender: Remove packet 19592 [12:24:04]ProducePacketName [12:24:04]name=ofd_packets/00019592 [12:24:04]NVStorageDeleteData [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:36]recv_with_timeout no data received [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:26:55]recv_with_timeout no data received [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:16]recv_with_timeout no data received [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:07]recv_with_timeout no data received [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [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:47]recv_with_timeout no data received [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:28]accept exits with 8 [12:37:28]New connection [12:37:28]New thread 3067161956 created [12:37:28]Thread 3067018596 joined [12:37:28]Waiting for new connection... [12:37:28] Sock 8.Parse request [12:37:28]Sock 8.Check first char [12:37:28]Sock 8.First char is OK [12:37:28]request: POST /json_proto HTTP/1.0 [12:37:28]Method: POST [12:37:28]URL: /json_proto [12:37:28]Method is POST - this is cgi request [12:37:28]url: /json_proto [12:37:28]query_string will be loaded in cgi processing [12:37:28]execute_cgi json_proto POST (null) [12:37:28]execute_cgi path=json_proto method=POST [12:37:28]POST find Content-Length [12:37:28]Host: 172.17.42.73:8080 [12:37:28]Content-Length: 632 [12:37:28]Content-Type: application/json [12:37:28] [12:37:28]POST finish read [12:37:28]Found Content-Length = 632 [12:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117511", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:28]execute_script... [12:37: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)117511", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:28]POST & json_proto [12:37:28]process_json_proto [12:37:28]json parsed OK: [12:37:28]protocol is kg_v1.0 [12:37:28]action value=close_receipt [12:37:28]process_action close_receipt [12:37:28]cmd_close_receipt [12:37:28]MH_GetDate [12:37:28]Write to MH i2c: F0 00 00 E6 01 D6 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: F0 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: F0 09 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: F0 09 00 E6 01 00 09 BE EE 66 99 54 47 66 94 [12:37:28]GetLastDocTimeStamp 1726921440 [12:37:28]current date 1726922249 [12:37:28]FM_GetShiftState [12:37:28]SAM_PROTO_GetShiftState [12:37:28]wFMCommunicate request_size=4 [12:37:28]MH_SAM_APDU [12:37:28]CAPDU: 80 13 01 00 [12:37:28]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:28]Read from MH i2c: E2 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: E2 0E 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 EB [12:37:28]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [12:37:28]wFMCommunicate OK [12:37:28]SAM_PROTO_GetShiftState done [12:37:28]FM_GetShiftState done [12:37:28]opened in 1726877463 [12:37:28]opened+sec_in_day 1726963863 [12:37:28]quantity*price = 6000 [12:37:28]sum+1 = 6001 [12:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 43 21.09.2024 12:37 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19593 ФПД: 26955498353810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T123729&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19593&fm=26955498353810&tin=02508201610067®Number=0000000000146239&sum=6000 0 [12:37:29]StoreToDocumentArchive [12:37:29]shift 232 fd 19593 [12:37:29]save to /storage/0232/doc_00019593 [12:37:29]save last doc name /storage/0232/doc_00019593 to /storage/kkm_last_doc_name [12:37:29]save OK [12:37:29]Clear old archive folders... [12:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:37:29]tlvbuf is 007FB5A0 [12:37:29]SAM_PROTO_ClearQueue [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 09 00 00 [12:37:29]Write to MH i2c: E2 08 00 F4 01 80 09 00 00 00 00 00 00 67 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 03 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [12:37:29]RAPDU: 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_ClearQueue done [12:37:29]KKMCreateOFDPacket [12:37:29]OFDProtocolAddRootSTLVToBuf [12:37:29]FM_MakeSignedData [12:37:29]FM_MakeSignedData [12:37:29]SAM_PROTO_SignData [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 0D 01 02 [12:37:29]Write to MH i2c: E2 08 00 F5 01 80 0D 01 02 00 00 00 00 6F [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 03 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [12:37:29]RAPDU: 90 00 [12:37:29]wFMCommunicate OK [12:37:29]wFMCommunicate request_size=255 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 09 BE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:37:29]Write to MH i2c: E2 02 01 F6 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 09 BE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 CC [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 03 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [12:37:30]RAPDU: 90 00 [12:37:30]wFMCommunicate OK [12:37:30]wFMCommunicate request_size=30 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 0D 02 02 19 30 39 35 39 33 36 32 10 04 04 00 89 4C 00 00 35 04 06 00 18 84 10 E7 74 92 [12:37:30]Write to MH i2c: E2 21 00 F7 01 80 0D 02 02 19 00 30 39 35 39 33 36 32 10 04 04 00 89 4C 00 00 35 04 06 00 18 84 10 E7 74 92 00 00 DB [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 03 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [12:37:30]RAPDU: 90 00 [12:37:30]wFMCommunicate OK [12:37:30]wFMCommunicate request_size=4 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 0D 03 02 [12:37:30]Write to MH i2c: E2 08 00 F8 01 80 0D 03 02 00 00 00 00 74 [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0B 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0B 00 F8 01 00 11 B9 AB 20 4A 57 88 7D 90 00 B0 [12:37:30]RAPDU: 11 B9 AB 20 4A 57 88 7D 90 00 [12:37:30]wFMCommunicate OK [12:37:30]SAM_PROTO_SignData done [12:37:30]FM_MakeSignedData done [12:37:30]CreateOFDProtocolMessage [12:37:30]wFMCommunicate request_size=4 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 11 00 00 [12:37:30]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 17 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C9 [12:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [12:37:30]wFMCommunicate OK [12:37:30]CreateOFDProtocolMessage done [12:37:30]OFDSenderStorePacket 19593 [12:37:30]StoreOFDPacket docnum=19593 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]/dev/ttyS4 opened [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572569 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10973065+1715950745=1726923810 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 50 00 FF FF A6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 23 C4 EE 66 99 54 47 66 D4 [13:03:31]Current date/time: 21.09.2024 13:03 [13:03:31]FM_Init [13:03:31]wFMConnect [13:03:31]MH_SAM_On [13:03:31]Write to MH i2c: E0 00 00 08 00 E7 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_init finished! [13:03:31]*** atr: [13:03:31]*** 0F 3B D5 18 FF 81 91 FE [13:03:31]*** 1F C3 80 73 C8 21 10 0A [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]*** 00 00 00 00 00 00 00 00 [13:03:31]Read from MH i2c: E0 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E0 10 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:03:31]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:03:31]wFMCommunicate request_size=10 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:03:31]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 11 00 00 [13:03:31]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [13:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:03:31]wFMCommunicate OK [13:03:31]Detected FM SN is 0000000000959362 [13:03:31]Stored FM SN is 0000000000959362 [13:03:31]wFMCommunicate request_size=9 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 16 00 00 04 B7 57 01 00 [13:03:31]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 B7 57 01 00 00 00 A1 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]FM PIN OK [13:03:31]wFMCommunicate request_size=8 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 14 04 00 03 02 00 01 [13:03:31]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]wFMCommunicate request_size=13 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:03:31]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 11 00 00 [13:03:31]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DD [13:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:03:31]wFMCommunicate OK [13:03:31]DocumentArchiveInit [13:03:31]Start Httpd... [13:03:31]Httpd thread 3067534692 created [13:03:31]Write to MH i2c: 01 00 00 0F 00 0F [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:03:31]MH Int Process started [13:03:31]Allocated Socket 6 [13:03:31]Bind OK [13:03:31]Listen OK [13:03:31]httpd running on port 8080 [13:03:31]Waiting for new connection... [13:03:31]OFD Sender: Processing packet 19593 [packets to send 63, broken 62] [13:03:31]ProducePacketName [13:03:31]name=ofd_packets/00019593 [13:03:31]OFD Sender: To server: pG, [13:03:31]CommunicateWithHost lk.salyk.kg:30040 [13:03:31]ConnectInit lk.salyk.kg [13:03:31]Connected sock=9 [13:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 23 01 00 00 73 76 1B 01 90 8B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 09 BE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 89 4C 00 00 35 04 06 00 18 84 10 E7 74 92 11 B9 AB 20 4A 57 88 7D [13:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 03 6E 47 00 34 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 89 4C 00 00 F4 03 04 00 BB 6E EE 66 B6 04 01 00 00 16 A5 CD 18 D6 CE 6A E5 [13:03:32]CommunicateWithHost err = 0 [13:03:32]CheckOFDResponse [13:03:32]1017 (14) - 77093643461234 [13:03:32]1041 (16) - 0000000000959362 [13:03:32]1040 (4) - 19593 [13:03:32]1012 (4) - 21.09.2024 06:59 [13:03:32]1206 (1) - 0 [13:03:32]OFD Sender: Remove packet 19593 [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00019593 [13:03:32]NVStorageDeleteData [13:03:33]OFD Sender: No OFD packet to send [13:03:37]accept exits with 7 [13:03:37]New connection [13:03:37]New thread 3067247972 created [13:03:37]Waiting for new connection... [13:03:37] Sock 7.Parse request [13:03:37]Sock 7.Check first char [13:03:37]Sock 7.First char is OK [13:03:37]request: POST /json_proto HTTP/1.0 [13:03:37]Method: POST [13:03:37]URL: /json_proto [13:03:37]Method is POST - this is cgi request [13:03:37]url: /json_proto [13:03:37]query_string will be loaded in cgi processing [13:03:37]execute_cgi json_proto POST (null) [13:03:37]execute_cgi path=json_proto method=POST [13:03:37]POST find Content-Length [13:03:37]Host: 172.17.42.73:8080 [13:03:37]Content-Length: 215 [13:03:37]Content-Type: application/json [13:03:37] [13:03:37]POST finish read [13:03:37]Found Content-Length = 215 [13:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:37]execute_script... [13:03:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:37]POST & json_proto [13:03:37]process_json_proto [13:03:37]json parsed OK: [13:03:37]protocol is kg_v1.0 [13:03:37]action value=get_value [13:03:37]process_action get_value [13:03:37]cmd_get_value [13:03:37]process_action get_value done [13:03:37]requested_data is exist [13:03:37]produce_requested_data [13:03:37]requested_item kkm.sn is exist - process it [13:03:37]requested_item kkm.ver is exist - process it [13:03:37]requested_item fm.sn is exist - process it [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 11 00 00 [13:03:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DF [13:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:03:37]wFMCommunicate OK [13:03:37]requested_item fd.num is exist - process it [13:03:37]SAM_PROTO_GetFieldsCounters [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 13 00 00 [13:03:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:37]Read from MH i2c: E2 62 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 89 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [13:03:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 89 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_GetFieldsCounters done [13:03:37]requested_item shift.num is exist - process it [13:03:37]requested_item shift.opened is exist - process it [13:03:37]req_shift_opened [13:03:37]FM_GetShiftState [13:03:37]SAM_PROTO_GetShiftState [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 13 01 00 [13:03:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0E 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [13:03:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_GetShiftState done [13:03:37]FM_GetShiftState done [13:03:37]req_shift_opened done [13:03:37]requested_item shift.open_date is exist - process it [13:03:37]req_shift_open_date [13:03:37]req_shift_open_date done [13:03:37]produce_requested_data done [13:03:37]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19593,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:03:37]process_action_free get_value [13:03:37]json_value_free [13:03:37]json_value_free done [13:03:37]process_json_proto returns [13:03:37]Send response to host [13:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19593,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:03:37]free response buf [13:03:37]execute_script done [13:03:37]execute_script returns [13:03:37]free content buf [13:03:37]Sock 7.Close socket [13:03:37]Sock 7.Thread stoped [13:03:37]accept exits with 10 [13:03:37]New connection [13:03:37]New thread 3067104612 created [13:03:37]Thread 3067247972 joined [13:03:37]Waiting for new connection... [13:03:37] Sock 10.Parse request [13:03:37]Sock 10.Check first char [13:03:37]Sock 10.First char is OK [13:03:37]request: POST /json_proto HTTP/1.0 [13:03:37]Method: POST [13:03:37]URL: /json_proto [13:03:37]Method is POST - this is cgi request [13:03:37]url: /json_proto [13:03:37]query_string will be loaded in cgi processing [13:03:37]execute_cgi json_proto POST (null) [13:03:37]execute_cgi path=json_proto method=POST [13:03:37]POST find Content-Length [13:03:37]Host: 172.17.42.73:8080 [13:03:37]Content-Length: 331 [13:03:37]Content-Type: application/json [13:03:37] [13:03:37]POST finish read [13:03:37]Found Content-Length = 331 [13:03:37]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" ] } } [13:03:37]execute_script... [13:03:37]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" ] } } [13:03:37]POST & json_proto [13:03:37]process_json_proto [13:03:37]json parsed OK: [13:03:37]protocol is kg_v1.0 [13:03:37]action value=get_value [13:03:37]process_action get_value [13:03:37]cmd_get_value [13:03:37]process_action get_value done [13:03:37]requested_data is exist [13:03:37]produce_requested_data [13:03:37]requested_item fm.sale.total is exist - process it [13:03:37]SAM_PROTO_GetFMData [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 13 03 00 [13:03:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B9 4A 00 00 69 04 A0 00 6F 04 04 00 A1 4A 00 00 B1 04 04 00 CF 7E B4 67 70 04 04 00 40 D4 93 43 72 04 04 00 8F AA 20 24 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 9C 88 03 0B 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 2A ED EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 C4 [13:03:38]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B9 4A 00 00 69 04 A0 00 6F 04 04 00 A1 4A 00 00 B1 04 04 00 CF 7E B4 67 70 04 04 00 40 D4 93 43 72 04 04 00 8F AA 20 24 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 9C 88 03 0B 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 2A ED EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [13:03:38]wFMCommunicate OK [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 17 00 00 [13:03:38]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]OFD Sender: No OFD packet to send [13:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 73 [13:03:38]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [13:03:38]wFMCommunicate OK [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 17 00 00 [13:03:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [13:03:38]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [13:03:38]wFMCommunicate OK [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 17 00 00 [13:03:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [13:03:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [13:03:38]wFMCommunicate OK [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 17 00 00 [13:03:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 DE 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [13:03:39]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetFMData done [13:03:39]requested_item fm.sale_refund.total is exist - process it [13:03:39]requested_item fm.buy.total is exist - process it [13:03:39]requested_item shift.sale.total is exist - process it [13:03:39]SAM_PROTO_GetShiftData [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 02 00 [13:03:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 FD 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 2A 44 24 70 04 03 00 7C 6E 1F 72 04 03 00 AE D5 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1B DA 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 27 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 40 [13:03:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 2A 44 24 70 04 03 00 7C 6E 1F 72 04 03 00 AE D5 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1B DA 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 27 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [13:03:39]wFMCommunicate OK [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 17 00 00 [13:03:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 FD 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 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 BB [13:03:39]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 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 17 00 00 [13:03:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 FD 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 51 [13:03:40]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 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 17 00 00 [13:03:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 FD 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 FD 00 1B 00 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 0D [13:03:40]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 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 17 00 00 [13:03:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 CB 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 CB 00 1C 00 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 85 [13:03:40]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 [13:03:41]wFMCommunicate OK [13:03:41]SAM_PROTO_GetShiftData done [13:03:41]requested_item shift.sale.total_cash is exist - process it [13:03:41]requested_item shift.sale_refund.total is exist - process it [13:03:41]requested_item shift.sale_refund.total_cash is exist - process it [13:03:41]requested_item shift.buy.total is exist - process it [13:03:41]requested_item shift.buy.total_cash is exist - process it [13:03:41]produce_requested_data done [13:03:41]produce_requested_data return {"fm.sale.total":17398821.91,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":23767.46,"shift.sale.total_cash":20599.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} [13:03:41]process_action_free get_value [13:03:41]json_value_free [13:03:41]json_value_free done [13:03:41]process_json_proto returns [13:03:41]Send response to host [13:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17398821.91,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":23767.46,"shift.sale.total_cash":20599.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}}} [13:03:41]free response buf [13:03:41]execute_script done [13:03:41]execute_script returns [13:03:41]free content buf [13:03:41]Sock 10.Close socket [13:03:41]Sock 10.Thread stoped [13:03:42]accept exits with 7 [13:03:42]New connection [13:03:42]New thread 3067247972 created [13:03:42]Thread 3067104612 joined [13:03:42]Waiting for new connection... [13:03:42] Sock 7.Parse request [13:03:42]Sock 7.Check first char [13:03:42]Sock 7.First char is OK [13:03:42]request: POST /json_proto HTTP/1.0 [13:03:42]Method: POST [13:03:42]URL: /json_proto [13:03:42]Method is POST - this is cgi request [13:03:42]url: /json_proto [13:03:42]query_string will be loaded in cgi processing [13:03:42]execute_cgi json_proto POST (null) [13:03:42]execute_cgi path=json_proto method=POST [13:03:42]POST find Content-Length [13:03:42]Host: 172.17.42.73:8080 [13:03:42]Content-Length: 1083 [13:03:42]Content-Type: application/json [13:03:42] [13:03:42]POST finish read [13:03:42]Found Content-Length = 1083 [13:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117512", "tax_sys" : 0, "items" : [ { "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:42]execute_script... [13:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117512", "tax_sys" : 0, "items" : [ { "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:42]POST & json_proto [13:03:42]process_json_proto [13:03:42]json parsed OK: [13:03:42]protocol is kg_v1.0 [13:03:42]action value=close_receipt [13:03:42]process_action close_receipt [13:03:42]cmd_close_receipt [13:03:42]MH_GetDate [13:03:42]Write to MH i2c: F0 00 00 1D 00 0C [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 09 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 09 00 1D 00 00 2E C4 EE 66 99 54 47 66 F5 [13:03:42]GetLastDocTimeStamp 1726922249 [13:03:42]current date 1726923822 [13:03:42]FM_GetShiftState [13:03:42]SAM_PROTO_GetShiftState [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 13 01 00 [13:03:42]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0E 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 21 [13:03:42]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:03:42]wFMCommunicate OK [13:03:42]SAM_PROTO_GetShiftState done [13:03:42]FM_GetShiftState done [13:03:42]opened in 1726877463 [13:03:42]opened+sec_in_day 1726963863 [13:03:42]quantity*price = 11000 [13:03:42]sum+1 = 11001 [13:03:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007401805 Арахис ДЖИНН соль 130г 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 0.00 Безнал.: 210.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 44 21.09.2024 13:03 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19594 ФПД: 19151775784252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130343&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19594&fm=19151775784252&tin=02508201610067®Number=0000000000146239&sum=21000 0 [13:03:44]StoreToDocumentArchive [13:03:44]shift 232 fd 19594 [13:03:44]save to /storage/0232/doc_00019594 [13:03:44]save last doc name /storage/0232/doc_00019594 to /storage/kkm_last_doc_name [13:03:44]save OK [13:03:44]Clear old archive folders... [13:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=406 [13:03:44]tlvbuf is 01C13DD0 [13:03:44]SAM_PROTO_ClearQueue [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 09 00 00 [13:03:44]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:03:44]RAPDU: 90 00 [13:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_ClearQueue done [13:03:44]KKMCreateOFDPacket [13:03:44]OFDProtocolAddRootSTLVToBuf [13:03:44]FM_MakeSignedData [13:03:44]FM_MakeSignedData [13:03:44]SAM_PROTO_SignData [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 0D 01 02 [13:03:44]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:03:44]RAPDU: 90 00 [13:03:44]wFMCommunicate OK [13:03:44]wFMCommunicate request_size=255 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 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 FC 03 06 00 08 [13:03:44]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 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 FC 03 06 00 08 00 00 48 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:03:44]RAPDU: 90 00 [13:03:44]wFMCommunicate OK [13:03:44]wFMCommunicate request_size=165 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 0D 02 02 A0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2F C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8A 4C 00 00 35 04 06 00 11 6B 1E CA DD 3C [13:03:44]Write to MH i2c: E2 A8 00 2E 00 80 0D 02 02 A0 00 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2F C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8A 4C 00 00 35 04 06 00 11 6B 1E CA DD 3C 00 00 F8 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:03:44]RAPDU: 90 00 [13:03:44]wFMCommunicate OK [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 0D 03 02 [13:03:44]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0B 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0B 00 2F 00 00 C2 22 5E E9 22 C4 DE 1E 90 00 B8 [13:03:44]RAPDU: C2 22 5E E9 22 C4 DE 1E 90 00 [13:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_SignData done [13:03:44]FM_MakeSignedData done [13:03:44]CreateOFDProtocolMessage [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 11 00 00 [13:03:44]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:44]Read from MH i2c: E2 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 17 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [13:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:03:45]wFMCommunicate OK [13:03:45]CreateOFDProtocolMessage done [13:03:45]OFDSenderStorePacket 19594 [13:03:45]StoreOFDPacket docnum=19594 [13:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 AA 01 00 00 FE 12 A2 01 17 34 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 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 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2F C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8A 4C 00 00 35 04 06 00 11 6B 1E CA DD 3C C2 22 5E E9 22 C4 DE 1E [13:03:45]CheckFolder [13:03:45]dirname=/storage/ofd_packets [13:03:45]CheckFolder done [13:03:45]ProducePacketName [13:03:45]name=ofd_packets/00019594 [13:03:45]NVStorageSaveData ofd_packets/00019594 [13:03:45]File name is /storage/ofd_packets/00019594 [13:03:45]Write 456 bytes [13:03:45]NVStorageSaveData done [13:03:45]OFDSenderStorePacket done [13:03:45]KKMCreateOFDPacket done [13:03:45]NVStorageSaveData kkm_last_timestamp [13:03:45]File name is /storage/kkm_last_timestamp [13:03:45]Write 4 bytes [13:03:45]NVStorageSaveData done [13:03:45]ExternCall_PrintAddStr [13:03:45]wPrintStart [13:03:45]Write to MH i2c: 01 00 00 31 00 31 [13:03:45]Write i2c OK [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 07 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:03:45]RasterBufferAndPrint [13:03:45]line Счет N : (3)117512 [13:03:45]line ИНН: 02508201610067 [13:03:45]line Контрольно-Кассовый Чек [13:03:45]line ПРОДАЖА [13:03:45]line Товар: 4870112002782 [13:03:45]line Печенье Ulker Biskrem какао-крем 180г [13:03:45]line 1.000 * 110.00 [13:03:45]line = 110.00 [13:03:45]line НДС 12% НСП 1% [13:03:45]line > о реализуемом товаре [13:03:45]line Товар: 4630007401805 [13:03:45]line Арахис ДЖИНН соль 130г [13:03:45]line 1.000 * 100.00 [13:03:45]line = 100.00 [13:03:45]line НДС 12% НСП 1% [13:03:45]line > о реализуемом товаре [13:03:45]line ИТОГО: 210.00 [13:03:45]line НСП 1% : 1.85 [13:03:45]line НДС 12% : 22.30 [13:03:45]line Наличными: 0.00 [13:03:45]line Безнал.: 210.00 [13:03:45]line Место: АЗС № 93 "Партнер Нефть" [13:03:45]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:03:45]line СНО: Общий режим [13:03:45]line Чек 44 21.09.2024 13:03 [13:03:45]line Смена: 232 ФФД: 1.0 [13:03:45]line ЗНМ: 0300000060 [13:03:45]line РНМ: 0000000000146239 [13:03:45]line Версия ККМ: v1.0 [13:03:45]line Платежная система: Mbank [13:03:45]line ФМ: 0000000000959362 [13:03:45]line ФД: 19594 [13:03:45]line ФПД: 19151775784252 [13:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130343&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19594&fm=19151775784252&tin=02508201610067®Number=0000000000146239&sum=21000 [13:03:45]line 0 [13:03:45]written 0, free lines is 4095 [13:03:45]OFD Sender: Processing packet 19594 [packets to send 63, broken 62] [13:03:45]ProducePacketName [13:03:45]name=ofd_packets/00019594 [13:03:45]OFD Sender: To server: pG, [13:03:45]CommunicateWithHost lk.salyk.kg:30040 [13:03:45]ConnectInit lk.salyk.kg [13:03:45]Write to MH i2c: 01 00 00 61 00 61 [13:03:45]Write i2c OK [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 07 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 2A 0C 9E [13:03:45]RasterBufferAndPrint [13:03:45]line [13:03:45]line [13:03:45]line [13:03:45]line [13:03:45]line [13:03:45]written 0, free lines is 3127 [13:03:45]MH_Cut [13:03:45]Write to MH i2c: D1 01 00 68 00 01 3A [13:03:45]Write i2c OK [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: D1 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: D1 01 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: D1 01 00 68 00 00 39 [13:03:45]Write to MH i2c: 01 00 00 69 00 69 [13:03:45]Write i2c OK [13:03:45]MH_I2C_Read... [13:03:46]Connected sock=11 [13:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 AA 01 00 00 FE 12 A2 01 17 34 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 *** Cut start [13:03:46]D0 9F D0 B5 D1 87 D0 B5 D0 *** Partial cut [13:03:46]BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA *** CUTSNS_PIN = 1 [13:03:46]D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 *** CUTSNS_PIN = 0 [13:03:46]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 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 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 *** Brake cut motor [13:03:46]00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2F C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8A 4C 00 00 35 04 06 00 11 6B 1E CA DD 3C C2 22 5E E9 22 C4 DE 1E [13:03:47]Read from MH i2c: 01 [13:03:47]MH_I2C_Read... [13:03:47]*** Stop cut motor [13:03:47]*** Cut end [13:03:47]Read from MH i2c: 01 07 00 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [13:03:47]process_action close_receipt done [13:03:47]requested_data is exist [13:03:47]produce_requested_data [13:03:47]requested_item fm.sn is exist - process it [13:03:47]wFMCommunicate request_size=4 [13:03:47]MH_SAM_APDU [13:03:47]CAPDU: 80 11 00 00 [13:03:47]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [13:03:47]Write i2c OK [13:03:47]MH_I2C_Read... [13:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:47]Read from MH i2c: E2 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: E2 17 00 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 39 [13:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:03:47]wFMCommunicate OK [13:03:47]requested_item fd.num is exist - process it [13:03:47]SAM_PROTO_GetFieldsCounters [13:03:47]wFMCommunicate request_size=4 [13:03:47]MH_SAM_APDU [13:03:47]CAPDU: 80 13 00 00 [13:03:47]Write to MH i2c: E2 08 00 6B 00 80 13 00 00 00 00 00 00 E7 [13:03:47]Write i2c OK [13:03:47]MH_I2C_Read... [13:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 1A EE 47 00 D8 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 39 35 39 33 36 32 10 04 04 00 8A 4C 00 00 F4 03 04 00 CA 6E EE 66 B6 04 01 00 00 B4 9A EB 7A E6 B9 D5 AB [13:03:47]CommunicateWithHost err = 0 [13:03:47]CheckOFDResponse [13:03:47]1017 (14) - 77093643461234 [13:03:47]1041 (16) - 0000000000959362 [13:03:47]Read from MH i2c: 1040 (4) - 19594 [13:03:47]E2 1012 (4) - 21.09.2024 06:59 [13:03:47] [13:03:47]1206 (1) - 0 [13:03:47]MH_I2C_Read... [13:03:47]OFD Sender: Remove packet 19594 [13:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:47]ProducePacketName [13:03:47]Read from MH i2c: name=ofd_packets/00019594 [13:03:47]E2 NVStorageDeleteData [13:03:47]62 00 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: E2 62 00 6B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [13:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:47]wFMCommunicate OK [13:03:47]SAM_PROTO_GetFieldsCounters done [13:03:47]requested_item shift.num is exist - process it [13:03:47]requested_item shift.opened is exist - process it [13:03:47]req_shift_opened [13:03:47]FM_GetShiftState [13:03:47]SAM_PROTO_GetShiftState [13:03:47]wFMCommunicate request_size=4 [13:03:47]MH_SAM_APDU [13:03:47]CAPDU: 80 13 01 00 [13:03:47]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [13:03:47]Write i2c OK [13:03:47]MH_I2C_Read... [13:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:47]Read from MH i2c: E2 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: E2 0E 00 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6F [13:03:47]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:03:47]wFMCommunicate OK [13:03:47]SAM_PROTO_GetShiftState done [13:03:47]FM_GetShiftState done [13:03:47]req_shift_opened done [13:03:47]requested_item shift.open_date is exist - process it [13:03:47]req_shift_open_date [13:03:47]req_shift_open_date done [13:03:47]produce_requested_data done [13:03:47]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19594,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:03:47]process_action_free close_receipt [13:03:47]json_value_free [13:03:47]json_value_free done [13:03:47]process_json_proto returns [13:03:47]Send response to host [13:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19594,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:03:47]free response buf [13:03:47]execute_script done [13:03:47]execute_script returns [13:03:47]free content buf [13:03:47]Sock 7.Close socket [13:03:47]Sock 7.Thread stoped [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:03:58]recv_with_timeout no data received [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:10]accept exits with 9 [13:04:10]New connection [13:04:10]New thread 3067104612 created [13:04:10]Thread 3067247972 joined [13:04:10]Waiting for new connection... [13:04:10] Sock 9.Parse request [13:04:10]Sock 9.Check first char [13:04:10]Sock 9.First char is OK [13:04:10]request: POST /json_proto HTTP/1.0 [13:04:10]Method: POST [13:04:10]URL: /json_proto [13:04:10]Method is POST - this is cgi request [13:04:10]url: /json_proto [13:04:10]query_string will be loaded in cgi processing [13:04:10]execute_cgi json_proto POST (null) [13:04:10]execute_cgi path=json_proto method=POST [13:04:10]POST find Content-Length [13:04:10]Host: 172.17.42.73:8080 [13:04:10]Content-Length: 679 [13:04:10]Content-Type: application/json [13:04:10] [13:04:10]POST finish read [13:04:10]Found Content-Length = 679 [13:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:10]execute_script... [13:04:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:10]POST & json_proto [13:04:10]process_json_proto [13:04:10]json parsed OK: [13:04:10]protocol is kg_v1.0 [13:04:10]action value=close_receipt [13:04:10]process_action close_receipt [13:04:10]cmd_close_receipt [13:04:10]MH_GetDate [13:04:10]Write to MH i2c: F0 00 00 6D 00 5C [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 09 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 09 00 6D 00 00 4A C4 EE 66 99 54 47 66 61 [13:04:10]GetLastDocTimeStamp 1726923823 [13:04:10]current date 1726923850 [13:04:10]FM_GetShiftState [13:04:10]SAM_PROTO_GetShiftState [13:04:10]wFMCommunicate request_size=4 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 13 01 00 [13:04:10]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0E 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 71 [13:04:10]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:04:10]wFMCommunicate OK [13:04:10]SAM_PROTO_GetShiftState done [13:04:10]FM_GetShiftState done [13:04:10]opened in 1726877463 [13:04:10]opened+sec_in_day 1726963863 [13:04:10]quantity*price = 40068 [13:04:10]sum+1 = 40069 [13:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 45 21.09.2024 13:04 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19595 ФПД: 20755509612301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130410&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19595&fm=20755509612301&tin=02508201610067®Number=0000000000146239&sum=40000 [13:04:11]StoreToDocumentArchive [13:04:11]shift 232 fd 19595 [13:04:11]save to /storage/0232/doc_00019595 [13:04:11]save last doc name /storage/0232/doc_00019595 to /storage/kkm_last_doc_name [13:04:11]save OK [13:04:11]Clear old archive folders... [13:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:11]tlvbuf is 01C15AE0 [13:04:11]SAM_PROTO_ClearQueue [13:04:11]wFMCommunicate request_size=4 [13:04:11]MH_SAM_APDU [13:04:11]CAPDU: 80 09 00 00 [13:04:11]Write to MH i2c: E2 08 00 7B 00 80 09 00 00 00 00 00 00 ED [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:11]Read from MH i2c: E2 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 03 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [13:04:11]RAPDU: 90 00 [13:04:11]wFMCommunicate OK [13:04:11]SAM_PROTO_ClearQueue done [13:04:11]KKMCreateOFDPacket [13:04:11]OFDProtocolAddRootSTLVToBuf [13:04:11]FM_MakeSignedData [13:04:11]FM_MakeSignedData [13:04:11]SAM_PROTO_SignData [13:04:11]wFMCommunicate request_size=4 [13:04:11]MH_SAM_APDU [13:04:11]CAPDU: 80 0D 01 02 [13:04:11]Write to MH i2c: E2 08 00 7C 00 80 0D 01 02 00 00 00 00 F5 [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:11]Read from MH i2c: E2 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 03 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [13:04:11]RAPDU: 90 00 [13:04:11]wFMCommunicate OK [13:04:11]wFMCommunicate request_size=255 [13:04:11]MH_SAM_APDU [13:04:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4A C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8B 4C 00 00 35 04 06 00 12 [13:04:11]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4A C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8B 4C 00 00 35 04 06 00 12 00 00 95 [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=10 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 02 02 05 E0 84 C7 0F 0D [13:04:12]Write to MH i2c: E2 0D 00 7E 00 80 0D 02 02 05 00 E0 84 C7 0F 0D 00 00 49 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 03 02 [13:04:12]Write to MH i2c: E2 08 00 7F 00 80 0D 03 02 00 00 00 00 FA [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 7F 00 00 7D FA 72 AD 2A 40 7F 98 90 00 12 [13:04:12]RAPDU: 7D FA 72 AD 2A 40 7F 98 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_SignData done [13:04:12]FM_MakeSignedData done [13:04:12]CreateOFDProtocolMessage [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 11 00 00 [13:04:12]Write to MH i2c: E2 08 00 80 00 80 11 00 00 00 00 00 00 FA [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 80 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 4F [13:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:04:12]wFMCommunicate OK [13:04:12]CreateOFDProtocolMessage done [13:04:12]OFDSenderStorePacket 19595 [13:04:12]StoreOFDPacket docnum=19595 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4A C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8B 4C 00 00 35 04 06 00 12 E0 84 C7 0F 0D 7D FA 72 AD 2A 40 7F 98 [13:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 C6 40 47 00 57 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8B 4C 00 00 F4 03 04 00 F8 6E EE 66 B6 04 01 00 00 DE B6 6E 9F FC 4B 87 1C [13:04:33]CommunicateWithHost err = 0 [13:04:33]CheckOFDResponse [13:04:33]1017 (14) - 77093643461234 [13:04:33]1041 (16) - 0000000000959362 [13:04:33]1040 (4) - 19595 [13:04:33]1012 (4) - 21.09.2024 07:00 [13:04:33]1206 (1) - 0 [13:04:33]OFD Sender: Remove packet 19595 [13:04:33]ProducePacketName [13:04:33]name=ofd_packets/00019595 [13:04:33]NVStorageDeleteData [13:04:33]OFD Sender: No OFD packet to send [13:04:35]recv_with_timeout no data received [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:00]recv_with_timeout no data received [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:27]recv_with_timeout no data received [13:05:28]OFD Sender: No OFD packet to send [13:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 00 91 07 01 89 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4A C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8B 4C 00 00 35 04 06 00 12 E0 84 C7 0F 0D 7D FA 72 AD 2A 40 7F 98 [13:04:12]CheckFolder [13:04:12]dirname=/storage/ofd_packets [13:04:12]CheckFolder done [13:04:12]ProducePacketName [13:04:12]name=ofd_packets/00019595 [13:04:12]NVStorageSaveData ofd_packets/00019595 [13:04:12]File name is /storage/ofd_packets/00019595 [13:04:12]Write 301 bytes [13:04:12]NVStorageSaveData done [13:04:12]OFDSenderStorePacket done [13:04:12]KKMCreateOFDPacket done [13:04:12]NVStorageSaveData kkm_last_timestamp [13:04:12]File name is /storage/kkm_last_timestamp [13:04:12]Write 4 bytes [13:04:12]NVStorageSaveData done [13:04:12]ExternCall_PrintAddStr [13:04:12]wPrintStart [13:04:12]Write to MH i2c: 01 00 00 81 00 81 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [13:04:12]RasterBufferAndPrint [13:04:12]line Счет N : (1)23699700 [13:04:12]line ИНН: 02508201610067 [13:04:12]line Контрольно-Кассовый Чек [13:04:12]line ПРОДАЖА [13:04:12]line ТРК (МРК, ГНК) : 41 [13:04:12]line Товар: 2710124500 [13:04:12]line Аи-95-К-5 [13:04:12]line 5.400 * 74.20 [13:04:12]line = 400.68 [13:04:12]line НДС 12% НСП 1% [13:04:12]line > о реализуемом товаре [13:04:12]line ОКРУГЛЕНИЕ: -0.68 [13:04:12]line ИТОГО: 400.00 [13:04:12]line Внесено: 400.00 [13:04:12]line СДАЧА: 0.00 [13:04:12]line НСП 1% : 3.55 [13:04:12]line НДС 12% : 42.55 [13:04:12]line Наличными: 400.00 [13:04:12]line Безнал.: 0.00 [13:04:12]line Место: АЗС № 93 "Партнер Нефть" [13:04:12]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:04:12]line СНО: Общий режим [13:04:12]line Чек 45 21.09.2024 13:04 [13:04:12]line Смена: 232 ФФД: 1.0 [13:04:12]line ЗНМ: 0300000060 [13:04:12]line РНМ: 0000000000146239 [13:04:12]line Версия ККМ: v1.0 [13:04:12]line ФМ: 0000000000959362 [13:04:12]line ФД: 19595 [13:04:12]line ФПД: 20755509612301 [13:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130410&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19595&fm=20755509612301&tin=02508201610067®Number=0000000000146239&sum=40000 [13:04:12]OFD Sender: Processing packet 19595 [packets to send 63, broken 62] [13:04:12]ProducePacketName [13:04:12]name=ofd_packets/00019595 [13:04:12]OFD Sender: To server: pG, [13:04:12]CommunicateWithHost lk.salyk.kg:30040 [13:04:12]ConnectInit lk.salyk.kg [13:04:12]written 0, free lines is 4095 [13:04:12]Write to MH i2c: 01 00 00 AC 00 AC [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 95 0C 54 [13:04:12]RasterBufferAndPrint [13:04:12]line [13:04:12]line [13:04:12]line [13:04:12]line [13:04:12]line [13:04:12]written 0, free lines is 3238 [13:04:12]MH_Cut [13:04:12]Write to MH i2c: D1 01 00 B3 00 01 85 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: D1 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: D1 01 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: D1 01 00 B3 00 00 84 [13:04:12]Write to MH i2c: 01 00 00 B4 00 B4 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:13]*** Cut start [13:04:13]*** Partial cut [13:04:13]*** CUTSNS_PIN = 1 [13:04:13]*** CUTSNS_PIN = 0 [13:04:13]*** Brake cut motor [13:04:14]Read from MH i2c: 01 [13:04:14]MH_I2C_Read... [13:04:14]*** Stop cut motor [13:04:14]*** Cut end [13:04:14]Read from MH i2c: 01 07 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 FF 0F C9 [13:04:14]process_action close_receipt done [13:04:14]requested_data is exist [13:04:14]produce_requested_data [13:04:14]requested_item fm.sn is exist - process it [13:04:14]wFMCommunicate request_size=4 [13:04:14]MH_SAM_APDU [13:04:14]CAPDU: 80 11 00 00 [13:04:14]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [13:04:14]Write i2c OK [13:04:14]MH_I2C_Read... [13:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:14]Read from MH i2c: E2 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 17 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 84 [13:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:04:14]wFMCommunicate OK [13:04:14]requested_item fd.num is exist - process it [13:04:14]SAM_PROTO_GetFieldsCounters [13:04:14]wFMCommunicate request_size=4 [13:04:14]MH_SAM_APDU [13:04:14]CAPDU: 80 13 00 00 [13:04:14]Write to MH i2c: E2 08 00 B6 00 80 13 00 00 00 00 00 00 32 [13:04:14]Write i2c OK [13:04:14]MH_I2C_Read... [13:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:14]Read from MH i2c: E2 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 62 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 62 00 B6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:04:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:14]wFMCommunicate OK [13:04:14]SAM_PROTO_GetFieldsCounters done [13:04:14]requested_item shift.num is exist - process it [13:04:14]requested_item shift.opened is exist - process it [13:04:14]req_shift_opened [13:04:14]FM_GetShiftState [13:04:14]SAM_PROTO_GetShiftState [13:04:14]wFMCommunicate request_size=4 [13:04:14]MH_SAM_APDU [13:04:14]CAPDU: 80 13 01 00 [13:04:14]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [13:04:14]Write i2c OK [13:04:14]MH_I2C_Read... [13:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:14]Read from MH i2c: E2 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 0E 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BA [13:04:14]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:04:14]wFMCommunicate OK [13:04:14]SAM_PROTO_GetShiftState done [13:04:14]FM_GetShiftState done [13:04:14]req_shift_opened done [13:04:14]requested_item shift.open_date is exist - process it [13:04:14]req_shift_open_date [13:04:14]req_shift_open_date done [13:04:14]produce_requested_data done [13:04:14]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19595,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:04:14]process_action_free close_receipt [13:04:14]json_value_free [13:04:14]json_value_free done [13:04:14]process_json_proto returns [13:04:14]Send response to host [13:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19595,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:04:14]free response buf [13:04:14]execute_script done [13:04:14]execute_script returns [13:04:14]free content buf [13:04:14]Sock 9.Close socket [13:04:14]Sock 9.Thread stoped [13:04:17]recv_with_timeout no data received [13:04:17]ConnectInit Can't take IP for lk.salyk.kg [13:04:17]CommunicateWithHost connect error [13:04:17]CommunicateWithHost err = -1 [13:04:17]OFD Sender: Server communicate error [13:04:22]OFD Sender: Processing packet 19595 [packets to send 63, broken 62] [13:04:22]ProducePacketName [13:04:22]name=ofd_packets/00019595 [13:04:22]OFD Sender: To server: pG, [13:04:22]CommunicateWithHost lk.salyk.kg:30040 [13:04:22]ConnectInit lk.salyk.kg [13:04:27]ConnectInit Can't take IP for lk.salyk.kg [13:04:27]CommunicateWithHost connect error [13:04:27]CommunicateWithHost err = -1 [13:04:27]OFD Sender: Server communicate error [13:04:32]OFD Sender: Processing packet 19595 [packets to send 63, broken 62] [13:04:32]ProducePacketName [13:04:32]name=ofd_packets/00019595 [13:04:32]OFD Sender: To server: pG, [13:04:32]CommunicateWithHost lk.salyk.kg:30040 [13:04:32]ConnectInit lk.salyk.kg [13:04:32]Connected sock=9 [13:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 00 91 07 01 89 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF [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:04]accept exits with 10 [13:06:04]New connection [13:06:04]New thread 3067247972 created [13:06:04]Thread 3067104612 joined [13:06:04]Waiting for new connection... [13:06:04] Sock 10.Parse request [13:06:04]Sock 10.Check first char [13:06:04]Sock 10.First char is OK [13:06:04]request: POST /json_proto HTTP/1.0 [13:06:04]Method: POST [13:06:04]URL: /json_proto [13:06:04]Method is POST - this is cgi request [13:06:04]url: /json_proto [13:06:04]query_string will be loaded in cgi processing [13:06:04]execute_cgi json_proto POST (null) [13:06:04]execute_cgi path=json_proto method=POST [13:06:04]POST find Content-Length [13:06:04]Host: 172.17.42.73:8080 [13:06:04]Content-Length: 776 [13:06:04]Content-Type: application/json [13:06:04] [13:06:04]POST finish read [13:06:04]Found Content-Length = 776 [13:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 66.930, "sum" : 5100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5100.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:04]execute_script... [13:06:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 66.930, "sum" : 5100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5100.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:04]POST & json_proto [13:06:04]process_json_proto [13:06:04]json parsed OK: [13:06:04]protocol is kg_v1.0 [13:06:04]action value=close_receipt [13:06:04]process_action close_receipt [13:06:04]cmd_close_receipt [13:06:04]MH_GetDate [13:06:04]Write to MH i2c: F0 00 00 B8 00 A7 [13:06:04]Write i2c OK [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: F0 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: F0 09 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: F0 09 00 B8 00 00 BC C4 EE 66 99 54 47 66 1E [13:06:04]GetLastDocTimeStamp 1726923850 [13:06:04]current date 1726923964 [13:06:04]FM_GetShiftState [13:06:04]SAM_PROTO_GetShiftState [13:06:04]wFMCommunicate request_size=4 [13:06:04]MH_SAM_APDU [13:06:04]CAPDU: 80 13 01 00 [13:06:04]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [13:06:04]Write i2c OK [13:06:04]MH_I2C_Read... [13:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:04]Read from MH i2c: E2 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 0E 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BC [13:06:04]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:06:04]wFMCommunicate OK [13:06:04]SAM_PROTO_GetShiftState done [13:06:04]FM_GetShiftState done [13:06:04]opened in 1726877463 [13:06:04]opened+sec_in_day 1726963863 [13:06:04]quantity*price = 510006 [13:06:04]sum+1 = 510008 [13:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5100.07 НСП 1% : 45.13 НДС 12% : 541.60 Наличными: 0.00 Безнал.: 5100.07 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 46 21.09.2024 13:06 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19596 ФПД: 251402663658347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130604&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19596&fm=251402663658347&tin=02508201610067®Number=0000000000146239&sum=510007 [13:06:05]StoreToDocumentArchive [13:06:05]shift 232 fd 19596 [13:06:05]save to /storage/0232/doc_00019596 [13:06:05]save last doc name /storage/0232/doc_00019596 to /storage/kkm_last_doc_name [13:06:05]save OK [13:06:05]Clear old archive folders... [13:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:06:05]tlvbuf is 01C87DB0 [13:06:05]SAM_PROTO_ClearQueue [13:06:05]wFMCommunicate request_size=4 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 09 00 00 [13:06:05]Write to MH i2c: E2 08 00 C6 00 80 09 00 00 00 00 00 00 38 [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [13:06:05]RAPDU: 90 00 [13:06:05]wFMCommunicate OK [13:06:05]SAM_PROTO_ClearQueue done [13:06:05]KKMCreateOFDPacket [13:06:05]OFDProtocolAddRootSTLVToBuf [13:06:05]FM_MakeSignedData [13:06:05]FM_MakeSignedData [13:06:05]SAM_PROTO_SignData [13:06:05]wFMCommunicate request_size=4 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 0D 01 02 [13:06:05]Write to MH i2c: E2 08 00 C7 00 80 0D 01 02 00 00 00 00 40 [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [13:06:05]RAPDU: 90 00 [13:06:05]wFMCommunicate OK [13:06:05]wFMCommunicate request_size=255 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 C8 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BC C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8C 4C 00 00 35 04 06 00 [13:06:05]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 C8 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BC C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8C 4C 00 00 35 04 06 00 00 00 C9 [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [13:06:05]RAPDU: 90 00 [13:06:05]wFMCommunicate OK [13:06:05]wFMCommunicate request_size=11 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 0D 02 02 06 E4 A6 3E 76 83 6B [13:06:05]Write to MH i2c: E2 0E 00 C9 00 80 0D 02 02 06 00 E4 A6 3E 76 83 6B 00 00 7B [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [13:06:05]RAPDU: 90 00 [13:06:05]wFMCommunicate OK [13:06:05]wFMCommunicate request_size=4 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 0D 03 02 [13:06:05]Write to MH i2c: E2 08 00 CA 00 80 0D 03 02 00 00 00 00 45 [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 0B 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 0B 00 CA 00 00 92 97 64 D7 F3 95 67 2D 90 00 C6 [13:06:05]RAPDU: 92 97 64 D7 F3 95 67 2D 90 00 [13:06:05]wFMCommunicate OK [13:06:05]SAM_PROTO_SignData done [13:06:05]FM_MakeSignedData done [13:06:05]CreateOFDProtocolMessage [13:06:05]wFMCommunicate request_size=4 [13:06:05]MH_SAM_APDU [13:06:05]CAPDU: 80 11 00 00 [13:06:05]Write to MH i2c: E2 08 00 CB 00 80 11 00 00 00 00 00 00 45 [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:05]Read from MH i2c: E2 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 17 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: E2 17 00 CB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9A [13:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:06:05]wFMCommunicate OK [13:06:05]CreateOFDProtocolMessage done [13:06:05]OFDSenderStorePacket 19596 [13:06:05]StoreOFDPacket docnum=19596 [13:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 99 44 08 01 5F C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 C8 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BC C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8C 4C 00 00 35 04 06 00 E4 A6 3E 76 83 6B 92 97 64 D7 F3 95 67 2D [13:06:05]CheckFolder [13:06:05]dirname=/storage/ofd_packets [13:06:05]CheckFolder done [13:06:05]ProducePacketName [13:06:05]name=ofd_packets/00019596 [13:06:05]NVStorageSaveData ofd_packets/00019596 [13:06:05]File name is /storage/ofd_packets/00019596 [13:06:05]Write 302 bytes [13:06:05]NVStorageSaveData done [13:06:05]OFDSenderStorePacket done [13:06:05]KKMCreateOFDPacket done [13:06:05]NVStorageSaveData kkm_last_timestamp [13:06:05]File name is /storage/kkm_last_timestamp [13:06:05]Write 4 bytes [13:06:05]NVStorageSaveData done [13:06:05]ExternCall_PrintAddStr [13:06:05]wPrintStart [13:06:05]Write to MH i2c: 01 00 00 CC 00 CC [13:06:05]Write i2c OK [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: 01 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: 01 07 00 [13:06:05]MH_I2C_Read... [13:06:05]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FF 0F E1 [13:06:05]RasterBufferAndPrint [13:06:05]line Счет N : (1)23699699 [13:06:05]line ИНН: 02508201610067 [13:06:05]line Контрольно-Кассовый Чек [13:06:05]line ПРОДАЖА [13:06:05]line ТРК (МРК, ГНК) : 62 [13:06:05]line Товар: 2710194210 [13:06:05]line ДТ(л)-К-5 [13:06:05]line 66.930 * 76.20 [13:06:05]line = 5100.07 [13:06:05]line НДС 12% НСП 1% [13:06:05]line > о реализуемом товаре [13:06:05]line ИТОГО: 5100.07 [13:06:05]line НСП 1% : 45.13 [13:06:05]line НДС 12% : 541.60 [13:06:05]line Наличными: 0.00 [13:06:05]line Безнал.: 5100.07 [13:06:05]line Место: АЗС № 93 "Партнер Нефть" [13:06:05]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:06:05]line СНО: Общий режим [13:06:05]line Чек 46 21.09.2024 13:06 [13:06:05]line Смена: 232 ФФД: 1.0 [13:06:05]line ЗНМ: 0300000060 [13:06:05]line РНМ: 0000000000146239 [13:06:05]line Версия ККМ: v1.0 [13:06:05]line Платежная система: Mbank [13:06:05]line ФМ: 0000000000959362 [13:06:05]line ФД: 19596 [13:06:05]line ФПД: 251402663658347 [13:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T130604&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19596&fm=251402663658347&tin=02508201610067®Number=0000000000146239&sum=510007 [13:06:06]OFD Sender: Processing packet 19596 [packets to send 63, broken 62] [13:06:06]ProducePacketName [13:06:06]name=ofd_packets/00019596 [13:06:06]OFD Sender: To server: pG, [13:06:06]CommunicateWithHost lk.salyk.kg:30040 [13:06:06]ConnectInit lk.salyk.kg [13:06:06]written 0, free lines is 4095 [13:06:06]Connected sock=8 [13:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 99 44 08 01 5F C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 C8 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BC C4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8C 4C 00 00 35 04 06 00 E4 A6 3E 76 83 6B 92 97 64 D7 F3 95 67 2D [13:06:06]Write to MH i2c: 01 00 00 F5 00 F5 [13:06:06]Write i2c OK [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: 01 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: 01 07 00 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 C6 0C CE [13:06:06]RasterBufferAndPrint [13:06:06]line [13:06:06]line [13:06:06]line [13:06:06]line [13:06:06]line [13:06:06]written 0, free lines is 3274 [13:06:06]MH_Cut [13:06:06]Write to MH i2c: D1 01 00 FC 00 01 CE [13:06:06]Write i2c OK [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: D1 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: D1 01 00 [13:06:06]MH_I2C_Read... [13:06:06]Read from MH i2c: D1 01 00 FC 00 00 CD [13:06:06]Write to MH i2c: 01 00 00 FD 00 FD [13:06:06]Write i2c OK [13:06:06]MH_I2C_Read... [13:06:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 2D 25 47 00 D8 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 39 35 39 33 36 32 10 04 04 00 8C 4C 00 00 F4 03 04 00 56 6F EE 66 B6 04 01 00 00 AE E6 D2 E3 65 34 4C 0B [13:06:06]CommunicateWithHost err = 0 [13:06:06]CheckOFDResponse [13:06:06]1017 (14) - 77093643461234 [13:06:06]1041 (16) - 0000000000959362 [13:06:06]1040 (4) - 19596 [13:06:06]1012 (4) - 21.09.2024 07:01 [13:06:06]1206 (1) - 0 [13:06:06]OFD Sender: Remove packet 19596 [13:06:06]ProducePacketName [13:06:06]name=ofd_packets/00019596 [13:06:06]NVStorageDeleteData [13:06:07]OFD Sender: No OFD packet to send [13:06:07]*** Cut start [13:06:07]*** Partial cut [13:06:07]*** CUTSNS_PIN = 1 [13:06:07]*** CUTSNS_PIN = 0 [13:06:07]*** Brake cut motor [13:06:08]Read from MH i2c: 01 [13:06:08]MH_I2C_Read... [13:06:08]*** Stop cut motor [13:06:08]*** Cut end [13:06:08]Read from MH i2c: 01 07 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 FF 0F 12 [13:06:08]process_action close_receipt done [13:06:08]requested_data is exist [13:06:08]produce_requested_data [13:06:08]requested_item fm.sn is exist - process it [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 11 00 00 [13:06:08]Write to MH i2c: E2 08 00 FE 00 80 11 00 00 00 00 00 00 78 [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 17 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 17 00 FE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 CD [13:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:06:08]wFMCommunicate OK [13:06:08]requested_item fd.num is exist - process it [13:06:08]SAM_PROTO_GetFieldsCounters [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 13 00 00 [13:06:08]Write to MH i2c: E2 08 00 FF 00 80 13 00 00 00 00 00 00 7B [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 62 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 62 00 FF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [13:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:08]wFMCommunicate OK [13:06:08]SAM_PROTO_GetFieldsCounters done [13:06:08]requested_item shift.num is exist - process it [13:06:08]requested_item shift.opened is exist - process it [13:06:08]req_shift_opened [13:06:08]FM_GetShiftState [13:06:08]SAM_PROTO_GetShiftState [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 13 01 00 [13:06:08]Write to MH i2c: E2 08 00 00 01 80 13 01 00 00 00 00 00 7E [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:08]Read from MH i2c: E2 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 0E 00 [13:06:08]MH_I2C_Read... [13:06:08]Read from MH i2c: E2 0E 00 00 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 04 [13:06:08]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:06:08]wFMCommunicate OK [13:06:08]SAM_PROTO_GetShiftState done [13:06:08]FM_GetShiftState done [13:06:08]req_shift_opened done [13:06:08]requested_item shift.open_date is exist - process it [13:06:08]req_shift_open_date [13:06:08]req_shift_open_date done [13:06:08]produce_requested_data done [13:06:08]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19596,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:06:08]process_action_free close_receipt [13:06:08]json_value_free [13:06:08]json_value_free done [13:06:08]process_json_proto returns [13:06:08]Send response to host [13:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19596,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:06:08]free response buf [13:06:08]execute_script done [13:06:08]execute_script returns [13:06:08]free content buf [13:06:08]Sock 10.Close socket [13:06:08]Sock 10.Thread stoped [13:06:12]OFD Sender: No OFD packet to send [13:06:14]recv_with_timeout no data received [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]recv_with_timeout no data received [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:35]recv_with_timeout no data received [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]recv_with_timeout no data received [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]recv_with_timeout no data received [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:43]recv_with_timeout no data received [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:34]recv_with_timeout no data received [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:33]recv_with_timeout no data received [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:42]recv_with_timeout no data received [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:56]recv_with_timeout no data received [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:36]recv_with_timeout no data received [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:19]wFMCommunicate OK [13:32:19]wFMCommunicate request_size=13 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 15 02 00 08 F4 03 04 00 E2 CA EE 66 [13:32:19]Write to MH i2c: E2 10 00 0B 01 80 15 02 00 08 00 F4 03 04 00 E2 CA EE 66 00 00 97 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [13:32:19]RAPDU: 90 00 [13:32:19]wFMCommunicate OK [13:32:19]wFMCommunicate request_size=25 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [13:32:19]Write to MH i2c: E2 1C 00 0C 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 EF [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:32:19]RAPDU: 90 00 [13:32:19]wFMCommunicate OK [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 15 03 00 [13:32:19]Write to MH i2c: E2 08 00 0D 01 80 15 03 00 00 00 00 00 8F [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 40 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 40 00 0D 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2F 00 00 00 35 04 06 00 8D 0D 26 87 3E FF 90 00 FB [13:32:19]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2F 00 00 00 35 04 06 00 8D 0D 26 87 3E FF 90 00 [13:32:19]wFMCommunicate OK [13:32:19]SAM_PROTO_ProcessDocument answer len = 59 [13:32:19]SAM_PROTO_ProcessDocument done [13:32:19]SetTLVBufToDocument [13:32:19]Processing tag 1209 (04B9) [13:32:19]Malloc new data [13:32:19]Processing tag 1041 (0411) [13:32:19]Processing tag 1040 (0410) [13:32:19]Malloc new data [13:32:19]Processing tag 1038 (040E) [13:32:19]Malloc new data [13:32:19]Processing tag 1042 (0412) [13:32:19]Malloc new data [13:32:19]Processing tag 1077 (0435) [13:32:19]Malloc new data [13:32:19]SetTLVBufToDocument err=0 [13:32:19]KKMLoadAndSignReceiptData store KKM data [13:32:19]KKMLoadAndSignReceiptData err=0 [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 11 00 00 [13:32:19]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 17 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DE [13:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:32:19]wFMCommunicate OK [13:32:19]Счет N : (1)23699717 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 32 Товар: 2710124130 Аи-92-К-5 14.750 * 67.80 = 1000.05 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 47 21.09.2024 13:32 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19597 ФПД: 155087620488959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T133218&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19597&fm=155087620488959&tin=02508201610067®Number=0000000000146239&sum=100000 [13:32:19]StoreToDocumentArchive [13:32:19]shift 232 fd 19597 [13:32:19]save to /storage/0232/doc_00019597 [13:32:19]save last doc name /storage/0232/doc_00019597 to /storage/kkm_last_doc_name [13:32:19]save OK [13:32:19]Clear old archive folders... [13:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:19]tlvbuf is 01C12B60 [13:32:19]SAM_PROTO_ClearQueue [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 09 00 00 [13:32:19]Write to MH i2c: E2 08 00 0F 01 80 09 00 00 00 00 00 00 82 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [13:32:19]RAPDU: 90 00 [13:32:19]wFMCommunicate OK [13:32:19]SAM_PROTO_ClearQueue done [13:32:19]KKMCreateOFDPacket [13:32:19]OFDProtocolAddRootSTLVToBuf [13:32:19]FM_MakeSignedData [13:32:19]FM_MakeSignedData [13:32:19]SAM_PROTO_SignData [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 0D 01 02 [13:32:19]Write to MH i2c: E2 08 00 10 01 80 0D 01 02 00 00 00 00 8A [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [13:32:19]RAPDU: 90 00 [13:32:19]wFMCommunicate OK [13:32:19]wFMCommunicate request_size=255 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E2 CA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 35 04 06 00 8D [13:32:19]Write to MH i2c: E2 02 01 11 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E2 CA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 35 04 06 00 8D 00 00 17 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [13:32:20]RAPDU: 90 00 [13:32:20]wFMCommunicate OK [13:32:20]wFMCommunicate request_size=10 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 0D 02 02 05 0D 26 87 3E FF [13:32:20]Write to MH i2c: E2 0D 00 12 01 80 0D 02 02 05 00 0D 26 87 3E FF 00 00 8E [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [13:32:20]RAPDU: 90 00 [13:32:20]wFMCommunicate OK [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 0D 03 02 [13:32:20]Write to MH i2c: E2 08 00 13 01 80 0D 03 02 00 00 00 00 8F [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 0B 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 0B 00 13 01 00 7F 25 AC 0F 06 8E 35 C9 90 00 81 [13:32:20]RAPDU: 7F 25 AC 0F 06 8E 35 C9 90 00 [13:32:20]wFMCommunicate OK [13:32:20]SAM_PROTO_SignData done [13:32:20]FM_MakeSignedData done [13:32:20]CreateOFDProtocolMessage [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 11 00 00 [13:32:20]Write to MH i2c: E2 08 00 14 01 80 11 00 00 00 00 00 00 8F [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 17 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 17 00 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E4 [13:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:32:20]wFMCommunicate OK [13:32:20]CreateOFDProtocolMessage done [13:32:20]OFDSenderStorePacket 19597 [13:32:20]StoreOFDPacket docnum=19597 [13:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 63 4C 07 01 63 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E2 CA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 35 04 06 00 8D 0D 26 87 3E FF 7F 25 AC 0F 06 8E 35 C9 [13:32:20]CheckFolder [13:32:20]dirname=/storage/ofd_packets [13:32:20]CheckFolder done [13:32:20]ProducePacketName [13:32:20]name=ofd_packets/00019597 [13:32:20]NVStorageSaveData ofd_packets/00019597 [13:32:20]File name is /storage/ofd_packets/00019597 [13:32:20]Write 301 bytes [13:32:20]NVStorageSaveData done [13:32:20]OFDSenderStorePacket done [13:32:20]KKMCreateOFDPacket done [13:32:20]NVStorageSaveData kkm_last_timestamp [13:32:20]File name is /storage/kkm_last_timestamp [13:32:20]Write 4 bytes [13:32:20]NVStorageSaveData done [13:32:20]OFD Sender: Processing packet 19597 [packets to send 63, broken 62] [13:32:20]ProducePacketName [13:32:20]name=ofd_packets/00019597 [13:32:20]OFD Sender: To server: pG, [13:32:20]CommunicateWithHost lk.salyk.kg:30040 [13:32:20]ConnectInit lk.salyk.kg [13:32:20]ExternCall_PrintAddStr [13:32:20]wPrintStart [13:32:20]Write to MH i2c: 01 00 00 15 01 16 [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 07 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 07 00 15 01 00 00 00 00 00 FF 0F 2B [13:32:20]RasterBufferAndPrint [13:32:20]line Счет N : (1)23699717 [13:32:20]line ИНН: 02508201610067 [13:32:20]line Контрольно-Кассовый Чек [13:32:20]line ПРОДАЖА [13:32:20]line ТРК (МРК, ГНК) : 32 [13:32:20]line Товар: 2710124130 [13:32:20]line Аи-92-К-5 [13:32:20]line 14.750 * 67.80 [13:32:20]line = 1000.05 [13:32:20]line НДС 12% НСП 1% [13:32:20]line > о реализуемом товаре [13:32:20]line ОКРУГЛЕНИЕ: -0.05 [13:32:20]line ИТОГО: 1000.00 [13:32:20]line Внесено: 1000.00 [13:32:20]line СДАЧА: 0.00 [13:32:20]line НСП 1% : 8.85 [13:32:20]line НДС 12% : 106.20 [13:32:20]line Наличными: 1000.00 [13:32:20]line Безнал.: 0.00 [13:32:20]line Место: АЗС № 93 "Партнер Нефть" [13:32:20]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:32:20]line СНО: Общий режим [13:32:20]line Чек 47 21.09.2024 13:32 [13:32:20]line Смена: 232 ФФД: 1.0 [13:32:20]line ЗНМ: 0300000060 [13:32:20]line РНМ: 0000000000146239 [13:32:20]line Версия ККМ: v1.0 [13:32:20]line ФМ: 0000000000959362 [13:32:20]line ФД: 19597 [13:32:20]line ФПД: 155087620488959 [13:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T133218&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19597&fm=155087620488959&tin=02508201610067®Number=0000000000146239&sum=100000 [13:32:20]written 0, free lines is 4095 [13:32:20]Write to MH i2c: 01 00 00 40 01 41 [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 07 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 8C 0C E0 [13:32:20]RasterBufferAndPrint [13:32:20]line [13:32:20]line [13:32:20]line [13:32:20]line [13:32:20]line [13:32:20]written 0, free lines is 3216 [13:32:20]MH_Cut [13:32:20]Write to MH i2c: D1 01 00 47 01 01 1A [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: D1 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: D1 01 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: D1 01 00 47 01 00 19 [13:32:21]Write to MH i2c: 01 00 00 48 01 49 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** Cut start [13:32:21]*** Partial cut [13:32:21]*** CUTSNS_PIN = 1 [13:32:21]*** CUTSNS_PIN = 0 [13:32:22]*** Brake cut motor [13:32:22]Read from MH i2c: 01 [13:32:22]MH_I2C_Read... [13:32:22]*** Stop cut motor [13:32:22]*** Cut end [13:32:22]Read from MH i2c: 01 07 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [13:32:22]process_action close_receipt done [13:32:22]requested_data is exist [13:32:22]produce_requested_data [13:32:22]requested_item fm.sn is exist - process it [13:32:22]wFMCommunicate request_size=4 [13:32:22]MH_SAM_APDU [13:32:22]CAPDU: 80 11 00 00 [13:32:22]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [13:32:22]Write i2c OK [13:32:22]MH_I2C_Read... [13:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:22]Read from MH i2c: E2 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 17 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 19 [13:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:32:22]wFMCommunicate OK [13:32:22]requested_item fd.num is exist - process it [13:32:22]SAM_PROTO_GetFieldsCounters [13:32:22]wFMCommunicate request_size=4 [13:32:22]MH_SAM_APDU [13:32:22]CAPDU: 80 13 00 00 [13:32:22]Write to MH i2c: E2 08 00 4A 01 80 13 00 00 00 00 00 00 C7 [13:32:22]Write i2c OK [13:32:22]MH_I2C_Read... [13:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:22]Read from MH i2c: E2 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 62 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 62 00 4A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:22]wFMCommunicate OK [13:32:22]SAM_PROTO_GetFieldsCounters done [13:32:22]requested_item shift.num is exist - process it [13:32:22]requested_item shift.opened is exist - process it [13:32:22]req_shift_opened [13:32:22]FM_GetShiftState [13:32:22]SAM_PROTO_GetShiftState [13:32:22]wFMCommunicate request_size=4 [13:32:22]MH_SAM_APDU [13:32:22]CAPDU: 80 13 01 00 [13:32:22]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [13:32:22]Write i2c OK [13:32:22]MH_I2C_Read... [13:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:22]Read from MH i2c: E2 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 4F [13:32:22]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:32:22]wFMCommunicate OK [13:32:22]SAM_PROTO_GetShiftState done [13:32:22]FM_GetShiftState done [13:32:22]req_shift_opened done [13:32:22]requested_item shift.open_date is exist - process it [13:32:22]req_shift_open_date [13:32:22]req_shift_open_date done [13:32:22]produce_requested_data done [13:32:22]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19597,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:32:22]process_action_free close_receipt [13:32:22]json_value_free [13:32:22]json_value_free done [13:32:22]process_json_proto returns [13:32:22]Send response to host [13:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19597,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:32:22]free response buf [13:32:22]execute_script done [13:32:22]execute_script returns [13:32:22]free content buf [13:32:22]Sock 9.Close socket [13:32:22]Sock 9.Thread stoped [13:32:25]ConnectInit Can't take IP for lk.salyk.kg [13:32:25]CommunicateWithHost connect error [13:32:25]CommunicateWithHost err = -1 [13:32:25]OFD Sender: Server communicate error [13:32:30]OFD Sender: Processing packet 19597 [packets to send 63, broken 62] [13:32:30]ProducePacketName [13:32:30]name=ofd_packets/00019597 [13:32:30]OFD Sender: To server: pG, [13:32:30]CommunicateWithHost lk.salyk.kg:30040 [13:32:30]ConnectInit lk.salyk.kg [13:32:30]recv_with_timeout no data received [13:32:35]ConnectInit Can't take IP for lk.salyk.kg [13:32:35]CommunicateWithHost connect error [13:32:35]CommunicateWithHost err = -1 [13:32:35]OFD Sender: Server communicate error [13:32:40]OFD Sender: Processing packet 19597 [packets to send 63, broken 62] [13:32:40]ProducePacketName [13:32:40]name=ofd_packets/00019597 [13:32:40]OFD Sender: To server: pG, [13:32:40]CommunicateWithHost lk.salyk.kg:30040 [13:32:40]ConnectInit lk.salyk.kg [13:32:45]ConnectInit Can't take IP for lk.salyk.kg [13:32:45]CommunicateWithHost connect error [13:32:45]CommunicateWithHost err = -1 [13:32:45]OFD Sender: Server communicate error [13:32:50]recv_with_timeout no data received [13:32:50]OFD Sender: Processing packet 19597 [packets to send 63, broken 62] [13:32:50]ProducePacketName [13:32:50]name=ofd_packets/00019597 [13:32:50]OFD Sender: To server: pG, [13:32:50]CommunicateWithHost lk.salyk.kg:30040 [13:32:50]ConnectInit lk.salyk.kg [13:32:53]Connected sock=8 [13:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 63 4C 07 01 63 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E2 CA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 35 04 06 00 8D 0D 26 87 3E FF 7F 25 AC 0F 06 8E 35 C9 [13:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 69 54 47 00 AA 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8D 4C 00 00 F4 03 04 00 9E 75 EE 66 B6 04 01 00 00 76 64 DD 55 C4 EE 3A EC [13:32:55]CommunicateWithHost err = 0 [13:32:55]CheckOFDResponse [13:32:55]1017 (14) - 77093643461234 [13:32:55]1041 (16) - 0000000000959362 [13:32:55]1040 (4) - 19597 [13:32:55]1012 (4) - 21.09.2024 07:28 [13:32:55]1206 (1) - 0 [13:32:55]OFD Sender: Remove packet 19597 [13:32:55]ProducePacketName [13:32:55]name=ofd_packets/00019597 [13:32:55]NVStorageDeleteData [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:47]recv_with_timeout no data received [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:33]recv_with_timeout no data received [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]accept exits with 9 [13:32:18]New connection [13:32:18]New thread 3067104612 created [13:32:18]Thread 3067247972 joined [13:32:18]Waiting for new connection... [13:32:18] Sock 9.Parse request [13:32:18]Sock 9.Check first char [13:32:18]Sock 9.First char is OK [13:32:18]request: POST /json_proto HTTP/1.0 [13:32:18]Method: POST [13:32:18]URL: /json_proto [13:32:18]Method is POST - this is cgi request [13:32:18]url: /json_proto [13:32:18]query_string will be loaded in cgi processing [13:32:18]execute_cgi json_proto POST (null) [13:32:18]execute_cgi path=json_proto method=POST [13:32:18]POST find Content-Length [13:32:18]Host: 172.17.42.73:8080 [13:32:18]Content-Length: 684 [13:32:18]Content-Type: application/json [13:32:18] [13:32:18]POST finish read [13:32:18]Found Content-Length = 684 [13:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:18]execute_script... [13:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:18]POST & json_proto [13:32:18]process_json_proto [13:32:18]json parsed OK: [13:32:18]protocol is kg_v1.0 [13:32:18]action value=close_receipt [13:32:18]process_action close_receipt [13:32:18]cmd_close_receipt [13:32:18]MH_GetDate [13:32:18]Write to MH i2c: F0 00 00 01 01 F1 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: F0 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: F0 09 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: F0 09 00 01 01 00 E2 CA EE 66 99 54 47 66 94 [13:32:18]GetLastDocTimeStamp 1726923964 [13:32:18]current date 1726925538 [13:32:18]FM_GetShiftState [13:32:18]SAM_PROTO_GetShiftState [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 13 01 00 [13:32:18]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0E 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 06 [13:32:18]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_GetShiftState done [13:32:18]FM_GetShiftState done [13:32:18]opened in 1726877463 [13:32:18]opened+sec_in_day 1726963863 [13:32:18]quantity*price = 100005 [13:32:18]sum+1 = 100006 [13:32:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521285 Напиток Сок березовый негаз 0,45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 48 21.09.2024 13:45 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19598 ФПД: 77712135943929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T134548&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19598&fm=77712135943929&tin=02508201610067®Number=0000000000146239&sum=15500 0 [13:45:49]StoreToDocumentArchive [13:45:49]shift 232 fd 19598 [13:45:49]save to /storage/0232/doc_00019598 [13:45:49]save last doc name /storage/0232/doc_00019598 to /storage/kkm_last_doc_name [13:45:49]save OK [13:45:49]Clear old archive folders... [13:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=429 [13:45:49]tlvbuf is 01C107C0 [13:45:49]SAM_PROTO_ClearQueue [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 09 00 00 [13:45:49]Write to MH i2c: E2 08 00 5A 01 80 09 00 00 00 00 00 00 CD [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [13:45:49]RAPDU: 90 00 [13:45:49]wFMCommunicate OK [13:45:49]SAM_PROTO_ClearQueue done [13:45:49]KKMCreateOFDPacket [13:45:49]OFDProtocolAddRootSTLVToBuf [13:45:49]FM_MakeSignedData [13:45:49]FM_MakeSignedData [13:45:49]SAM_PROTO_SignData [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 0D 01 02 [13:45:49]Write to MH i2c: E2 08 00 5B 01 80 0D 01 02 00 00 00 00 D5 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [13:45:49]RAPDU: 90 00 [13:45:49]wFMCommunicate OK [13:45:49]wFMCommunicate request_size=255 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 [13:45:49]Write to MH i2c: E2 02 01 5C 01 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 27 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [13:45:49]RAPDU: 90 00 [13:45:49]wFMCommunicate OK [13:45:49]wFMCommunicate request_size=188 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 0D 02 02 B7 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 30 00 00 00 F4 03 04 00 0C CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8E 4C 00 00 35 04 06 00 46 AD C4 41 F6 F9 [13:45:49]Write to MH i2c: E2 BF 00 5D 01 80 0D 02 02 B7 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 30 00 00 00 F4 03 04 00 0C CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8E 4C 00 00 35 04 06 00 46 AD C4 41 F6 F9 00 00 D2 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:50]Read from MH i2c: E2 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 03 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [13:45:50]RAPDU: 90 00 [13:45:50]wFMCommunicate OK [13:45:50]wFMCommunicate request_size=4 [13:45:50]MH_SAM_APDU [13:45:50]CAPDU: 80 0D 03 02 [13:45:50]Write to MH i2c: E2 08 00 5E 01 80 0D 03 02 00 00 00 00 DA [13:45:50]Write i2c OK [13:45:50]MH_I2C_Read... [13:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:50]Read from MH i2c: E2 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 0B 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 0B 00 5E 01 00 1C 37 1C 3F 0D 7F C8 77 90 00 54 [13:45:50]RAPDU: 1C 37 1C 3F 0D 7F C8 77 90 00 [13:45:50]wFMCommunicate OK [13:45:50]SAM_PROTO_SignData done [13:45:50]FM_MakeSignedData done [13:45:50]CreateOFDProtocolMessage [13:45:50]wFMCommunicate request_size=4 [13:45:50]MH_SAM_APDU [13:45:50]CAPDU: 80 11 00 00 [13:45:50]Write to MH i2c: E2 08 00 5F 01 80 11 00 00 00 00 00 00 DA [13:45:50]Write i2c OK [13:45:50]MH_I2C_Read... [13:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:50]Read from MH i2c: E2 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 17 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 17 00 5F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 2F [13:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:45:50]wFMCommunicate OK [13:45:50]CreateOFDProtocolMessage done [13:45:50]OFDSenderStorePacket 19598 [13:45:50]StoreOFDPacket docnum=19598 [13:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 C1 01 00 00 3E 02 B9 01 A7 0C 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 0C CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8E 4C 00 00 35 04 06 00 46 AD C4 41 F6 F9 1C 37 1C 3F 0D 7F C8 77 [13:45:50]CheckFolder [13:45:50]dirname=/storage/ofd_packets [13:45:50]CheckFolder done [13:45:50]ProducePacketName [13:45:50]name=ofd_packets/00019598 [13:45:50]NVStorageSaveData ofd_packets/00019598 [13:45:50]File name is /storage/ofd_packets/00019598 [13:45:50]Write 479 bytes [13:45:50]NVStorageSaveData done [13:45:50]OFDSenderStorePacket done [13:45:50]KKMCreateOFDPacket done [13:45:50]NVStorageSaveData kkm_last_timestamp [13:45:50]File name is /storage/kkm_last_timestamp [13:45:50]Write 4 bytes [13:45:50]NVStorageSaveData done [13:45:50]ExternCall_PrintAddStr [13:45:50]wPrintStart [13:45:50]Write to MH i2c: 01 00 00 60 01 61 [13:45:50]OFD Sender: Processing packet 19598 [packets to send 63, broken 62] [13:45:50]ProducePacketName [13:45:50]name=ofd_packets/00019598 [13:45:50]OFD Sender: To server: pG, [13:45:50]CommunicateWithHost lk.salyk.kg:30040 [13:45:50]ConnectInit lk.salyk.kg [13:45:50]Write i2c OK [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: 01 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: 01 07 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [13:45:50]RasterBufferAndPrint [13:45:50]line Счет N : (3)117513 [13:45:50]line ИНН: 02508201610067 [13:45:50]line Контрольно-Кассовый Чек [13:45:50]line ПРОДАЖА [13:45:50]line Товар: 4660085515163 [13:45:50]line Шок Батончик Сникерс супер 95/80г [13:45:50]line 1.000 * 85.00 [13:45:50]line = 85.00 [13:45:50]line НДС 12% НСП 1% [13:45:50]line > о реализуемом товаре [13:45:50]line Товар: 4870202521285 [13:45:50]line Напиток Сок березовый негаз 0,45л [13:45:50]line 1.000 * 70.00 [13:45:50]line = 70.00 [13:45:50]line НДС 12% НСП 1% [13:45:50]line > о реализуемом товаре [13:45:50]line ИТОГО: 155.00 [13:45:50]line НСП 1% : 1.37 [13:45:50]line НДС 12% : 16.46 [13:45:50]line Наличными: 155.00 [13:45:50]line Безнал.: 0.00 [13:45:50]line Место: АЗС № 93 "Партнер Нефть" [13:45:50]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:45:50]line СНО: Общий режим [13:45:50]line Чек 48 21.09.2024 13:45 [13:45:50]line Смена: 232 ФФД: 1.0 [13:45:50]line ЗНМ: 0300000060 [13:45:50]line РНМ: 0000000000146239 [13:45:50]line Версия ККМ: v1.0 [13:45:50]line ФМ: 0000000000959362 [13:45:50]line ФД: 19598 [13:45:50]line ФПД: 77712135943929 [13:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T134548&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19598&fm=77712135943929&tin=02508201610067®Number=0000000000146239&sum=15500 [13:45:50]line 0 [13:45:50]written 0, free lines is 4095 [13:45:51]Write to MH i2c: 01 00 00 90 01 91 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 07 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 16 0C BA [13:45:51]RasterBufferAndPrint [13:45:51]line [13:45:51]line [13:45:51]line [13:45:51]line [13:45:51]line [13:45:51]written 0, free lines is 3097 [13:45:51]MH_Cut [13:45:51]Write to MH i2c: D1 01 00 97 01 01 6A [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: D1 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: D1 01 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: D1 01 00 97 01 00 69 [13:45:51]Write to MH i2c: 01 00 00 98 01 99 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]Connected sock=9 [13:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 C1 01 00 00 3E 02 B9 01 A7 0C 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 0C CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8E 4C 00 00 35 04 06 00 46 AD C4 41 F6 F9 1C 37 1C 3F 0D 7F C8 77 [13:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A8 66 47 00 79 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8E 4C 00 00 F4 03 04 00 A6 78 EE 66 B6 04 01 00 00 8F C1 34 13 D4 79 42 2A [13:45:51]CommunicateWithHost err = 0 [13:45:51]CheckOFDResponse [13:45:51]1017 (14) - 77093643461234 [13:45:51]1041 (16) - 0000000000959362 [13:45:51]1040 (4) - 19598 [13:45:51]1012 (4) - 21.09.2024 07:41 [13:45:51]1206 (1) - 0 [13:45:51]OFD Sender: Remove packet 19598 [13:45:51]ProducePacketName [13:45:51]name=ofd_packets/00019598 [13:45:51]NVStorageDeleteData [13:45:52]*** Cut start [13:45:52]*** Partial cut [13:45:52]*** CUTSNS_PIN = 1 [13:45:52]*** CUTSNS_PIN = 0 [13:45:52]OFD Sender: No OFD packet to send [13:45:52]*** Brake cut motor [13:45:52]Read from MH i2c: 01 [13:45:52]MH_I2C_Read... [13:45:52]*** Stop cut motor [13:45:52]*** Cut end [13:45:52]Read from MH i2c: 01 07 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 FF 0F AE [13:45:52]process_action close_receipt done [13:45:52]requested_data is exist [13:45:52]produce_requested_data [13:45:52]requested_item fm.sn is exist - process it [13:45:52]wFMCommunicate request_size=4 [13:45:52]MH_SAM_APDU [13:45:52]CAPDU: 80 11 00 00 [13:45:52]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:52]Read from MH i2c: E2 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 17 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 69 [13:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:45:52]wFMCommunicate OK [13:45:52]requested_item fd.num is exist - process it [13:45:52]SAM_PROTO_GetFieldsCounters [13:45:52]wFMCommunicate request_size=4 [13:45:52]MH_SAM_APDU [13:45:52]CAPDU: 80 13 00 00 [13:45:52]Write to MH i2c: E2 08 00 9A 01 80 13 00 00 00 00 00 00 17 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:52]Read from MH i2c: E2 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 62 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 62 00 9A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [13:45:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:52]wFMCommunicate OK [13:45:52]SAM_PROTO_GetFieldsCounters done [13:45:52]requested_item shift.num is exist - process it [13:45:52]requested_item shift.opened is exist - process it [13:45:52]req_shift_opened [13:45:52]FM_GetShiftState [13:45:52]SAM_PROTO_GetShiftState [13:45:52]wFMCommunicate request_size=4 [13:45:52]MH_SAM_APDU [13:45:52]CAPDU: 80 13 01 00 [13:45:52]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:52]Read from MH i2c: E2 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 0E 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 9F [13:45:52]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:45:52]wFMCommunicate OK [13:45:52]SAM_PROTO_GetShiftState done [13:45:52]FM_GetShiftState done [13:45:52]req_shift_opened done [13:45:52]requested_item shift.open_date is exist - process it [13:45:52]req_shift_open_date [13:45:52]req_shift_open_date done [13:45:52]produce_requested_data done [13:45:52]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19598,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:45:53]process_action_free close_receipt [13:45:53]json_value_free [13:45:53]json_value_free done [13:45:53]process_json_proto returns [13:45:53]Send response to host [13:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19598,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:45:53]free response buf [13:45:53]execute_script done [13:45:53]execute_script returns [13:45:53]free content buf [13:45:53]Sock 10.Close socket [13:45:53]Sock 10.Thread stoped [13:45:57]OFD Sender: No OFD packet to send [13:45:58]recv_with_timeout no data received [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:09]recv_with_timeout no data received [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:35]accept exits with 8 [13:46:35]New connection [13:46:35]New thread 3067104612 created [13:46:35]Thread 3067247972 joined [13:46:35]Waiting for new connection... [13:46:35] Sock 8.Parse request [13:46:35]Sock 8.Check first char [13:46:35]Sock 8.First char is OK [13:46:35]request: POST /json_proto HTTP/1.0 [13:46:35]Method: POST [13:46:35]URL: /json_proto [13:46:35]Method is POST - this is cgi request [13:46:35]url: /json_proto [13:46:35]query_string will be loaded in cgi processing [13:46:35]execute_cgi json_proto POST (null) [13:46:35]execute_cgi path=json_proto method=POST [13:46:35]POST find Content-Length [13:46:35]Host: 172.17.42.73:8080 [13:46:35]Content-Length: 717 [13:46:35]Content-Type: application/json [13:46:35] [13:46:35]POST finish read [13:46:35]Found Content-Length = 717 [13:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117514", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:35]execute_script... [13:46: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)117514", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:35]POST & json_proto [13:46:35]process_json_proto [13:46:35]json parsed OK: [13:46:35]protocol is kg_v1.0 [13:46:35]action value=close_receipt [13:46:35]process_action close_receipt [13:46:35]cmd_close_receipt [13:46:35]MH_GetDate [13:46:35]Write to MH i2c: F0 00 00 9C 01 8C [13:46:35]Write i2c OK [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: F0 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: F0 09 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: F0 09 00 9C 01 00 3B CE EE 66 99 54 47 66 8C [13:46:35]GetLastDocTimeStamp 1726926348 [13:46:35]current date 1726926395 [13:46:35]FM_GetShiftState [13:46:35]SAM_PROTO_GetShiftState [13:46:35]wFMCommunicate request_size=4 [13:46:35]MH_SAM_APDU [13:46:35]CAPDU: 80 13 01 00 [13:46:35]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [13:46:35]Write i2c OK [13:46:35]MH_I2C_Read... [13:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:35]Read from MH i2c: E2 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 0E 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A1 [13:46:35]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:46:35]wFMCommunicate OK [13:46:35]SAM_PROTO_GetShiftState done [13:46:35]FM_GetShiftState done [13:46:35]opened in 1726877463 [13:46:35]opened+sec_in_day 1726963863 [13:46:35]quantity*price = 20000 [13:46:35]sum+1 = 20001 [13:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 49 21.09.2024 13:46 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19599 ФПД: 77209113823142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T134635&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19599&fm=77209113823142&tin=02508201610067®Number=0000000000146239&sum=20000 0 [13:46:36]StoreToDocumentArchive [13:46:36]shift 232 fd 19599 [13:46:36]save to /storage/0232/doc_00019599 [13:46:36]save last doc name /storage/0232/doc_00019599 to /storage/kkm_last_doc_name [13:46:36]save OK [13:46:36]Clear old archive folders... [13:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=301 [13:46:36]tlvbuf is 01C28300 [13:46:36]SAM_PROTO_ClearQueue [13:46:36]wFMCommunicate request_size=4 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 09 00 00 [13:46:36]Write to MH i2c: E2 08 00 AA 01 80 09 00 00 00 00 00 00 1D [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [13:46:36]RAPDU: 90 00 [13:46:36]wFMCommunicate OK [13:46:36]SAM_PROTO_ClearQueue done [13:46:36]KKMCreateOFDPacket [13:46:36]OFDProtocolAddRootSTLVToBuf [13:46:36]FM_MakeSignedData [13:46:36]FM_MakeSignedData [13:46:36]SAM_PROTO_SignData [13:46:36]wFMCommunicate request_size=4 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 0D 01 02 [13:46:36]Write to MH i2c: E2 08 00 AB 01 80 0D 01 02 00 00 00 00 25 [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [13:46:36]RAPDU: 90 00 [13:46:36]wFMCommunicate OK [13:46:36]wFMCommunicate request_size=255 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 [13:46:36]Write to MH i2c: E2 02 01 AC 01 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 00 B7 [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [13:46:36]RAPDU: 90 00 [13:46:36]wFMCommunicate OK [13:46:36]wFMCommunicate request_size=60 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8F 4C 00 00 35 04 06 00 46 38 A5 CD 87 A6 [13:46:36]Write to MH i2c: E2 3F 00 AD 01 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8F 4C 00 00 35 04 06 00 46 38 A5 CD 87 A6 00 00 45 [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [13:46:36]RAPDU: 90 00 [13:46:36]wFMCommunicate OK [13:46:36]wFMCommunicate request_size=4 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 0D 03 02 [13:46:36]Write to MH i2c: E2 08 00 AE 01 80 0D 03 02 00 00 00 00 2A [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 0B 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 0B 00 AE 01 00 B8 8F E8 73 29 C5 3F F3 90 00 ED [13:46:36]RAPDU: B8 8F E8 73 29 C5 3F F3 90 00 [13:46:36]wFMCommunicate OK [13:46:36]SAM_PROTO_SignData done [13:46:36]FM_MakeSignedData done [13:46:36]CreateOFDProtocolMessage [13:46:36]wFMCommunicate request_size=4 [13:46:36]MH_SAM_APDU [13:46:36]CAPDU: 80 11 00 00 [13:46:36]Write to MH i2c: E2 08 00 AF 01 80 11 00 00 00 00 00 00 2A [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:36]Read from MH i2c: E2 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 17 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: E2 17 00 AF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7F [13:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:46:36]wFMCommunicate OK [13:46:36]CreateOFDProtocolMessage done [13:46:36]OFDSenderStorePacket 19599 [13:46:36]StoreOFDPacket docnum=19599 [13:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 41 01 00 00 3C 5D 39 01 8F A6 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8F 4C 00 00 35 04 06 00 46 38 A5 CD 87 A6 B8 8F E8 73 29 C5 3F F3 [13:46:36]CheckFolder [13:46:36]dirname=/storage/ofd_packets [13:46:36]CheckFolder done [13:46:36]ProducePacketName [13:46:36]name=ofd_packets/00019599 [13:46:36]NVStorageSaveData ofd_packets/00019599 [13:46:36]File name is /storage/ofd_packets/00019599 [13:46:36]Write 351 bytes [13:46:36]NVStorageSaveData done [13:46:36]OFDSenderStorePacket done [13:46:36]KKMCreateOFDPacket done [13:46:36]NVStorageSaveData kkm_last_timestamp [13:46:36]File name is /storage/kkm_last_timestamp [13:46:36]Write 4 bytes [13:46:36]NVStorageSaveData done [13:46:36]ExternCall_PrintAddStr [13:46:36]wPrintStart [13:46:36]Write to MH i2c: 01 00 00 B0 01 B1 [13:46:36]Write i2c OK [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: 01 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: 01 07 00 [13:46:36]MH_I2C_Read... [13:46:36]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [13:46:36]RasterBufferAndPrint [13:46:36]line Счет N : (3)117514 [13:46:36]line ИНН: 02508201610067 [13:46:36]line Контрольно-Кассовый Чек [13:46:36]line ПРОДАЖА [13:46:36]line Товар: 4860019001810 [13:46:36]line Вода Боржоми минеральная ж/б 0,33л [13:46:36]line 2.000 * 100.00 [13:46:36]line = 200.00 [13:46:36]line НДС 12% НСП 1% [13:46:36]line > о реализуемом товаре [13:46:36]line ИТОГО: 200.00 [13:46:36]line НСП 1% : 1.77 [13:46:36]line НДС 12% : 21.24 [13:46:36]line Наличными: 200.00 [13:46:36]line Безнал.: 0.00 [13:46:36]line Место: АЗС № 93 "Партнер Нефть" [13:46:36]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [13:46:36]line СНО: Общий режим [13:46:36]line Чек 49 21.09.2024 13:46 [13:46:36]line Смена: 232 ФФД: 1.0 [13:46:36]line ЗНМ: 0300000060 [13:46:36]line РНМ: 0000000000146239 [13:46:36]line Версия ККМ: v1.0 [13:46:36]line ФМ: 0000000000959362 [13:46:36]line ФД: 19599 [13:46:36]line ФПД: 77209113823142 [13:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T134635&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19599&fm=77209113823142&tin=02508201610067®Number=0000000000146239&sum=20000 [13:46:37]line 0 [13:46:37]OFD Sender: Processing packet 19599 [packets to send 63, broken 62] [13:46:37]ProducePacketName [13:46:37]name=ofd_packets/00019599 [13:46:37]OFD Sender: To server: pG, [13:46:37]CommunicateWithHost lk.salyk.kg:30040 [13:46:37]ConnectInit lk.salyk.kg [13:46:37]written 0, free lines is 4095 [13:46:37]Write to MH i2c: 01 00 00 D9 01 DA [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: 01 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: 01 07 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 A6 0C 93 [13:46:37]RasterBufferAndPrint [13:46:37]line [13:46:37]line [13:46:37]line [13:46:37]line [13:46:37]line [13:46:37]written 0, free lines is 3241 [13:46:37]MH_Cut [13:46:37]Write to MH i2c: D1 01 00 E0 01 01 B3 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: D1 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: D1 01 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: D1 01 00 E0 01 00 B2 [13:46:37]Write to MH i2c: 01 00 00 E1 01 E2 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]Connected sock=11 [13:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 41 01 00 00 3C 5D 39 01 8F A6 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B CE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 8F 4C 00 00 35 04 06 00 46 38 A5 CD 87 A6 B8 8F E8 73 29 C5 3F F3 [13:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 AE A9 47 00 0B 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 39 35 39 33 36 32 10 04 04 00 8F 4C 00 00 F4 03 04 00 D5 78 EE 66 B6 04 01 00 00 10 DA 0C D9 C2 3B D8 8F [13:46:38]CommunicateWithHost err = 0 [13:46:38]CheckOFDResponse [13:46:38]1017 (14) - 77093643461234 [13:46:38]1041 (16) - 0000000000959362 [13:46:38]1040 (4) - 19599 [13:46:38]1012 (4) - 21.09.2024 07:42 [13:46:38]1206 (1) - 0 [13:46:38]OFD Sender: Remove packet 19599 [13:46:38]ProducePacketName [13:46:38]name=ofd_packets/00019599 [13:46:38]NVStorageDeleteData [13:46:38]*** Cut start [13:46:38]*** Partial cut [13:46:38]*** CUTSNS_PIN = 1 [13:46:38]*** CUTSNS_PIN = 0 [13:46:38]OFD Sender: No OFD packet to send [13:46:38]*** Brake cut motor [13:46:39]Read from MH i2c: 01 [13:46:39]MH_I2C_Read... [13:46:39]*** Stop cut motor [13:46:39]*** Cut end [13:46:39]Read from MH i2c: 01 07 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [13:46:39]process_action close_receipt done [13:46:39]requested_data is exist [13:46:39]produce_requested_data [13:46:39]requested_item fm.sn is exist - process it [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 11 00 00 [13:46:39]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 17 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 B2 [13:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [13:46:39]wFMCommunicate OK [13:46:39]requested_item fd.num is exist - process it [13:46:39]SAM_PROTO_GetFieldsCounters [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 13 00 00 [13:46:39]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 62 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 62 00 E3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [13:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 8F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:39]wFMCommunicate OK [13:46:39]SAM_PROTO_GetFieldsCounters done [13:46:39]requested_item shift.num is exist - process it [13:46:39]requested_item shift.opened is exist - process it [13:46:39]req_shift_opened [13:46:39]FM_GetShiftState [13:46:39]SAM_PROTO_GetShiftState [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 13 01 00 [13:46:39]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0E 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 E8 [13:46:39]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [13:46:39]wFMCommunicate OK [13:46:39]SAM_PROTO_GetShiftState done [13:46:39]FM_GetShiftState done [13:46:39]req_shift_opened done [13:46:39]requested_item shift.open_date is exist - process it [13:46:39]req_shift_open_date [13:46:39]req_shift_open_date done [13:46:39]produce_requested_data done [13:46:39]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19599,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [13:46:39]process_action_free close_receipt [13:46:39]json_value_free [13:46:39]json_value_free done [13:46:39]process_json_proto returns [13:46:39]Send response to host [13:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19599,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [13:46:39]free response buf [13:46:39]execute_script done [13:46:39]execute_script returns [13:46:39]free content buf [13:46:39]Sock 8.Close socket [13:46:39]Sock 8.Thread stoped [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]recv_with_timeout no data received [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:24]recv_with_timeout no data received [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:08]recv_with_timeout no data received [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [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:01]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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]recv_with_timeout no data received [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:11]recv_with_timeout no data received [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:02]recv_with_timeout no data received [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:33]recv_with_timeout no data received [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:43]recv_with_timeout no data received [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:44]recv_with_timeout no data received [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]recv_with_timeout no data received [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]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:26]recv_with_timeout no data received [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:17:56]accept exits with 9 [14:17:56]New connection [14:17:56]New thread 3067247972 created [14:17:56]Thread 3067104612 joined [14:17:56]Waiting for new connection... [14:17:56] Sock 9.Parse request [14:17:56]Sock 9.Check first char [14:17:56]Sock 9.First char is OK [14:17:56]request: POST /json_proto HTTP/1.0 [14:17:56]Method: POST [14:17:56]URL: /json_proto [14:17:56]Method is POST - this is cgi request [14:17:56]url: /json_proto [14:17:56]query_string will be loaded in cgi processing [14:17:56]execute_cgi json_proto POST (null) [14:17:56]execute_cgi path=json_proto method=POST [14:17:56]POST find Content-Length [14:17:56]Host: 172.17.42.73:8080 [14:17:56]Content-Length: 989 [14:17:56]Content-Type: application/json [14:17:56] [14:17:56]POST finish read [14:17:56]Found Content-Length = 989 [14:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:56]execute_script... [14:17:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:56]POST & json_proto [14:17:56]process_json_proto [14:17:56]json parsed OK: [14:17:56]protocol is kg_v1.0 [14:17:56]action value=close_receipt [14:17:56]process_action close_receipt [14:17:56]cmd_close_receipt [14:17:56]MH_GetDate [14:17:56]Write to MH i2c: F0 00 00 E5 01 D5 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: F0 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: F0 09 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: F0 09 00 E5 01 00 94 D5 EE 66 99 54 47 66 35 [14:17:56]GetLastDocTimeStamp 1726926395 [14:17:56]current date 1726928276 [14:17:56]FM_GetShiftState [14:17:56]SAM_PROTO_GetShiftState [14:17:56]wFMCommunicate request_size=4 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 13 01 00 [14:17:56]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 0E 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 EA [14:17:56]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:17:56]wFMCommunicate OK [14:17:56]SAM_PROTO_GetShiftState done [14:17:56]FM_GetShiftState done [14:17:56]opened in 1726877463 [14:17:56]opened+sec_in_day 1726963863 [14:17:56]quantity*price = 990008 [14:17:56]sum+1 = 990009 [14:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 50 21.09.2024 14:17 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Дисконтная программа ДТ номер 93 сэкономлено 131.65 сом ФМ: 0000000000959362 ФД: 19600 ФПД: 159045738237311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T141756&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19600&fm=159045738237311&tin=02508201610067®Number=0000000000146239&sum=990000 [14:17:57]StoreToDocumentArchive [14:17:57]shift 232 fd 19600 [14:17:57]save to /storage/0232/doc_00019600 [14:17:57]save last doc name /storage/0232/doc_00019600 to /storage/kkm_last_doc_name [14:17:57]save OK [14:17:57]Clear old archive folders... [14:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:17:57]tlvbuf is 01C10730 [14:17:57]SAM_PROTO_ClearQueue [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 09 00 00 [14:17:57]Write to MH i2c: E2 08 00 F3 01 80 09 00 00 00 00 00 00 66 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [14:17:57]RAPDU: 90 00 [14:17:57]wFMCommunicate OK [14:17:57]SAM_PROTO_ClearQueue done [14:17:57]KKMCreateOFDPacket [14:17:57]OFDProtocolAddRootSTLVToBuf [14:17:57]FM_MakeSignedData [14:17:57]FM_MakeSignedData [14:17:57]SAM_PROTO_SignData [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 0D 01 02 [14:17:57]Write to MH i2c: E2 08 00 F4 01 80 0D 01 02 00 00 00 00 6E [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [14:17:57]RAPDU: 90 00 [14:17:57]wFMCommunicate OK [14:17:57]wFMCommunicate request_size=255 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 94 D5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 90 4C 00 00 35 04 06 00 [14:17:57]Write to MH i2c: E2 02 01 F5 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 94 D5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 90 4C 00 00 35 04 06 00 00 00 E5 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [14:17:57]RAPDU: 90 00 [14:17:57]wFMCommunicate OK [14:17:57]wFMCommunicate request_size=11 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 0D 02 02 06 90 A6 B8 BB 0D 7F [14:17:57]Write to MH i2c: E2 0E 00 F6 01 80 0D 02 02 06 00 90 A6 B8 BB 0D 7F 00 00 B2 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [14:17:57]RAPDU: 90 00 [14:17:57]wFMCommunicate OK [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 0D 03 02 [14:17:57]Write to MH i2c: E2 08 00 F7 01 80 0D 03 02 00 00 00 00 73 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0B 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0B 00 F7 01 00 49 89 FE AD EE E1 FD E2 90 00 9F [14:17:57]RAPDU: 49 89 FE AD EE E1 FD E2 90 00 [14:17:57]wFMCommunicate OK [14:17:57]SAM_PROTO_SignData done [14:17:57]FM_MakeSignedData done [14:17:57]CreateOFDProtocolMessage [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 11 00 00 [14:17:57]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 17 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C8 [14:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:17:57]wFMCommunicate OK [14:17:57]CreateOFDProtocolMessage done [14:17:57]OFDSenderStorePacket 19600 [14:17:57]StoreOFDPacket docnum=19600 [14:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 F9 74 08 01 1F 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 94 D5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 90 4C 00 00 35 04 06 00 90 A6 B8 BB 0D 7F 49 89 FE AD EE E1 FD E2 [14:17:57]CheckFolder [14:17:57]dirname=/storage/ofd_packets [14:17:57]CheckFolder done [14:17:57]ProducePacketName [14:17:57]name=ofd_packets/00019600 [14:17:57]NVStorageSaveData ofd_packets/00019600 [14:17:57]File name is /storage/ofd_packets/00019600 [14:17:57]Write 302 bytes [14:17:57]NVStorageSaveData done [14:17:57]OFDSenderStorePacket done [14:17:57]KKMCreateOFDPacket done [14:17:57]NVStorageSaveData kkm_last_timestamp [14:17:57]File name is /storage/kkm_last_timestamp [14:17:57]Write 4 bytes [14:17:57]NVStorageSaveData done [14:17:57]ExternCall_PrintAddStr [14:17:57]wPrintStart [14:17:57]Write to MH i2c: 01 00 00 F9 01 FA [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 07 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 FF 0F 0F [14:17:57]RasterBufferAndPrint [14:17:57]line Счет N : (1)23699740 [14:17:57]line ИНН: 02508201610067 [14:17:57]line Контрольно-Кассовый Чек [14:17:57]line ПРОДАЖА [14:17:57]line ТРК (МРК, ГНК) : 43 [14:17:57]line Товар: 2710194210 [14:17:57]line ДТ(л)-К-5 [14:17:57]line 131.650 * 75.20 [14:17:57]line = 9900.08 [14:17:57]line НДС 12% НСП 1% [14:17:57]line > о реализуемом товаре [14:17:57]line ОКРУГЛЕНИЕ: -0.08 [14:17:57]line ИТОГО: 9900.00 [14:17:57]line Внесено: 9900.00 [14:17:57]line СДАЧА: 0.00 [14:17:57]line НСП 1% : 87.61 [14:17:57]line НДС 12% : 1051.34 [14:17:57]line Наличными: 9900.00 [14:17:57]line Безнал.: 0.00 [14:17:57]line Место: АЗС № 93 "Партнер Нефть" [14:17:57]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:17:57]line СНО: Общий режим [14:17:57]line Чек 50 21.09.2024 14:17 [14:17:57]line Смена: 232 ФФД: 1.0 [14:17:57]line ЗНМ: 0300000060 [14:17:57]line РНМ: 0000000000146239 [14:17:57]line Версия ККМ: v1.0 [14:17:57]line [14:17:57]line Дисконтная программа [14:17:57]line ДТ [14:17:57]line номер 93 [14:17:57]line сэкономлено 131.65 сом [14:17:57]line ФМ: 0000000000959362 [14:17:57]line ФД: 19600 [14:17:57]line ФПД: 159045738237311 [14:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T141756&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19600&fm=159045738237311&tin=02508201610067®Number=0000000000146239&sum=990000 [14:17:58]OFD Sender: Processing packet 19600 [packets to send 63, broken 62] [14:17:58]ProducePacketName [14:17:58]name=ofd_packets/00019600 [14:17:58]OFD Sender: To server: pG, [14:17:58]CommunicateWithHost lk.salyk.kg:30040 [14:17:58]ConnectInit lk.salyk.kg [14:17:58]written 0, free lines is 4095 [14:17:58]Connected sock=8 [14:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 F9 74 08 01 1F 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 94 D5 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 90 4C 00 00 35 04 06 00 90 A6 B8 BB 0D 7F 49 89 FE AD EE E1 FD E2 [14:17:58]Write to MH i2c: 01 00 00 29 02 2B [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 28 0C 66 [14:17:58]RasterBufferAndPrint [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]written 0, free lines is 3116 [14:17:58]MH_Cut [14:17:58]Write to MH i2c: D1 01 00 30 02 01 04 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 01 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 01 00 30 02 00 03 [14:17:58]Write to MH i2c: 01 00 00 31 02 33 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 9C D9 47 00 28 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 90 4C 00 00 F4 03 04 00 2D 80 EE 66 B6 04 01 00 00 2D 54 35 C7 73 5D B1 B0 [14:17:58]CommunicateWithHost err = 0 [14:17:58]CheckOFDResponse [14:17:58]1017 (14) - 77093643461234 [14:17:58]1041 (16) - 0000000000959362 [14:17:58]1040 (4) - 19600 [14:17:58]1012 (4) - 21.09.2024 08:13 [14:17:58]1206 (1) - 0 [14:17:58]OFD Sender: Remove packet 19600 [14:17:58]ProducePacketName [14:17:58]name=ofd_packets/00019600 [14:17:58]NVStorageDeleteData [14:17:59]OFD Sender: No OFD packet to send [14:17:59]*** Cut start [14:17:59]*** Partial cut [14:17:59]*** CUTSNS_PIN = 1 [14:17:59]*** CUTSNS_PIN = 0 [14:17:59]*** Brake cut motor [14:18:00]Read from MH i2c: 01 [14:18:00]MH_I2C_Read... [14:18:00]*** Stop cut motor [14:18:00]*** Cut end [14:18:00]Read from MH i2c: 01 07 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [14:18:00]process_action close_receipt done [14:18:00]requested_data is exist [14:18:00]produce_requested_data [14:18:00]requested_item fm.sn is exist - process it [14:18:00]wFMCommunicate request_size=4 [14:18:00]MH_SAM_APDU [14:18:00]CAPDU: 80 11 00 00 [14:18:00]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:00]Read from MH i2c: E2 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 17 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 03 [14:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:18:00]wFMCommunicate OK [14:18:00]requested_item fd.num is exist - process it [14:18:00]SAM_PROTO_GetFieldsCounters [14:18:00]wFMCommunicate request_size=4 [14:18:00]MH_SAM_APDU [14:18:00]CAPDU: 80 13 00 00 [14:18:00]Write to MH i2c: E2 08 00 33 02 80 13 00 00 00 00 00 00 B1 [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:00]Read from MH i2c: E2 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 62 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 62 00 33 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 90 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:18:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 90 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:00]wFMCommunicate OK [14:18:00]SAM_PROTO_GetFieldsCounters done [14:18:00]requested_item shift.num is exist - process it [14:18:00]requested_item shift.opened is exist - process it [14:18:00]req_shift_opened [14:18:00]FM_GetShiftState [14:18:00]SAM_PROTO_GetShiftState [14:18:00]wFMCommunicate request_size=4 [14:18:00]MH_SAM_APDU [14:18:00]CAPDU: 80 13 01 00 [14:18:00]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:00]Read from MH i2c: E2 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 0E 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 39 [14:18:00]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:18:00]wFMCommunicate OK [14:18:00]SAM_PROTO_GetShiftState done [14:18:00]FM_GetShiftState done [14:18:00]req_shift_opened done [14:18:00]requested_item shift.open_date is exist - process it [14:18:00]req_shift_open_date [14:18:00]req_shift_open_date done [14:18:00]produce_requested_data done [14:18:00]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19600,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:18:00]process_action_free close_receipt [14:18:00]json_value_free [14:18:00]json_value_free done [14:18:00]process_json_proto returns [14:18:00]Send response to host [14:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19600,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:18:00]free response buf [14:18:00]execute_script done [14:18:00]execute_script returns [14:18:00]free content buf [14:18:00]Sock 9.Close socket [14:18:00]Sock 9.Thread stoped [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19: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:40]accept exits with 10 [14:20:40]New connection [14:20:40]New thread 3067104612 created [14:20:40]Thread 3067247972 joined [14:20:40]Waiting for new connection... [14:20:40] Sock 10.Parse request [14:20:40]Sock 10.Check first char [14:20:40]Sock 10.First char is OK [14:20:40]request: POST /json_proto HTTP/1.0 [14:20:40]Method: POST [14:20:40]URL: /json_proto [14:20:40]Method is POST - this is cgi request [14:20:40]url: /json_proto [14:20:40]query_string will be loaded in cgi processing [14:20:40]execute_cgi json_proto POST (null) [14:20:40]execute_cgi path=json_proto method=POST [14:20:40]POST find Content-Length [14:20:40]Host: 172.17.42.73:8080 [14:20:40]Content-Length: 800 [14:20:40]Content-Type: application/json [14:20:40] [14:20:40]POST finish read [14:20:40]Found Content-Length = 800 [14:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 107.620, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A42413", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:40]execute_script... [14:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 107.620, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A42413", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:40]POST & json_proto [14:20:40]process_json_proto [14:20:40]json parsed OK: [14:20:40]protocol is kg_v1.0 [14:20:40]action value=close_receipt [14:20:40]process_action close_receipt [14:20:40]cmd_close_receipt [14:20:40]MH_GetDate [14:20:40]Write to MH i2c: F0 00 00 35 02 26 [14:20:40]Write i2c OK [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: F0 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: F0 09 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: F0 09 00 35 02 00 39 D6 EE 66 99 54 47 66 2C [14:20:40]GetLastDocTimeStamp 1726928276 [14:20:40]current date 1726928441 [14:20:40]FM_GetShiftState [14:20:40]SAM_PROTO_GetShiftState [14:20:40]wFMCommunicate request_size=4 [14:20:40]MH_SAM_APDU [14:20:40]CAPDU: 80 13 01 00 [14:20:40]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [14:20:40]Write i2c OK [14:20:40]MH_I2C_Read... [14:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:40]Read from MH i2c: E2 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 0E 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 3B [14:20:40]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:20:40]wFMCommunicate OK [14:20:40]SAM_PROTO_GetShiftState done [14:20:40]FM_GetShiftState done [14:20:40]opened in 1726877463 [14:20:40]opened+sec_in_day 1726963863 [14:20:40]quantity*price = 0 [14:20:40]sum+1 = 1 [14:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 51 21.09.2024 14:20 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Талоны: Топливная Карта 42413 ФМ: 0000000000959362 ФД: 19601 ФПД: 38570087292816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T142041&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19601&fm=38570087292816&tin=02508201610067®Number=0000000000146239&sum=0 [14:20:41]StoreToDocumentArchive [14:20:41]shift 232 fd 19601 [14:20:41]save to /storage/0232/doc_00019601 [14:20:41]save last doc name /storage/0232/doc_00019601 to /storage/kkm_last_doc_name [14:20:41]save OK [14:20:41]Clear old archive folders... [14:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:20:41]tlvbuf is 01C0F860 [14:20:41]SAM_PROTO_ClearQueue [14:20:41]wFMCommunicate request_size=4 [14:20:41]MH_SAM_APDU [14:20:41]CAPDU: 80 09 00 00 [14:20:41]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:41]Read from MH i2c: E2 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 03 00 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [14:20:41]RAPDU: 90 00 [14:20:41]wFMCommunicate OK [14:20:41]SAM_PROTO_ClearQueue done [14:20:41]KKMCreateOFDPacket [14:20:41]OFDProtocolAddRootSTLVToBuf [14:20:41]FM_MakeSignedData [14:20:41]FM_MakeSignedData [14:20:41]SAM_PROTO_SignData [14:20:41]wFMCommunicate request_size=4 [14:20:41]MH_SAM_APDU [14:20:41]CAPDU: 80 0D 01 02 [14:20:41]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:41]Read from MH i2c: E2 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 03 00 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [14:20:41]RAPDU: 90 00 [14:20:41]wFMCommunicate OK [14:20:41]wFMCommunicate request_size=255 [14:20:41]MH_SAM_APDU [14:20:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 A4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 D6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 91 4C 00 00 35 04 06 00 [14:20:41]Write to MH i2c: E2 02 01 45 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 A4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 D6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 91 4C 00 00 35 04 06 00 00 00 6A [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [14:20:42]RAPDU: 90 00 [14:20:42]wFMCommunicate OK [14:20:42]wFMCommunicate request_size=11 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 0D 02 02 06 23 14 4C 5A 1F 90 [14:20:42]Write to MH i2c: E2 0E 00 46 02 80 0D 02 02 06 00 23 14 4C 5A 1F 90 00 00 5A [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [14:20:42]RAPDU: 90 00 [14:20:42]wFMCommunicate OK [14:20:42]wFMCommunicate request_size=4 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 0D 03 02 [14:20:42]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 0B 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 0B 00 47 02 00 30 E7 E3 7F A1 7D C4 A9 90 00 C9 [14:20:42]RAPDU: 30 E7 E3 7F A1 7D C4 A9 90 00 [14:20:42]wFMCommunicate OK [14:20:42]SAM_PROTO_SignData done [14:20:42]FM_MakeSignedData done [14:20:42]CreateOFDProtocolMessage [14:20:42]wFMCommunicate request_size=4 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 11 00 00 [14:20:42]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 17 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 19 [14:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:20:42]wFMCommunicate OK [14:20:42]CreateOFDProtocolMessage done [14:20:42]OFDSenderStorePacket 19601 [14:20:42]StoreOFDPacket docnum=19601 [14:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 2A C4 08 01 42 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 A4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 D6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 91 4C 00 00 35 04 06 00 23 14 4C 5A 1F 90 30 E7 E3 7F A1 7D C4 A9 [14:20:42]CheckFolder [14:20:42]dirname=/storage/ofd_packets [14:20:42]CheckFolder done [14:20:42]ProducePacketName [14:20:42]name=ofd_packets/00019601 [14:20:42]NVStorageSaveData ofd_packets/00019601 [14:20:42]File name is /storage/ofd_packets/00019601 [14:20:42]Write 302 bytes [14:20:42]NVStorageSaveData done [14:20:42]OFDSenderStorePacket done [14:20:42]KKMCreateOFDPacket done [14:20:42]NVStorageSaveData kkm_last_timestamp [14:20:42]File name is /storage/kkm_last_timestamp [14:20:42]Write 4 bytes [14:20:42]NVStorageSaveData done [14:20:42]ExternCall_PrintAddStr [14:20:42]wPrintStart [14:20:42]Write to MH i2c: 01 00 00 49 02 4B [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 07 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [14:20:42]RasterBufferAndPrint [14:20:42]line Счет N : (1)23699741 [14:20:42]line ИНН: 02508201610067 [14:20:42]line Контрольно-Кассовый Чек [14:20:42]line ПРОДАЖА [14:20:42]line ТРК (МРК, ГНК) : 62 [14:20:42]line Товар: 2710194210 [14:20:42]line ДТ(л)-К-5 [14:20:42]line 107.620 * 0.00 [14:20:42]line = 0.00 [14:20:42]line НДС 12% НСП 1% [14:20:42]line > о реализуемом товаре [14:20:42]line ИТОГО: 0.00 [14:20:42]line НСП 1% : 0.00 [14:20:42]line НДС 12% : 0.00 [14:20:42]line Наличными: 0.00 [14:20:42]line Безнал.: 0.00 [14:20:42]line Место: АЗС № 93 "Партнер Нефть" [14:20:42]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:20:42]line СНО: Общий режим [14:20:42]line Чек 51 21.09.2024 14:20 [14:20:42]line Смена: 232 ФФД: 1.0 [14:20:42]line ЗНМ: 0300000060 [14:20:42]line РНМ: 0000000000146239 [14:20:42]line Версия ККМ: v1.0 [14:20:42]line Талоны: Топливная Карта [14:20:42]line 42413 [14:20:42]line ФМ: 0000000000959362 [14:20:42]line ФД: 19601 [14:20:42]line ФПД: 38570087292816 [14:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T142041&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19601&fm=38570087292816&tin=02508201610067®Number=0000000000146239&sum=0 [14:20:42]OFD Sender: Processing packet 19601 [packets to send 63, broken 62] [14:20:42]ProducePacketName [14:20:42]name=ofd_packets/00019601 [14:20:42]OFD Sender: To server: pG, [14:20:42]CommunicateWithHost lk.salyk.kg:30040 [14:20:42]ConnectInit lk.salyk.kg [14:20:42]written 0, free lines is 4095 [14:20:42]Write to MH i2c: 01 00 00 73 02 75 [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 07 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 A7 0C 2F [14:20:42]RasterBufferAndPrint [14:20:42]line [14:20:42]line [14:20:42]line [14:20:42]line [14:20:42]line [14:20:42]written 0, free lines is 3242 [14:20:43]MH_Cut [14:20:43]Write to MH i2c: D1 01 00 7A 02 01 4E [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: D1 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: D1 01 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: D1 01 00 7A 02 00 4D [14:20:43]Write to MH i2c: 01 00 00 7B 02 7D [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]Connected sock=8 [14:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 2A C4 08 01 42 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 A4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 D6 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 91 4C 00 00 35 04 06 00 23 14 4C 5A 1F 90 30 E7 E3 7F A1 7D C4 A9 [14:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F4 FA 47 00 71 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 91 4C 00 00 F4 03 04 00 D2 80 EE 66 B6 04 01 00 00 6A FC 72 50 F7 3B EF 55 [14:20:43]CommunicateWithHost err = 0 [14:20:43]CheckOFDResponse [14:20:43]1017 (14) - 77093643461234 [14:20:43]1041 (16) - 0000000000959362 [14:20:43]1040 (4) - 19601 [14:20:43]1012 (4) - 21.09.2024 08:16 [14:20:43]1206 (1) - 0 [14:20:43]OFD Sender: Remove packet 19601 [14:20:43]ProducePacketName [14:20:43]name=ofd_packets/00019601 [14:20:43]NVStorageDeleteData [14:20:43]*** Cut start [14:20:43]*** Partial cut [14:20:43]*** CUTSNS_PIN = 1 [14:20:43]*** CUTSNS_PIN = 0 [14:20:44]OFD Sender: No OFD packet to send [14:20:44]*** Brake cut motor [14:20:44]Read from MH i2c: 01 [14:20:44]MH_I2C_Read... [14:20:44]*** Stop cut motor [14:20:44]*** Cut end [14:20:44]Read from MH i2c: 01 07 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [14:20:44]process_action close_receipt done [14:20:44]requested_data is exist [14:20:44]produce_requested_data [14:20:44]requested_item fm.sn is exist - process it [14:20:44]wFMCommunicate request_size=4 [14:20:44]MH_SAM_APDU [14:20:44]CAPDU: 80 11 00 00 [14:20:44]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 17 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 4D [14:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:20:44]wFMCommunicate OK [14:20:44]requested_item fd.num is exist - process it [14:20:44]SAM_PROTO_GetFieldsCounters [14:20:44]wFMCommunicate request_size=4 [14:20:44]MH_SAM_APDU [14:20:44]CAPDU: 80 13 00 00 [14:20:44]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 62 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 62 00 7D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 91 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [14:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 91 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:44]wFMCommunicate OK [14:20:44]SAM_PROTO_GetFieldsCounters done [14:20:44]requested_item shift.num is exist - process it [14:20:44]requested_item shift.opened is exist - process it [14:20:44]req_shift_opened [14:20:44]FM_GetShiftState [14:20:44]SAM_PROTO_GetShiftState [14:20:44]wFMCommunicate request_size=4 [14:20:44]MH_SAM_APDU [14:20:44]CAPDU: 80 13 01 00 [14:20:44]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 0E 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 83 [14:20:44]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:20:44]wFMCommunicate OK [14:20:44]SAM_PROTO_GetShiftState done [14:20:44]FM_GetShiftState done [14:20:44]req_shift_opened done [14:20:44]requested_item shift.open_date is exist - process it [14:20:44]req_shift_open_date [14:20:44]req_shift_open_date done [14:20:44]produce_requested_data done [14:20:44]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19601,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:20:44]process_action_free close_receipt [14:20:44]json_value_free [14:20:44]json_value_free done [14:20:44]process_json_proto returns [14:20:44]Send response to host [14:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19601,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:20:44]free response buf [14:20:44]execute_script done [14:20:44]execute_script returns [14:20:44]free content buf [14:20:44]Sock 10.Close socket [14:20:44]Sock 10.Thread stoped [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:16]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:57]recv_with_timeout no data received [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [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:05]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [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:15]recv_with_timeout no data received [14:35:19]accept exits with 9 [14:35:19]New connection [14:35:19]New thread 3067247972 created [14:35:19]Thread 3067104612 joined [14:35:19]Waiting for new connection... [14:35:19] Sock 9.Parse request [14:35:19]Sock 9.Check first char [14:35:19]Sock 9.First char is OK [14:35:19]request: POST /json_proto HTTP/1.0 [14:35:19]Method: POST [14:35:19]URL: /json_proto [14:35:19]Method is POST - this is cgi request [14:35:19]url: /json_proto [14:35:19]query_string will be loaded in cgi processing [14:35:19]execute_cgi json_proto POST (null) [14:35:19]execute_cgi path=json_proto method=POST [14:35:19]POST find Content-Length [14:35:19]Host: 172.17.42.73:8080 [14:35:19]Content-Length: 672 [14:35:19]Content-Type: application/json [14:35:19] [14:35:19]POST finish read [14:35:19]Found Content-Length = 672 [14:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:19]execute_script... [14:35:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:19]POST & json_proto [14:35:19]process_json_proto [14:35:19]json parsed OK: [14:35:19]protocol is kg_v1.0 [14:35:19]action value=close_receipt [14:35:19]process_action close_receipt [14:35:19]cmd_close_receipt [14:35:19]MH_GetDate [14:35:19]Write to MH i2c: F0 00 00 7F 02 70 [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 09 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 09 00 7F 02 00 A8 D9 EE 66 99 54 47 66 E8 [14:35:19]GetLastDocTimeStamp 1726928441 [14:35:19]current date 1726929320 [14:35:19]FM_GetShiftState [14:35:19]SAM_PROTO_GetShiftState [14:35:19]wFMCommunicate request_size=4 [14:35:19]MH_SAM_APDU [14:35:19]CAPDU: 80 13 01 00 [14:35:19]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]OFD Sender: No OFD packet to send [14:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0E 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 85 [14:35:19]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:35:19]wFMCommunicate OK [14:35:19]SAM_PROTO_GetShiftState done [14:35:19]FM_GetShiftState done [14:35:19]opened in 1726877463 [14:35:19]opened+sec_in_day 1726963863 [14:35:19]quantity*price = 50034 [14:35:19]sum+1 = 50036 [14:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 52 21.09.2024 14:35 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19602 ФПД: 836679507019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143520&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19602&fm=836679507019&tin=02508201610067®Number=0000000000146239&sum=50000 [14:35:20]StoreToDocumentArchive [14:35:20]shift 232 fd 19602 [14:35:20]save to /storage/0232/doc_00019602 [14:35:20]save last doc name /storage/0232/doc_00019602 to /storage/kkm_last_doc_name [14:35:20]save OK [14:35:20]Clear old archive folders... [14:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:20]tlvbuf is 01C123A0 [14:35:20]SAM_PROTO_ClearQueue [14:35:20]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 09 00 00 [14:35:21]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]SAM_PROTO_ClearQueue done [14:35:21]KKMCreateOFDPacket [14:35:21]OFDProtocolAddRootSTLVToBuf [14:35:21]FM_MakeSignedData [14:35:21]FM_MakeSignedData [14:35:21]SAM_PROTO_SignData [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 01 02 [14:35:21]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]wFMCommunicate request_size=255 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A8 D9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 92 4C 00 00 35 04 06 00 [14:35:21]Write to MH i2c: E2 02 01 8F 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A8 D9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 92 4C 00 00 35 04 06 00 00 00 F8 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]wFMCommunicate request_size=11 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 02 02 06 00 C2 CD FC 1C 4B [14:35:21]Write to MH i2c: E2 0E 00 90 02 80 0D 02 02 06 00 00 C2 CD FC 1C 4B 00 00 0A [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 03 02 [14:35:21]Write to MH i2c: E2 08 00 91 02 80 0D 03 02 00 00 00 00 0E [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0B 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0B 00 91 02 00 F2 19 38 81 DE 3E F8 E3 90 00 CA [14:35:21]RAPDU: F2 19 38 81 DE 3E F8 E3 90 00 [14:35:21]wFMCommunicate OK [14:35:21]SAM_PROTO_SignData done [14:35:21]FM_MakeSignedData done [14:35:21]CreateOFDProtocolMessage [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 11 00 00 [14:35:21]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 63 [14:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:35:21]wFMCommunicate OK [14:35:21]CreateOFDProtocolMessage done [14:35:21]OFDSenderStorePacket 19602 [14:35:21]StoreOFDPacket docnum=19602 [14:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 7C 45 08 01 44 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A8 D9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 92 4C 00 00 35 04 06 00 00 C2 CD FC 1C 4B F2 19 38 81 DE 3E F8 E3 [14:35:21]CheckFolder [14:35:21]dirname=/storage/ofd_packets [14:35:21]CheckFolder done [14:35:21]ProducePacketName [14:35:21]name=ofd_packets/00019602 [14:35:21]NVStorageSaveData ofd_packets/00019602 [14:35:21]File name is /storage/ofd_packets/00019602 [14:35:21]Write 302 bytes [14:35:21]NVStorageSaveData done [14:35:21]OFDSenderStorePacket done [14:35:21]KKMCreateOFDPacket done [14:35:21]NVStorageSaveData kkm_last_timestamp [14:35:21]File name is /storage/kkm_last_timestamp [14:35:21]Write 4 bytes [14:35:21]NVStorageSaveData done [14:35:21]ExternCall_PrintAddStr [14:35:21]wPrintStart [14:35:21]Write to MH i2c: 01 00 00 93 02 95 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [14:35:21]RasterBufferAndPrint [14:35:21]line Счет N : (1)23699753 [14:35:21]line ИНН: 02508201610067 [14:35:21]line Контрольно-Кассовый Чек [14:35:21]line ПРОДАЖА [14:35:21]line ТРК (МРК, ГНК) : 13 [14:35:21]line Товар: 2710124130 [14:35:21]line SUPER-92-К-5 [14:35:21]line 7.220 * 69.30 [14:35:21]line = 500.35 [14:35:21]line НДС 12% НСП 1% [14:35:21]line > о реализуемом товаре [14:35:21]line ОКРУГЛЕНИЕ: -0.35 [14:35:21]line ИТОГО: 500.00 [14:35:21]line Внесено: 500.00 [14:35:21]line СДАЧА: 0.00 [14:35:21]line НСП 1% : 4.43 [14:35:21]line НДС 12% : 53.13 [14:35:21]line Наличными: 500.00 [14:35:21]line Безнал.: 0.00 [14:35:21]line Место: АЗС № 93 "Партнер Нефть" [14:35:21]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:35:21]line СНО: Общий режим [14:35:21]line Чек 52 21.09.2024 14:35 [14:35:21]line Смена: 232 ФФД: 1.0 [14:35:21]line ЗНМ: 0300000060 [14:35:21]line РНМ: 0000000000146239 [14:35:21]line Версия ККМ: v1.0 [14:35:21]line ФМ: 0000000000959362 [14:35:21]line ФД: 19602 [14:35:21]line ФПД: 836679507019 [14:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143520&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19602&fm=836679507019&tin=02508201610067®Number=0000000000146239&sum=50000 [14:35:21]OFD Sender: Processing packet 19602 [packets to send 63, broken 62] [14:35:21]ProducePacketName [14:35:21]name=ofd_packets/00019602 [14:35:21]OFD Sender: To server: pG, [14:35:21]CommunicateWithHost lk.salyk.kg:30040 [14:35:21]ConnectInit lk.salyk.kg [14:35:21]written 0, free lines is 4095 [14:35:22]Write to MH i2c: 01 00 00 BE 02 C0 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: 01 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: 01 07 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 86 0C 59 [14:35:22]RasterBufferAndPrint [14:35:22]line [14:35:22]line [14:35:22]line [14:35:22]line [14:35:22]line [14:35:22]written 0, free lines is 3210 [14:35:22]MH_Cut [14:35:22]Write to MH i2c: D1 01 00 C5 02 01 99 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: D1 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: D1 01 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: D1 01 00 C5 02 00 98 [14:35:22]Write to MH i2c: 01 00 00 C6 02 C8 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:23]*** Cut start [14:35:23]*** Partial cut [14:35:23]*** CUTSNS_PIN = 1 [14:35:23]*** CUTSNS_PIN = 0 [14:35:23]*** Brake cut motor [14:35:23]Read from MH i2c: 01 [14:35:23]MH_I2C_Read... [14:35:23]*** Stop cut motor [14:35:23]*** Cut end [14:35:23]Read from MH i2c: 01 07 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [14:35:23]process_action close_receipt done [14:35:23]requested_data is exist [14:35:23]produce_requested_data [14:35:23]requested_item fm.sn is exist - process it [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 11 00 00 [14:35:23]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:23]Read from MH i2c: E2 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 17 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 98 [14:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:35:23]wFMCommunicate OK [14:35:23]requested_item fd.num is exist - process it [14:35:23]SAM_PROTO_GetFieldsCounters [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 13 00 00 [14:35:23]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 62 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 62 00 C8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 92 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [14:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 92 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:24]wFMCommunicate OK [14:35:24]SAM_PROTO_GetFieldsCounters done [14:35:24]requested_item shift.num is exist - process it [14:35:24]requested_item shift.opened is exist - process it [14:35:24]req_shift_opened [14:35:24]FM_GetShiftState [14:35:24]SAM_PROTO_GetShiftState [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 13 01 00 [14:35:24]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0E 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 CE [14:35:24]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:35:24]wFMCommunicate OK [14:35:24]SAM_PROTO_GetShiftState done [14:35:24]FM_GetShiftState done [14:35:24]req_shift_opened done [14:35:24]requested_item shift.open_date is exist - process it [14:35:24]req_shift_open_date [14:35:24]req_shift_open_date done [14:35:24]produce_requested_data done [14:35:24]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19602,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:35:24]process_action_free close_receipt [14:35:24]json_value_free [14:35:24]json_value_free done [14:35:24]process_json_proto returns [14:35:24]Send response to host [14:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19602,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:35:24]free response buf [14:35:24]execute_script done [14:35:24]execute_script returns [14:35:24]free content buf [14:35:24]Sock 9.Close socket [14:35:24]Sock 9.Thread stoped [14:35:26]ConnectInit Can't take IP for lk.salyk.kg [14:35:26]CommunicateWithHost connect error [14:35:26]CommunicateWithHost err = -1 [14:35:26]OFD Sender: Server communicate error [14:35:30]recv_with_timeout no data received [14:35:31]OFD Sender: Processing packet 19602 [packets to send 63, broken 62] [14:35:31]ProducePacketName [14:35:31]name=ofd_packets/00019602 [14:35:31]OFD Sender: To server: pG, [14:35:31]CommunicateWithHost lk.salyk.kg:30040 [14:35:31]ConnectInit lk.salyk.kg [14:37:44]accept exits with 8 [14:37:44]New connection [14:37:44]New thread 3067104612 created [14:37:44]Thread 3067247972 joined [14:37:44]Waiting for new connection... [14:37:44] Sock 8.Parse request [14:37:44]Sock 8.Check first char [14:37:44]Sock 8.First char is OK [14:37:44]request: POST /json_proto HTTP/1.0 [14:37:44]Method: POST [14:37:44]URL: /json_proto [14:37:44]Method is POST - this is cgi request [14:37:44]url: /json_proto [14:37:44]query_string will be loaded in cgi processing [14:37:44]execute_cgi json_proto POST (null) [14:37:44]execute_cgi path=json_proto method=POST [14:37:44]POST find Content-Length [14:37:44]Host: 172.17.42.73:8080 [14:37:44]Content-Length: 989 [14:37:44]Content-Type: application/json [14:37:44] [14:37:44]POST finish read [14:37:44]Found Content-Length = 989 [14:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:44]execute_script... [14:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:44]POST & json_proto [14:37:44]process_json_proto [14:37:44]json parsed OK: [14:37:44]protocol is kg_v1.0 [14:37:44]action value=close_receipt [14:37:44]process_action close_receipt [14:37:44]cmd_close_receipt [14:37:44]MH_GetDate [14:37:44]Write to MH i2c: F0 00 00 CA 02 BB [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 09 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: F0 09 00 CA 02 00 39 DA EE 66 99 54 47 66 C5 [14:37:44]GetLastDocTimeStamp 1726929320 [14:37:44]current date 1726929465 [14:37:44]FM_GetShiftState [14:37:44]SAM_PROTO_GetShiftState [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 13 01 00 [14:37:44]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 D0 [14:37:44]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetShiftState done [14:37:44]FM_GetShiftState done [14:37:44]opened in 1726877463 [14:37:44]opened+sec_in_day 1726963863 [14:37:44]quantity*price = 990008 [14:37:44]sum+1 = 990009 [14:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 53 21.09.2024 14:37 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Дисконтная программа ДТ номер 93 сэкономлено 131.65 сом ФМ: 0000000000959362 ФД: 19603 ФПД: 242571607140545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143745&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19603&fm=242571607140545&tin=02508201610067®Number=0000000000146239&sum=990000 [14:37:45]StoreToDocumentArchive [14:37:45]shift 232 fd 19603 [14:37:45]save to /storage/0232/doc_00019603 [14:37:45]save last doc name /storage/0232/doc_00019603 to /storage/kkm_last_doc_name [14:37:45]save OK [14:37:45]Clear old archive folders... [14:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:37:45]tlvbuf is 01C20510 [14:37:45]SAM_PROTO_ClearQueue [14:37:45]wFMCommunicate request_size=4 [14:37:45]MH_SAM_APDU [14:37:45]CAPDU: 80 09 00 00 [14:37:45]Write to MH i2c: E2 08 00 D8 02 80 09 00 00 00 00 00 00 4C [14:37:45]Write i2c OK [14:37:45]MH_I2C_Read... [14:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:45]Read from MH i2c: E2 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [14:37:45]RAPDU: 90 00 [14:37:45]wFMCommunicate OK [14:37:45]SAM_PROTO_ClearQueue done [14:37:45]KKMCreateOFDPacket [14:37:45]OFDProtocolAddRootSTLVToBuf [14:37:45]FM_MakeSignedData [14:37:45]FM_MakeSignedData [14:37:45]SAM_PROTO_SignData [14:37:45]wFMCommunicate request_size=4 [14:37:45]MH_SAM_APDU [14:37:45]CAPDU: 80 0D 01 02 [14:37:45]Write to MH i2c: E2 08 00 D9 02 80 0D 01 02 00 00 00 00 54 [14:37:45]Write i2c OK [14:37:45]MH_I2C_Read... [14:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:45]Read from MH i2c: E2 [14:37:45]MH_I2C_Read... [14:37:45]Read from MH i2c: E2 03 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [14:37:46]RAPDU: 90 00 [14:37:46]wFMCommunicate OK [14:37:46]wFMCommunicate request_size=255 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 39 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 93 4C 00 00 35 04 06 00 [14:37:46]Write to MH i2c: E2 02 01 DA 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 39 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 93 4C 00 00 35 04 06 00 00 00 7B [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [14:37:46]RAPDU: 90 00 [14:37:46]wFMCommunicate OK [14:37:46]wFMCommunicate request_size=11 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 0D 02 02 06 DC 9E 1A 79 E8 C1 [14:37:46]Write to MH i2c: E2 0E 00 DB 02 80 0D 02 02 06 00 DC 9E 1A 79 E8 C1 00 00 19 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [14:37:46]RAPDU: 90 00 [14:37:46]wFMCommunicate OK [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 0D 03 02 [14:37:46]Write to MH i2c: E2 08 00 DC 02 80 0D 03 02 00 00 00 00 59 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0B 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0B 00 DC 02 00 23 FC F2 75 78 14 52 44 90 00 02 [14:37:46]RAPDU: 23 FC F2 75 78 14 52 44 90 00 [14:37:46]wFMCommunicate OK [14:37:46]SAM_PROTO_SignData done [14:37:46]FM_MakeSignedData done [14:37:46]CreateOFDProtocolMessage [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 11 00 00 [14:37:46]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 AE [14:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:37:46]wFMCommunicate OK [14:37:46]CreateOFDProtocolMessage done [14:37:46]OFDSenderStorePacket 19603 [14:37:46]StoreOFDPacket docnum=19603 [14:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 F7 4A 08 01 1A 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 39 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 93 4C 00 00 35 04 06 00 DC 9E 1A 79 E8 C1 23 FC F2 75 78 14 52 44 [14:37:46]CheckFolder [14:37:46]dirname=/storage/ofd_packets [14:37:46]CheckFolder done [14:37:46]ProducePacketName [14:37:46]name=ofd_packets/00019603 [14:37:46]NVStorageSaveData ofd_packets/00019603 [14:37:46]File name is /storage/ofd_packets/00019603 [14:37:46]Write 302 bytes [14:37:46]NVStorageSaveData done [14:37:46]OFDSenderStorePacket done [14:37:46]KKMCreateOFDPacket done [14:37:46]NVStorageSaveData kkm_last_timestamp [14:37:46]File name is /storage/kkm_last_timestamp [14:37:46]Write 4 bytes [14:37:46]NVStorageSaveData done [14:37:46]ExternCall_PrintAddStr [14:37:46]wPrintStart [14:37:46]Write to MH i2c: 01 00 00 DE 02 E0 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 FF 0F F5 [14:37:46]RasterBufferAndPrint [14:37:46]line Счет N : (1)23699751 [14:37:46]line ИНН: 02508201610067 [14:37:46]line Контрольно-Кассовый Чек [14:37:46]line ПРОДАЖА [14:37:46]line ТРК (МРК, ГНК) : 52 [14:37:46]line Товар: 2710194210 [14:37:46]line ДТ(л)-К-5 [14:37:46]line 131.650 * 75.20 [14:37:46]line = 9900.08 [14:37:46]line НДС 12% НСП 1% [14:37:46]line > о реализуемом товаре [14:37:46]line ОКРУГЛЕНИЕ: -0.08 [14:37:46]line ИТОГО: 9900.00 [14:37:46]line Внесено: 9900.00 [14:37:46]line СДАЧА: 0.00 [14:37:46]line НСП 1% : 87.61 [14:37:46]line НДС 12% : 1051.34 [14:37:46]line Наличными: 9900.00 [14:37:46]line Безнал.: 0.00 [14:37:46]line Место: АЗС № 93 "Партнер Нефть" [14:37:46]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:37:46]line СНО: Общий режим [14:37:46]line Чек 53 21.09.2024 14:37 [14:37:46]line Смена: 232 ФФД: 1.0 [14:37:46]line ЗНМ: 0300000060 [14:37:46]line РНМ: 0000000000146239 [14:37:46]line Версия ККМ: v1.0 [14:37:46]line [14:37:46]line Дисконтная программа [14:37:46]line ДТ [14:37:46]line номер 93 [14:37:46]line сэкономлено 131.65 сом [14:37:46]line ФМ: 0000000000959362 [14:37:46]line ФД: 19603 [14:37:46]line ФПД: 242571607140545 [14:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143745&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19603&fm=242571607140545&tin=02508201610067®Number=0000000000146239&sum=990000 [14:37:46]written 0, free lines is 4095 [14:37:47]Write to MH i2c: 01 00 00 0E 03 11 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 07 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 20 0C 44 [14:37:47]RasterBufferAndPrint [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]line [14:37:47]written 0, free lines is 3107 [14:37:47]MH_Cut [14:37:47]Write to MH i2c: D1 01 00 15 03 01 EA [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 01 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: D1 01 00 15 03 00 E9 [14:37:47]Write to MH i2c: 01 00 00 16 03 19 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:48]ConnectInit Can't connect to host [14:37:48]CommunicateWithHost connect error [14:37:48]CommunicateWithHost err = -1 [14:37:48]OFD Sender: Server communicate error [14:37:48]OFD Sender: Processing packet 19602 [packets to send 64, broken 62] [14:37:48]ProducePacketName [14:37:48]name=ofd_packets/00019602 [14:37:48]OFD Sender: To server: pG, [14:37:48]CommunicateWithHost lk.salyk.kg:30040 [14:37:48]ConnectInit lk.salyk.kg [14:37:48]*** Cut start [14:37:48]*** Partial cut [14:37:48]*** CUTSNS_PIN = 1 [14:37:48]*** CUTSNS_PIN = 0 [14:37:48]*** Brake cut motor [14:37:48]Connected sock=9 [14:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 7C 45 08 01 44 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A8 D9 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 92 4C 00 00 35 04 06 00 00 C2 CD FC 1C 4B F2 19 38 81 DE 3E F8 E3 [14:37:48]Read from MH i2c: 01 [14:37:48]MH_I2C_Read... [14:37:48]*** Stop cut motor [14:37:48]*** Cut end [14:37:48]Read from MH i2c: 01 07 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [14:37:48]process_action close_receipt done [14:37:48]requested_data is exist [14:37:48]produce_requested_data [14:37:48]requested_item fm.sn is exist - process it [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 11 00 00 [14:37:48]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 10 18 47 00 50 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 92 4C 00 00 F4 03 04 00 D4 84 EE 66 B6 04 01 00 00 1E 88 BE 37 6F B1 78 36 [14:37:48]CommunicateWithHost err = 0 [14:37:48]CheckOFDResponse [14:37:48]1017 (14) - 77093643461234 [14:37:48]1041 (16) - 0000000000959362 [14:37:48]1040 (4) - 19602 [14:37:48]1012 (4) - 21.09.2024 08:33 [14:37:48]1206 (1) - 0 [14:37:48]OFD Sender: Remove packet 19602 [14:37:48]ProducePacketName [14:37:48]name=ofd_packets/00019602 [14:37:48]NVStorageDeleteData [14:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E9 [14:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:37:48]wFMCommunicate OK [14:37:48]requested_item fd.num is exist - process it [14:37:48]SAM_PROTO_GetFieldsCounters [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 13 00 00 [14:37:48]Write to MH i2c: E2 08 00 18 03 80 13 00 00 00 00 00 00 97 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 62 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 62 00 18 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 93 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [14:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 93 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:49]wFMCommunicate OK [14:37:49]SAM_PROTO_GetFieldsCounters done [14:37:49]requested_item shift.num is exist - process it [14:37:49]requested_item shift.opened is exist - process it [14:37:49]req_shift_opened [14:37:49]FM_GetShiftState [14:37:49]SAM_PROTO_GetShiftState [14:37:49]wFMCommunicate request_size=4 [14:37:49]MH_SAM_APDU [14:37:49]CAPDU: 80 13 01 00 [14:37:49]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0E 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 1F [14:37:49]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:37:49]wFMCommunicate OK [14:37:49]SAM_PROTO_GetShiftState done [14:37:49]FM_GetShiftState done [14:37:49]req_shift_opened done [14:37:49]requested_item shift.open_date is exist - process it [14:37:49]req_shift_open_date [14:37:49]req_shift_open_date done [14:37:49]produce_requested_data done [14:37:49]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19603,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:37:49]process_action_free close_receipt [14:37:49]json_value_free [14:37:49]json_value_free done [14:37:49]process_json_proto returns [14:37:49]Send response to host [14:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19603,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:37:49]free response buf [14:37:49]execute_script done [14:37:49]execute_script returns [14:37:49]free content buf [14:37:49]Sock 8.Close socket [14:37:49]Sock 8.Thread stoped [14:37:49]OFD Sender: Processing packet 19603 [packets to send 63, broken 62] [14:37:49]ProducePacketName [14:37:49]name=ofd_packets/00019603 [14:37:49]OFD Sender: To server: pG, [14:37:49]CommunicateWithHost lk.salyk.kg:30040 [14:37:49]ConnectInit lk.salyk.kg [14:37:49]Connected sock=8 [14:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 F7 4A 08 01 1A 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 39 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 93 4C 00 00 35 04 06 00 DC 9E 1A 79 E8 C1 23 FC F2 75 78 14 52 44 [14:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 33 A2 47 00 A4 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 93 4C 00 00 F4 03 04 00 D5 84 EE 66 B6 04 01 00 00 28 F9 1B 6E BC DD 92 83 [14:37:50]CommunicateWithHost err = 0 [14:37:50]CheckOFDResponse [14:37:50]1017 (14) - 77093643461234 [14:37:50]1041 (16) - 0000000000959362 [14:37:50]1040 (4) - 19603 [14:37:50]1012 (4) - 21.09.2024 08:33 [14:37:50]1206 (1) - 0 [14:37:50]OFD Sender: Remove packet 19603 [14:37:50]ProducePacketName [14:37:50]name=ofd_packets/00019603 [14:37:50]NVStorageDeleteData [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:02]recv_with_timeout no data received [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]recv_with_timeout no data received [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:19]recv_with_timeout no data received [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:32]accept exits with 10 [14:39:32]New connection [14:39:32]New thread 3067247972 created [14:39:32]Thread 3067104612 joined [14:39:32]Waiting for new connection... [14:39:32] Sock 10.Parse request [14:39:32]Sock 10.Check first char [14:39:32]Sock 10.First char is OK [14:39:32]request: POST /json_proto HTTP/1.0 [14:39:32]Method: POST [14:39:32]URL: /json_proto [14:39:32]Method is POST - this is cgi request [14:39:32]url: /json_proto [14:39:32]query_string will be loaded in cgi processing [14:39:32]execute_cgi json_proto POST (null) [14:39:32]execute_cgi path=json_proto method=POST [14:39:32]POST find Content-Length [14:39:32]Host: 172.17.42.73:8080 [14:39:32]Content-Length: 645 [14:39:32]Content-Type: application/json [14:39:32] [14:39:32]POST finish read [14:39:32]Found Content-Length = 645 [14:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117515", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:32]execute_script... [14:39: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)117515", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:32]POST & json_proto [14:39:32]process_json_proto [14:39:32]json parsed OK: [14:39:32]protocol is kg_v1.0 [14:39:32]action value=close_receipt [14:39:32]process_action close_receipt [14:39:32]cmd_close_receipt [14:39:32]MH_GetDate [14:39:32]Write to MH i2c: F0 00 00 1A 03 0C [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: F0 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: F0 09 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: F0 09 00 1A 03 00 A4 DA EE 66 99 54 47 66 81 [14:39:32]GetLastDocTimeStamp 1726929465 [14:39:32]current date 1726929572 [14:39:32]FM_GetShiftState [14:39:32]SAM_PROTO_GetShiftState [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 13 01 00 [14:39:32]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0E 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 21 [14:39:32]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:39:32]wFMCommunicate OK [14:39:32]SAM_PROTO_GetShiftState done [14:39:32]FM_GetShiftState done [14:39:32]opened in 1726877463 [14:39:32]opened+sec_in_day 1726963863 [14:39:32]quantity*price = 6500 [14:39:32]sum+1 = 6501 [14:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 54 21.09.2024 14:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19604 ФПД: 35939092796962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143932&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19604&fm=35939092796962&tin=02508201610067®Number=0000000000146239&sum=6500 0 [14:39:33]StoreToDocumentArchive [14:39:33]shift 232 fd 19604 [14:39:33]save to /storage/0232/doc_00019604 [14:39:33]save last doc name /storage/0232/doc_00019604 to /storage/kkm_last_doc_name [14:39:33]save OK [14:39:33]Clear old archive folders... [14:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:39:33]tlvbuf is 01C9B510 [14:39:33]SAM_PROTO_ClearQueue [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 09 00 00 [14:39:33]Write to MH i2c: E2 08 00 28 03 80 09 00 00 00 00 00 00 9D [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]SAM_PROTO_ClearQueue done [14:39:33]KKMCreateOFDPacket [14:39:33]OFDProtocolAddRootSTLVToBuf [14:39:33]FM_MakeSignedData [14:39:33]FM_MakeSignedData [14:39:33]SAM_PROTO_SignData [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 01 02 [14:39:33]Write to MH i2c: E2 08 00 29 03 80 0D 01 02 00 00 00 00 A5 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=255 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A4 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [14:39:33]Write to MH i2c: E2 02 01 2A 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A4 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E1 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=31 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 94 4C 00 00 35 04 06 00 20 AF B8 DC 16 22 [14:39:33]Write to MH i2c: E2 22 00 2B 03 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 94 4C 00 00 35 04 06 00 20 AF B8 DC 16 22 00 00 50 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 03 02 [14:39:33]Write to MH i2c: E2 08 00 2C 03 80 0D 03 02 00 00 00 00 AA [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 0B 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 0B 00 2C 03 00 5F 74 FA 9F 95 C4 F4 6A 90 00 CE [14:39:33]RAPDU: 5F 74 FA 9F 95 C4 F4 6A 90 00 [14:39:33]wFMCommunicate OK [14:39:33]SAM_PROTO_SignData done [14:39:33]FM_MakeSignedData done [14:39:33]CreateOFDProtocolMessage [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 11 00 00 [14:39:33]Write to MH i2c: E2 08 00 2D 03 80 11 00 00 00 00 00 00 AA [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 17 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 17 00 2D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [14:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:39:33]wFMCommunicate OK [14:39:33]CreateOFDProtocolMessage done [14:39:33]OFDSenderStorePacket 19604 [14:39:33]StoreOFDPacket docnum=19604 [14:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 52 3C 1C 01 23 C5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A4 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 94 4C 00 00 35 04 06 00 20 AF B8 DC 16 22 5F 74 FA 9F 95 C4 F4 6A [14:39:33]CheckFolder [14:39:33]dirname=/storage/ofd_packets [14:39:33]CheckFolder done [14:39:33]ProducePacketName [14:39:33]name=ofd_packets/00019604 [14:39:33]NVStorageSaveData ofd_packets/00019604 [14:39:33]File name is /storage/ofd_packets/00019604 [14:39:33]Write 322 bytes [14:39:33]NVStorageSaveData done [14:39:33]OFDSenderStorePacket done [14:39:33]KKMCreateOFDPacket done [14:39:33]NVStorageSaveData kkm_last_timestamp [14:39:33]File name is /storage/kkm_last_timestamp [14:39:33]Write 4 bytes [14:39:33]NVStorageSaveData done [14:39:33]ExternCall_PrintAddStr [14:39:33]wPrintStart [14:39:33]Write to MH i2c: 01 00 00 2E 03 31 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [14:39:33]RasterBufferAndPrint [14:39:33]line Счет N : (3)117515 [14:39:33]line ИНН: 02508201610067 [14:39:33]line Контрольно-Кассовый Чек [14:39:33]line ПРОДАЖА [14:39:33]line Товар: 47011656 [14:39:33]line Водка Пшеничная 0,1л [14:39:33]line 1.000 * 65.00 [14:39:33]line = 65.00 [14:39:33]line НДС 12% НСП 1% [14:39:33]line > о реализуемом товаре [14:39:33]line ИТОГО: 65.00 [14:39:33]line НСП 1% : 0.57 [14:39:33]line НДС 12% : 6.90 [14:39:33]line Наличными: 65.00 [14:39:33]line Безнал.: 0.00 [14:39:33]line Место: АЗС № 93 "Партнер Нефть" [14:39:33]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:39:33]line СНО: Общий режим [14:39:33]line Чек 54 21.09.2024 14:39 [14:39:33]line Смена: 232 ФФД: 1.0 [14:39:33]line ЗНМ: 0300000060 [14:39:33]line РНМ: 0000000000146239 [14:39:33]line Версия ККМ: v1.0 [14:39:33]line ФМ: 0000000000959362 [14:39:33]line ФД: 19604 [14:39:33]line ФПД: 35939092796962 [14:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T143932&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19604&fm=35939092796962&tin=02508201610067®Number=0000000000146239&sum=6500 [14:39:34]line 0 [14:39:34]OFD Sender: Processing packet 19604 [packets to send 63, broken 62] [14:39:34]ProducePacketName [14:39:34]name=ofd_packets/00019604 [14:39:34]OFD Sender: To server: pG, [14:39:34]CommunicateWithHost lk.salyk.kg:30040 [14:39:34]ConnectInit lk.salyk.kg [14:39:34]written 0, free lines is 4095 [14:39:34]Write to MH i2c: 01 00 00 56 03 59 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 BF 0C 2B [14:39:34]RasterBufferAndPrint [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]written 0, free lines is 3267 [14:39:34]MH_Cut [14:39:34]Write to MH i2c: D1 01 00 5D 03 01 32 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: D1 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: D1 01 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: D1 01 00 5D 03 00 31 [14:39:34]Write to MH i2c: 01 00 00 5E 03 61 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:35]*** Cut start [14:39:35]*** Partial cut [14:39:35]*** CUTSNS_PIN = 1 [14:39:35]*** CUTSNS_PIN = 0 [14:39:35]*** Brake cut motor [14:39:36]Read from MH i2c: 01 [14:39:36]MH_I2C_Read... [14:39:36]*** Stop cut motor [14:39:36]*** Cut end [14:39:36]Read from MH i2c: 01 07 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: 01 07 00 5E 03 00 00 00 00 00 FF 0F 76 [14:39:36]process_action close_receipt done [14:39:36]requested_data is exist [14:39:36]produce_requested_data [14:39:36]requested_item fm.sn is exist - process it [14:39:36]wFMCommunicate request_size=4 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 11 00 00 [14:39:36]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:36]Read from MH i2c: E2 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 17 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 31 [14:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:39:36]wFMCommunicate OK [14:39:36]requested_item fd.num is exist - process it [14:39:36]SAM_PROTO_GetFieldsCounters [14:39:36]wFMCommunicate request_size=4 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 13 00 00 [14:39:36]Write to MH i2c: E2 08 00 60 03 80 13 00 00 00 00 00 00 DF [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:36]Read from MH i2c: E2 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 62 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 62 00 60 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 94 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 94 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:36]wFMCommunicate OK [14:39:36]SAM_PROTO_GetFieldsCounters done [14:39:36]requested_item shift.num is exist - process it [14:39:36]requested_item shift.opened is exist - process it [14:39:36]req_shift_opened [14:39:36]FM_GetShiftState [14:39:36]SAM_PROTO_GetShiftState [14:39:36]wFMCommunicate request_size=4 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 13 01 00 [14:39:36]Write to MH i2c: E2 08 00 61 03 80 13 01 00 00 00 00 00 E1 [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:36]Read from MH i2c: E2 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 0E 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 0E 00 61 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 67 [14:39:36]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:39:36]wFMCommunicate OK [14:39:36]SAM_PROTO_GetShiftState done [14:39:36]FM_GetShiftState done [14:39:36]req_shift_opened done [14:39:36]requested_item shift.open_date is exist - process it [14:39:36]req_shift_open_date [14:39:36]req_shift_open_date done [14:39:36]produce_requested_data done [14:39:36]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19604,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:39:36]process_action_free close_receipt [14:39:36]json_value_free [14:39:36]json_value_free done [14:39:36]process_json_proto returns [14:39:36]Send response to host [14:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19604,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:39:36]free response buf [14:39:36]execute_script done [14:39:36]execute_script returns [14:39:36]free content buf [14:39:36]Sock 10.Close socket [14:39:36]Sock 10.Thread stoped [14:39:39]ConnectInit Can't take IP for lk.salyk.kg [14:39:39]CommunicateWithHost connect error [14:39:39]CommunicateWithHost err = -1 [14:39:39]OFD Sender: Server communicate error [14:39:44]OFD Sender: Processing packet 19604 [packets to send 63, broken 62] [14:39:44]ProducePacketName [14:39:44]name=ofd_packets/00019604 [14:39:44]OFD Sender: To server: pG, [14:39:44]CommunicateWithHost lk.salyk.kg:30040 [14:39:44]ConnectInit lk.salyk.kg [14:39:49]ConnectInit Can't take IP for lk.salyk.kg [14:39:49]CommunicateWithHost connect error [14:39:49]CommunicateWithHost err = -1 [14:39:49]OFD Sender: Server communicate error [14:39:54]OFD Sender: Processing packet 19604 [packets to send 63, broken 62] [14:39:54]ProducePacketName [14:39:54]name=ofd_packets/00019604 [14:39:54]OFD Sender: To server: pG, [14:39:54]CommunicateWithHost lk.salyk.kg:30040 [14:39:54]ConnectInit lk.salyk.kg [14:39:54]Connected sock=8 [14:39:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 52 3C 1C 01 23 C5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A4 DA EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 94 4C 00 00 35 04 06 00 20 AF B8 DC 16 22 5F 74 FA 9F 95 C4 F4 6A [14:39:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FC EC 47 00 80 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 94 4C 00 00 F4 03 04 00 52 85 EE 66 B6 04 01 00 00 64 06 1C BD ED F2 5F 9E [14:39:55]CommunicateWithHost err = 0 [14:39:55]CheckOFDResponse [14:39:55]1017 (14) - 77093643461234 [14:39:55]1041 (16) - 0000000000959362 [14:39:55]1040 (4) - 19604 [14:39:55]1012 (4) - 21.09.2024 08:35 [14:39:55]1206 (1) - 0 [14:39:55]OFD Sender: Remove packet 19604 [14:39:55]ProducePacketName [14:39:55]name=ofd_packets/00019604 [14:39:55]NVStorageDeleteData [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:04]recv_with_timeout no data received [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:33]accept exits with 9 [14:45:33]New connection [14:45:33]New thread 3067104612 created [14:45:33]Thread 3067247972 joined [14:45:33]Waiting for new connection... [14:45:33] Sock 9.Parse request [14:45:33]Sock 9.Check first char [14:45:33]Sock 9.First char is OK [14:45:33]request: POST /json_proto HTTP/1.0 [14:45:33]Method: POST [14:45:33]URL: /json_proto [14:45:33]Method is POST - this is cgi request [14:45:33]url: /json_proto [14:45:33]query_string will be loaded in cgi processing [14:45:33]execute_cgi json_proto POST (null) [14:45:33]execute_cgi path=json_proto method=POST [14:45:33]POST find Content-Length [14:45:33]Host: 172.17.42.73:8080 [14:45:33]Content-Length: 1192 [14:45:33]Content-Type: application/json [14:45:33] [14:45:33]POST finish read [14:45:33]Found Content-Length = 1192 [14:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117516", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 5.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 764.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:33]execute_script... [14:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117516", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 5.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 764.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:33]POST & json_proto [14:45:33]process_json_proto [14:45:33]json parsed OK: [14:45:33]protocol is kg_v1.0 [14:45:33]action value=close_receipt [14:45:33]process_action close_receipt [14:45:33]cmd_close_receipt [14:45:33]MH_GetDate [14:45:33]Write to MH i2c: F0 00 00 62 03 54 [14:45:33]Write i2c OK [14:45:33]MH_I2C_Read... [14:45:33]Read from MH i2c: F0 [14:45:33]MH_I2C_Read... [14:45:33]Read from MH i2c: F0 09 00 [14:45:33]MH_I2C_Read... [14:45:33]Read from MH i2c: F0 09 00 62 03 00 0E DC EE 66 99 54 47 66 35 [14:45:33]GetLastDocTimeStamp 1726929572 [14:45:33]current date 1726929934 [14:45:33]FM_GetShiftState [14:45:33]SAM_PROTO_GetShiftState [14:45:33]wFMCommunicate request_size=4 [14:45:33]MH_SAM_APDU [14:45:33]CAPDU: 80 13 01 00 [14:45:33]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [14:45:33]Write i2c OK [14:45:33]MH_I2C_Read... [14:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:33]Read from MH i2c: E2 [14:45:33]MH_I2C_Read... [14:45:33]Read from MH i2c: E2 0E 00 [14:45:33]MH_I2C_Read... [14:45:33]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 69 [14:45:33]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:45:33]wFMCommunicate OK [14:45:33]SAM_PROTO_GetShiftState done [14:45:33]FM_GetShiftState done [14:45:33]opened in 1726877463 [14:45:33]opened+sec_in_day 1726963863 [14:45:33]quantity*price = 400 [14:45:33]sum+1 = 401 [14:45:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4605664012121 Пиво бут Амстердам 0,5 5.000 * 144.00 = 720.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 764.00 НСП 1% : 6.75 НДС 12% : 81.13 Наличными: 764.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 55 21.09.2024 14:45 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19605 ФПД: 14019328022378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144534&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19605&fm=14019328022378&tin=02508201610067®Number=0000000000146239&sum=76400 0 [14:45:34]StoreToDocumentArchive [14:45:34]shift 232 fd 19605 [14:45:34]save to /storage/0232/doc_00019605 [14:45:34]save last doc name /storage/0232/doc_00019605 to /storage/kkm_last_doc_name [14:45:34]save OK [14:45:34]Clear old archive folders... [14:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=490 [14:45:34]tlvbuf is 01C10040 [14:45:34]SAM_PROTO_ClearQueue [14:45:34]wFMCommunicate request_size=4 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 09 00 00 [14:45:34]Write to MH i2c: E2 08 00 70 03 80 09 00 00 00 00 00 00 E5 [14:45:34]Write i2c OK [14:45:34]MH_I2C_Read... [14:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:34]Read from MH i2c: E2 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 03 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 03 00 70 03 00 90 00 E7 [14:45:34]RAPDU: 90 00 [14:45:34]wFMCommunicate OK [14:45:34]SAM_PROTO_ClearQueue done [14:45:34]KKMCreateOFDPacket [14:45:34]OFDProtocolAddRootSTLVToBuf [14:45:34]FM_MakeSignedData [14:45:34]FM_MakeSignedData [14:45:34]SAM_PROTO_SignData [14:45:34]wFMCommunicate request_size=4 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 0D 01 02 [14:45:34]Write to MH i2c: E2 08 00 71 03 80 0D 01 02 00 00 00 00 ED [14:45:34]Write i2c OK [14:45:34]MH_I2C_Read... [14:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:34]Read from MH i2c: E2 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 03 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [14:45:34]RAPDU: 90 00 [14:45:34]wFMCommunicate OK [14:45:34]wFMCommunicate request_size=255 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 0D 02 02 FA 03 00 EA 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 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 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 [14:45:35]Write to MH i2c: E2 02 01 72 03 80 0D 02 02 FA 00 03 00 EA 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 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 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 00 00 33 [14:45:35]Write i2c OK [14:45:35]MH_I2C_Read... [14:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:35]Read from MH i2c: E2 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 03 00 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [14:45:35]RAPDU: 90 00 [14:45:35]wFMCommunicate OK [14:45:35]wFMCommunicate request_size=249 [14:45:35]MH_SAM_APDU [14:45:35]CAPDU: 80 0D 02 02 F4 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 20 D0 B1 2F D0 B3 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 70 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 1F 00 00 00 00 07 04 06 00 70 2A 01 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 0E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 95 4C 00 00 35 04 06 00 0C C0 21 11 17 6A [14:45:35]Write to MH i2c: E2 FC 00 73 03 80 0D 02 02 F4 00 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 20 D0 B1 2F D0 B3 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 70 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 1F 00 00 00 00 07 04 06 00 70 2A 01 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 0E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 95 4C 00 00 35 04 06 00 0C C0 21 11 17 6A 00 00 E5 [14:45:35]Write i2c OK [14:45:35]MH_I2C_Read... [14:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:35]Read from MH i2c: E2 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 03 00 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [14:45:35]RAPDU: 90 00 [14:45:35]wFMCommunicate OK [14:45:35]wFMCommunicate request_size=4 [14:45:35]MH_SAM_APDU [14:45:35]CAPDU: 80 0D 03 02 [14:45:35]Write to MH i2c: E2 08 00 74 03 80 0D 03 02 00 00 00 00 F2 [14:45:35]Write i2c OK [14:45:35]MH_I2C_Read... [14:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:35]Read from MH i2c: E2 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 0B 00 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 0B 00 74 03 00 6A 57 F9 C5 CD BE 6A C6 90 00 2D [14:45:35]RAPDU: 6A 57 F9 C5 CD BE 6A C6 90 00 [14:45:35]wFMCommunicate OK [14:45:35]SAM_PROTO_SignData done [14:45:35]FM_MakeSignedData done [14:45:35]CreateOFDProtocolMessage [14:45:35]wFMCommunicate request_size=4 [14:45:35]MH_SAM_APDU [14:45:35]CAPDU: 80 11 00 00 [14:45:35]Write to MH i2c: E2 08 00 75 03 80 11 00 00 00 00 00 00 F2 [14:45:35]Write i2c OK [14:45:35]MH_I2C_Read... [14:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:35]Read from MH i2c: E2 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 17 00 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: E2 17 00 75 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 47 [14:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:45:35]wFMCommunicate OK [14:45:35]CreateOFDProtocolMessage done [14:45:35]OFDSenderStorePacket 19605 [14:45:35]StoreOFDPacket docnum=19605 [14:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 FE 01 00 00 74 0F F6 01 81 1D 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 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 30 38 32 32 34 32 36 06 04 23 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 20 D0 B1 2F D0 B3 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 70 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 1F 00 00 00 00 07 04 06 00 70 2A 01 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 0E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 95 4C 00 00 35 04 06 00 0C C0 21 11 17 6A 6A 57 F9 C5 CD BE 6A C6 [14:45:35]CheckFolder [14:45:35]dirname=/storage/ofd_packets [14:45:35]CheckFolder done [14:45:35]ProducePacketName [14:45:35]name=ofd_packets/00019605 [14:45:35]NVStorageSaveData ofd_packets/00019605 [14:45:35]File name is /storage/ofd_packets/00019605 [14:45:35]Write 540 bytes [14:45:35]NVStorageSaveData done [14:45:35]OFDSenderStorePacket done [14:45:35]KKMCreateOFDPacket done [14:45:35]NVStorageSaveData kkm_last_timestamp [14:45:35]File name is /storage/kkm_last_timestamp [14:45:35]Write 4 bytes [14:45:35]NVStorageSaveData done [14:45:35]ExternCall_PrintAddStr [14:45:35]wPrintStart [14:45:35]Write to MH i2c: 01 00 00 76 03 79 [14:45:35]Write i2c OK [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: 01 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: 01 07 00 [14:45:35]MH_I2C_Read... [14:45:35]Read from MH i2c: 01 07 00 76 03 00 00 00 00 00 FF 0F 8E [14:45:35]RasterBufferAndPrint [14:45:35]line Счет N : (3)117516 [14:45:35]line ИНН: 02508201610067 [14:45:35]line Контрольно-Кассовый Чек [14:45:35]line ПРОДАЖА [14:45:35]line Товар: 2000031750019 [14:45:35]line Пакет Партнер Нефть [14:45:35]line 1.000 * 4.00 [14:45:35]line = 4.00 [14:45:35]line НДС 12% НСП 1% [14:45:35]line > о реализуемом товаре [14:45:35]line Товар: 4605664012121 [14:45:35]line Пиво бут Амстердам 0,5 [14:45:35]line 5.000 * 144.00 [14:45:35]line = 720.00 [14:45:35]line НДС 12% НСП 1% [14:45:35]line > о реализуемом товаре [14:45:35]line Товар: 40822426 [14:45:35]line Вода Бонаква 0,5л б/г [14:45:35]line 1.000 * 40.00 [14:45:35]line = 40.00 [14:45:35]line НДС 12% НСП 1% [14:45:35]line > о реализуемом товаре [14:45:35]line ИТОГО: 764.00 [14:45:35]line НСП 1% : 6.75 [14:45:35]line НДС 12% : 81.13 [14:45:35]line Наличными: 764.00 [14:45:35]line Безнал.: 0.00 [14:45:35]line Место: АЗС № 93 "Партнер Нефть" [14:45:35]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:45:35]line СНО: Общий режим [14:45:35]line Чек 55 21.09.2024 14:45 [14:45:35]line Смена: 232 ФФД: 1.0 [14:45:35]line ЗНМ: 0300000060 [14:45:35]line РНМ: 0000000000146239 [14:45:35]line Версия ККМ: v1.0 [14:45:35]line ФМ: 0000000000959362 [14:45:35]line ФД: 19605 [14:45:35]line ФПД: 14019328022378 [14:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144534&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19605&fm=14019328022378&tin=02508201610067®Number=0000000000146239&sum=76400 [14:45:35]line 0 [14:45:35]written 0, free lines is 4095 [14:45:35]OFD Sender: Processing packet 19605 [packets to send 63, broken 62] [14:45:35]ProducePacketName [14:45:35]name=ofd_packets/00019605 [14:45:35]OFD Sender: To server: pG, [14:45:35]CommunicateWithHost lk.salyk.kg:30040 [14:45:35]ConnectInit lk.salyk.kg [14:45:36]Write to MH i2c: 01 00 00 AA 03 AD [14:45:36]Write i2c OK [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: 01 [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: 01 07 00 [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 DE 0B 9D [14:45:36]RasterBufferAndPrint [14:45:36]line [14:45:36]line [14:45:36]line [14:45:36]line [14:45:36]line [14:45:36]written 0, free lines is 3043 [14:45:36]MH_Cut [14:45:36]Write to MH i2c: D1 01 00 B1 03 01 86 [14:45:36]Write i2c OK [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: D1 [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: D1 01 00 [14:45:36]MH_I2C_Read... [14:45:36]Read from MH i2c: D1 01 00 B1 03 00 85 [14:45:36]Write to MH i2c: 01 00 00 B2 03 B5 [14:45:36]Write i2c OK [14:45:36]MH_I2C_Read... [14:45:37]*** Cut start [14:45:37]*** Partial cut [14:45:37]*** CUTSNS_PIN = 1 [14:45:37]*** CUTSNS_PIN = 0 [14:45:37]Connected sock=10 [14:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 FE 01 00 00 74 0F F6 01 81 1D 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 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 30 38 32 32 34 32 36 06 04 23 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 20 D0 B1 2F D0 B3 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 70 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 1F 00 00 00 00 07 04 06 00 70 2A 01 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 0E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 95 4C 00 00 35 04 06 00 0C C0 21 11 17 6A 6A 57 F9 C5 CD BE 6A C6 [14:45:37]*** Brake cut motor [14:45:37]Read from MH i2c: 01 [14:45:37]MH_I2C_Read... [14:45:37]*** Stop cut motor [14:45:37]*** Cut end [14:45:37]Read from MH i2c: 01 07 00 [14:45:37]MH_I2C_Read... [14:45:37]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [14:45:37]process_action close_receipt done [14:45:37]requested_data is exist [14:45:37]produce_requested_data [14:45:37]requested_item fm.sn is exist - process it [14:45:37]wFMCommunicate request_size=4 [14:45:37]MH_SAM_APDU [14:45:37]CAPDU: 80 11 00 00 [14:45:37]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [14:45:37]Write i2c OK [14:45:37]MH_I2C_Read... [14:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:38]Read from MH i2c: E2 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 17 00 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 85 [14:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:45:38]wFMCommunicate OK [14:45:38]requested_item fd.num is exist - process it [14:45:38]SAM_PROTO_GetFieldsCounters [14:45:38]wFMCommunicate request_size=4 [14:45:38]MH_SAM_APDU [14:45:38]CAPDU: 80 13 00 00 [14:45:38]Write to MH i2c: E2 08 00 B4 03 80 13 00 00 00 00 00 00 33 [14:45:38]Write i2c OK [14:45:38]MH_I2C_Read... [14:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 13 CA 47 00 C7 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 95 4C 00 00 F4 03 04 00 A9 86 EE 66 B6 04 01 00 00 41 B3 02 05 CB 90 4E B4 [14:45:38]CommunicateWithHost err = 0 [14:45:38]CheckOFDResponse [14:45:38]1017 (14) - 77093643461234 [14:45:38]1041 (16) - 0000000000959362 [14:45:38]1040 (4) - 19605 [14:45:38]1012 (4) - 21.09.2024 08:41 [14:45:38]1206 (1) - 0 [14:45:38]OFD Sender: Remove packet 19605 [14:45:38]ProducePacketName [14:45:38]name=ofd_packets/00019605 [14:45:38]NVStorageDeleteData [14:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:38]Read from MH i2c: E2 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 62 00 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 62 00 B4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 95 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [14:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 95 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:38]wFMCommunicate OK [14:45:38]SAM_PROTO_GetFieldsCounters done [14:45:38]requested_item shift.num is exist - process it [14:45:38]requested_item shift.opened is exist - process it [14:45:38]req_shift_opened [14:45:38]FM_GetShiftState [14:45:38]SAM_PROTO_GetShiftState [14:45:38]wFMCommunicate request_size=4 [14:45:38]MH_SAM_APDU [14:45:38]CAPDU: 80 13 01 00 [14:45:38]Write to MH i2c: E2 08 00 B5 03 80 13 01 00 00 00 00 00 35 [14:45:38]Write i2c OK [14:45:38]MH_I2C_Read... [14:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:38]Read from MH i2c: E2 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 0E 00 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 0E 00 B5 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BB [14:45:38]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:45:38]wFMCommunicate OK [14:45:38]SAM_PROTO_GetShiftState done [14:45:38]FM_GetShiftState done [14:45:38]req_shift_opened done [14:45:38]requested_item shift.open_date is exist - process it [14:45:38]req_shift_open_date [14:45:38]req_shift_open_date done [14:45:38]produce_requested_data done [14:45:38]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19605,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:45:38]process_action_free close_receipt [14:45:38]json_value_free [14:45:38]json_value_free done [14:45:38]process_json_proto returns [14:45:38]Send response to host [14:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19605,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:45:38]free response buf [14:45:38]execute_script done [14:45:38]execute_script returns [14:45:38]free content buf [14:45:38]Sock 9.Close socket [14:45:38]Sock 9.Thread stoped [14:45:38]OFD Sender: No OFD packet to send [14:45:43]recv_with_timeout no data received [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 15 02 00 08 F4 03 04 00 3E DC EE 66 [14:46:22]Write to MH i2c: E2 10 00 C0 03 80 15 02 00 08 00 F4 03 04 00 3E DC EE 66 00 00 BC [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=25 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [14:46:22]Write to MH i2c: E2 1C 00 C1 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 A6 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 15 03 00 [14:46:22]Write to MH i2c: E2 08 00 C2 03 80 15 03 00 00 00 00 00 46 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 40 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 40 00 C2 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 38 00 00 00 35 04 06 00 E4 95 AA 34 8D 52 90 00 76 [14:46:22]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 38 00 00 00 35 04 06 00 E4 95 AA 34 8D 52 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_ProcessDocument answer len = 59 [14:46:22]SAM_PROTO_ProcessDocument done [14:46:22]SetTLVBufToDocument [14:46:22]Processing tag 1209 (04B9) [14:46:22]Malloc new data [14:46:22]Processing tag 1041 (0411) [14:46:22]Processing tag 1040 (0410) [14:46:22]Malloc new data [14:46:22]Processing tag 1038 (040E) [14:46:22]Malloc new data [14:46:22]Processing tag 1042 (0412) [14:46:22]Malloc new data [14:46:22]Processing tag 1077 (0435) [14:46:22]Malloc new data [14:46:22]SetTLVBufToDocument err=0 [14:46:22]KKMLoadAndSignReceiptData store KKM data [14:46:22]KKMLoadAndSignReceiptData err=0 [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 11 00 00 [14:46:22]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 17 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 95 [14:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:46:22]wFMCommunicate OK [14:46:22]Счет N : (1)23699761 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 52 Товар: 2710194210 ДТ(л)-К-5 3.940 * 76.20 = 300.23 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 56 21.09.2024 14:46 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19606 ФПД: 251331456830802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144622&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19606&fm=251331456830802&tin=02508201610067®Number=0000000000146239&sum=30000 [14:46:22]StoreToDocumentArchive [14:46:22]shift 232 fd 19606 [14:46:22]save to /storage/0232/doc_00019606 [14:46:22]save last doc name /storage/0232/doc_00019606 to /storage/kkm_last_doc_name [14:46:22]save OK [14:46:22]Clear old archive folders... [14:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:46:22]tlvbuf is 01C23640 [14:46:22]SAM_PROTO_ClearQueue [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 09 00 00 [14:46:22]Write to MH i2c: E2 08 00 C4 03 80 09 00 00 00 00 00 00 39 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_ClearQueue done [14:46:22]KKMCreateOFDPacket [14:46:22]OFDProtocolAddRootSTLVToBuf [14:46:22]FM_MakeSignedData [14:46:22]FM_MakeSignedData [14:46:22]SAM_PROTO_SignData [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 01 02 [14:46:22]Write to MH i2c: E2 08 00 C5 03 80 0D 01 02 00 00 00 00 41 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=255 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 35 04 06 00 [14:46:22]Write to MH i2c: E2 02 01 C6 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 35 04 06 00 00 00 DD [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=11 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 02 02 06 E4 95 AA 34 8D 52 [14:46:22]Write to MH i2c: E2 0E 00 C7 03 80 0D 02 02 06 00 E4 95 AA 34 8D 52 00 00 86 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 03 02 [14:46:22]Write to MH i2c: E2 08 00 C8 03 80 0D 03 02 00 00 00 00 46 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0B 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0B 00 C8 03 00 70 69 CB 61 9B 57 AF 2C 90 00 19 [14:46:23]RAPDU: 70 69 CB 61 9B 57 AF 2C 90 00 [14:46:23]wFMCommunicate OK [14:46:23]SAM_PROTO_SignData done [14:46:23]FM_MakeSignedData done [14:46:23]CreateOFDProtocolMessage [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 11 00 00 [14:46:23]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9B [14:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:46:23]wFMCommunicate OK [14:46:23]CreateOFDProtocolMessage done [14:46:23]OFDSenderStorePacket 19606 [14:46:23]StoreOFDPacket docnum=19606 [14:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 84 44 08 01 DB 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 35 04 06 00 E4 95 AA 34 8D 52 70 69 CB 61 9B 57 AF 2C [14:46:23]CheckFolder [14:46:23]dirname=/storage/ofd_packets [14:46:23]CheckFolder done [14:46:23]ProducePacketName [14:46:23]name=ofd_packets/00019606 [14:46:23]NVStorageSaveData ofd_packets/00019606 [14:46:23]File name is /storage/ofd_packets/00019606 [14:46:23]Write 302 bytes [14:46:23]NVStorageSaveData done [14:46:23]OFDSenderStorePacket done [14:46:23]KKMCreateOFDPacket done [14:46:23]NVStorageSaveData kkm_last_timestamp [14:46:23]File name is /storage/kkm_last_timestamp [14:46:23]Write 4 bytes [14:46:23]NVStorageSaveData done [14:46:23]ExternCall_PrintAddStr [14:46:23]wPrintStart [14:46:23]Write to MH i2c: 01 00 00 CA 03 CD [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 CA 03 00 00 00 00 00 FF 0F E2 [14:46:23]RasterBufferAndPrint [14:46:23]line Счет N : (1)23699761 [14:46:23]line ИНН: 02508201610067 [14:46:23]line Контрольно-Кассовый Чек [14:46:23]line ПРОДАЖА [14:46:23]line ТРК (МРК, ГНК) : 52 [14:46:23]line Товар: 2710194210 [14:46:23]line ДТ(л)-К-5 [14:46:23]line 3.940 * 76.20 [14:46:23]line = 300.23 [14:46:23]line НДС 12% НСП 1% [14:46:23]line > о реализуемом товаре [14:46:23]line ОКРУГЛЕНИЕ: -0.23 [14:46:23]line ИТОГО: 300.00 [14:46:23]line Внесено: 300.00 [14:46:23]line СДАЧА: 0.00 [14:46:23]line НСП 1% : 2.66 [14:46:23]line НДС 12% : 31.88 [14:46:23]line Наличными: 300.00 [14:46:23]line Безнал.: 0.00 [14:46:23]line Место: АЗС № 93 "Партнер Нефть" [14:46:23]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:46:23]line СНО: Общий режим [14:46:23]line Чек 56 21.09.2024 14:46 [14:46:23]line Смена: 232 ФФД: 1.0 [14:46:23]line ЗНМ: 0300000060 [14:46:23]line РНМ: 0000000000146239 [14:46:23]line Версия ККМ: v1.0 [14:46:23]line ФМ: 0000000000959362 [14:46:23]line ФД: 19606 [14:46:23]line ФПД: 251331456830802 [14:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144622&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19606&fm=251331456830802&tin=02508201610067®Number=0000000000146239&sum=30000 [14:46:23]OFD Sender: Processing packet 19606 [packets to send 63, broken 62] [14:46:23]ProducePacketName [14:46:23]name=ofd_packets/00019606 [14:46:23]OFD Sender: To server: pG, [14:46:23]CommunicateWithHost lk.salyk.kg:30040 [14:46:23]ConnectInit lk.salyk.kg [14:46:23]written 0, free lines is 4095 [14:46:23]Write to MH i2c: 01 00 00 F5 03 F8 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 96 0C A1 [14:46:23]RasterBufferAndPrint [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]written 0, free lines is 3227 [14:46:23]MH_Cut [14:46:23]Write to MH i2c: D1 01 00 FC 03 01 D1 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 01 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 01 00 FC 03 00 D0 [14:46:23]Write to MH i2c: 01 00 00 FD 03 00 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:24]*** Cut start [14:46:24]*** Partial cut [14:46:24]*** CUTSNS_PIN = 1 [14:46:24]*** CUTSNS_PIN = 0 [14:46:25]*** Brake cut motor [14:46:25]Read from MH i2c: 01 [14:46:25]MH_I2C_Read... [14:46:25]*** Stop cut motor [14:46:25]*** Cut end [14:46:25]Read from MH i2c: 01 07 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [14:46:25]process_action close_receipt done [14:46:25]requested_data is exist [14:46:25]produce_requested_data [14:46:25]requested_item fm.sn is exist - process it [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 11 00 00 [14:46:25]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 17 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D0 [14:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:46:25]wFMCommunicate OK [14:46:25]requested_item fd.num is exist - process it [14:46:25]SAM_PROTO_GetFieldsCounters [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 13 00 00 [14:46:25]Write to MH i2c: E2 08 00 FF 03 80 13 00 00 00 00 00 00 7E [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 62 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 62 00 FF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 96 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 96 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:25]wFMCommunicate OK [14:46:25]SAM_PROTO_GetFieldsCounters done [14:46:25]requested_item shift.num is exist - process it [14:46:25]requested_item shift.opened is exist - process it [14:46:25]req_shift_opened [14:46:25]FM_GetShiftState [14:46:25]SAM_PROTO_GetShiftState [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 13 01 00 [14:46:25]Write to MH i2c: E2 08 00 00 04 80 13 01 00 00 00 00 00 81 [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 0E 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 0E 00 00 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 07 [14:46:25]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:46:25]wFMCommunicate OK [14:46:25]SAM_PROTO_GetShiftState done [14:46:25]FM_GetShiftState done [14:46:25]req_shift_opened done [14:46:25]requested_item shift.open_date is exist - process it [14:46:25]req_shift_open_date [14:46:25]req_shift_open_date done [14:46:25]produce_requested_data done [14:46:25]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19606,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:46:25]process_action_free close_receipt [14:46:25]json_value_free [14:46:25]json_value_free done [14:46:25]process_json_proto returns [14:46:25]Send response to host [14:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19606,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:46:25]free response buf [14:46:25]execute_script done [14:46:25]execute_script returns [14:46:25]free content buf [14:46:25]Sock 8.Close socket [14:46:25]Sock 8.Thread stoped [14:46:28]ConnectInit Can't take IP for lk.salyk.kg [14:46:28]CommunicateWithHost connect error [14:46:28]CommunicateWithHost err = -1 [14:46:28]OFD Sender: Server communicate error [14:46:33]OFD Sender: Processing packet 19606 [packets to send 63, broken 62] [14:46:33]ProducePacketName [14:46:33]name=ofd_packets/00019606 [14:46:33]OFD Sender: To server: pG, [14:46:33]CommunicateWithHost lk.salyk.kg:30040 [14:46:33]ConnectInit lk.salyk.kg [14:46:38]ConnectInit Can't take IP for lk.salyk.kg [14:46:38]CommunicateWithHost connect error [14:46:38]CommunicateWithHost err = -1 [14:46:38]OFD Sender: Server communicate error [14:46:43]OFD Sender: Processing packet 19606 [packets to send 63, broken 62] [14:46:43]ProducePacketName [14:46:43]name=ofd_packets/00019606 [14:46:43]OFD Sender: To server: pG, [14:46:43]CommunicateWithHost lk.salyk.kg:30040 [14:46:43]ConnectInit lk.salyk.kg [14:46:43]recv_with_timeout no data received [14:46:48]accept exits with 10 [14:46:48]New connection [14:46:48]New thread 3067104612 created [14:46:48]Thread 3067247972 joined [14:46:48]Waiting for new connection... [14:46:48] Sock 10.Parse request [14:46:48]Sock 10.Check first char [14:46:48]Sock 10.First char is OK [14:46:48]request: POST /json_proto HTTP/1.0 [14:46:48]Method: POST [14:46:48]URL: /json_proto [14:46:48]Method is POST - this is cgi request [14:46:48]url: /json_proto [14:46:48]query_string will be loaded in cgi processing [14:46:48]execute_cgi json_proto POST (null) [14:46:48]execute_cgi path=json_proto method=POST [14:46:48]POST find Content-Length [14:46:48]Host: 172.17.42.73:8080 [14:46:48]Content-Length: 1146 [14:46:48]Content-Type: application/json [14:46:48] [14:46:48]POST finish read [14:46:48]Found Content-Length = 1146 [14:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117517", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:48]execute_script... [14:46:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117517", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:48]POST & json_proto [14:46:48]process_json_proto [14:46:48]json parsed OK: [14:46:48]protocol is kg_v1.0 [14:46:48]action value=close_receipt [14:46:48]process_action close_receipt [14:46:48]cmd_close_receipt [14:46:48]MH_GetDate [14:46:48]Write to MH i2c: F0 00 00 01 04 F4 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: F0 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: F0 09 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: F0 09 00 01 04 00 58 DC EE 66 99 54 47 66 1F [14:46:48]GetLastDocTimeStamp 1726929982 [14:46:48]current date 1726930008 [14:46:48]FM_GetShiftState [14:46:48]SAM_PROTO_GetShiftState [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 13 01 00 [14:46:48]Write to MH i2c: E2 08 00 02 04 80 13 01 00 00 00 00 00 83 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0E 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0E 00 02 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 09 [14:46:48]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_GetShiftState done [14:46:48]FM_GetShiftState done [14:46:48]opened in 1726877463 [14:46:48]opened+sec_in_day 1726963863 [14:46:48]quantity*price = 10500 [14:46:48]sum+1 = 10501 [14:46:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 57 21.09.2024 14:46 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19607 ФПД: 63036020119740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144649&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19607&fm=63036020119740&tin=02508201610067®Number=0000000000146239&sum=20000 0 [14:46:49]StoreToDocumentArchive [14:46:49]shift 232 fd 19607 [14:46:49]save to /storage/0232/doc_00019607 [14:46:49]save last doc name /storage/0232/doc_00019607 to /storage/kkm_last_doc_name [14:46:49]save OK [14:46:49]Clear old archive folders... [14:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=427 [14:46:49]tlvbuf is 01C985C0 [14:46:49]SAM_PROTO_ClearQueue [14:46:49]wFMCommunicate request_size=4 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 09 00 00 [14:46:49]Write to MH i2c: E2 08 00 0F 04 80 09 00 00 00 00 00 00 85 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:49]Read from MH i2c: E2 03 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [14:46:49]RAPDU: 90 00 [14:46:49]wFMCommunicate OK [14:46:49]SAM_PROTO_ClearQueue done [14:46:49]KKMCreateOFDPacket [14:46:49]OFDProtocolAddRootSTLVToBuf [14:46:49]FM_MakeSignedData [14:46:49]FM_MakeSignedData [14:46:49]SAM_PROTO_SignData [14:46:49]wFMCommunicate request_size=4 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 0D 01 02 [14:46:49]Write to MH i2c: E2 08 00 10 04 80 0D 01 02 00 00 00 00 8D [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 03 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [14:46:49]RAPDU: 90 00 [14:46:49]wFMCommunicate OK [14:46:49]wFMCommunicate request_size=255 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 0D 02 02 FA 03 00 AB 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 [14:46:49]Write to MH i2c: E2 02 01 11 04 80 0D 02 02 FA 00 03 00 AB 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 00 85 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 03 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [14:46:49]RAPDU: 90 00 [14:46:49]wFMCommunicate OK [14:46:49]wFMCommunicate request_size=186 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 0D 02 02 B5 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 59 DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 97 4C 00 00 35 04 06 00 39 54 B7 96 58 BC [14:46:49]Write to MH i2c: E2 BD 00 12 04 80 0D 02 02 B5 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 59 DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 97 4C 00 00 35 04 06 00 39 54 B7 96 58 BC 00 00 4E [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 03 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [14:46:50]RAPDU: 90 00 [14:46:50]wFMCommunicate OK [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 0D 03 02 [14:46:50]Write to MH i2c: E2 08 00 13 04 80 0D 03 02 00 00 00 00 92 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0B 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0B 00 13 04 00 70 D1 83 23 43 1E 3B C5 90 00 DB [14:46:50]RAPDU: 70 D1 83 23 43 1E 3B C5 90 00 [14:46:50]wFMCommunicate OK [14:46:50]SAM_PROTO_SignData done [14:46:50]FM_MakeSignedData done [14:46:50]CreateOFDProtocolMessage [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 11 00 00 [14:46:50]Write to MH i2c: E2 08 00 14 04 80 11 00 00 00 00 00 00 92 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 17 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 17 00 14 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E7 [14:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:46:50]wFMCommunicate OK [14:46:50]CreateOFDProtocolMessage done [14:46:50]OFDSenderStorePacket 19607 [14:46:50]StoreOFDPacket docnum=19607 [14:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 BF 01 00 00 C6 E7 B7 01 B3 96 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 59 DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 97 4C 00 00 35 04 06 00 39 54 B7 96 58 BC 70 D1 83 23 43 1E 3B C5 [14:46:50]CheckFolder [14:46:50]dirname=/storage/ofd_packets [14:46:50]CheckFolder done [14:46:50]ProducePacketName [14:46:50]name=ofd_packets/00019607 [14:46:50]NVStorageSaveData ofd_packets/00019607 [14:46:50]File name is /storage/ofd_packets/00019607 [14:46:50]Write 477 bytes [14:46:50]NVStorageSaveData done [14:46:50]OFDSenderStorePacket done [14:46:50]KKMCreateOFDPacket done [14:46:50]NVStorageSaveData kkm_last_timestamp [14:46:50]File name is /storage/kkm_last_timestamp [14:46:50]Write 4 bytes [14:46:50]NVStorageSaveData done [14:46:50]ExternCall_PrintAddStr [14:46:50]wPrintStart [14:46:50]Write to MH i2c: 01 00 00 15 04 19 [14:46:50]OFD Sender: Processing packet 19606 [packets to send 64, broken 62] [14:46:50]ProducePacketName [14:46:50]name=ofd_packets/00019606 [14:46:50]OFD Sender: To server: pG, [14:46:50]CommunicateWithHost lk.salyk.kg:30040 [14:46:50]ConnectInit lk.salyk.kg [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: 01 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: 01 07 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [14:46:50]RasterBufferAndPrint [14:46:50]line Счет N : (3)117517 [14:46:50]line ИНН: 02508201610067 [14:46:50]line Контрольно-Кассовый Чек [14:46:50]line ПРОДАЖА [14:46:50]line Товар: 5449000189356 [14:46:50]line Холодный чай Fuse манго ананас 1л [14:46:50]line 1.000 * 105.00 [14:46:50]line = 105.00 [14:46:50]line НДС 12% НСП 1% [14:46:50]line > о реализуемом товаре [14:46:50]line Товар: 4700000480364 [14:46:50]line Напиток энерг Nitro экзотик 0.45 ж/б [14:46:50]line 1.000 * 95.00 [14:46:50]line = 95.00 [14:46:50]line НДС 12% НСП 1% [14:46:50]line > о реализуемом товаре [14:46:50]line ИТОГО: 200.00 [14:46:50]line НСП 1% : 1.77 [14:46:50]line НДС 12% : 21.24 [14:46:50]line Наличными: 0.00 [14:46:50]line Безнал.: 200.00 [14:46:50]line Место: АЗС № 93 "Партнер Нефть" [14:46:50]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:46:50]line СНО: Общий режим [14:46:50]line Чек 57 21.09.2024 14:46 [14:46:50]line Смена: 232 ФФД: 1.0 [14:46:50]line ЗНМ: 0300000060 [14:46:50]line РНМ: 0000000000146239 [14:46:50]line Версия ККМ: v1.0 [14:46:50]line Платежная система: Mbank [14:46:50]line ФМ: 0000000000959362 [14:46:50]line ФД: 19607 [14:46:50]line ФПД: 63036020119740 [14:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T144649&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19607&fm=63036020119740&tin=02508201610067®Number=0000000000146239&sum=20000 [14:46:50]line 0 [14:46:50]written 0, free lines is 4095 [14:46:51]Write to MH i2c: 01 00 00 46 04 4A [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: 01 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: 01 07 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: 01 07 00 46 04 00 00 00 00 00 0D 0C 6A [14:46:51]RasterBufferAndPrint [14:46:51]line [14:46:51]line [14:46:51]line [14:46:51]line [14:46:51]line [14:46:51]written 0, free lines is 3090 [14:46:51]MH_Cut [14:46:51]Write to MH i2c: D1 01 00 4D 04 01 23 [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: D1 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: D1 01 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: D1 01 00 4D 04 00 22 [14:46:51]Write to MH i2c: 01 00 00 4E 04 52 [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:52]*** Cut start [14:46:52]*** Partial cut [14:46:52]*** CUTSNS_PIN = 1 [14:46:52]*** CUTSNS_PIN = 0 [14:46:52]*** Brake cut motor [14:46:52]Read from MH i2c: 01 [14:46:52]MH_I2C_Read... [14:46:52]*** Stop cut motor [14:46:52]*** Cut end [14:46:52]Read from MH i2c: 01 07 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 FF 0F 67 [14:46:52]process_action close_receipt done [14:46:52]requested_data is exist [14:46:52]produce_requested_data [14:46:52]requested_item fm.sn is exist - process it [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 11 00 00 [14:46:52]Write to MH i2c: E2 08 00 4F 04 80 11 00 00 00 00 00 00 CD [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 4F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 22 [14:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:46:52]wFMCommunicate OK [14:46:52]requested_item fd.num is exist - process it [14:46:52]SAM_PROTO_GetFieldsCounters [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 13 00 00 [14:46:52]Write to MH i2c: E2 08 00 50 04 80 13 00 00 00 00 00 00 D0 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 62 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 62 00 50 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 97 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 97 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_GetFieldsCounters done [14:46:52]requested_item shift.num is exist - process it [14:46:52]requested_item shift.opened is exist - process it [14:46:52]req_shift_opened [14:46:52]FM_GetShiftState [14:46:52]SAM_PROTO_GetShiftState [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 13 01 00 [14:46:52]Write to MH i2c: E2 08 00 51 04 80 13 01 00 00 00 00 00 D2 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 51 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 58 [14:46:52]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_GetShiftState done [14:46:52]FM_GetShiftState done [14:46:52]req_shift_opened done [14:46:52]requested_item shift.open_date is exist - process it [14:46:52]req_shift_open_date [14:46:52]req_shift_open_date done [14:46:52]produce_requested_data done [14:46:52]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19607,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:46:52]process_action_free close_receipt [14:46:52]json_value_free [14:46:52]json_value_free done [14:46:52]process_json_proto returns [14:46:52]Send response to host [14:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19607,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:46:52]free response buf [14:46:52]execute_script done [14:46:52]execute_script returns [14:46:52]free content buf [14:46:52]Sock 10.Close socket [14:46:52]Sock 10.Thread stoped [14:46:55]Connected sock=11 [14:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 84 44 08 01 DB 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3E DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 35 04 06 00 E4 95 AA 34 8D 52 70 69 CB 61 9B 57 AF 2C [14:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 80 53 47 00 F8 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 96 4C 00 00 F4 03 04 00 F7 86 EE 66 B6 04 01 00 00 8F AB F4 0A 60 F5 2D D1 [14:46:56]CommunicateWithHost err = 0 [14:46:56]CheckOFDResponse [14:46:56]1017 (14) - 77093643461234 [14:46:56]1041 (16) - 0000000000959362 [14:46:56]1040 (4) - 19606 [14:46:56]1012 (4) - 21.09.2024 08:42 [14:46:56]1206 (1) - 0 [14:46:56]OFD Sender: Remove packet 19606 [14:46:56]ProducePacketName [14:46:56]name=ofd_packets/00019606 [14:46:56]NVStorageDeleteData [14:46:56]OFD Sender: Processing packet 19607 [packets to send 63, broken 62] [14:46:56]ProducePacketName [14:46:56]name=ofd_packets/00019607 [14:46:56]OFD Sender: To server: pG, [14:46:56]CommunicateWithHost lk.salyk.kg:30040 [14:46:56]ConnectInit lk.salyk.kg [14:46:58]Connected sock=9 [14:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 BF 01 00 00 C6 E7 B7 01 B3 96 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 59 DC EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 97 4C 00 00 35 04 06 00 39 54 B7 96 58 BC 70 D1 83 23 43 1E 3B C5 [14:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 4F A3 47 00 0F 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 97 4C 00 00 F4 03 04 00 F9 86 EE 66 B6 04 01 00 00 E5 D7 35 BA FF A4 E7 56 [14:46:58]CommunicateWithHost err = 0 [14:46:58]CheckOFDResponse [14:46:58]1017 (14) - 77093643461234 [14:46:58]1041 (16) - 0000000000959362 [14:46:58]1040 (4) - 19607 [14:46:58]1012 (4) - 21.09.2024 08:42 [14:46:58]1206 (1) - 0 [14:46:58]OFD Sender: Remove packet 19607 [14:46:58]ProducePacketName [14:46:58]name=ofd_packets/00019607 [14:46:58]NVStorageDeleteData [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:21]accept exits with 8 [14:46:21]New connection [14:46:21]New thread 3067247972 created [14:46:21]Thread 3067104612 joined [14:46:21]Waiting for new connection... [14:46:21] Sock 8.Parse request [14:46:21]Sock 8.Check first char [14:46:21]Sock 8.First char is OK [14:46:21]request: POST /json_proto HTTP/1.0 [14:46:21]Method: POST [14:46:21]URL: /json_proto [14:46:21]Method is POST - this is cgi request [14:46:21]url: /json_proto [14:46:21]query_string will be loaded in cgi processing [14:46:21]execute_cgi json_proto POST (null) [14:46:21]execute_cgi path=json_proto method=POST [14:46:21]POST find Content-Length [14:46:21]Host: 172.17.42.73:8080 [14:46:21]Content-Length: 684 [14:46:21]Content-Type: application/json [14:46:21] [14:46:21]POST finish read [14:46:21]Found Content-Length = 684 [14:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:21]execute_script... [14:46:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:21]POST & json_proto [14:46:21]process_json_proto [14:46:21]json parsed OK: [14:46:21]protocol is kg_v1.0 [14:46:21]action value=close_receipt [14:46:21]process_action close_receipt [14:46:21]cmd_close_receipt [14:46:21]MH_GetDate [14:46:21]Write to MH i2c: F0 00 00 B6 03 A8 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 09 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 09 00 B6 03 00 3E DC EE 66 99 54 47 66 B9 [14:46:21]GetLastDocTimeStamp 1726929934 [14:46:21]current date 1726929982 [14:46:21]FM_GetShiftState [14:46:21]SAM_PROTO_GetShiftState [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 01 00 [14:46:21]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BD [14:46:21]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetShiftState done [14:46:21]FM_GetShiftState done [14:46:21]opened in 1726877463 [14:46:21]opened+sec_in_day 1726963863 [14:46:21]quantity*price = 30022 [14:46:21]sum+1 = 30024 [14:46:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 9899.90 НСП 1% : 87.61 НДС 12% : 1051.32 Наличными: 0.00 Безнал.: 9899.90 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 58 21.09.2024 14:57 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19608 ФПД: 38492267700468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T145703&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19608&fm=38492267700468&tin=02508201610067®Number=0000000000146239&sum=989990 [14:57:03]StoreToDocumentArchive [14:57:03]shift 232 fd 19608 [14:57:03]save to /storage/0232/doc_00019608 [14:57:03]save last doc name /storage/0232/doc_00019608 to /storage/kkm_last_doc_name [14:57:03]save OK [14:57:03]Clear old archive folders... [14:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:03]tlvbuf is 01C1BD80 [14:57:03]SAM_PROTO_ClearQueue [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 09 00 00 [14:57:03]Write to MH i2c: E2 08 00 60 04 80 09 00 00 00 00 00 00 D6 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [14:57:03]RAPDU: 90 00 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_ClearQueue done [14:57:03]KKMCreateOFDPacket [14:57:03]OFDProtocolAddRootSTLVToBuf [14:57:03]FM_MakeSignedData [14:57:03]FM_MakeSignedData [14:57:03]SAM_PROTO_SignData [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 0D 01 02 [14:57:03]Write to MH i2c: E2 08 00 61 04 80 0D 01 02 00 00 00 00 DE [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [14:57:03]RAPDU: 90 00 [14:57:03]wFMCommunicate OK [14:57:03]wFMCommunicate request_size=255 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BF DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 98 4C 00 00 35 04 06 00 [14:57:03]Write to MH i2c: E2 02 01 62 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BF DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 98 4C 00 00 35 04 06 00 00 00 0B [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=11 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 02 02 06 23 02 2D F1 60 F4 [14:57:04]Write to MH i2c: E2 0E 00 63 04 80 0D 02 02 06 00 23 02 2D F1 60 F4 00 00 84 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 03 02 [14:57:04]Write to MH i2c: E2 08 00 64 04 80 0D 03 02 00 00 00 00 E3 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 0B 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 0B 00 64 04 00 79 D2 30 DF DD 30 B0 F9 90 00 F4 [14:57:04]RAPDU: 79 D2 30 DF DD 30 B0 F9 90 00 [14:57:04]wFMCommunicate OK [14:57:04]SAM_PROTO_SignData done [14:57:04]FM_MakeSignedData done [14:57:04]CreateOFDProtocolMessage [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 11 00 00 [14:57:04]Write to MH i2c: E2 08 00 65 04 80 11 00 00 00 00 00 00 E3 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 17 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 17 00 65 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 38 [14:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:57:04]wFMCommunicate OK [14:57:04]CreateOFDProtocolMessage done [14:57:04]OFDSenderStorePacket 19608 [14:57:04]StoreOFDPacket docnum=19608 [14:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 E5 85 08 01 D5 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BF DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 98 4C 00 00 35 04 06 00 23 02 2D F1 60 F4 79 D2 30 DF DD 30 B0 F9 [14:57:04]CheckFolder [14:57:04]dirname=/storage/ofd_packets [14:57:04]CheckFolder done [14:57:04]ProducePacketName [14:57:04]name=ofd_packets/00019608 [14:57:04]NVStorageSaveData ofd_packets/00019608 [14:57:04]File name is /storage/ofd_packets/00019608 [14:57:04]Write 302 bytes [14:57:04]NVStorageSaveData done [14:57:04]OFDSenderStorePacket done [14:57:04]KKMCreateOFDPacket done [14:57:04]NVStorageSaveData kkm_last_timestamp [14:57:04]File name is /storage/kkm_last_timestamp [14:57:04]Write 4 bytes [14:57:04]NVStorageSaveData done [14:57:04]ExternCall_PrintAddStr [14:57:04]wPrintStart [14:57:04]Write to MH i2c: 01 00 00 66 04 6A [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: 01 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: 01 07 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 FF 0F 7F [14:57:04]RasterBufferAndPrint [14:57:04]line Счет N : (1)23699770 [14:57:04]line ИНН: 02508201610067 [14:57:04]line Контрольно-Кассовый Чек [14:57:04]line ПРОДАЖА [14:57:04]line ТРК (МРК, ГНК) : 62 [14:57:04]line Товар: 2710194210 [14:57:04]line ДТ(л)-К-5 [14:57:04]line 129.920 * 76.20 [14:57:04]line = 9899.90 [14:57:04]line НДС 12% НСП 1% [14:57:04]line > о реализуемом товаре [14:57:04]line ИТОГО: 9899.90 [14:57:04]line НСП 1% : 87.61 [14:57:04]line НДС 12% : 1051.32 [14:57:04]line Наличными: 0.00 [14:57:04]line Безнал.: 9899.90 [14:57:04]line Место: АЗС № 93 "Партнер Нефть" [14:57:04]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:57:04]line СНО: Общий режим [14:57:04]line Чек 58 21.09.2024 14:57 [14:57:04]line Смена: 232 ФФД: 1.0 [14:57:04]line ЗНМ: 0300000060 [14:57:04]line РНМ: 0000000000146239 [14:57:04]line Версия ККМ: v1.0 [14:57:04]line Платежная система: Mbank [14:57:04]line ФМ: 0000000000959362 [14:57:04]line ФД: 19608 [14:57:04]line ФПД: 38492267700468 [14:57:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T145703&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19608&fm=38492267700468&tin=02508201610067®Number=0000000000146239&sum=989990 [14:57:04]OFD Sender: Processing packet 19608 [packets to send 63, broken 62] [14:57:04]ProducePacketName [14:57:04]name=ofd_packets/00019608 [14:57:04]OFD Sender: To server: pG, [14:57:04]CommunicateWithHost lk.salyk.kg:30040 [14:57:04]ConnectInit lk.salyk.kg [14:57:04]written 0, free lines is 4095 [14:57:05]Write to MH i2c: 01 00 00 8F 04 93 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 BE 0C 64 [14:57:05]RasterBufferAndPrint [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]written 0, free lines is 3266 [14:57:05]MH_Cut [14:57:05]Write to MH i2c: D1 01 00 96 04 01 6C [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 01 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 01 00 96 04 00 6B [14:57:05]Write to MH i2c: 01 00 00 97 04 9B [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Connected sock=9 [14:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 E5 85 08 01 D5 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BF DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 98 4C 00 00 35 04 06 00 23 02 2D F1 60 F4 79 D2 30 DF DD 30 B0 F9 [14:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 86 E7 47 00 B3 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 98 4C 00 00 F4 03 04 00 58 89 EE 66 B6 04 01 00 00 84 A8 B2 CA 03 8B 56 46 [14:57:05]CommunicateWithHost err = 0 [14:57:05]CheckOFDResponse [14:57:05]1017 (14) - 77093643461234 [14:57:05]1041 (16) - 0000000000959362 [14:57:05]1040 (4) - 19608 [14:57:05]1012 (4) - 21.09.2024 08:52 [14:57:05]1206 (1) - 0 [14:57:05]OFD Sender: Remove packet 19608 [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00019608 [14:57:05]NVStorageDeleteData [14:57:05]*** Cut start [14:57:05]*** Partial cut [14:57:05]*** CUTSNS_PIN = 1 [14:57:05]*** CUTSNS_PIN = 0 [14:57:06]OFD Sender: No OFD packet to send [14:57:06]*** Brake cut motor [14:57:06]Read from MH i2c: 01 [14:57:06]MH_I2C_Read... [14:57:06]*** Stop cut motor [14:57:06]*** Cut end [14:57:06]Read from MH i2c: 01 07 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [14:57:06]process_action close_receipt done [14:57:06]requested_data is exist [14:57:06]produce_requested_data [14:57:06]requested_item fm.sn is exist - process it [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 11 00 00 [14:57:06]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 6B [14:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:57:06]wFMCommunicate OK [14:57:06]requested_item fd.num is exist - process it [14:57:06]SAM_PROTO_GetFieldsCounters [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 13 00 00 [14:57:06]Write to MH i2c: E2 08 00 99 04 80 13 00 00 00 00 00 00 19 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 62 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 62 00 99 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 98 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14:57:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 98 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_GetFieldsCounters done [14:57:06]requested_item shift.num is exist - process it [14:57:06]requested_item shift.opened is exist - process it [14:57:06]req_shift_opened [14:57:06]FM_GetShiftState [14:57:06]SAM_PROTO_GetShiftState [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 13 01 00 [14:57:06]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0E 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A1 [14:57:06]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_GetShiftState done [14:57:06]FM_GetShiftState done [14:57:06]req_shift_opened done [14:57:06]requested_item shift.open_date is exist - process it [14:57:06]req_shift_open_date [14:57:06]req_shift_open_date done [14:57:06]produce_requested_data done [14:57:06]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19608,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:57:06]process_action_free close_receipt [14:57:06]json_value_free [14:57:06]json_value_free done [14:57:06]process_json_proto returns [14:57:06]Send response to host [14:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19608,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:57:06]free response buf [14:57:06]execute_script done [14:57:06]execute_script returns [14:57:06]free content buf [14:57:06]Sock 8.Close socket [14:57:06]Sock 8.Thread stoped [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:44]accept exits with 10 [14:57:44]New connection [14:57:44]New thread 3067104612 created [14:57:44]Thread 3067247972 joined [14:57:44]Waiting for new connection... [14:57:44] Sock 10.Parse request [14:57:44]Sock 10.Check first char [14:57:44]Sock 10.First char is OK [14:57:44]request: POST /json_proto HTTP/1.0 [14:57:44]Method: POST [14:57:44]URL: /json_proto [14:57:44]Method is POST - this is cgi request [14:57:44]url: /json_proto [14:57:44]query_string will be loaded in cgi processing [14:57:44]execute_cgi json_proto POST (null) [14:57:44]execute_cgi path=json_proto method=POST [14:57:44]POST find Content-Length [14:57:44]Host: 172.17.42.73:8080 [14:57:44]Content-Length: 817 [14:57:44]Content-Type: application/json [14:57:44] [14:57:44]POST finish read [14:57:44]Found Content-Length = 817 [14:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117518", "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" : 77.00, "quantity" : 2.000, "sum" : 154.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" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:44]execute_script... [14:57: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)117518", "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" : 77.00, "quantity" : 2.000, "sum" : 154.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" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:44]POST & json_proto [14:57:44]process_json_proto [14:57:44]json parsed OK: [14:57:44]protocol is kg_v1.0 [14:57:44]action value=close_receipt [14:57:44]process_action close_receipt [14:57:44]cmd_close_receipt [14:57:44]MH_GetDate [14:57:44]Write to MH i2c: F0 00 00 9B 04 8E [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: F0 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: F0 09 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: F0 09 00 9B 04 00 E8 DE EE 66 99 54 47 66 4B [14:57:44]GetLastDocTimeStamp 1726930623 [14:57:44]current date 1726930664 [14:57:44]FM_GetShiftState [14:57:44]SAM_PROTO_GetShiftState [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 13 01 00 [14:57:44]Write to MH i2c: E2 08 00 9C 04 80 13 01 00 00 00 00 00 1D [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 0E 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 0E 00 9C 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A3 [14:57:44]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:57:44]wFMCommunicate OK [14:57:44]SAM_PROTO_GetShiftState done [14:57:44]FM_GetShiftState done [14:57:44]opened in 1726877463 [14:57:44]opened+sec_in_day 1726963863 [14:57:44]quantity*price = 15400 [14:57:44]sum+1 = 15401 [14:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 0.00 Безнал.: 154.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 59 21.09.2024 14:57 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959362 ФД: 19609 ФПД: 276279592653006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T145744&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19609&fm=276279592653006&tin=02508201610067®Number=0000000000146239&sum=15400 0 [14:57:45]StoreToDocumentArchive [14:57:45]shift 232 fd 19609 [14:57:45]save to /storage/0232/doc_00019609 [14:57:45]save last doc name /storage/0232/doc_00019609 to /storage/kkm_last_doc_name [14:57:45]save OK [14:57:45]Clear old archive folders... [14:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:57:45]tlvbuf is 01C22330 [14:57:45]SAM_PROTO_ClearQueue [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 09 00 00 [14:57:45]Write to MH i2c: E2 08 00 A9 04 80 09 00 00 00 00 00 00 1F [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 A9 04 00 90 00 21 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]SAM_PROTO_ClearQueue done [14:57:45]KKMCreateOFDPacket [14:57:45]OFDProtocolAddRootSTLVToBuf [14:57:45]FM_MakeSignedData [14:57:45]FM_MakeSignedData [14:57:45]SAM_PROTO_SignData [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 0D 01 02 [14:57:45]Write to MH i2c: E2 08 00 AA 04 80 0D 01 02 00 00 00 00 27 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]wFMCommunicate request_size=255 [14:57:45]MH_SAM_APDU [14:57:45]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 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E8 DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:57:45]Write to MH i2c: E2 02 01 AB 04 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 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E8 DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F3 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 AB 04 00 90 00 23 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]wFMCommunicate request_size=52 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 0D 02 02 2F 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 99 4C 00 00 35 04 06 00 FB 46 5A FA 90 CE [14:57:45]Write to MH i2c: E2 37 00 AC 04 80 0D 02 02 2F 00 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 99 4C 00 00 35 04 06 00 FB 46 5A FA 90 CE 00 00 C7 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 0D 03 02 [14:57:45]Write to MH i2c: E2 08 00 AD 04 80 0D 03 02 00 00 00 00 2C [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0B 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0B 00 AD 04 00 25 08 74 89 CF D7 31 3C 90 00 6A [14:57:45]RAPDU: 25 08 74 89 CF D7 31 3C 90 00 [14:57:45]wFMCommunicate OK [14:57:45]SAM_PROTO_SignData done [14:57:45]FM_MakeSignedData done [14:57:45]CreateOFDProtocolMessage [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 11 00 00 [14:57:45]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 17 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 81 [14:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:57:45]wFMCommunicate OK [14:57:45]CreateOFDProtocolMessage done [14:57:45]OFDSenderStorePacket 19609 [14:57:45]StoreOFDPacket docnum=19609 [14:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 39 01 00 00 57 77 31 01 B2 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 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E8 DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 99 4C 00 00 35 04 06 00 FB 46 5A FA 90 CE 25 08 74 89 CF D7 31 3C [14:57:45]CheckFolder [14:57:45]dirname=/storage/ofd_packets [14:57:45]CheckFolder done [14:57:45]ProducePacketName [14:57:45]name=ofd_packets/00019609 [14:57:45]NVStorageSaveData ofd_packets/00019609 [14:57:45]File name is /storage/ofd_packets/00019609 [14:57:45]Write 343 bytes [14:57:45]NVStorageSaveData done [14:57:45]OFDSenderStorePacket done [14:57:45]KKMCreateOFDPacket done [14:57:45]NVStorageSaveData kkm_last_timestamp [14:57:45]File name is /storage/kkm_last_timestamp [14:57:45]Write 4 bytes [14:57:45]NVStorageSaveData done [14:57:45]ExternCall_PrintAddStr [14:57:45]wPrintStart [14:57:45]Write to MH i2c: 01 00 00 AF 04 B3 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [14:57:45]RasterBufferAndPrint [14:57:45]line Счет N : (3)117518 [14:57:45]line ИНН: 02508201610067 [14:57:45]line Контрольно-Кассовый Чек [14:57:45]line ПРОДАЖА [14:57:45]line Товар: 4700000480050 [14:57:45]line Напиток Nitro Energy эн green ж/б 0,45л [14:57:45]line 2.000 * 77.00 [14:57:45]line = 154.00 [14:57:45]line НДС 12% НСП 1% [14:57:45]line > о реализуемом товаре [14:57:45]line ИТОГО: 154.00 [14:57:45]line НСП 1% : 1.36 [14:57:45]line НДС 12% : 16.35 [14:57:45]line Наличными: 0.00 [14:57:45]line Безнал.: 154.00 [14:57:45]line Место: АЗС № 93 "Партнер Нефть" [14:57:45]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [14:57:45]line СНО: Общий режим [14:57:45]line Чек 59 21.09.2024 14:57 [14:57:45]line Смена: 232 ФФД: 1.0 [14:57:45]line ЗНМ: 0300000060 [14:57:45]line РНМ: 0000000000146239 [14:57:45]line Версия ККМ: v1.0 [14:57:45]line Платежная система: O! деньги [14:57:45]line ФМ: 0000000000959362 [14:57:45]line ФД: 19609 [14:57:45]line ФПД: 276279592653006 [14:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T145744&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19609&fm=276279592653006&tin=02508201610067®Number=0000000000146239&sum=15400 [14:57:46]line 0 [14:57:46]OFD Sender: Processing packet 19609 [packets to send 63, broken 62] [14:57:46]ProducePacketName [14:57:46]name=ofd_packets/00019609 [14:57:46]OFD Sender: To server: pG, [14:57:46]CommunicateWithHost lk.salyk.kg:30040 [14:57:46]ConnectInit lk.salyk.kg [14:57:46]written 0, free lines is 4095 [14:57:46]Connected sock=9 [14:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 39 01 00 00 57 77 31 01 B2 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 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E8 DE EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 99 4C 00 00 35 04 06 00 FB 46 5A FA 90 CE 25 08 74 89 CF D7 31 3C [14:57:46]Write to MH i2c: 01 00 00 DA 04 DE [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 8C 0C 7D [14:57:46]RasterBufferAndPrint [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]written 0, free lines is 3218 [14:57:46]MH_Cut [14:57:46]Write to MH i2c: D1 01 00 E1 04 01 B7 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 01 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 01 00 E1 04 00 B6 [14:57:46]Write to MH i2c: 01 00 00 E2 04 E6 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 86 71 47 00 5F 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 99 4C 00 00 F4 03 04 00 82 89 EE 66 B6 04 01 00 00 7B 40 4C 88 0F FA 82 78 [14:57:46]CommunicateWithHost err = 0 [14:57:46]CheckOFDResponse [14:57:46]1017 (14) - 77093643461234 [14:57:46]1041 (16) - 0000000000959362 [14:57:46]1040 (4) - 19609 [14:57:46]1012 (4) - 21.09.2024 08:53 [14:57:46]1206 (1) - 0 [14:57:46]OFD Sender: Remove packet 19609 [14:57:46]ProducePacketName [14:57:46]name=ofd_packets/00019609 [14:57:46]NVStorageDeleteData [14:57:47]OFD Sender: No OFD packet to send [14:57:47]*** Cut start [14:57:47]*** Partial cut [14:57:47]*** CUTSNS_PIN = 1 [14:57:47]*** CUTSNS_PIN = 0 [14:57:47]*** Brake cut motor [14:57:48]Read from MH i2c: 01 [14:57:48]MH_I2C_Read... [14:57:48]*** Stop cut motor [14:57:48]*** Cut end [14:57:48]Read from MH i2c: 01 07 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 FF 0F FB [14:57:48]process_action close_receipt done [14:57:48]requested_data is exist [14:57:48]produce_requested_data [14:57:48]requested_item fm.sn is exist - process it [14:57:48]wFMCommunicate request_size=4 [14:57:48]MH_SAM_APDU [14:57:48]CAPDU: 80 11 00 00 [14:57:48]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:48]Read from MH i2c: E2 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 17 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 B6 [14:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [14:57:48]wFMCommunicate OK [14:57:48]requested_item fd.num is exist - process it [14:57:48]SAM_PROTO_GetFieldsCounters [14:57:48]wFMCommunicate request_size=4 [14:57:48]MH_SAM_APDU [14:57:48]CAPDU: 80 13 00 00 [14:57:48]Write to MH i2c: E2 08 00 E4 04 80 13 00 00 00 00 00 00 64 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:48]Read from MH i2c: E2 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 62 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 62 00 E4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 99 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [14:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 99 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:48]wFMCommunicate OK [14:57:48]SAM_PROTO_GetFieldsCounters done [14:57:48]requested_item shift.num is exist - process it [14:57:48]requested_item shift.opened is exist - process it [14:57:48]req_shift_opened [14:57:48]FM_GetShiftState [14:57:48]SAM_PROTO_GetShiftState [14:57:48]wFMCommunicate request_size=4 [14:57:48]MH_SAM_APDU [14:57:48]CAPDU: 80 13 01 00 [14:57:48]Write to MH i2c: E2 08 00 E5 04 80 13 01 00 00 00 00 00 66 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:48]Read from MH i2c: E2 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 0E 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 0E 00 E5 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 EC [14:57:48]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [14:57:48]wFMCommunicate OK [14:57:48]SAM_PROTO_GetShiftState done [14:57:48]FM_GetShiftState done [14:57:48]req_shift_opened done [14:57:48]requested_item shift.open_date is exist - process it [14:57:48]req_shift_open_date [14:57:48]req_shift_open_date done [14:57:48]produce_requested_data done [14:57:48]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19609,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [14:57:48]process_action_free close_receipt [14:57:48]json_value_free [14:57:48]json_value_free done [14:57:48]process_json_proto returns [14:57:48]Send response to host [14:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19609,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [14:57:48]free response buf [14:57:48]execute_script done [14:57:48]execute_script returns [14:57:48]free content buf [14:57:48]Sock 10.Close socket [14:57:48]Sock 10.Thread stoped [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:03]recv_with_timeout no data received [14:59:07]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:21]recv_with_timeout no data received [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:06]recv_with_timeout no data received [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:34]recv_with_timeout no data received [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]recv_with_timeout no data received [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]recv_with_timeout no data received [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:26]recv_with_timeout no data received [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:29]recv_with_timeout no data received [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]recv_with_timeout no data received [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]recv_with_timeout no data received [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:05]recv_with_timeout no data received [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:25]accept exits with 8 [15:17:25]New connection [15:17:25]New thread 3067247972 created [15:17:25]Thread 3067104612 joined [15:17:25]Waiting for new connection... [15:17:25] Sock 8.Parse request [15:17:25]Sock 8.Check first char [15:17:25]Sock 8.First char is OK [15:17:25]request: POST /json_proto HTTP/1.0 [15:17:25]Method: POST [15:17:25]URL: /json_proto [15:17:25]Method is POST - this is cgi request [15:17:25]url: /json_proto [15:17:25]query_string will be loaded in cgi processing [15:17:25]execute_cgi json_proto POST (null) [15:17:25]execute_cgi path=json_proto method=POST [15:17:25]POST find Content-Length [15:17:25]Host: 172.17.42.73:8080 [15:17:25]Content-Length: 679 [15:17:25]Content-Type: application/json [15:17:25] [15:17:25]POST finish read [15:17:25]Found Content-Length = 679 [15:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117519", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:25]execute_script... [15:17:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117519", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:25]POST & json_proto [15:17:25]process_json_proto [15:17:25]json parsed OK: [15:17:25]protocol is kg_v1.0 [15:17:25]action value=close_receipt [15:17:25]process_action close_receipt [15:17:25]cmd_close_receipt [15:17:25]MH_GetDate [15:17:25]Write to MH i2c: F0 00 00 E6 04 D9 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: F0 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: F0 09 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: F0 09 00 E6 04 00 85 E3 EE 66 99 54 47 66 38 [15:17:25]GetLastDocTimeStamp 1726930664 [15:17:25]current date 1726931845 [15:17:25]FM_GetShiftState [15:17:25]SAM_PROTO_GetShiftState [15:17:25]wFMCommunicate request_size=4 [15:17:25]MH_SAM_APDU [15:17:25]CAPDU: 80 13 01 00 [15:17:25]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:25]Read from MH i2c: E2 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 0E 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 EE [15:17:25]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:17:25]wFMCommunicate OK [15:17:25]SAM_PROTO_GetShiftState done [15:17:25]FM_GetShiftState done [15:17:25]opened in 1726877463 [15:17:25]opened+sec_in_day 1726963863 [15:17:25]quantity*price = 8000 [15:17:25]sum+1 = 8001 [15:17:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 60 21.09.2024 15:17 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19610 ФПД: 195010312255890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T151725&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19610&fm=195010312255890&tin=02508201610067®Number=0000000000146239&sum=8000 0 [15:17:26]StoreToDocumentArchive [15:17:26]shift 232 fd 19610 [15:17:26]save to /storage/0232/doc_00019610 [15:17:26]save last doc name /storage/0232/doc_00019610 to /storage/kkm_last_doc_name [15:17:26]save OK [15:17:26]Clear old archive folders... [15:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:17:26]tlvbuf is 01C86B10 [15:17:26]SAM_PROTO_ClearQueue [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 09 00 00 [15:17:26]Write to MH i2c: E2 08 00 F4 04 80 09 00 00 00 00 00 00 6A [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]SAM_PROTO_ClearQueue done [15:17:26]KKMCreateOFDPacket [15:17:26]OFDProtocolAddRootSTLVToBuf [15:17:26]FM_MakeSignedData [15:17:26]FM_MakeSignedData [15:17:26]SAM_PROTO_SignData [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 01 02 [15:17:26]Write to MH i2c: E2 08 00 F5 04 80 0D 01 02 00 00 00 00 72 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]wFMCommunicate request_size=255 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:17:26]Write to MH i2c: E2 02 01 F6 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 54 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]wFMCommunicate request_size=53 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 02 02 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9A 4C 00 00 35 04 06 00 B1 5C 60 63 B9 92 [15:17:26]Write to MH i2c: E2 38 00 F7 04 80 0D 02 02 30 00 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9A 4C 00 00 35 04 06 00 B1 5C 60 63 B9 92 00 00 6D [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 03 02 [15:17:26]Write to MH i2c: E2 08 00 F8 04 80 0D 03 02 00 00 00 00 77 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 0B 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 0B 00 F8 04 00 78 CC B5 65 AB 7A 35 1E 90 00 4E [15:17:26]RAPDU: 78 CC B5 65 AB 7A 35 1E 90 00 [15:17:26]wFMCommunicate OK [15:17:26]SAM_PROTO_SignData done [15:17:26]FM_MakeSignedData done [15:17:26]CreateOFDProtocolMessage [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 11 00 00 [15:17:26]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 CC [15:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:17:26]wFMCommunicate OK [15:17:26]CreateOFDProtocolMessage done [15:17:26]OFDSenderStorePacket 19610 [15:17:26]StoreOFDPacket docnum=19610 [15:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3A 01 00 00 B8 D9 32 01 5C 6C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9A 4C 00 00 35 04 06 00 B1 5C 60 63 B9 92 78 CC B5 65 AB 7A 35 1E [15:17:26]CheckFolder [15:17:26]dirname=/storage/ofd_packets [15:17:26]CheckFolder done [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00019610 [15:17:26]NVStorageSaveData ofd_packets/00019610 [15:17:26]File name is /storage/ofd_packets/00019610 [15:17:26]Write 344 bytes [15:17:26]NVStorageSaveData done [15:17:26]OFDSenderStorePacket done [15:17:26]KKMCreateOFDPacket done [15:17:26]NVStorageSaveData kkm_last_timestamp [15:17:26]File name is /storage/kkm_last_timestamp [15:17:26]Write 4 bytes [15:17:26]NVStorageSaveData done [15:17:26]OFD Sender: Processing packet 19610 [packets to send 63, broken 62] [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00019610 [15:17:26]OFD Sender: To server: pG, [15:17:26]CommunicateWithHost lk.salyk.kg:30040 [15:17:26]ConnectInit lk.salyk.kg [15:17:26]ExternCall_PrintAddStr [15:17:26]wPrintStart [15:17:26]Write to MH i2c: 01 00 00 FA 04 FE [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FF 0F 13 [15:17:26]RasterBufferAndPrint [15:17:26]line Счет N : (3)117519 [15:17:26]line ИНН: 02508201610067 [15:17:26]line Контрольно-Кассовый Чек [15:17:26]line ПРОДАЖА [15:17:26]line Товар: 4700003010353 [15:17:26]line Напиток Let`s Go! с/с груша ПЭТ 1л [15:17:26]line 1.000 * 80.00 [15:17:26]line = 80.00 [15:17:26]line НДС 12% НСП 1% [15:17:26]line > о реализуемом товаре [15:17:26]line ИТОГО: 80.00 [15:17:26]line НСП 1% : 0.71 [15:17:26]line НДС 12% : 8.50 [15:17:26]line Наличными: 80.00 [15:17:26]line Безнал.: 0.00 [15:17:26]line Место: АЗС № 93 "Партнер Нефть" [15:17:26]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [15:17:26]line СНО: Общий режим [15:17:26]line Чек 60 21.09.2024 15:17 [15:17:26]line Смена: 232 ФФД: 1.0 [15:17:26]line ЗНМ: 0300000060 [15:17:26]line РНМ: 0000000000146239 [15:17:26]line Версия ККМ: v1.0 [15:17:26]line ФМ: 0000000000959362 [15:17:27]line ФД: 19610 [15:17:27]line ФПД: 195010312255890 [15:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T151725&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19610&fm=195010312255890&tin=02508201610067®Number=0000000000146239&sum=8000 [15:17:27]line 0 [15:17:27]written 0, free lines is 4095 [15:17:27]Write to MH i2c: 01 00 00 23 05 28 [15:17:27]Write i2c OK [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: 01 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: 01 07 00 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 9E 0C D9 [15:17:27]RasterBufferAndPrint [15:17:27]line [15:17:27]line [15:17:27]line [15:17:27]line [15:17:27]line [15:17:27]written 0, free lines is 3234 [15:17:27]MH_Cut [15:17:27]Write to MH i2c: D1 01 00 2A 05 01 01 [15:17:27]Write i2c OK [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: D1 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: D1 01 00 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: D1 01 00 2A 05 00 00 [15:17:27]Write to MH i2c: 01 00 00 2B 05 30 [15:17:27]Write i2c OK [15:17:27]MH_I2C_Read... [15:17:28]*** Cut start [15:17:28]*** Partial cut [15:17:28]*** CUTSNS_PIN = 1 [15:17:28]*** CUTSNS_PIN = 0 [15:17:28]*** Brake cut motor [15:17:29]Read from MH i2c: 01 [15:17:29]MH_I2C_Read... [15:17:29]*** Stop cut motor [15:17:29]*** Cut end [15:17:29]Read from MH i2c: 01 07 00 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [15:17:29]process_action close_receipt done [15:17:29]requested_data is exist [15:17:29]produce_requested_data [15:17:29]requested_item fm.sn is exist - process it [15:17:29]wFMCommunicate request_size=4 [15:17:29]MH_SAM_APDU [15:17:29]CAPDU: 80 11 00 00 [15:17:29]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [15:17:29]Write i2c OK [15:17:29]MH_I2C_Read... [15:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:29]Read from MH i2c: E2 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 17 00 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 00 [15:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:17:29]wFMCommunicate OK [15:17:29]requested_item fd.num is exist - process it [15:17:29]SAM_PROTO_GetFieldsCounters [15:17:29]wFMCommunicate request_size=4 [15:17:29]MH_SAM_APDU [15:17:29]CAPDU: 80 13 00 00 [15:17:29]Write to MH i2c: E2 08 00 2D 05 80 13 00 00 00 00 00 00 AE [15:17:29]Write i2c OK [15:17:29]MH_I2C_Read... [15:17:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:29]Read from MH i2c: E2 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 62 00 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 62 00 2D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:17:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9A 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:29]wFMCommunicate OK [15:17:29]SAM_PROTO_GetFieldsCounters done [15:17:29]requested_item shift.num is exist - process it [15:17:29]requested_item shift.opened is exist - process it [15:17:29]req_shift_opened [15:17:29]FM_GetShiftState [15:17:29]SAM_PROTO_GetShiftState [15:17:29]wFMCommunicate request_size=4 [15:17:29]MH_SAM_APDU [15:17:29]CAPDU: 80 13 01 00 [15:17:29]Write to MH i2c: E2 08 00 2E 05 80 13 01 00 00 00 00 00 B0 [15:17:29]Write i2c OK [15:17:29]MH_I2C_Read... [15:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:29]Read from MH i2c: E2 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 0E 00 [15:17:29]MH_I2C_Read... [15:17:29]Read from MH i2c: E2 0E 00 2E 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 36 [15:17:29]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:17:29]wFMCommunicate OK [15:17:29]SAM_PROTO_GetShiftState done [15:17:29]FM_GetShiftState done [15:17:29]req_shift_opened done [15:17:29]requested_item shift.open_date is exist - process it [15:17:29]req_shift_open_date [15:17:29]req_shift_open_date done [15:17:29]produce_requested_data done [15:17:29]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19610,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [15:17:29]process_action_free close_receipt [15:17:29]json_value_free [15:17:29]json_value_free done [15:17:29]process_json_proto returns [15:17:29]Send response to host [15:17:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19610,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [15:17:29]free response buf [15:17:29]execute_script done [15:17:29]execute_script returns [15:17:29]free content buf [15:17:29]Sock 8.Close socket [15:17:29]Sock 8.Thread stoped [15:17:32]recv_with_timeout no data received [15:17:42]recv_with_timeout no data received [15:17:59]recv_with_timeout no data received [15:19:07]accept exits with 9 [15:19:07]New connection [15:19:07]New thread 3067104612 created [15:19:07]Thread 3067247972 joined [15:19:07]Waiting for new connection... [15:19:07] Sock 9.Parse request [15:19:07]Sock 9.Check first char [15:19:07]Sock 9.First char is OK [15:19:07]request: POST /json_proto HTTP/1.0 [15:19:07]Method: POST [15:19:07]URL: /json_proto [15:19:07]Method is POST - this is cgi request [15:19:07]url: /json_proto [15:19:07]query_string will be loaded in cgi processing [15:19:07]execute_cgi json_proto POST (null) [15:19:07]execute_cgi path=json_proto method=POST [15:19:07]POST find Content-Length [15:19:07]Host: 172.17.42.73:8080 [15:19:07]Content-Length: 614 [15:19:07]Content-Type: application/json [15:19:07] [15:19:07]POST finish read [15:19:07]Found Content-Length = 614 [15:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117520", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [15:19:07]execute_script... [15:19: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)117520", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [15:19:07]POST & json_proto [15:19:07]process_json_proto [15:19:07]json parsed OK: [15:19:07]protocol is kg_v1.0 [15:19:07]action value=close_receipt [15:19:07]process_action close_receipt [15:19:07]cmd_close_receipt [15:19:07]MH_GetDate [15:19:07]Write to MH i2c: F0 00 00 2F 05 23 [15:19:07]Write i2c OK [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 09 00 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 09 00 2F 05 00 EC E3 EE 66 99 54 47 66 E9 [15:19:07]GetLastDocTimeStamp 1726931845 [15:19:07]current date 1726931948 [15:19:07]FM_GetShiftState [15:19:07]SAM_PROTO_GetShiftState [15:19:07]wFMCommunicate request_size=4 [15:19:07]MH_SAM_APDU [15:19:07]CAPDU: 80 13 01 00 [15:19:07]Write to MH i2c: E2 08 00 30 05 80 13 01 00 00 00 00 00 B2 [15:19:07]Write i2c OK [15:19:07]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 0E 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 0E 00 30 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 38 [15:19:08]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:19:08]wFMCommunicate OK [15:19:08]SAM_PROTO_GetShiftState done [15:19:08]FM_GetShiftState done [15:19:08]opened in 1726877463 [15:19:08]opened+sec_in_day 1726963863 [15:19:08]quantity*price = 11000 [15:19:08]sum+1 = 11001 [15:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 61 21.09.2024 15:19 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19611 ФПД: 183300807888463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T151908&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19611&fm=183300807888463&tin=02508201610067®Number=0000000000146239&sum=11000 0 [15:19:09]StoreToDocumentArchive [15:19:09]shift 232 fd 19611 [15:19:09]save to /storage/0232/doc_00019611 [15:19:09]save last doc name /storage/0232/doc_00019611 to /storage/kkm_last_doc_name [15:19:09]save OK [15:19:09]Clear old archive folders... [15:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:19:09]tlvbuf is 01C22BD0 [15:19:09]SAM_PROTO_ClearQueue [15:19:09]wFMCommunicate request_size=4 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 09 00 00 [15:19:09]Write to MH i2c: E2 08 00 3D 05 80 09 00 00 00 00 00 00 B4 [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [15:19:09]RAPDU: 90 00 [15:19:09]wFMCommunicate OK [15:19:09]SAM_PROTO_ClearQueue done [15:19:09]KKMCreateOFDPacket [15:19:09]OFDProtocolAddRootSTLVToBuf [15:19:09]FM_MakeSignedData [15:19:09]FM_MakeSignedData [15:19:09]SAM_PROTO_SignData [15:19:09]wFMCommunicate request_size=4 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 0D 01 02 [15:19:09]Write to MH i2c: E2 08 00 3E 05 80 0D 01 02 00 00 00 00 BC [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [15:19:09]RAPDU: 90 00 [15:19:09]wFMCommunicate OK [15:19:09]wFMCommunicate request_size=255 [15:19:09]MH_SAM_APDU [15:19:09]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 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 3D 00 00 00 F4 03 04 00 EC E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [15:19:09]Write to MH i2c: E2 02 01 3F 05 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 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 3D 00 00 00 F4 03 04 00 EC E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 7D [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [15:19:09]RAPDU: 90 00 [15:19:09]wFMCommunicate OK [15:19:09]wFMCommunicate request_size=25 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 0D 02 02 14 36 32 10 04 04 00 9B 4C 00 00 35 04 06 00 A6 B6 0B 8A 8E 4F [15:19:09]Write to MH i2c: E2 1C 00 40 05 80 0D 02 02 14 00 36 32 10 04 04 00 9B 4C 00 00 35 04 06 00 A6 B6 0B 8A 8E 4F 00 00 5B [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [15:19:09]RAPDU: 90 00 [15:19:09]wFMCommunicate OK [15:19:09]wFMCommunicate request_size=4 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 0D 03 02 [15:19:09]Write to MH i2c: E2 08 00 41 05 80 0D 03 02 00 00 00 00 C1 [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 0B 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 0B 00 41 05 00 46 32 01 82 C3 B5 24 DA 90 00 33 [15:19:09]RAPDU: 46 32 01 82 C3 B5 24 DA 90 00 [15:19:09]wFMCommunicate OK [15:19:09]SAM_PROTO_SignData done [15:19:09]FM_MakeSignedData done [15:19:09]CreateOFDProtocolMessage [15:19:09]wFMCommunicate request_size=4 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 11 00 00 [15:19:09]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 17 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 16 [15:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:19:09]wFMCommunicate OK [15:19:09]CreateOFDProtocolMessage done [15:19:09]OFDSenderStorePacket 19611 [15:19:09]StoreOFDPacket docnum=19611 [15:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 8B 1C 16 01 E6 9C 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 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 3D 00 00 00 F4 03 04 00 EC E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9B 4C 00 00 35 04 06 00 A6 B6 0B 8A 8E 4F 46 32 01 82 C3 B5 24 DA [15:19:09]CheckFolder [15:19:09]dirname=/storage/ofd_packets [15:19:09]CheckFolder done [15:19:09]ProducePacketName [15:19:09]name=ofd_packets/00019611 [15:19:09]NVStorageSaveData ofd_packets/00019611 [15:19:09]File name is /storage/ofd_packets/00019611 [15:19:09]Write 316 bytes [15:19:09]NVStorageSaveData done [15:19:09]OFDSenderStorePacket done [15:19:09]KKMCreateOFDPacket done [15:19:09]NVStorageSaveData kkm_last_timestamp [15:19:09]File name is /storage/kkm_last_timestamp [15:19:09]Write 4 bytes [15:19:09]NVStorageSaveData done [15:19:09]ExternCall_PrintAddStr [15:19:09]wPrintStart [15:19:09]Write to MH i2c: 01 00 00 43 05 48 [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 07 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 FF 0F 5D [15:19:09]RasterBufferAndPrint [15:19:09]line Счет N : (3)117520 [15:19:09]line ИНН: 02508201610067 [15:19:09]line Контрольно-Кассовый Чек [15:19:09]line ПРОДАЖА [15:19:09]line Товар: 4870001570071 [15:19:09]line Напиток Pepsi 1л [15:19:09]line 1.000 * 110.00 [15:19:09]line = 110.00 [15:19:09]line НДС 12% НСП 1% [15:19:09]line > о реализуемом товаре [15:19:09]line ИТОГО: 110.00 [15:19:09]line НСП 1% : 0.97 [15:19:09]line НДС 12% : 11.68 [15:19:09]line Наличными: 110.00 [15:19:09]line Безнал.: 0.00 [15:19:09]line Место: АЗС № 93 "Партнер Нефть" [15:19:09]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [15:19:09]line СНО: Общий режим [15:19:09]line Чек 61 21.09.2024 15:19 [15:19:09]line Смена: 232 ФФД: 1.0 [15:19:09]line ЗНМ: 0300000060 [15:19:09]line РНМ: 0000000000146239 [15:19:09]line Версия ККМ: v1.0 [15:19:09]line ФМ: 0000000000959362 [15:19:09]line ФД: 19611 [15:19:09]line ФПД: 183300807888463 [15:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T151908&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19611&fm=183300807888463&tin=02508201610067®Number=0000000000146239&sum=11000 [15:19:09]line 0 [15:19:09]written 0, free lines is 4095 [15:19:10]Write to MH i2c: 01 00 00 6B 05 70 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: 01 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: 01 07 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: 01 07 00 6B 05 00 00 00 00 00 B5 0C 38 [15:19:10]RasterBufferAndPrint [15:19:10]line [15:19:10]line [15:19:10]line [15:19:10]line [15:19:10]line [15:19:10]written 0, free lines is 3255 [15:19:10]MH_Cut [15:19:10]Write to MH i2c: D1 01 00 72 05 01 49 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: D1 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: D1 01 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: D1 01 00 72 05 00 48 [15:19:10]Write to MH i2c: 01 00 00 73 05 78 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:11]*** Cut start [15:19:11]*** Partial cut [15:19:11]*** CUTSNS_PIN = 1 [15:19:11]*** CUTSNS_PIN = 0 [15:19:11]*** Brake cut motor [15:19:11]Read from MH i2c: 01 [15:19:11]MH_I2C_Read... [15:19:11]*** Stop cut motor [15:19:11]*** Cut end [15:19:11]Read from MH i2c: 01 07 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [15:19:11]process_action close_receipt done [15:19:11]requested_data is exist [15:19:11]produce_requested_data [15:19:11]requested_item fm.sn is exist - process it [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 11 00 00 [15:19:11]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 48 [15:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:19:11]wFMCommunicate OK [15:19:11]requested_item fd.num is exist - process it [15:19:11]SAM_PROTO_GetFieldsCounters [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 13 00 00 [15:19:11]Write to MH i2c: E2 08 00 75 05 80 13 00 00 00 00 00 00 F6 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 62 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 62 00 75 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9B 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:12]wFMCommunicate OK [15:19:12]SAM_PROTO_GetFieldsCounters done [15:19:12]requested_item shift.num is exist - process it [15:19:12]requested_item shift.opened is exist - process it [15:19:12]req_shift_opened [15:19:12]FM_GetShiftState [15:19:12]SAM_PROTO_GetShiftState [15:19:12]wFMCommunicate request_size=4 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 13 01 00 [15:19:12]Write to MH i2c: E2 08 00 76 05 80 13 01 00 00 00 00 00 F8 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 0E 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 0E 00 76 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 7E [15:19:12]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:19:12]wFMCommunicate OK [15:19:12]SAM_PROTO_GetShiftState done [15:19:12]FM_GetShiftState done [15:19:12]req_shift_opened done [15:19:12]requested_item shift.open_date is exist - process it [15:19:12]req_shift_open_date [15:19:12]req_shift_open_date done [15:19:12]produce_requested_data done [15:19:12]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19611,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [15:19:12]process_action_free close_receipt [15:19:12]json_value_free [15:19:12]json_value_free done [15:19:12]process_json_proto returns [15:19:12]Send response to host [15:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19611,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [15:19:12]free response buf [15:19:12]execute_script done [15:19:12]execute_script returns [15:19:12]free content buf [15:19:12]Sock 9.Close socket [15:19:12]Sock 9.Thread stoped [15:19:23]recv_with_timeout no data received [15:19:36]ConnectInit Can't connect to host [15:19:36]CommunicateWithHost connect error [15:19:36]CommunicateWithHost err = -1 [15:19:36]OFD Sender: Server communicate error [15:19:37]OFD Sender: Processing packet 19610 [packets to send 64, broken 62] [15:19:37]ProducePacketName [15:19:37]name=ofd_packets/00019610 [15:19:37]OFD Sender: To server: pG, [15:19:37]CommunicateWithHost lk.salyk.kg:30040 [15:19:37]ConnectInit lk.salyk.kg [15:19:38]Connected sock=9 [15:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3A 01 00 00 B8 D9 32 01 5C 6C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9A 4C 00 00 35 04 06 00 B1 5C 60 63 B9 92 78 CC B5 65 AB 7A 35 1E [15:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 C1 48 47 00 28 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9A 4C 00 00 F4 03 04 00 A2 8E EE 66 B6 04 01 00 00 85 1F 07 DF 3C 05 E6 43 [15:19:39]CommunicateWithHost err = 0 [15:19:39]CheckOFDResponse [15:19:39]1017 (14) - 77093643461234 [15:19:39]1041 (16) - 0000000000959362 [15:19:39]1040 (4) - 19610 [15:19:39]1012 (4) - 21.09.2024 09:15 [15:19:39]1206 (1) - 0 [15:19:39]OFD Sender: Remove packet 19610 [15:19:39]ProducePacketName [15:19:39]name=ofd_packets/00019610 [15:19:39]NVStorageDeleteData [15:19:39]OFD Sender: Processing packet 19611 [packets to send 63, broken 62] [15:19:39]ProducePacketName [15:19:39]name=ofd_packets/00019611 [15:19:39]OFD Sender: To server: pG, [15:19:39]CommunicateWithHost lk.salyk.kg:30040 [15:19:39]ConnectInit lk.salyk.kg [15:19:40]Connected sock=9 [15:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 8B 1C 16 01 E6 9C 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 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 3D 00 00 00 F4 03 04 00 EC E3 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9B 4C 00 00 35 04 06 00 A6 B6 0B 8A 8E 4F 46 32 01 82 C3 B5 24 DA [15:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 2C F6 47 00 9D 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9B 4C 00 00 F4 03 04 00 A3 8E EE 66 B6 04 01 00 00 9D B2 A5 3C B5 50 D7 C0 [15:19:40]CommunicateWithHost err = 0 [15:19:40]CheckOFDResponse [15:19:40]1017 (14) - 77093643461234 [15:19:40]1041 (16) - 0000000000959362 [15:19:40]1040 (4) - 19611 [15:19:40]1012 (4) - 21.09.2024 09:15 [15:19:40]1206 (1) - 0 [15:19:40]OFD Sender: Remove packet 19611 [15:19:40]ProducePacketName [15:19:40]name=ofd_packets/00019611 [15:19:40]NVStorageDeleteData [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:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:33]accept exits with 8 [15:21:33]New connection [15:21:33]New thread 3067247972 created [15:21:33]Thread 3067104612 joined [15:21:33]Waiting for new connection... [15:21:33] Sock 8.Parse request [15:21:33]Sock 8.Check first char [15:21:33]Sock 8.First char is OK [15:21:33]request: POST /json_proto HTTP/1.0 [15:21:33]Method: POST [15:21:33]URL: /json_proto [15:21:33]Method is POST - this is cgi request [15:21:33]url: /json_proto [15:21:33]query_string will be loaded in cgi processing [15:21:33]execute_cgi json_proto POST (null) [15:21:33]execute_cgi path=json_proto method=POST [15:21:33]POST find Content-Length [15:21:33]Host: 172.17.42.73:8080 [15:21:33]Content-Length: 629 [15:21:33]Content-Type: application/json [15:21:33] [15:21:33]POST finish read [15:21:33]Found Content-Length = 629 [15:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117521", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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:33]execute_script... [15:21:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117521", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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:33]POST & json_proto [15:21:33]process_json_proto [15:21:33]json parsed OK: [15:21:33]protocol is kg_v1.0 [15:21:33]action value=close_receipt [15:21:33]process_action close_receipt [15:21:33]cmd_close_receipt [15:21:33]MH_GetDate [15:21:33]Write to MH i2c: F0 00 00 77 05 6B [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 77 05 00 7D E4 EE 66 99 54 47 66 C3 [15:21:33]GetLastDocTimeStamp 1726931948 [15:21:33]current date 1726932093 [15:21:33]FM_GetShiftState [15:21:33]SAM_PROTO_GetShiftState [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 13 01 00 [15:21:33]Write to MH i2c: E2 08 00 78 05 80 13 01 00 00 00 00 00 FA [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0E 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0E 00 78 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 80 [15:21:33]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:21:33]wFMCommunicate OK [15:21:33]SAM_PROTO_GetShiftState done [15:21:33]FM_GetShiftState done [15:21:33]opened in 1726877463 [15:21:33]opened+sec_in_day 1726963863 [15:21:33]quantity*price = 13000 [15:21:33]sum+1 = 13001 [15:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 62 21.09.2024 15:21 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19612 ФПД: 121250310970885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T152133&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19612&fm=121250310970885&tin=02508201610067®Number=0000000000146239&sum=13000 0 [15:21:34]StoreToDocumentArchive [15:21:34]shift 232 fd 19612 [15:21:34]save to /storage/0232/doc_00019612 [15:21:34]save last doc name /storage/0232/doc_00019612 to /storage/kkm_last_doc_name [15:21:34]save OK [15:21:34]Clear old archive folders... [15:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:21:34]tlvbuf is 01C1BD80 [15:21:34]SAM_PROTO_ClearQueue [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 09 00 00 [15:21:34]Write to MH i2c: E2 08 00 85 05 80 09 00 00 00 00 00 00 FC [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_ClearQueue done [15:21:34]KKMCreateOFDPacket [15:21:34]OFDProtocolAddRootSTLVToBuf [15:21:34]FM_MakeSignedData [15:21:34]FM_MakeSignedData [15:21:34]SAM_PROTO_SignData [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 01 02 [15:21:34]Write to MH i2c: E2 08 00 86 05 80 0D 01 02 00 00 00 00 04 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 86 05 00 90 00 FF [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=255 [15:21:34]MH_SAM_APDU [15:21:34]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 36 37 31 36 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 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 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 3E 00 00 00 F4 03 04 00 7D E4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [15:21:34]Write to MH i2c: E2 02 01 87 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 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 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 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 3E 00 00 00 F4 03 04 00 7D E4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 08 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=28 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 02 02 17 35 39 33 36 32 10 04 04 00 9C 4C 00 00 35 04 06 00 6E 46 C9 B6 DE 05 [15:21:34]Write to MH i2c: E2 1F 00 88 05 80 0D 02 02 17 00 35 39 33 36 32 10 04 04 00 9C 4C 00 00 35 04 06 00 6E 46 C9 B6 DE 05 00 00 93 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 03 02 [15:21:34]Write to MH i2c: E2 08 00 89 05 80 0D 03 02 00 00 00 00 09 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 89 05 00 71 01 58 78 11 3F B4 B7 90 00 07 [15:21:34]RAPDU: 71 01 58 78 11 3F B4 B7 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_SignData done [15:21:34]FM_MakeSignedData done [15:21:34]CreateOFDProtocolMessage [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 11 00 00 [15:21:34]Write to MH i2c: E2 08 00 8A 05 80 11 00 00 00 00 00 00 09 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 8A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 5E [15:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:21:34]wFMCommunicate OK [15:21:34]CreateOFDProtocolMessage done [15:21:34]OFDSenderStorePacket 19612 [15:21:34]StoreOFDPacket docnum=19612 [15:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 2B AE 19 01 77 1D 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 36 37 31 36 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 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 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 3E 00 00 00 F4 03 04 00 7D E4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9C 4C 00 00 35 04 06 00 6E 46 C9 B6 DE 05 71 01 58 78 11 3F B4 B7 [15:21:34]CheckFolder [15:21:34]dirname=/storage/ofd_packets [15:21:34]CheckFolder done [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00019612 [15:21:34]NVStorageSaveData ofd_packets/00019612 [15:21:34]File name is /storage/ofd_packets/00019612 [15:21:34]Write 319 bytes [15:21:34]NVStorageSaveData done [15:21:34]OFDSenderStorePacket done [15:21:34]KKMCreateOFDPacket done [15:21:34]NVStorageSaveData kkm_last_timestamp [15:21:34]File name is /storage/kkm_last_timestamp [15:21:34]Write 4 bytes [15:21:34]NVStorageSaveData done [15:21:34]ExternCall_PrintAddStr [15:21:34]wPrintStart [15:21:34]Write to MH i2c: 01 00 00 8B 05 90 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 FF 0F A5 [15:21:34]RasterBufferAndPrint [15:21:34]line Счет N : (3)117521 [15:21:34]line ИНН: 02508201610067 [15:21:34]line Контрольно-Кассовый Чек [15:21:34]line ПРОДАЖА [15:21:34]line Товар: 4620006996716 [15:21:34]line Водка Талка 0,1л [15:21:34]line 1.000 * 130.00 [15:21:34]line = 130.00 [15:21:34]line НДС 12% НСП 1% [15:21:34]line > о реализуемом товаре [15:21:34]line ИТОГО: 130.00 [15:21:34]line НСП 1% : 1.15 [15:21:34]line НДС 12% : 13.80 [15:21:34]line Наличными: 130.00 [15:21:34]line Безнал.: 0.00 [15:21:34]line Место: АЗС № 93 "Партнер Нефть" [15:21:34]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [15:21:34]line СНО: Общий режим [15:21:34]line Чек 62 21.09.2024 15:21 [15:21:34]line Смена: 232 ФФД: 1.0 [15:21:34]line ЗНМ: 0300000060 [15:21:34]line РНМ: 0000000000146239 [15:21:34]line Версия ККМ: v1.0 [15:21:34]line ФМ: 0000000000959362 [15:21:34]line ФД: 19612 [15:21:34]line ФПД: 121250310970885 [15:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T152133&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19612&fm=121250310970885&tin=02508201610067®Number=0000000000146239&sum=13000 [15:21:35]OFD Sender: Processing packet 19612 [packets to send 63, broken 62] [15:21:35]ProducePacketName [15:21:35]name=ofd_packets/00019612 [15:21:35]OFD Sender: To server: pG, [15:21:35]CommunicateWithHost lk.salyk.kg:30040 [15:21:35]ConnectInit lk.salyk.kg [15:21:35]line 0 [15:21:35]written 0, free lines is 4095 [15:21:35]Write to MH i2c: 01 00 00 B3 05 B8 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 BB 0C 86 [15:21:35]RasterBufferAndPrint [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]written 0, free lines is 3263 [15:21:35]MH_Cut [15:21:35]Write to MH i2c: D1 01 00 BA 05 01 91 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 01 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 01 00 BA 05 00 90 [15:21:35]Write to MH i2c: 01 00 00 BB 05 C0 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:36]*** Cut start [15:21:36]*** Partial cut [15:21:36]*** CUTSNS_PIN = 1 [15:21:36]*** CUTSNS_PIN = 0 [15:21:36]*** Brake cut motor [15:21:37]Read from MH i2c: 01 [15:21:37]MH_I2C_Read... [15:21:37]*** Stop cut motor [15:21:37]*** Cut end [15:21:37]Read from MH i2c: 01 07 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [15:21:37]process_action close_receipt done [15:21:37]requested_data is exist [15:21:37]produce_requested_data [15:21:37]requested_item fm.sn is exist - process it [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 11 00 00 [15:21:37]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 17 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 90 [15:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:21:37]wFMCommunicate OK [15:21:37]requested_item fd.num is exist - process it [15:21:37]SAM_PROTO_GetFieldsCounters [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 13 00 00 [15:21:37]Write to MH i2c: E2 08 00 BD 05 80 13 00 00 00 00 00 00 3E [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 62 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 62 00 BD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9C 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_GetFieldsCounters done [15:21:37]requested_item shift.num is exist - process it [15:21:37]requested_item shift.opened is exist - process it [15:21:37]req_shift_opened [15:21:37]FM_GetShiftState [15:21:37]SAM_PROTO_GetShiftState [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 13 01 00 [15:21:37]Write to MH i2c: E2 08 00 BE 05 80 13 01 00 00 00 00 00 40 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 BE 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 C6 [15:21:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_GetShiftState done [15:21:37]FM_GetShiftState done [15:21:37]req_shift_opened done [15:21:37]requested_item shift.open_date is exist - process it [15:21:37]req_shift_open_date [15:21:37]req_shift_open_date done [15:21:37]produce_requested_data done [15:21:37]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19612,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [15:21:37]process_action_free close_receipt [15:21:37]json_value_free [15:21:37]json_value_free done [15:21:37]process_json_proto returns [15:21:37]Send response to host [15:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19612,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [15:21:37]free response buf [15:21:37]execute_script done [15:21:37]execute_script returns [15:21:37]free content buf [15:21:37]Sock 8.Close socket [15:21:37]Sock 8.Thread stoped [15:21:40]ConnectInit Can't take IP for lk.salyk.kg [15:21:40]CommunicateWithHost connect error [15:21:40]CommunicateWithHost err = -1 [15:21:40]OFD Sender: Server communicate error [15:21:45]OFD Sender: Processing packet 19612 [packets to send 63, broken 62] [15:21:45]ProducePacketName [15:21:45]name=ofd_packets/00019612 [15:21:45]OFD Sender: To server: pG, [15:21:45]CommunicateWithHost lk.salyk.kg:30040 [15:21:45]ConnectInit lk.salyk.kg [15:21:45]Connected sock=8 [15:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 2B AE 19 01 77 1D 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 36 37 31 36 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 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 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 3E 00 00 00 F4 03 04 00 7D E4 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9C 4C 00 00 35 04 06 00 6E 46 C9 B6 DE 05 71 01 58 78 11 3F B4 B7 [15:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 B3 41 47 00 81 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9C 4C 00 00 F4 03 04 00 21 8F EE 66 B6 04 01 00 00 17 92 A2 1C 8D 51 AF AB [15:21:46]CommunicateWithHost err = 0 [15:21:46]CheckOFDResponse [15:21:46]1017 (14) - 77093643461234 [15:21:46]1041 (16) - 0000000000959362 [15:21:46]1040 (4) - 19612 [15:21:46]1012 (4) - 21.09.2024 09:17 [15:21:46]1206 (1) - 0 [15:21:46]OFD Sender: Remove packet 19612 [15:21:46]ProducePacketName [15:21:46]name=ofd_packets/00019612 [15:21:46]NVStorageDeleteData [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:54]recv_with_timeout no data received [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:04]recv_with_timeout no data received [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]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]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:25]recv_with_timeout no data received [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:29]recv_with_timeout no data received [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:48]recv_with_timeout no data received [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:14]accept exits with 10 [15:33:14]New connection [15:33:14]New thread 3067104612 created [15:33:14]Thread 3067247972 joined [15:33:14]Waiting for new connection... [15:33:14] Sock 10.Parse request [15:33:14]Sock 10.Check first char [15:33:14]Sock 10.First char is OK [15:33:14]request: POST /json_proto HTTP/1.0 [15:33:14]Method: POST [15:33:14]URL: /json_proto [15:33:14]Method is POST - this is cgi request [15:33:14]url: /json_proto [15:33:14]query_string will be loaded in cgi processing [15:33:14]execute_cgi json_proto POST (null) [15:33:14]execute_cgi path=json_proto method=POST [15:33:14]POST find Content-Length [15:33:14]Host: 172.17.42.73:8080 [15:33:14]Content-Length: 740 [15:33:14]Content-Type: application/json [15:33:14] [15:33:14]POST finish read [15:33:14]Found Content-Length = 740 [15:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117522", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:14]execute_script... [15:33: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)117522", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:14]POST & json_proto [15:33:14]process_json_proto [15:33:14]json parsed OK: [15:33:14]protocol is kg_v1.0 [15:33:14]action value=close_receipt [15:33:14]process_action close_receipt [15:33:14]cmd_close_receipt [15:33:14]MH_GetDate [15:33:14]Write to MH i2c: F0 00 00 BF 05 B3 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 09 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 09 00 BF 05 00 3B E7 EE 66 99 54 47 66 CC [15:33:14]GetLastDocTimeStamp 1726932093 [15:33:14]current date 1726932795 [15:33:14]FM_GetShiftState [15:33:14]SAM_PROTO_GetShiftState [15:33:14]wFMCommunicate request_size=4 [15:33:14]MH_SAM_APDU [15:33:14]CAPDU: 80 13 01 00 [15:33:14]Write to MH i2c: E2 08 00 C0 05 80 13 01 00 00 00 00 00 42 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0E 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0E 00 C0 05 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 C8 [15:33:15]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:33:15]wFMCommunicate OK [15:33:15]SAM_PROTO_GetShiftState done [15:33:15]FM_GetShiftState done [15:33:15]opened in 1726877463 [15:33:15]opened+sec_in_day 1726963863 [15:33:15]quantity*price = 15900 [15:33:15]sum+1 = 15901 [15:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 63 21.09.2024 15:33 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19613 ФПД: 28772243040624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T153315&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19613&fm=28772243040624&tin=02508201610067®Number=0000000000146239&sum=15900 0 [15:33:16]StoreToDocumentArchive [15:33:16]shift 232 fd 19613 [15:33:16]save to /storage/0232/doc_00019613 [15:33:16]save last doc name /storage/0232/doc_00019613 to /storage/kkm_last_doc_name [15:33:16]save OK [15:33:16]Clear old archive folders... [15:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=265 [15:33:16]tlvbuf is 01C264D0 [15:33:16]SAM_PROTO_ClearQueue [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 09 00 00 [15:33:16]Write to MH i2c: E2 08 00 CD 05 80 09 00 00 00 00 00 00 44 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [15:33:16]RAPDU: 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_ClearQueue done [15:33:16]KKMCreateOFDPacket [15:33:16]OFDProtocolAddRootSTLVToBuf [15:33:16]FM_MakeSignedData [15:33:16]FM_MakeSignedData [15:33:16]SAM_PROTO_SignData [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 0D 01 02 [15:33:16]Write to MH i2c: E2 08 00 CE 05 80 0D 01 02 00 00 00 00 4C [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [15:33:16]RAPDU: 90 00 [15:33:16]wFMCommunicate OK [15:33:16]wFMCommunicate request_size=255 [15:33:16]MH_SAM_APDU [15:33:16]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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3B E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 [15:33:16]Write to MH i2c: E2 02 01 CF 05 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3B E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 00 00 1B [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 CF 05 00 90 00 48 [15:33:16]RAPDU: 90 00 [15:33:16]wFMCommunicate OK [15:33:16]wFMCommunicate request_size=24 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 0D 02 02 13 32 10 04 04 00 9D 4C 00 00 35 04 06 00 1A 2B 0F 53 69 70 [15:33:16]Write to MH i2c: E2 1B 00 D0 05 80 0D 02 02 13 00 32 10 04 04 00 9D 4C 00 00 35 04 06 00 1A 2B 0F 53 69 70 00 00 67 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 03 00 D0 05 00 90 00 49 [15:33:16]RAPDU: 90 00 [15:33:16]wFMCommunicate OK [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 0D 03 02 [15:33:16]Write to MH i2c: E2 08 00 D1 05 80 0D 03 02 00 00 00 00 51 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0B 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0B 00 D1 05 00 4B B6 46 FA C0 31 F3 95 90 00 0C [15:33:16]RAPDU: 4B B6 46 FA C0 31 F3 95 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_SignData done [15:33:16]FM_MakeSignedData done [15:33:16]CreateOFDProtocolMessage [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 11 00 00 [15:33:16]Write to MH i2c: E2 08 00 D2 05 80 11 00 00 00 00 00 00 51 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 17 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 17 00 D2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 A6 [15:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:33:16]wFMCommunicate OK [15:33:16]CreateOFDProtocolMessage done [15:33:16]OFDSenderStorePacket 19613 [15:33:16]StoreOFDPacket docnum=19613 [15:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1D 01 00 00 AA DA 15 01 44 0B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3B E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9D 4C 00 00 35 04 06 00 1A 2B 0F 53 69 70 4B B6 46 FA C0 31 F3 95 [15:33:16]CheckFolder [15:33:16]dirname=/storage/ofd_packets [15:33:16]CheckFolder done [15:33:16]ProducePacketName [15:33:16]name=ofd_packets/00019613 [15:33:16]NVStorageSaveData ofd_packets/00019613 [15:33:16]File name is /storage/ofd_packets/00019613 [15:33:16]Write 315 bytes [15:33:16]NVStorageSaveData done [15:33:16]OFDSenderStorePacket done [15:33:16]KKMCreateOFDPacket done [15:33:16]NVStorageSaveData kkm_last_timestamp [15:33:16]File name is /storage/kkm_last_timestamp [15:33:16]Write 4 bytes [15:33:16]NVStorageSaveData done [15:33:16]OFD Sender: Processing packet 19613 [packets to send 63, broken 62] [15:33:16]ProducePacketName [15:33:16]name=ofd_packets/00019613 [15:33:16]OFD Sender: To server: pG, [15:33:16]CommunicateWithHost lk.salyk.kg:30040 [15:33:16]ConnectInit lk.salyk.kg [15:33:16]ExternCall_PrintAddStr [15:33:16]wPrintStart [15:33:16]Write to MH i2c: 01 00 00 D3 05 D8 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 07 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 FF 0F ED [15:33:16]RasterBufferAndPrint [15:33:16]line Счет N : (3)117522 [15:33:16]line ИНН: 02508201610067 [15:33:16]line Контрольно-Кассовый Чек [15:33:16]line ПРОДАЖА [15:33:16]line Товар: 47803152 [15:33:16]line Сигареты Mevius Revo [15:33:16]line 1.000 * 159.00 [15:33:16]line = 159.00 [15:33:16]line НДС 12% НСП 1% [15:33:16]line > о реализуемом товаре [15:33:16]line ИТОГО: 159.00 [15:33:16]line НСП 1% : 1.41 [15:33:16]line НДС 12% : 16.88 [15:33:16]line Наличными: 0.00 [15:33:16]line Безнал.: 159.00 [15:33:16]line Место: АЗС № 93 "Партнер Нефть" [15:33:16]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [15:33:16]line СНО: Общий режим [15:33:16]line Чек 63 21.09.2024 15:33 [15:33:16]line Смена: 232 ФФД: 1.0 [15:33:16]line ЗНМ: 0300000060 [15:33:16]line РНМ: 0000000000146239 [15:33:16]line Версия ККМ: v1.0 [15:33:16]line Платежная система: Mbank [15:33:16]line ФМ: 0000000000959362 [15:33:17]line ФД: 19613 [15:33:17]line ФПД: 28772243040624 [15:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T153315&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19613&fm=28772243040624&tin=02508201610067®Number=0000000000146239&sum=15900 [15:33:17]line 0 [15:33:17]written 0, free lines is 4095 [15:33:17]Write to MH i2c: 01 00 00 FC 05 01 [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: 01 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: 01 07 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 A4 0C B8 [15:33:17]RasterBufferAndPrint [15:33:17]line [15:33:17]line [15:33:17]line [15:33:17]line [15:33:17]line [15:33:17]written 0, free lines is 3240 [15:33:17]MH_Cut [15:33:17]Write to MH i2c: D1 01 00 03 06 01 DB [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: D1 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: D1 01 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: D1 01 00 03 06 00 DA [15:33:17]Write to MH i2c: 01 00 00 04 06 0A [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:18]*** Cut start [15:33:18]*** Partial cut [15:33:18]*** CUTSNS_PIN = 1 [15:33:18]*** CUTSNS_PIN = 0 [15:33:18]*** Brake cut motor [15:33:18]Read from MH i2c: 01 [15:33:18]MH_I2C_Read... [15:33:18]*** Stop cut motor [15:33:18]*** Cut end [15:33:18]Read from MH i2c: 01 07 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [15:33:18]process_action close_receipt done [15:33:18]requested_data is exist [15:33:18]produce_requested_data [15:33:18]requested_item fm.sn is exist - process it [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 11 00 00 [15:33:18]Write to MH i2c: E2 08 00 05 06 80 11 00 00 00 00 00 00 85 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 17 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 17 00 05 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DA [15:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:33:19]wFMCommunicate OK [15:33:19]requested_item fd.num is exist - process it [15:33:19]SAM_PROTO_GetFieldsCounters [15:33:19]wFMCommunicate request_size=4 [15:33:19]MH_SAM_APDU [15:33:19]CAPDU: 80 13 00 00 [15:33:19]Write to MH i2c: E2 08 00 06 06 80 13 00 00 00 00 00 00 88 [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 62 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 62 00 06 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9D 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:19]wFMCommunicate OK [15:33:19]SAM_PROTO_GetFieldsCounters done [15:33:19]requested_item shift.num is exist - process it [15:33:19]requested_item shift.opened is exist - process it [15:33:19]req_shift_opened [15:33:19]FM_GetShiftState [15:33:19]SAM_PROTO_GetShiftState [15:33:19]wFMCommunicate request_size=4 [15:33:19]MH_SAM_APDU [15:33:19]CAPDU: 80 13 01 00 [15:33:19]Write to MH i2c: E2 08 00 07 06 80 13 01 00 00 00 00 00 8A [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 0E 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 0E 00 07 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 10 [15:33:19]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:33:19]wFMCommunicate OK [15:33:19]SAM_PROTO_GetShiftState done [15:33:19]FM_GetShiftState done [15:33:19]req_shift_opened done [15:33:19]requested_item shift.open_date is exist - process it [15:33:19]req_shift_open_date [15:33:19]req_shift_open_date done [15:33:19]produce_requested_data done [15:33:19]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19613,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [15:33:19]process_action_free close_receipt [15:33:19]json_value_free [15:33:19]json_value_free done [15:33:19]process_json_proto returns [15:33:19]Send response to host [15:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19613,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [15:33:19]free response buf [15:33:19]execute_script done [15:33:19]execute_script returns [15:33:19]free content buf [15:33:19]Sock 10.Close socket [15:33:19]Sock 10.Thread stoped [15:35:29]ConnectInit Can't connect to host [15:35:29]CommunicateWithHost connect error [15:35:29]CommunicateWithHost err = -1 [15:35:29]OFD Sender: Server communicate error [15:35:34]OFD Sender: Processing packet 19613 [packets to send 63, broken 62] [15:35:34]ProducePacketName [15:35:34]name=ofd_packets/00019613 [15:35:34]OFD Sender: To server: pG, [15:35:34]CommunicateWithHost lk.salyk.kg:30040 [15:35:34]ConnectInit lk.salyk.kg [15:35:34]Connected sock=9 [15:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1D 01 00 00 AA DA 15 01 44 0B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3B E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9D 4C 00 00 35 04 06 00 1A 2B 0F 53 69 70 4B B6 46 FA C0 31 F3 95 [15:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 3B D7 47 00 79 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 39 35 39 33 36 32 10 04 04 00 9D 4C 00 00 F4 03 04 00 5E 92 EE 66 B6 04 01 00 00 B3 56 B8 90 7C 04 89 AA [15:35:34]CommunicateWithHost err = 0 [15:35:34]CheckOFDResponse [15:35:34]1017 (14) - 77093643461234 [15:35:34]1041 (16) - 0000000000959362 [15:35:34]1040 (4) - 19613 [15:35:34]1012 (4) - 21.09.2024 09:31 [15:35:34]1206 (1) - 0 [15:35:34]OFD Sender: Remove packet 19613 [15:35:34]ProducePacketName [15:35:34]name=ofd_packets/00019613 [15:35:34]NVStorageDeleteData [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:12]accept exits with 8 [15:36:12]New connection [15:36:12]New thread 3067247972 created [15:36:12]Thread 3067104612 joined [15:36:12]Waiting for new connection... [15:36:12] Sock 8.Parse request [15:36:12]Sock 8.Check first char [15:36:12]Sock 8.First char is OK [15:36:12]request: POST /json_proto HTTP/1.0 [15:36:12]Method: POST [15:36:12]URL: /json_proto [15:36:12]Method is POST - this is cgi request [15:36:12]url: /json_proto [15:36:12]query_string will be loaded in cgi processing [15:36:12]execute_cgi json_proto POST (null) [15:36:12]execute_cgi path=json_proto method=POST [15:36:12]POST find Content-Length [15:36:12]Host: 172.17.42.73:8080 [15:36:12]Content-Length: 623 [15:36:12]Content-Type: application/json [15:36:12] [15:36:12]POST finish read [15:36:12]Found Content-Length = 623 [15:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117523", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]execute_script... [15: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)117523", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]POST & json_proto [15:36:12]process_json_proto [15:36:12]json parsed OK: [15:36:12]protocol is kg_v1.0 [15:36:12]action value=close_receipt [15:36:12]process_action close_receipt [15:36:12]cmd_close_receipt [15:36:12]MH_GetDate [15:36:12]Write to MH i2c: F0 00 00 08 06 FD [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 08 06 00 EC E7 EE 66 99 54 47 66 C7 [15:36:12]GetLastDocTimeStamp 1726932795 [15:36:12]current date 1726932972 [15:36:12]FM_GetShiftState [15:36:12]SAM_PROTO_GetShiftState [15:36:12]wFMCommunicate request_size=4 [15:36:12]MH_SAM_APDU [15:36:12]CAPDU: 80 13 01 00 [15:36:12]Write to MH i2c: E2 08 00 09 06 80 13 01 00 00 00 00 00 8C [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:12]Read from MH i2c: E2 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 09 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 12 [15:36:12]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:36:12]wFMCommunicate OK [15:36:12]SAM_PROTO_GetShiftState done [15:36:12]FM_GetShiftState done [15:36:12]opened in 1726877463 [15:36:12]opened+sec_in_day 1726963863 [15:36:12]quantity*price = 40500 [15:36:12]sum+1 = 40501 [15:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 64 21.09.2024 15:36 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19614 ФПД: 270636916009768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T153612&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19614&fm=270636916009768&tin=02508201610067®Number=0000000000146239&sum=40500 0 [15:36:13]StoreToDocumentArchive [15:36:13]shift 232 fd 19614 [15:36:13]save to /storage/0232/doc_00019614 [15:36:13]save last doc name /storage/0232/doc_00019614 to /storage/kkm_last_doc_name [15:36:13]save OK [15:36:13]Clear old archive folders... [15:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=283 [15:36:13]tlvbuf is 01C8B7D0 [15:36:13]SAM_PROTO_ClearQueue [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 09 00 00 [15:36:13]Write to MH i2c: E2 08 00 16 06 80 09 00 00 00 00 00 00 8E [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]SAM_PROTO_ClearQueue done [15:36:13]KKMCreateOFDPacket [15:36:13]OFDProtocolAddRootSTLVToBuf [15:36:13]FM_MakeSignedData [15:36:13]FM_MakeSignedData [15:36:13]SAM_PROTO_SignData [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 0D 01 02 [15:36:13]Write to MH i2c: E2 08 00 17 06 80 0D 01 02 00 00 00 00 96 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]wFMCommunicate request_size=255 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EC E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 [15:36:13]Write to MH i2c: E2 02 01 18 06 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EC E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 00 00 1C [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]wFMCommunicate request_size=42 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9E 4C 00 00 35 04 06 00 F6 24 91 3D EB 28 [15:36:13]Write to MH i2c: E2 2D 00 19 06 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9E 4C 00 00 35 04 06 00 F6 24 91 3D EB 28 00 00 55 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 0D 03 02 [15:36:13]Write to MH i2c: E2 08 00 1A 06 80 0D 03 02 00 00 00 00 9B [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 0B 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 0B 00 1A 06 00 30 7B D6 9C 21 BC BC B2 90 00 04 [15:36:13]RAPDU: 30 7B D6 9C 21 BC BC B2 90 00 [15:36:13]wFMCommunicate OK [15:36:13]SAM_PROTO_SignData done [15:36:13]FM_MakeSignedData done [15:36:13]CreateOFDProtocolMessage [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 11 00 00 [15:36:13]Write to MH i2c: E2 08 00 1B 06 80 11 00 00 00 00 00 00 9B [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 1B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F0 [15:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:36:13]wFMCommunicate OK [15:36:13]CreateOFDProtocolMessage done [15:36:13]OFDSenderStorePacket 19614 [15:36:13]StoreOFDPacket docnum=19614 [15:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2F 01 00 00 A5 33 27 01 F3 DD 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EC E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9E 4C 00 00 35 04 06 00 F6 24 91 3D EB 28 30 7B D6 9C 21 BC BC B2 [15:36:13]CheckFolder [15:36:13]dirname=/storage/ofd_packets [15:36:13]CheckFolder done [15:36:13]ProducePacketName [15:36:13]name=ofd_packets/00019614 [15:36:13]NVStorageSaveData ofd_packets/00019614 [15:36:13]File name is /storage/ofd_packets/00019614 [15:36:13]Write 333 bytes [15:36:13]NVStorageSaveData done [15:36:13]OFDSenderStorePacket done [15:36:13]KKMCreateOFDPacket done [15:36:13]NVStorageSaveData kkm_last_timestamp [15:36:13]File name is /storage/kkm_last_timestamp [15:36:13]Write 4 bytes [15:36:13]NVStorageSaveData done [15:36:13]ExternCall_PrintAddStr [15:36:13]wPrintStart [15:36:13]Write to MH i2c: 01 00 00 1C 06 22 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: 01 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: 01 07 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 FF 0F 37 [15:36:13]RasterBufferAndPrint [15:36:13]line Счет N : (3)117523 [15:36:13]line ИНН: 02508201610067 [15:36:13]line Контрольно-Кассовый Чек [15:36:13]line ПРОДАЖА [15:36:13]line Товар: 4630002599859 [15:36:13]line Масло Gazpromneft Standart 15w40 1л [15:36:13]line 1.000 * 405.00 [15:36:13]line = 405.00 [15:36:13]line НДС 12% НСП 1% [15:36:13]line > о реализуемом товаре [15:36:13]line ИТОГО: 405.00 [15:36:13]line НСП 1% : 3.58 [15:36:13]line НДС 12% : 43.01 [15:36:13]line Наличными: 405.00 [15:36:13]line Безнал.: 0.00 [15:36:13]line Место: АЗС № 93 "Партнер Нефть" [15:36:13]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [15:36:13]line СНО: Общий режим [15:36:13]line Чек 64 21.09.2024 15:36 [15:36:13]line Смена: 232 ФФД: 1.0 [15:36:13]line ЗНМ: 0300000060 [15:36:13]line РНМ: 0000000000146239 [15:36:13]line Версия ККМ: v1.0 [15:36:13]line ФМ: 0000000000959362 [15:36:13]line ФД: 19614 [15:36:13]line ФПД: 270636916009768 [15:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T153612&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19614&fm=270636916009768&tin=02508201610067®Number=0000000000146239&sum=40500 [15:36:14]line 0 [15:36:14]OFD Sender: Processing packet 19614 [packets to send 63, broken 62] [15:36:14]ProducePacketName [15:36:14]name=ofd_packets/00019614 [15:36:14]OFD Sender: To server: pG, [15:36:14]CommunicateWithHost lk.salyk.kg:30040 [15:36:14]ConnectInit lk.salyk.kg [15:36:14]written 0, free lines is 4095 [15:36:14]Write to MH i2c: 01 00 00 45 06 4B [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 07 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 A2 0C 00 [15:36:14]RasterBufferAndPrint [15:36:14]line [15:36:14]line [15:36:14]line [15:36:14]line [15:36:14]line [15:36:14]written 0, free lines is 3238 [15:36:14]MH_Cut [15:36:14]Write to MH i2c: D1 01 00 4C 06 01 24 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: D1 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: D1 01 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: D1 01 00 4C 06 00 23 [15:36:14]Write to MH i2c: 01 00 00 4D 06 53 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:15]*** Cut start [15:36:15]*** Partial cut [15:36:15]*** CUTSNS_PIN = 1 [15:36:15]*** CUTSNS_PIN = 0 [15:36:15]Connected sock=10 [15:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2F 01 00 00 A5 33 27 01 F3 DD 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EC E7 EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9E 4C 00 00 35 04 06 00 F6 24 91 3D EB 28 30 7B D6 9C 21 BC BC B2 [15:36:15]*** Brake cut motor [15:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 47 86 47 00 03 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9E 4C 00 00 F4 03 04 00 87 92 EE 66 B6 04 01 00 00 1B 6A AD 0C C7 D6 92 D6 [15:36:15]CommunicateWithHost err = 0 [15:36:15]CheckOFDResponse [15:36:15]1017 (14) - 77093643461234 [15:36:15]1041 (16) - 0000000000959362 [15:36:15]1040 (4) - 19614 [15:36:15]1012 (4) - 21.09.2024 09:31 [15:36:15]1206 (1) - 0 [15:36:15]OFD Sender: Remove packet 19614 [15:36:15]ProducePacketName [15:36:15]name=ofd_packets/00019614 [15:36:15]NVStorageDeleteData [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]*** Stop cut motor [15:36:16]*** Cut end [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 FF 0F 68 [15:36:16]process_action close_receipt done [15:36:16]requested_data is exist [15:36:16]produce_requested_data [15:36:16]requested_item fm.sn is exist - process it [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 11 00 00 [15:36:16]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 23 [15:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [15:36:16]wFMCommunicate OK [15:36:16]requested_item fd.num is exist - process it [15:36:16]SAM_PROTO_GetFieldsCounters [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 13 00 00 [15:36:16]Write to MH i2c: E2 08 00 4F 06 80 13 00 00 00 00 00 00 D1 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 62 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 62 00 4F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [15:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9E 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:16]wFMCommunicate OK [15:36:16]SAM_PROTO_GetFieldsCounters done [15:36:16]requested_item shift.num is exist - process it [15:36:16]requested_item shift.opened is exist - process it [15:36:16]req_shift_opened [15:36:16]FM_GetShiftState [15:36:16]SAM_PROTO_GetShiftState [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 13 01 00 [15:36:16]Write to MH i2c: E2 08 00 50 06 80 13 01 00 00 00 00 00 D3 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0E 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0E 00 50 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 59 [15:36:16]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [15:36:16]wFMCommunicate OK [15:36:16]SAM_PROTO_GetShiftState done [15:36:16]FM_GetShiftState done [15:36:16]req_shift_opened done [15:36:16]requested_item shift.open_date is exist - process it [15:36:16]req_shift_open_date [15:36:16]req_shift_open_date done [15:36:16]produce_requested_data done [15:36:16]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19614,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [15:36:16]process_action_free close_receipt [15:36:16]json_value_free [15:36:16]json_value_free done [15:36:16]process_json_proto returns [15:36:16]Send response to host [15:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19614,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [15:36:16]free response buf [15:36:16]execute_script done [15:36:16]execute_script returns [15:36:16]free content buf [15:36:16]Sock 8.Close socket [15:36:16]Sock 8.Thread stoped [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:14]recv_with_timeout no data received [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:31]recv_with_timeout no data received [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:54]recv_with_timeout no data received [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:05]recv_with_timeout no data received [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:55]recv_with_timeout no data received [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:20]recv_with_timeout no data received [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:51]recv_with_timeout no data received [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:11]recv_with_timeout no data received [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:10]recv_with_timeout no data received [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:22]recv_with_timeout no data received [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:47]accept exits with 9 [16:09:47]New connection [16:09:47]New thread 3067104612 created [16:09:47]Thread 3067247972 joined [16:09:47]Waiting for new connection... [16:09:47] Sock 9.Parse request [16:09:47]Sock 9.Check first char [16:09:47]Sock 9.First char is OK [16:09:47]request: POST /json_proto HTTP/1.0 [16:09:47]Method: POST [16:09:47]URL: /json_proto [16:09:47]Method is POST - this is cgi request [16:09:47]url: /json_proto [16:09:47]query_string will be loaded in cgi processing [16:09:47]execute_cgi json_proto POST (null) [16:09:47]execute_cgi path=json_proto method=POST [16:09:47]POST find Content-Length [16:09:47]Host: 172.17.42.73:8080 [16:09:47]Content-Length: 684 [16:09:47]Content-Type: application/json [16:09:47] [16:09:47]POST finish read [16:09:47]Found Content-Length = 684 [16:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:47]execute_script... [16:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:47]POST & json_proto [16:09:47]process_json_proto [16:09:47]json parsed OK: [16:09:47]protocol is kg_v1.0 [16:09:47]action value=close_receipt [16:09:47]process_action close_receipt [16:09:47]cmd_close_receipt [16:09:47]MH_GetDate [16:09:47]Write to MH i2c: F0 00 00 51 06 46 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 09 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 09 00 51 06 00 CC EF EE 66 99 54 47 66 F8 [16:09:47]GetLastDocTimeStamp 1726932972 [16:09:47]current date 1726934988 [16:09:47]FM_GetShiftState [16:09:47]SAM_PROTO_GetShiftState [16:09:47]wFMCommunicate request_size=4 [16:09:47]MH_SAM_APDU [16:09:47]CAPDU: 80 13 01 00 [16:09:47]Write to MH i2c: E2 08 00 52 06 80 13 01 00 00 00 00 00 D5 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0E 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0E 00 52 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 5B [16:09:47]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [16:09:47]wFMCommunicate OK [16:09:47]SAM_PROTO_GetShiftState done [16:09:47]FM_GetShiftState done [16:09:47]opened in 1726877463 [16:09:47]opened+sec_in_day 1726963863 [16:09:47]quantity*price = 150032 [16:09:47]sum+1 = 150033 [16:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 65 21.09.2024 16:09 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19615 ФПД: 42898171924755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T160948&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19615&fm=42898171924755&tin=02508201610067®Number=0000000000146239&sum=150000 [16:09:48]StoreToDocumentArchive [16:09:48]shift 232 fd 19615 [16:09:48]save to /storage/0232/doc_00019615 [16:09:48]save last doc name /storage/0232/doc_00019615 to /storage/kkm_last_doc_name [16:09:48]save OK [16:09:48]Clear old archive folders... [16:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:48]tlvbuf is 01C262C0 [16:09:48]SAM_PROTO_ClearQueue [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 09 00 00 [16:09:48]Write to MH i2c: E2 08 00 5F 06 80 09 00 00 00 00 00 00 D7 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_ClearQueue done [16:09:48]KKMCreateOFDPacket [16:09:48]OFDProtocolAddRootSTLVToBuf [16:09:48]FM_MakeSignedData [16:09:48]FM_MakeSignedData [16:09:48]SAM_PROTO_SignData [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 0D 01 02 [16:09:48]Write to MH i2c: E2 08 00 60 06 80 0D 01 02 00 00 00 00 DF [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]wFMCommunicate request_size=255 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC EF EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9F 4C 00 00 35 04 06 00 27 [16:09:48]Write to MH i2c: E2 02 01 61 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC EF EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9F 4C 00 00 35 04 06 00 27 00 00 1D [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 61 06 00 90 00 DB [16:09:49]RAPDU: 90 00 [16:09:49]wFMCommunicate OK [16:09:49]wFMCommunicate request_size=10 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 0D 02 02 05 04 02 4C 91 13 [16:09:49]Write to MH i2c: E2 0D 00 62 06 80 0D 02 02 05 00 04 02 4C 91 13 00 00 E2 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 62 06 00 90 00 DC [16:09:49]RAPDU: 90 00 [16:09:49]wFMCommunicate OK [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 0D 03 02 [16:09:49]Write to MH i2c: E2 08 00 63 06 80 0D 03 02 00 00 00 00 E4 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0B 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0B 00 63 06 00 5B 9C 38 DB 0E 7C DE 48 90 00 9F [16:09:49]RAPDU: 5B 9C 38 DB 0E 7C DE 48 90 00 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_SignData done [16:09:49]FM_MakeSignedData done [16:09:49]CreateOFDProtocolMessage [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 11 00 00 [16:09:49]Write to MH i2c: E2 08 00 64 06 80 11 00 00 00 00 00 00 E4 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 64 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 39 [16:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [16:09:49]wFMCommunicate OK [16:09:49]CreateOFDProtocolMessage done [16:09:49]OFDSenderStorePacket 19615 [16:09:49]StoreOFDPacket docnum=19615 [16:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 43 EB 07 01 D6 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC EF EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9F 4C 00 00 35 04 06 00 27 04 02 4C 91 13 5B 9C 38 DB 0E 7C DE 48 [16:09:49]CheckFolder [16:09:49]dirname=/storage/ofd_packets [16:09:49]CheckFolder done [16:09:49]ProducePacketName [16:09:49]name=ofd_packets/00019615 [16:09:49]NVStorageSaveData ofd_packets/00019615 [16:09:49]File name is /storage/ofd_packets/00019615 [16:09:49]Write 301 bytes [16:09:49]NVStorageSaveData done [16:09:49]OFDSenderStorePacket done [16:09:49]KKMCreateOFDPacket done [16:09:49]NVStorageSaveData kkm_last_timestamp [16:09:49]File name is /storage/kkm_last_timestamp [16:09:49]Write 4 bytes [16:09:49]NVStorageSaveData done [16:09:49]ExternCall_PrintAddStr [16:09:49]wPrintStart [16:09:49]Write to MH i2c: 01 00 00 65 06 6B [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 FF 0F 80 [16:09:49]RasterBufferAndPrint [16:09:49]line Счет N : (1)23699815 [16:09:49]line ИНН: 02508201610067 [16:09:49]line Контрольно-Кассовый Чек [16:09:49]line ПРОДАЖА [16:09:49]line ТРК (МРК, ГНК) : 41 [16:09:49]line Товар: 2710124500 [16:09:49]line Аи-95-К-5 [16:09:49]line 20.220 * 74.20 [16:09:49]line = 1500.32 [16:09:49]line НДС 12% НСП 1% [16:09:49]line > о реализуемом товаре [16:09:49]line ОКРУГЛЕНИЕ: -0.32 [16:09:49]line ИТОГО: 1500.00 [16:09:49]line Внесено: 1500.00 [16:09:49]line СДАЧА: 0.00 [16:09:49]line НСП 1% : 13.28 [16:09:49]line НДС 12% : 159.33 [16:09:49]line Наличными: 1500.00 [16:09:49]line Безнал.: 0.00 [16:09:49]line Место: АЗС № 93 "Партнер Нефть" [16:09:49]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [16:09:49]line СНО: Общий режим [16:09:49]line Чек 65 21.09.2024 16:09 [16:09:49]line Смена: 232 ФФД: 1.0 [16:09:49]line ЗНМ: 0300000060 [16:09:49]line РНМ: 0000000000146239 [16:09:49]line Версия ККМ: v1.0 [16:09:49]line ФМ: 0000000000959362 [16:09:49]line ФД: 19615 [16:09:49]line ФПД: 42898171924755 [16:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T160948&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19615&fm=42898171924755&tin=02508201610067®Number=0000000000146239&sum=150000 [16:09:49]OFD Sender: Processing packet 19615 [packets to send 63, broken 62] [16:09:49]ProducePacketName [16:09:49]name=ofd_packets/00019615 [16:09:49]OFD Sender: To server: pG, [16:09:49]CommunicateWithHost lk.salyk.kg:30040 [16:09:49]ConnectInit lk.salyk.kg [16:09:49]written 0, free lines is 4095 [16:09:50]Write to MH i2c: 01 00 00 90 06 96 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 87 0C 30 [16:09:50]RasterBufferAndPrint [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]written 0, free lines is 3211 [16:09:50]MH_Cut [16:09:50]Write to MH i2c: D1 01 00 97 06 01 6F [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 01 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 01 00 97 06 00 6E [16:09:50]Write to MH i2c: 01 00 00 98 06 9E [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:51]*** Cut start [16:09:51]*** Partial cut [16:09:51]*** CUTSNS_PIN = 1 [16:09:51]*** CUTSNS_PIN = 0 [16:09:51]*** Brake cut motor [16:09:51]recv_with_timeout no data received [16:09:51]Read from MH i2c: 01 [16:09:51]MH_I2C_Read... [16:09:51]*** Stop cut motor [16:09:51]*** Cut end [16:09:51]Read from MH i2c: 01 07 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [16:09:51]process_action close_receipt done [16:09:51]requested_data is exist [16:09:51]produce_requested_data [16:09:51]requested_item fm.sn is exist - process it [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 11 00 00 [16:09:51]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 17 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 6E [16:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [16:09:51]wFMCommunicate OK [16:09:51]requested_item fd.num is exist - process it [16:09:51]SAM_PROTO_GetFieldsCounters [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 13 00 00 [16:09:51]Write to MH i2c: E2 08 00 9A 06 80 13 00 00 00 00 00 00 1C [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 62 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 62 00 9A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 9F 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:51]wFMCommunicate OK [16:09:51]SAM_PROTO_GetFieldsCounters done [16:09:51]requested_item shift.num is exist - process it [16:09:51]requested_item shift.opened is exist - process it [16:09:51]req_shift_opened [16:09:51]FM_GetShiftState [16:09:51]SAM_PROTO_GetShiftState [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 13 01 00 [16:09:51]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 0E 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A4 [16:09:51]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [16:09:51]wFMCommunicate OK [16:09:51]SAM_PROTO_GetShiftState done [16:09:51]FM_GetShiftState done [16:09:51]req_shift_opened done [16:09:51]requested_item shift.open_date is exist - process it [16:09:51]req_shift_open_date [16:09:51]req_shift_open_date done [16:09:51]produce_requested_data done [16:09:51]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19615,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [16:09:51]process_action_free close_receipt [16:09:51]json_value_free [16:09:51]json_value_free done [16:09:51]process_json_proto returns [16:09:51]Send response to host [16:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19615,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [16:09:51]free response buf [16:09:51]execute_script done [16:09:51]execute_script returns [16:09:51]free content buf [16:09:51]Sock 9.Close socket [16:09:51]Sock 9.Thread stoped [16:09:52]Connected sock=11 [16:09:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 43 EB 07 01 D6 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC EF EE 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9F 4C 00 00 35 04 06 00 27 04 02 4C 91 13 5B 9C 38 DB 0E 7C DE 48 [16:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 27 80 47 00 33 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 9F 4C 00 00 F4 03 04 00 6B 9A EE 66 B6 04 01 00 00 B1 82 11 7B 7F 7F C2 0A [16:09:55]CommunicateWithHost err = 0 [16:09:55]CheckOFDResponse [16:09:55]1017 (14) - 77093643461234 [16:09:55]1041 (16) - 0000000000959362 [16:09:55]1040 (4) - 19615 [16:09:55]1012 (4) - 21.09.2024 10:05 [16:09:55]1206 (1) - 0 [16:09:55]OFD Sender: Remove packet 19615 [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00019615 [16:09:55]NVStorageDeleteData [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:38]recv_with_timeout no data received [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:23]recv_with_timeout no data received [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:13]recv_with_timeout no data received [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:10]recv_with_timeout no data received [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]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:48]recv_with_timeout no data received [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:23:59]recv_with_timeout no data received [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:23]recv_with_timeout no data received [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:02]recv_with_timeout no data received [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:29:58]recv_with_timeout no data received [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:39]recv_with_timeout no data received [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:26]recv_with_timeout no data received [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:43]recv_with_timeout no data received [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:35]recv_with_timeout no data received [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:51]recv_with_timeout no data received [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:55]recv_with_timeout no data received [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:08]recv_with_timeout no data received [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:49]ConnectInit Can't connect to host [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:53]recv_with_timeout no data received [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:11]recv_with_timeout no data received [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]recv_with_timeout no data received [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:34]recv_with_timeout no data received [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:39]recv_with_timeout no data received [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:42]accept exits with 10 [16:52:42]New connection [16:52:42]New thread 3067247972 created [16:52:42]Thread 3067104612 joined [16:52:42]Waiting for new connection... [16:52:42] Sock 10.Parse request [16:52:42]Sock 10.Check first char [16:52:42]Sock 10.First char is OK [16:52:42]request: POST /json_proto HTTP/1.0 [16:52:42]Method: POST [16:52:42]URL: /json_proto [16:52:42]Method is POST - this is cgi request [16:52:42]url: /json_proto [16:52:42]query_string will be loaded in cgi processing [16:52:42]execute_cgi json_proto POST (null) [16:52:42]execute_cgi path=json_proto method=POST [16:52:42]POST find Content-Length [16:52:42]Host: 172.17.42.73:8080 [16:52:42]Content-Length: 706 [16:52:42]Content-Type: application/json [16:52:42] [16:52:42]POST finish read [16:52:42]Found Content-Length = 706 [16:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117524", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:42]execute_script... [16:52:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117524", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:42]POST & json_proto [16:52:42]process_json_proto [16:52:42]json parsed OK: [16:52:42]protocol is kg_v1.0 [16:52:42]action value=close_receipt [16:52:42]process_action close_receipt [16:52:42]cmd_close_receipt [16:52:42]MH_GetDate [16:52:42]Write to MH i2c: F0 00 00 9C 06 91 [16:52:42]Write i2c OK [16:52:42]MH_I2C_Read... [16:52:42]Read from MH i2c: F0 [16:52:42]MH_I2C_Read... [16:52:42]Read from MH i2c: F0 09 00 [16:52:42]MH_I2C_Read... [16:52:42]Read from MH i2c: F0 09 00 9C 06 00 DB F9 EE 66 99 54 47 66 5C [16:52:42]GetLastDocTimeStamp 1726934988 [16:52:42]current date 1726937563 [16:52:42]FM_GetShiftState [16:52:42]SAM_PROTO_GetShiftState [16:52:42]wFMCommunicate request_size=4 [16:52:42]MH_SAM_APDU [16:52:42]CAPDU: 80 13 01 00 [16:52:42]Write to MH i2c: E2 08 00 9D 06 80 13 01 00 00 00 00 00 20 [16:52:42]Write i2c OK [16:52:42]MH_I2C_Read... [16:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:42]Read from MH i2c: E2 [16:52:42]MH_I2C_Read... [16:52:42]Read from MH i2c: E2 0E 00 [16:52:42]MH_I2C_Read... [16:52:42]Read from MH i2c: E2 0E 00 9D 06 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A6 [16:52:42]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [16:52:42]wFMCommunicate OK [16:52:42]SAM_PROTO_GetShiftState done [16:52:42]FM_GetShiftState done [16:52:42]opened in 1726877463 [16:52:42]opened+sec_in_day 1726963863 [16:52:42]quantity*price = 10500 [16:52:42]sum+1 = 10501 [16:52:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 34.00 НСП 1% : 0.30 НДС 12% : 3.61 Наличными: 34.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 67 21.09.2024 17:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19617 ФПД: 212641532489064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173918&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19617&fm=212641532489064&tin=02508201610067®Number=0000000000146239&sum=3400 0 [17:39:19]StoreToDocumentArchive [17:39:19]shift 232 fd 19617 [17:39:19]save to /storage/0232/doc_00019617 [17:39:19]save last doc name /storage/0232/doc_00019617 to /storage/kkm_last_doc_name [17:39:19]save OK [17:39:19]Clear old archive folders... [17:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=290 [17:39:19]tlvbuf is 01532B60 [17:39:19]SAM_PROTO_ClearQueue [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 09 00 00 [17:39:19]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:19]Read from MH i2c: E2 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 03 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:39:19]RAPDU: 90 00 [17:39:19]wFMCommunicate OK [17:39:19]SAM_PROTO_ClearQueue done [17:39:19]KKMCreateOFDPacket [17:39:19]OFDProtocolAddRootSTLVToBuf [17:39:19]FM_MakeSignedData [17:39:19]FM_MakeSignedData [17:39:19]SAM_PROTO_SignData [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 0D 01 02 [17:39:19]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:19]Read from MH i2c: E2 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 03 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:39:19]RAPDU: 90 00 [17:39:19]wFMCommunicate OK [17:39:19]wFMCommunicate request_size=255 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 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 C6 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:39:19]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 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 C6 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 28 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]wFMCommunicate request_size=49 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 0D 02 02 2C 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 35 04 06 00 C1 65 77 02 2D 68 [17:39:20]Write to MH i2c: E2 34 00 2E 00 80 0D 02 02 2C 00 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 35 04 06 00 C1 65 77 02 2D 68 00 00 F8 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 0D 03 02 [17:39:20]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0B 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0B 00 2F 00 00 52 14 B8 8A 31 5C DF DB 90 00 9A [17:39:20]RAPDU: 52 14 B8 8A 31 5C DF DB 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_SignData done [17:39:20]FM_MakeSignedData done [17:39:20]CreateOFDProtocolMessage [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 11 00 00 [17:39:20]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [17:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:20]wFMCommunicate OK [17:39:20]CreateOFDProtocolMessage done [17:39:20]OFDSenderStorePacket 19617 [17:39:20]StoreOFDPacket docnum=19617 [17:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 72 AB 2E 01 6D A0 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 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 C6 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 35 04 06 00 C1 65 77 02 2D 68 52 14 B8 8A 31 5C DF DB [17:39:20]CheckFolder [17:39:20]dirname=/storage/ofd_packets [17:39:20]CheckFolder done [17:39:20]ProducePacketName [17:39:20]name=ofd_packets/00019617 [17:39:20]NVStorageSaveData ofd_packets/00019617 [17:39:20]File name is /storage/ofd_packets/00019617 [17:39:20]Write 340 bytes [17:39:20]NVStorageSaveData done [17:39:20]OFDSenderStorePacket done [17:39:20]KKMCreateOFDPacket done [17:39:20]NVStorageSaveData kkm_last_timestamp [17:39:20]File name is /storage/kkm_last_timestamp [17:39:20]Write 4 bytes [17:39:20]NVStorageSaveData done [17:39:20]ExternCall_PrintAddStr [17:39:20]wPrintStart [17:39:20]Write to MH i2c: 01 00 00 31 00 31 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:39:20]RasterBufferAndPrint [17:39:20]line Счет N : (3)117525 [17:39:20]line ИНН: 02508201610067 [17:39:20]line Контрольно-Кассовый Чек [17:39:20]line ПРОДАЖА [17:39:20]line Товар: 4620017451303 [17:39:20]line Кар.с жев.конф.Страйк 11.3г/50 [17:39:20]line 2.000 * 17.00 [17:39:20]line = 34.00 [17:39:20]line НДС 12% НСП 1% [17:39:20]line > о реализуемом товаре [17:39:20]line ИТОГО: 34.00 [17:39:20]line НСП 1% : 0.30 [17:39:20]line НДС 12% : 3.61 [17:39:20]line Наличными: 34.00 [17:39:20]line Безнал.: 0.00 [17:39:20]line Место: АЗС № 93 "Партнер Нефть" [17:39:20]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [17:39:20]line СНО: Общий режим [17:39:20]line Чек 67 21.09.2024 17:39 [17:39:20]line Смена: 232 ФФД: 1.0 [17:39:20]line ЗНМ: 0300000060 [17:39:20]line РНМ: 0000000000146239 [17:39:20]line Версия ККМ: v1.0 [17:39:20]line ФМ: 0000000000959362 [17:39:20]line ФД: 19617 [17:39:20]line ФПД: 212641532489064 [17:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173918&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19617&fm=212641532489064&tin=02508201610067®Number=0000000000146239&sum=3400 [17:39:20]line 0 [17:39:20]written 0, free lines is 4095 [17:39:20]OFD Sender: Processing packet 19617 [packets to send 63, broken 62] [17:39:20]ProducePacketName [17:39:20]name=ofd_packets/00019617 [17:39:20]OFD Sender: To server: pG, [17:39:20]CommunicateWithHost lk.salyk.kg:30040 [17:39:20]ConnectInit lk.salyk.kg [17:39:20]Write to MH i2c: 01 00 00 5A 00 5A [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 A6 0C 13 [17:39:20]RasterBufferAndPrint [17:39:20]line [17:39:20]line [17:39:20]line [17:39:20]line [17:39:20]line [17:39:20]written 0, free lines is 3249 [17:39:20]MH_Cut [17:39:20]Write to MH i2c: D1 01 00 61 00 01 33 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: D1 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: D1 01 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: D1 01 00 61 00 00 32 [17:39:20]Write to MH i2c: 01 00 00 62 00 62 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:21]*** Cut start [17:39:21]*** Partial cut [17:39:21]*** CUTSNS_PIN = 1 [17:39:21]*** CUTSNS_PIN = 0 [17:39:22]*** Brake cut motor [17:39:22]Read from MH i2c: 01 [17:39:22]MH_I2C_Read... [17:39:22]*** Stop cut motor [17:39:22]*** Cut end [17:39:22]Read from MH i2c: 01 07 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [17:39:22]process_action close_receipt done [17:39:22]requested_data is exist [17:39:22]produce_requested_data [17:39:22]requested_item fm.sn is exist - process it [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 11 00 00 [17:39:22]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:22]Read from MH i2c: E2 17 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 32 [17:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:22]wFMCommunicate OK [17:39:22]requested_item fd.num is exist - process it [17:39:22]SAM_PROTO_GetFieldsCounters [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 13 00 00 [17:39:22]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 62 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A1 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [17:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A1 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:22]wFMCommunicate OK [17:39:22]SAM_PROTO_GetFieldsCounters done [17:39:22]requested_item shift.num is exist - process it [17:39:22]requested_item shift.opened is exist - process it [17:39:22]req_shift_opened [17:39:22]FM_GetShiftState [17:39:22]SAM_PROTO_GetShiftState [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 13 01 00 [17:39:22]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 68 [17:39:22]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:22]wFMCommunicate OK [17:39:22]SAM_PROTO_GetShiftState done [17:39:22]FM_GetShiftState done [17:39:22]req_shift_opened done [17:39:22]requested_item shift.open_date is exist - process it [17:39:22]req_shift_open_date [17:39:22]req_shift_open_date done [17:39:22]produce_requested_data done [17:39:22]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19617,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [17:39:22]process_action_free close_receipt [17:39:22]json_value_free [17:39:22]json_value_free done [17:39:22]process_json_proto returns [17:39:22]Send response to host [17:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19617,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [17:39:22]free response buf [17:39:22]execute_script done [17:39:22]execute_script returns [17:39:22]free content buf [17:39:22]Sock 7.Close socket [17:39:22]Sock 7.Thread stoped [17:39:24]accept exits with 8 [17:39:24]New connection [17:39:24]New thread 3067264356 created [17:39:24]Thread 3067407716 joined [17:39:24]Waiting for new connection... [17:39:24] Sock 8.Parse request [17:39:24]Sock 8.Check first char [17:39:24]Sock 8.First char is OK [17:39:24]request: POST /json_proto HTTP/1.0 [17:39:24]Method: POST [17:39:24]URL: /json_proto [17:39:24]Method is POST - this is cgi request [17:39:24]url: /json_proto [17:39:24]query_string will be loaded in cgi processing [17:39:24]execute_cgi json_proto POST (null) [17:39:24]execute_cgi path=json_proto method=POST [17:39:24]POST find Content-Length [17:39:24]Host: 172.17.42.73:8080 [17:39:24]Content-Length: 639 [17:39:24]Content-Type: application/json [17:39:24] [17:39:24]POST finish read [17:39:24]Found Content-Length = 639 [17:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117526", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:24]execute_script... [17:39: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)117526", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:24]POST & json_proto [17:39:24]process_json_proto [17:39:24]json parsed OK: [17:39:24]protocol is kg_v1.0 [17:39:24]action value=close_receipt [17:39:24]process_action close_receipt [17:39:24]cmd_close_receipt [17:39:24]MH_GetDate [17:39:24]Write to MH i2c: F0 00 00 66 00 55 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 66 00 00 CC 04 EF 66 99 54 47 66 1D [17:39:24]GetLastDocTimeStamp 1726940358 [17:39:24]current date 1726940364 [17:39:24]FM_GetShiftState [17:39:24]SAM_PROTO_GetShiftState [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 13 01 00 [17:39:24]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6A [17:39:24]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_GetShiftState done [17:39:24]FM_GetShiftState done [17:39:24]opened in 1726877463 [17:39:24]opened+sec_in_day 1726963863 [17:39:24]quantity*price = 10500 [17:39:24]sum+1 = 10501 [17:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 68 21.09.2024 17:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19618 ФПД: 261944613506785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173925&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19618&fm=261944613506785&tin=02508201610067®Number=0000000000146239&sum=10500 0 [17:39:25]StoreToDocumentArchive [17:39:25]shift 232 fd 19618 [17:39:25]save to /storage/0232/doc_00019618 [17:39:25]save last doc name /storage/0232/doc_00019618 to /storage/kkm_last_doc_name [17:39:25]save OK [17:39:25]Clear old archive folders... [17:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:39:25]tlvbuf is 01532760 [17:39:25]SAM_PROTO_ClearQueue [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 09 00 00 [17:39:25]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_ClearQueue done [17:39:25]KKMCreateOFDPacket [17:39:25]OFDProtocolAddRootSTLVToBuf [17:39:25]FM_MakeSignedData [17:39:25]FM_MakeSignedData [17:39:25]SAM_PROTO_SignData [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 01 02 [17:39:25]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:39:26]RAPDU: 90 00 [17:39:26]wFMCommunicate OK [17:39:26]wFMCommunicate request_size=255 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CD 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:39:26]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CD 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 02 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:39:26]RAPDU: 90 00 [17:39:26]wFMCommunicate OK [17:39:26]wFMCommunicate request_size=30 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 0D 02 02 19 30 39 35 39 33 36 32 10 04 04 00 A2 4C 00 00 35 04 06 00 EE 3C BB A3 8E E1 [17:39:26]Write to MH i2c: E2 21 00 77 00 80 0D 02 02 19 00 30 39 35 39 33 36 32 10 04 04 00 A2 4C 00 00 35 04 06 00 EE 3C BB A3 8E E1 00 00 D1 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:39:26]RAPDU: 90 00 [17:39:26]wFMCommunicate OK [17:39:26]wFMCommunicate request_size=4 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 0D 03 02 [17:39:26]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 0B 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 0B 00 78 00 00 62 29 60 7F 54 72 93 38 90 00 EF [17:39:26]RAPDU: 62 29 60 7F 54 72 93 38 90 00 [17:39:26]wFMCommunicate OK [17:39:26]SAM_PROTO_SignData done [17:39:26]FM_MakeSignedData done [17:39:26]CreateOFDProtocolMessage [17:39:26]wFMCommunicate request_size=4 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 11 00 00 [17:39:26]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 17 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 48 [17:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:26]wFMCommunicate OK [17:39:26]CreateOFDProtocolMessage done [17:39:26]OFDSenderStorePacket 19618 [17:39:26]StoreOFDPacket docnum=19618 [17:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 23 01 00 00 B7 6F 1B 01 2F 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CD 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A2 4C 00 00 35 04 06 00 EE 3C BB A3 8E E1 62 29 60 7F 54 72 93 38 [17:39:26]CheckFolder [17:39:26]dirname=/storage/ofd_packets [17:39:26]CheckFolder done [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00019618 [17:39:26]NVStorageSaveData ofd_packets/00019618 [17:39:26]File name is /storage/ofd_packets/00019618 [17:39:26]Write 321 bytes [17:39:26]NVStorageSaveData done [17:39:26]OFDSenderStorePacket done [17:39:26]KKMCreateOFDPacket done [17:39:26]NVStorageSaveData kkm_last_timestamp [17:39:26]File name is /storage/kkm_last_timestamp [17:39:26]Write 4 bytes [17:39:26]NVStorageSaveData done [17:39:26]ExternCall_PrintAddStr [17:39:26]wPrintStart [17:39:26]Write to MH i2c: 01 00 00 7A 00 7A [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [17:39:26]RasterBufferAndPrint [17:39:26]line Счет N : (3)117526 [17:39:26]line ИНН: 02508201610067 [17:39:26]line Контрольно-Кассовый Чек [17:39:26]line ПРОДАЖА [17:39:26]line Товар: 5449000006271 [17:39:26]line Напиток Фанта 1л [17:39:26]line 1.000 * 105.00 [17:39:26]line = 105.00 [17:39:26]line НДС 12% НСП 1% [17:39:26]line > о реализуемом товаре [17:39:26]line ИТОГО: 105.00 [17:39:26]line НСП 1% : 0.93 [17:39:26]line НДС 12% : 11.15 [17:39:26]line Наличными: 105.00 [17:39:26]line Безнал.: 0.00 [17:39:26]line Место: АЗС № 93 "Партнер Нефть" [17:39:26]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [17:39:26]line СНО: Общий режим [17:39:26]line Чек 68 21.09.2024 17:39 [17:39:26]line Смена: 232 ФФД: 1.0 [17:39:26]line ЗНМ: 0300000060 [17:39:26]line РНМ: 0000000000146239 [17:39:26]line Версия ККМ: v1.0 [17:39:26]line ФМ: 0000000000959362 [17:39:26]line ФД: 19618 [17:39:26]line ФПД: 261944613506785 [17:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173925&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19618&fm=261944613506785&tin=02508201610067®Number=0000000000146239&sum=10500 [17:39:26]line 0 [17:39:26]written 0, free lines is 4095 [17:39:27]Write to MH i2c: 01 00 00 A2 00 A2 [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: 01 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: 01 07 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 C1 0C 76 [17:39:27]RasterBufferAndPrint [17:39:27]line [17:39:27]line [17:39:27]line [17:39:27]line [17:39:27]line [17:39:27]written 0, free lines is 3283 [17:39:27]MH_Cut [17:39:27]Write to MH i2c: D1 01 00 A9 00 01 7B [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: D1 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: D1 01 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: D1 01 00 A9 00 00 7A [17:39:27]Write to MH i2c: 01 00 00 AA 00 AA [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]Connected sock=11 [17:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 72 AB 2E 01 6D A0 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 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 C6 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 35 04 06 00 C1 65 77 02 2D 68 52 14 B8 8A 31 5C DF DB [17:39:28]*** Cut start [17:39:28]*** Partial cut [17:39:28]*** CUTSNS_PIN = 1 [17:39:28]*** CUTSNS_PIN = 0 [17:39:28]*** Brake cut motor [17:39:28]Read from MH i2c: 01 *** Stop cut motor [17:39:28] [17:39:28]*** Cut end [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: 01 07 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [17:39:28]process_action close_receipt done [17:39:28]requested_data is exist [17:39:28]produce_requested_data [17:39:28]requested_item fm.sn is exist - process it [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 11 00 00 [17:39:28]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7A [17:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:28]wFMCommunicate OK [17:39:28]requested_item fd.num is exist - process it [17:39:28]SAM_PROTO_GetFieldsCounters [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 00 00 [17:39:28]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 62 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A2 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A2 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetFieldsCounters done [17:39:28]requested_item shift.num is exist - process it [17:39:28]requested_item shift.opened is exist - process it [17:39:28]req_shift_opened [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B0 [17:39:29]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_GetShiftState done [17:39:29]FM_GetShiftState done [17:39:29]req_shift_opened done [17:39:29]requested_item shift.open_date is exist - process it [17:39:29]req_shift_open_date [17:39:29]req_shift_open_date done [17:39:29]produce_requested_data done [17:39:29]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19618,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [17:39:29]process_action_free close_receipt [17:39:29]json_value_free [17:39:29]json_value_free done [17:39:29]process_json_proto returns [17:39:29]Send response to host [17:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19618,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [17:39:29]free response buf [17:39:29]execute_script done [17:39:29]execute_script returns [17:39:29]free content buf [17:39:29]Sock 8.Close socket [17:39:29]Sock 8.Thread stoped [17:39:30]accept exits with 7 [17:39:30]New connection [17:39:30]New thread 3067407716 created [17:39:30]Thread 3067264356 joined [17:39:30]Waiting for new connection... [17:39:30] Sock 7.Parse request [17:39:30]Sock 7.Check first char [17:39:30]Sock 7.First char is OK [17:39:30]request: POST /json_proto HTTP/1.0 [17:39:30]Method: POST [17:39:30]URL: /json_proto [17:39:30]Method is POST - this is cgi request [17:39:30]url: /json_proto [17:39:30]query_string will be loaded in cgi processing [17:39:30]execute_cgi json_proto POST (null) [17:39:30]execute_cgi path=json_proto method=POST [17:39:30]POST find Content-Length [17:39:30]Host: 172.17.42.73:8080 [17:39:30]Content-Length: 675 [17:39:30]Content-Type: application/json [17:39:30] [17:39:30]POST finish read [17:39:30]Found Content-Length = 675 [17:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117527", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 17.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:30]execute_script... [17:39: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)117527", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 17.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:30]POST & json_proto [17:39:30]process_json_proto [17:39:30]json parsed OK: [17:39:30]protocol is kg_v1.0 [17:39:30]action value=close_receipt [17:39:30]process_action close_receipt [17:39:30]cmd_close_receipt [17:39:30]MH_GetDate [17:39:30]Write to MH i2c: F0 00 00 AE 00 9D [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 09 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 09 00 AE 00 00 D2 04 EF 66 99 54 47 66 6B [17:39:30]GetLastDocTimeStamp 1726940365 [17:39:30]current date 1726940370 [17:39:30]FM_GetShiftState [17:39:30]SAM_PROTO_GetShiftState [17:39:30]wFMCommunicate request_size=4 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 13 01 00 [17:39:30]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0E 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B2 [17:39:30]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:30]wFMCommunicate OK [17:39:30]SAM_PROTO_GetShiftState done [17:39:30]FM_GetShiftState done [17:39:30]opened in 1726877463 [17:39:30]opened+sec_in_day 1726963863 [17:39:30]quantity*price = 1700 [17:39:30]sum+1 = 1701 [17:39:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 17.00 НСП 1% : 0.15 НДС 12% : 1.80 Наличными: 17.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 69 21.09.2024 17:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19619 ФПД: 264456102148110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173930&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19619&fm=264456102148110&tin=02508201610067®Number=0000000000146239&sum=1700 0 [17:39:31]StoreToDocumentArchive [17:39:31]shift 232 fd 19619 [17:39:31]save to /storage/0232/doc_00019619 [17:39:31]save last doc name /storage/0232/doc_00019619 to /storage/kkm_last_doc_name [17:39:31]save OK [17:39:31]Clear old archive folders... [17:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=290 [17:39:31]tlvbuf is 01577760 [17:39:31]SAM_PROTO_ClearQueue [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 09 00 00 [17:39:31]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]SAM_PROTO_ClearQueue done [17:39:31]KKMCreateOFDPacket [17:39:31]OFDProtocolAddRootSTLVToBuf [17:39:31]FM_MakeSignedData [17:39:31]FM_MakeSignedData [17:39:31]SAM_PROTO_SignData [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 0D 01 02 [17:39:31]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]wFMCommunicate request_size=255 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 00 00 00 00 00 07 04 06 00 A4 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D2 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:39:31]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 00 00 00 00 00 07 04 06 00 A4 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D2 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 15 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=49 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 02 02 2C 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 35 04 06 00 F0 85 7C 06 F8 0E [17:39:32]Write to MH i2c: E2 34 00 BF 00 80 0D 02 02 2C 00 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 35 04 06 00 F0 85 7C 06 F8 0E 00 00 54 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 03 02 [17:39:32]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 C0 00 00 AB FE FC 2F 74 33 CB AF 90 00 31 [17:39:32]RAPDU: AB FE FC 2F 74 33 CB AF 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_SignData done [17:39:32]FM_MakeSignedData done [17:39:32]CreateOFDProtocolMessage [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 11 00 00 [17:39:32]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 90 [17:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:32]wFMCommunicate OK [17:39:32]CreateOFDProtocolMessage done [17:39:32]OFDSenderStorePacket 19619 [17:39:32]StoreOFDPacket docnum=19619 [17:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 E2 76 2E 01 7A 73 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 00 00 00 00 00 07 04 06 00 A4 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D2 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 35 04 06 00 F0 85 7C 06 F8 0E AB FE FC 2F 74 33 CB AF [17:39:32]CheckFolder [17:39:32]dirname=/storage/ofd_packets [17:39:32]CheckFolder done [17:39:32]ProducePacketName [17:39:32]name=ofd_packets/00019619 [17:39:32]NVStorageSaveData ofd_packets/00019619 [17:39:32]File name is /storage/ofd_packets/00019619 [17:39:32]Write 340 bytes [17:39:32]NVStorageSaveData done [17:39:32]OFDSenderStorePacket done [17:39:32]KKMCreateOFDPacket done [17:39:32]NVStorageSaveData kkm_last_timestamp [17:39:32]File name is /storage/kkm_last_timestamp [17:39:32]Write 4 bytes [17:39:32]NVStorageSaveData done [17:39:32]ExternCall_PrintAddStr [17:39:32]wPrintStart [17:39:32]Write to MH i2c: 01 00 00 C2 00 C2 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [17:39:32]RasterBufferAndPrint [17:39:32]line Счет N : (3)117527 [17:39:32]line ИНН: 02508201610067 [17:39:32]line Контрольно-Кассовый Чек [17:39:32]line ПРОДАЖА [17:39:32]line Товар: 4620017451303 [17:39:32]line Кар.с жев.конф.Страйк 11.3г/50 [17:39:32]line 1.000 * 17.00 [17:39:32]line = 17.00 [17:39:32]line НДС 12% НСП 1% [17:39:32]line > о реализуемом товаре [17:39:32]line ИТОГО: 17.00 [17:39:32]line НСП 1% : 0.15 [17:39:32]line НДС 12% : 1.80 [17:39:32]line Наличными: 17.00 [17:39:32]line Безнал.: 0.00 [17:39:32]line Место: АЗС № 93 "Партнер Нефть" [17:39:32]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [17:39:32]line СНО: Общий режим [17:39:32]line Чек 69 21.09.2024 17:39 [17:39:32]line Смена: 232 ФФД: 1.0 [17:39:32]line ЗНМ: 0300000060 [17:39:32]line РНМ: 0000000000146239 [17:39:32]line Версия ККМ: v1.0 [17:39:32]line ФМ: 0000000000959362 [17:39:32]line ФД: 19619 [17:39:32]line ФПД: 264456102148110 [17:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173930&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19619&fm=264456102148110&tin=02508201610067®Number=0000000000146239&sum=1700 [17:39:32]line 0 [17:39:32]written 0, free lines is 4095 [17:39:32]Write to MH i2c: 01 00 00 EB 00 EB [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 A8 0C A6 [17:39:32]RasterBufferAndPrint [17:39:32]line [17:39:32]line [17:39:32]line [17:39:32]line [17:39:32]line [17:39:32]written 0, free lines is 3258 [17:39:32]MH_Cut [17:39:32]Write to MH i2c: D1 01 00 F2 00 01 C4 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: D1 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: D1 01 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: D1 01 00 F2 00 00 C3 [17:39:32]Write to MH i2c: 01 00 00 F3 00 F3 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]recv_with_timeout no data received [17:39:33]CommunicateWithHost answer receiving error [17:39:33]CommunicateWithHost err = -3 [17:39:33]OFD Sender: Server communicate error [17:39:33]OFD Sender: Processing packet 19617 [packets to send 65, broken 62] [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00019617 [17:39:33]OFD Sender: To server: pG, [17:39:33]CommunicateWithHost lk.salyk.kg:30040 [17:39:33]ConnectInit lk.salyk.kg [17:39:33]*** Cut start [17:39:33]*** Partial cut [17:39:33]*** CUTSNS_PIN = 1 [17:39:33]*** CUTSNS_PIN = 0 [17:39:34]*** Brake cut motor [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]*** Stop cut motor [17:39:34]*** Cut end [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 FF 0F 08 [17:39:34]process_action close_receipt done [17:39:34]requested_data is exist [17:39:34]produce_requested_data [17:39:34]requested_item fm.sn is exist - process it [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 11 00 00 [17:39:34]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C3 [17:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:34]wFMCommunicate OK [17:39:34]requested_item fd.num is exist - process it [17:39:34]SAM_PROTO_GetFieldsCounters [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 13 00 00 [17:39:34]Write to MH i2c: E2 08 00 F5 00 80 13 00 00 00 00 00 00 71 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 62 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 62 00 F5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A3 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [17:39:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A3 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_GetFieldsCounters done [17:39:34]requested_item shift.num is exist - process it [17:39:34]requested_item shift.opened is exist - process it [17:39:34]req_shift_opened [17:39:34]FM_GetShiftState [17:39:34]SAM_PROTO_GetShiftState [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 13 01 00 [17:39:34]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F9 [17:39:34]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_GetShiftState done [17:39:34]FM_GetShiftState done [17:39:34]req_shift_opened done [17:39:34]requested_item shift.open_date is exist - process it [17:39:34]req_shift_open_date [17:39:34]req_shift_open_date done [17:39:34]produce_requested_data done [17:39:34]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19619,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [17:39:34]process_action_free close_receipt [17:39:34]json_value_free [17:39:34]json_value_free done [17:39:34]process_json_proto returns [17:39:34]Send response to host [17:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19619,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [17:39:34]free response buf [17:39:34]execute_script done [17:39:34]execute_script returns [17:39:34]free content buf [17:39:34]Sock 7.Close socket [17:39:34]Sock 7.Thread stoped [17:39:35]recv_with_timeout no data received [17:39:36]accept exits with 8 [17:39:36]New connection [17:39:36]New thread 3067264356 created [17:39:36]Thread 3067407716 joined [17:39:36]Waiting for new connection... [17:39:36] Sock 8.Parse request [17:39:36]Sock 8.Check first char [17:39:36]Sock 8.First char is OK [17:39:36]request: POST /json_proto HTTP/1.0 [17:39:36]Method: POST [17:39:36]URL: /json_proto [17:39:36]Method is POST - this is cgi request [17:39:36]url: /json_proto [17:39:36]query_string will be loaded in cgi processing [17:39:36]execute_cgi json_proto POST (null) [17:39:36]execute_cgi path=json_proto method=POST [17:39:36]POST find Content-Length [17:39:36]Host: 172.17.42.73:8080 [17:39:36]Content-Length: 840 [17:39:36]Content-Type: application/json [17:39:36] [17:39:36]POST finish read [17:39:36]Found Content-Length = 840 [17:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:36]execute_script... [17:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:36]POST & json_proto [17:39:36]process_json_proto [17:39:36]json parsed OK: [17:39:36]protocol is kg_v1.0 [17:39:36]action value=close_receipt [17:39:36]process_action close_receipt [17:39:36]cmd_close_receipt [17:39:36]MH_GetDate [17:39:36]Write to MH i2c: F0 00 00 F7 00 E6 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 F7 00 00 D9 04 EF 66 99 54 47 66 BB [17:39:36]GetLastDocTimeStamp 1726940370 [17:39:36]current date 1726940377 [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FB [17:39:36]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]opened in 1726877463 [17:39:36]opened+sec_in_day 1726963863 [17:39:36]quantity*price = 4000 [17:39:36]sum+1 = 4001 [17:39:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.78 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 70 21.09.2024 17:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19620 ФПД: 7365230287611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173937&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19620&fm=7365230287611&tin=02508201610067®Number=0000000000146239&sum=8900 0 [17:39:37]StoreToDocumentArchive [17:39:37]shift 232 fd 19620 [17:39:37]save to /storage/0232/doc_00019620 [17:39:37]save last doc name /storage/0232/doc_00019620 to /storage/kkm_last_doc_name [17:39:37]save OK [17:39:37]Clear old archive folders... [17:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=359 [17:39:37]tlvbuf is 0158AFF0 [17:39:37]SAM_PROTO_ClearQueue [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 09 00 00 [17:39:37]Write to MH i2c: E2 08 00 05 01 80 09 00 00 00 00 00 00 78 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_ClearQueue done [17:39:38]KKMCreateOFDPacket [17:39:38]OFDProtocolAddRootSTLVToBuf [17:39:38]FM_MakeSignedData [17:39:38]FM_MakeSignedData [17:39:38]SAM_PROTO_SignData [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 01 02 [17:39:38]Write to MH i2c: E2 08 00 06 01 80 0D 01 02 00 00 00 00 80 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]wFMCommunicate request_size=255 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 02 02 FA 03 00 67 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 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 [17:39:38]Write to MH i2c: E2 02 01 07 01 80 0D 02 02 FA 00 03 00 67 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 ConnectInit Can't take IP for lk.salyk.kg [17:39:38]B5 CommunicateWithHost connect error [17:39:38]D0 CommunicateWithHost err = -1 [17:39:38]BD OFD Sender: Server communicate error [17:39:38]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 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 00 00 2F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]wFMCommunicate request_size=118 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 02 02 71 07 04 06 00 C4 22 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 D9 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A4 4C 00 00 35 04 06 00 06 B2 D9 EF 5A FB [17:39:38]Write to MH i2c: E2 79 00 08 01 80 0D 02 02 71 00 07 04 06 00 C4 22 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 D9 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A4 4C 00 00 35 04 06 00 06 B2 D9 EF 5A FB 00 00 AC [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 03 02 [17:39:39]Write to MH i2c: E2 08 00 09 01 80 0D 03 02 00 00 00 00 85 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0B 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0B 00 09 01 00 AF 63 AF 68 20 C4 A2 BF 90 00 F4 [17:39:39]RAPDU: AF 63 AF 68 20 C4 A2 BF 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_SignData done [17:39:39]FM_MakeSignedData done [17:39:39]CreateOFDProtocolMessage [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 11 00 00 [17:39:39]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:39]E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 17 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DA [17:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:39]wFMCommunicate OK [17:39:39]CreateOFDProtocolMessage done [17:39:39]OFDSenderStorePacket 19620 [17:39:39]StoreOFDPacket docnum=19620 [17:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 7B 01 00 00 39 16 73 01 CD 68 5A 03 01 00 03 00 67 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 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 D9 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A4 4C 00 00 35 04 06 00 06 B2 D9 EF 5A FB AF 63 AF 68 20 C4 A2 BF [17:39:39]CheckFolder [17:39:39]dirname=/storage/ofd_packets [17:39:39]CheckFolder done [17:39:39]ProducePacketName [17:39:39]name=ofd_packets/00019620 [17:39:39]NVStorageSaveData ofd_packets/00019620 [17:39:39]File name is /storage/ofd_packets/00019620 [17:39:39]Write 409 bytes [17:39:39]NVStorageSaveData done [17:39:39]OFDSenderStorePacket done [17:39:39]KKMCreateOFDPacket done [17:39:39]NVStorageSaveData kkm_last_timestamp [17:39:39]File name is /storage/kkm_last_timestamp [17:39:39]Write 4 bytes [17:39:39]NVStorageSaveData done [17:39:39]ExternCall_PrintAddStr [17:39:39]wPrintStart [17:39:39]Write to MH i2c: 01 00 00 0B 01 0C [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 [17:39:39]MH_I2C_Read... [17:39:39]OFD Sender: Processing packet 19617 [packets to send 66, broken 62] [17:39:39]ProducePacketName [17:39:39]name=ofd_packets/00019617 [17:39:39]OFD Sender: To server: pG, [17:39:39]CommunicateWithHost lk.salyk.kg:30040 [17:39:39]ConnectInit lk.salyk.kg [17:39:39]Read from MH i2c: 01 07 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [17:39:39]RasterBufferAndPrint [17:39:39]line Счет N : (3)117528 [17:39:39]line ИНН: 02508201610067 [17:39:39]line Контрольно-Кассовый Чек [17:39:39]line ПРОДАЖА [17:39:39]line Товар: 4700000160211 [17:39:39]line Вода Легенда 0,5л [17:39:39]line 1.000 * 40.00 [17:39:39]line = 40.00 [17:39:39]line НДС 12% НСП 1% [17:39:39]line > о реализуемом товаре [17:39:39]line Товар: 4700026030031 [17:39:39]line Курут orbit [17:39:39]line 1.000 * 49.00 [17:39:39]line = 49.00 [17:39:39]line НДС 12% НСП 1% [17:39:39]line > о реализуемом товаре [17:39:39]line ИТОГО: 89.00 [17:39:39]line НСП 1% : 0.78 [17:39:39]line НДС 12% : 9.45 [17:39:39]line Наличными: 89.00 [17:39:39]line Безнал.: 0.00 [17:39:39]line Место: АЗС № 93 "Партнер Нефть" [17:39:39]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [17:39:39]line СНО: Общий режим [17:39:39]line Чек 70 21.09.2024 17:39 [17:39:39]line Смена: 232 ФФД: 1.0 [17:39:39]line ЗНМ: 0300000060 [17:39:39]line РНМ: 0000000000146239 [17:39:39]line Версия ККМ: v1.0 [17:39:39]line ФМ: 0000000000959362 [17:39:39]line ФД: 19620 [17:39:39]line ФПД: 7365230287611 [17:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T173937&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19620&fm=7365230287611&tin=02508201610067®Number=0000000000146239&sum=8900 [17:39:39]line 0 [17:39:39]written 0, free lines is 4095 [17:39:39]Write to MH i2c: 01 00 00 39 01 3A [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 60 0C AD [17:39:39]RasterBufferAndPrint [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]written 0, free lines is 3203 [17:39:39]MH_Cut [17:39:39]Write to MH i2c: D1 01 00 40 01 01 13 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 01 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 01 00 40 01 00 12 [17:39:39]Write to MH i2c: 01 00 00 41 01 42 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:40]*** Cut start [17:39:40]*** Partial cut [17:39:40]*** CUTSNS_PIN = 1 [17:39:40]*** CUTSNS_PIN = 0 [17:39:41]*** Brake cut motor [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]*** Stop cut motor [17:39:41]*** Cut end [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [17:39:41]process_action close_receipt done [17:39:41]requested_data is exist [17:39:41]produce_requested_data [17:39:41]requested_item fm.sn is exist - process it [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 12 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [17:39:41]wFMCommunicate OK [17:39:41]requested_item fd.num is exist - process it [17:39:41]SAM_PROTO_GetFieldsCounters [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 00 00 [17:39:41]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A4 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A4 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetFieldsCounters done [17:39:41]requested_item shift.num is exist - process it [17:39:41]requested_item shift.opened is exist - process it [17:39:41]req_shift_opened [17:39:41]FM_GetShiftState [17:39:41]SAM_PROTO_GetShiftState [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 01 00 [17:39:41]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 48 [17:39:41]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetShiftState done [17:39:41]FM_GetShiftState done [17:39:41]req_shift_opened done [17:39:41]requested_item shift.open_date is exist - process it [17:39:41]req_shift_open_date [17:39:41]req_shift_open_date done [17:39:41]produce_requested_data done [17:39:41]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19620,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [17:39:41]process_action_free close_receipt [17:39:41]json_value_free [17:39:41]json_value_free done [17:39:41]process_json_proto returns [17:39:41]Send response to host [17:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19620,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [17:39:41]free response buf [17:39:41]execute_script done [17:39:41]execute_script returns [17:39:41]free content buf [17:39:41]Sock 8.Close socket [17:39:41]Sock 8.Thread stoped [17:39:44]ConnectInit Can't take IP for lk.salyk.kg [17:39:44]CommunicateWithHost connect error [17:39:44]CommunicateWithHost err = -1 [17:39:44]OFD Sender: Server communicate error [17:39:49]OFD Sender: Processing packet 19617 [packets to send 66, broken 62] [17:39:49]ProducePacketName [17:39:49]name=ofd_packets/00019617 [17:39:49]OFD Sender: To server: pG, [17:39:49]CommunicateWithHost lk.salyk.kg:30040 [17:39:49]ConnectInit lk.salyk.kg [17:39:52]Connected sock=9 [17:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 72 AB 2E 01 6D A0 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 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 C6 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 35 04 06 00 C1 65 77 02 2D 68 52 14 B8 8A 31 5C DF DB [17:39:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 EE E3 47 00 19 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 39 35 39 33 36 32 10 04 04 00 A1 4C 00 00 F4 03 04 00 7F AF EE 66 B6 04 01 00 00 6E 80 06 20 2C 0F C6 FE [17:39:53]CommunicateWithHost err = 0 [17:39:53]CheckOFDResponse [17:39:53]1017 (14) - 77093643461234 [17:39:53]1041 (16) - 0000000000959362 [17:39:53]1040 (4) - 19617 [17:39:53]1012 (4) - 21.09.2024 11:35 [17:39:53]1206 (1) - 0 [17:39:53]OFD Sender: Remove packet 19617 [17:39:53]ProducePacketName [17:39:53]name=ofd_packets/00019617 [17:39:53]NVStorageDeleteData [17:39:53]OFD Sender: Processing packet 19618 [packets to send 65, broken 62] [17:39:53]ProducePacketName [17:39:53]name=ofd_packets/00019618 [17:39:53]OFD Sender: To server: pG, [17:39:53]CommunicateWithHost lk.salyk.kg:30040 [17:39:53]ConnectInit lk.salyk.kg [17:39:53]Connected sock=9 [17:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 23 01 00 00 B7 6F 1B 01 2F 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CD 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A2 4C 00 00 35 04 06 00 EE 3C BB A3 8E E1 62 29 60 7F 54 72 93 38 [17:39:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 64 0C 47 00 FE 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 39 35 39 33 36 32 10 04 04 00 A2 4C 00 00 F4 03 04 00 81 AF EE 66 B6 04 01 00 00 68 60 9A E7 50 6B F5 99 [17:39:54]CommunicateWithHost err = 0 [17:39:54]CheckOFDResponse [17:39:54]1017 (14) - 77093643461234 [17:39:54]1041 (16) - 0000000000959362 [17:39:54]1040 (4) - 19618 [17:39:54]1012 (4) - 21.09.2024 11:35 [17:39:54]1206 (1) - 0 [17:39:54]OFD Sender: Remove packet 19618 [17:39:54]ProducePacketName [17:39:54]name=ofd_packets/00019618 [17:39:54]NVStorageDeleteData [17:39:54]OFD Sender: Processing packet 19619 [packets to send 64, broken 62] [17:39:54]ProducePacketName [17:39:54]name=ofd_packets/00019619 [17:39:54]OFD Sender: To server: pG, [17:39:54]CommunicateWithHost lk.salyk.kg:30040 [17:39:54]ConnectInit lk.salyk.kg [17:39:55]Connected sock=9 [17:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 E2 76 2E 01 7A 73 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 00 00 00 00 00 07 04 06 00 A4 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D2 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 35 04 06 00 F0 85 7C 06 F8 0E AB FE FC 2F 74 33 CB AF [17:40:00]recv_with_timeout no data received [17:40:00]CommunicateWithHost answer receiving error [17:40:00]CommunicateWithHost err = -3 [17:40:00]OFD Sender: Server communicate error [17:40:05]OFD Sender: Processing packet 19619 [packets to send 64, broken 62] [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00019619 [17:40:05]OFD Sender: To server: pG, [17:40:05]CommunicateWithHost lk.salyk.kg:30040 [17:40:05]ConnectInit lk.salyk.kg [17:40:07]Connected sock=10 [17:40:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 36 01 00 00 E2 76 2E 01 7A 73 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 00 00 00 00 00 07 04 06 00 A4 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D2 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 35 04 06 00 F0 85 7C 06 F8 0E AB FE FC 2F 74 33 CB AF [17:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 5F DA 47 00 66 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A3 4C 00 00 F4 03 04 00 8E AF EE 66 B6 04 01 00 00 E0 A7 2A EC 78 64 DB C2 [17:40:07]CommunicateWithHost err = 0 [17:40:07]CheckOFDResponse [17:40:07]1017 (14) - 77093643461234 [17:40:07]1041 (16) - 0000000000959362 [17:40:07]1040 (4) - 19619 [17:40:07]1012 (4) - 21.09.2024 11:35 [17:40:07]1206 (1) - 0 [17:40:07]OFD Sender: Remove packet 19619 [17:40:07]ProducePacketName [17:40:07]name=ofd_packets/00019619 [17:40:07]NVStorageDeleteData [17:40:08]OFD Sender: Processing packet 19620 [packets to send 63, broken 62] [17:40:08]ProducePacketName [17:40:08]name=ofd_packets/00019620 [17:40:08]OFD Sender: To server: pG, [17:40:08]CommunicateWithHost lk.salyk.kg:30040 [17:40:08]ConnectInit lk.salyk.kg [17:40:08]Connected sock=10 [17:40:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 7B 01 00 00 39 16 73 01 CD 68 5A 03 01 00 03 00 67 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 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 D9 04 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A4 4C 00 00 35 04 06 00 06 B2 D9 EF 5A FB AF 63 AF 68 20 C4 A2 BF [17:40:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 89 78 47 00 08 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A4 4C 00 00 F4 03 04 00 90 AF EE 66 B6 04 01 00 00 91 B8 98 81 4E 39 70 F3 [17:40:09]CommunicateWithHost err = 0 [17:40:09]CheckOFDResponse [17:40:09]1017 (14) - 77093643461234 [17:40:09]1041 (16) - 0000000000959362 [17:40:09]1040 (4) - 19620 [17:40:09]1012 (4) - 21.09.2024 11:35 [17:40:09]1206 (1) - 0 [17:40:09]OFD Sender: Remove packet 19620 [17:40:09]ProducePacketName [17:40:09]name=ofd_packets/00019620 [17:40:09]NVStorageDeleteData [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:27]recv_with_timeout no data received [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]recv_with_timeout no data received [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:02]recv_with_timeout no data received [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:15]ConnectInit Can't connect to host [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:44]recv_with_timeout no data received [17:50:45]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:29]recv_with_timeout no data received [17:50:30]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:57]ConnectInit Can't connect to host [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:33]recv_with_timeout no data received [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:43]recv_with_timeout no data received [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:28]recv_with_timeout no data received [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:00]accept exits with 7 [18:06:00]New connection [18:06:00]New thread 3067407716 created [18:06:00]Thread 3067264356 joined [18:06:00]Waiting for new connection... [18:06:00] Sock 7.Parse request [18:06:00]Sock 7.Check first char [18:06:00]Sock 7.First char is OK [18:06:00]request: POST /json_proto HTTP/1.0 [18:06:00]Method: POST [18:06:00]URL: /json_proto [18:06:00]Method is POST - this is cgi request [18:06:00]url: /json_proto [18:06:00]query_string will be loaded in cgi processing [18:06:00]execute_cgi json_proto POST (null) [18:06:00]execute_cgi path=json_proto method=POST [18:06:00]POST find Content-Length [18:06:00]Host: 172.17.42.73:8080 [18:06:00]Content-Length: 670 [18:06:00]Content-Type: application/json [18:06:00] [18:06:00]POST finish read [18:06:00]Found Content-Length = 670 [18:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117529", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:00]execute_script... [18:06: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)117529", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:00]POST & json_proto [18:06:00]process_json_proto [18:06:00]json parsed OK: [18:06:00]protocol is kg_v1.0 [18:06:00]action value=close_receipt [18:06:00]process_action close_receipt [18:06:00]cmd_close_receipt [18:06:00]MH_GetDate [18:06:00]Write to MH i2c: F0 00 00 45 01 35 [18:06:00]Write i2c OK [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: F0 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: F0 09 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: F0 09 00 45 01 00 08 0B EF 66 99 54 47 66 40 [18:06:00]GetLastDocTimeStamp 1726940377 [18:06:00]current date 1726941960 [18:06:00]FM_GetShiftState [18:06:00]SAM_PROTO_GetShiftState [18:06:00]wFMCommunicate request_size=4 [18:06:00]MH_SAM_APDU [18:06:00]CAPDU: 80 13 01 00 [18:06:00]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [18:06:00]Write i2c OK [18:06:00]MH_I2C_Read... [18:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:00]Read from MH i2c: E2 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 0E 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 4A [18:06:00]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:06:00]wFMCommunicate OK [18:06:00]SAM_PROTO_GetShiftState done [18:06:00]FM_GetShiftState done [18:06:00]opened in 1726877463 [18:06:00]opened+sec_in_day 1726963863 [18:06:00]quantity*price = 9500 [18:06:00]sum+1 = 9501 [18:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 71 21.09.2024 18:06 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19621 ФПД: 210009403024645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T180600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19621&fm=210009403024645&tin=02508201610067®Number=0000000000146239&sum=9500 0 [18:06:01]StoreToDocumentArchive [18:06:01]shift 232 fd 19621 [18:06:01]save to /storage/0232/doc_00019621 [18:06:01]save last doc name /storage/0232/doc_00019621 to /storage/kkm_last_doc_name [18:06:01]save OK [18:06:01]Clear old archive folders... [18:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:06:01]tlvbuf is B6E176D0 [18:06:01]SAM_PROTO_ClearQueue [18:06:01]wFMCommunicate request_size=4 [18:06:01]MH_SAM_APDU [18:06:01]CAPDU: 80 09 00 00 [18:06:01]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [18:06:01]RAPDU: 90 00 [18:06:01]wFMCommunicate OK [18:06:01]SAM_PROTO_ClearQueue done [18:06:01]KKMCreateOFDPacket [18:06:01]OFDProtocolAddRootSTLVToBuf [18:06:01]FM_MakeSignedData [18:06:01]FM_MakeSignedData [18:06:01]SAM_PROTO_SignData [18:06:01]wFMCommunicate request_size=4 [18:06:01]MH_SAM_APDU [18:06:01]CAPDU: 80 0D 01 02 [18:06:01]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:06:01]RAPDU: 90 00 [18:06:01]wFMCommunicate OK [18:06:01]wFMCommunicate request_size=255 [18:06:01]MH_SAM_APDU [18:06:01]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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 0B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:06:01]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 0B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 5D [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]OFD Sender: No OFD packet to send [18:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:06:01]RAPDU: 90 00 [18:06:01]wFMCommunicate OK [18:06:01]wFMCommunicate request_size=52 [18:06:01]MH_SAM_APDU [18:06:01]CAPDU: 80 0D 02 02 2F 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A5 4C 00 00 35 04 06 00 BF 00 9F DD E5 05 [18:06:01]Write to MH i2c: E2 37 00 56 01 80 0D 02 02 2F 00 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A5 4C 00 00 35 04 06 00 BF 00 9F DD E5 05 00 00 AC [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:06:01]RAPDU: 90 00 [18:06:01]wFMCommunicate OK [18:06:01]wFMCommunicate request_size=4 [18:06:01]MH_SAM_APDU [18:06:01]CAPDU: 80 0D 03 02 [18:06:01]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 0B 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 0B 00 57 01 00 47 71 69 5E D3 E2 92 92 90 00 2C [18:06:01]RAPDU: 47 71 69 5E D3 E2 92 92 90 00 [18:06:01]wFMCommunicate OK [18:06:01]SAM_PROTO_SignData done [18:06:01]FM_MakeSignedData done [18:06:01]CreateOFDProtocolMessage [18:06:01]wFMCommunicate request_size=4 [18:06:01]MH_SAM_APDU [18:06:01]CAPDU: 80 11 00 00 [18:06:01]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:01]Read from MH i2c: E2 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 17 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 28 [18:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:06:01]wFMCommunicate OK [18:06:01]CreateOFDProtocolMessage done [18:06:01]OFDSenderStorePacket 19621 [18:06:01]StoreOFDPacket docnum=19621 [18:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 39 01 00 00 77 4C 31 01 D2 2F 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 0B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A5 4C 00 00 35 04 06 00 BF 00 9F DD E5 05 47 71 69 5E D3 E2 92 92 [18:06:01]CheckFolder [18:06:01]dirname=/storage/ofd_packets [18:06:01]CheckFolder done [18:06:01]ProducePacketName [18:06:01]name=ofd_packets/00019621 [18:06:01]NVStorageSaveData ofd_packets/00019621 [18:06:01]File name is /storage/ofd_packets/00019621 [18:06:01]Write 343 bytes [18:06:01]NVStorageSaveData done [18:06:01]OFDSenderStorePacket done [18:06:01]KKMCreateOFDPacket done [18:06:01]NVStorageSaveData kkm_last_timestamp [18:06:01]File name is /storage/kkm_last_timestamp [18:06:01]Write 4 bytes [18:06:01]NVStorageSaveData done [18:06:01]ExternCall_PrintAddStr [18:06:01]wPrintStart [18:06:01]Write to MH i2c: 01 00 00 59 01 5A [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 07 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [18:06:01]RasterBufferAndPrint [18:06:01]line Счет N : (3)117529 [18:06:01]line ИНН: 02508201610067 [18:06:01]line Контрольно-Кассовый Чек [18:06:01]line ПРОДАЖА [18:06:01]line Товар: 4700003010056 [18:06:01]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [18:06:01]line 1.000 * 95.00 [18:06:01]line = 95.00 [18:06:01]line НДС 12% НСП 1% [18:06:01]line > о реализуемом товаре [18:06:01]line ИТОГО: 95.00 [18:06:01]line НСП 1% : 0.84 [18:06:01]line НДС 12% : 10.09 [18:06:01]line Наличными: 95.00 [18:06:01]line Безнал.: 0.00 [18:06:01]line Место: АЗС № 93 "Партнер Нефть" [18:06:01]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:06:01]line СНО: Общий режим [18:06:01]line Чек 71 21.09.2024 18:06 [18:06:01]line Смена: 232 ФФД: 1.0 [18:06:01]line ЗНМ: 0300000060 [18:06:01]line РНМ: 0000000000146239 [18:06:02]line Версия ККМ: v1.0 [18:06:02]line ФМ: 0000000000959362 [18:06:02]line ФД: 19621 [18:06:02]line ФПД: 210009403024645 [18:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T180600&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19621&fm=210009403024645&tin=02508201610067®Number=0000000000146239&sum=9500 [18:06:02]line 0 [18:06:02]OFD Sender: Processing packet 19621 [packets to send 63, broken 62] [18:06:02]ProducePacketName [18:06:02]name=ofd_packets/00019621 [18:06:02]OFD Sender: To server: pG, [18:06:02]CommunicateWithHost lk.salyk.kg:30040 [18:06:02]ConnectInit lk.salyk.kg [18:06:02]written 0, free lines is 4095 [18:06:02]Write to MH i2c: 01 00 00 82 01 83 [18:06:02]Write i2c OK [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: 01 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: 01 07 00 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 98 0C 2E [18:06:02]RasterBufferAndPrint [18:06:02]line [18:06:02]line [18:06:02]line [18:06:02]line [18:06:02]line [18:06:02]written 0, free lines is 3228 [18:06:02]MH_Cut [18:06:02]Write to MH i2c: D1 01 00 89 01 01 5C [18:06:02]Write i2c OK [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: D1 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: D1 01 00 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: D1 01 00 89 01 00 5B [18:06:02]Write to MH i2c: 01 00 00 8A 01 8B [18:06:02]Write i2c OK [18:06:02]MH_I2C_Read... [18:06:03]*** Cut start [18:06:03]*** Partial cut [18:06:03]*** CUTSNS_PIN = 1 [18:06:03]*** CUTSNS_PIN = 0 [18:06:03]*** Brake cut motor [18:06:04]Read from MH i2c: 01 [18:06:04]MH_I2C_Read... [18:06:04]*** Stop cut motor [18:06:04]*** Cut end [18:06:04]Read from MH i2c: 01 07 00 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [18:06:04]process_action close_receipt done [18:06:04]requested_data is exist [18:06:04]produce_requested_data [18:06:04]requested_item fm.sn is exist - process it [18:06:04]wFMCommunicate request_size=4 [18:06:04]MH_SAM_APDU [18:06:04]CAPDU: 80 11 00 00 [18:06:04]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [18:06:04]Write i2c OK [18:06:04]MH_I2C_Read... [18:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:04]Read from MH i2c: E2 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 17 00 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 5B [18:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:06:04]wFMCommunicate OK [18:06:04]requested_item fd.num is exist - process it [18:06:04]SAM_PROTO_GetFieldsCounters [18:06:04]wFMCommunicate request_size=4 [18:06:04]MH_SAM_APDU [18:06:04]CAPDU: 80 13 00 00 [18:06:04]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [18:06:04]Write i2c OK [18:06:04]MH_I2C_Read... [18:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:04]Read from MH i2c: E2 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 62 00 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A5 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [18:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A5 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:04]wFMCommunicate OK [18:06:04]SAM_PROTO_GetFieldsCounters done [18:06:04]requested_item shift.num is exist - process it [18:06:04]requested_item shift.opened is exist - process it [18:06:04]req_shift_opened [18:06:04]FM_GetShiftState [18:06:04]SAM_PROTO_GetShiftState [18:06:04]wFMCommunicate request_size=4 [18:06:04]MH_SAM_APDU [18:06:04]CAPDU: 80 13 01 00 [18:06:04]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [18:06:04]Write i2c OK [18:06:04]MH_I2C_Read... [18:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:04]Read from MH i2c: E2 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 0E 00 [18:06:04]MH_I2C_Read... [18:06:04]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 91 [18:06:04]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:06:04]wFMCommunicate OK [18:06:04]SAM_PROTO_GetShiftState done [18:06:04]FM_GetShiftState done [18:06:04]req_shift_opened done [18:06:04]requested_item shift.open_date is exist - process it [18:06:04]req_shift_open_date [18:06:04]req_shift_open_date done [18:06:04]produce_requested_data done [18:06:04]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19621,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:06:04]process_action_free close_receipt [18:06:04]json_value_free [18:06:04]json_value_free done [18:06:04]process_json_proto returns [18:06:04]Send response to host [18:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19621,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:06:04]free response buf [18:06:04]execute_script done [18:06:04]execute_script returns [18:06:04]free content buf [18:06:04]Sock 7.Close socket [18:06:04]Sock 7.Thread stoped [18:06:07]ConnectInit Can't take IP for lk.salyk.kg [18:06:07]CommunicateWithHost connect error [18:06:07]CommunicateWithHost err = -1 [18:06:07]OFD Sender: Server communicate error [18:06:12]OFD Sender: Processing packet 19621 [packets to send 63, broken 62] [18:06:12]ProducePacketName [18:06:12]name=ofd_packets/00019621 [18:06:12]OFD Sender: To server: pG, [18:06:12]CommunicateWithHost lk.salyk.kg:30040 [18:06:12]ConnectInit lk.salyk.kg [18:06:13]Connected sock=8 [18:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 39 01 00 00 77 4C 31 01 D2 2F 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 0B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A5 4C 00 00 35 04 06 00 BF 00 9F DD E5 05 47 71 69 5E D3 E2 92 92 [18:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 2B 08 47 00 D6 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A5 4C 00 00 F4 03 04 00 AC B5 EE 66 B6 04 01 00 00 25 BC 4B E5 0D FC C9 EF [18:06:13]CommunicateWithHost err = 0 [18:06:13]CheckOFDResponse [18:06:13]1017 (14) - 77093643461234 [18:06:13]1041 (16) - 0000000000959362 [18:06:13]1040 (4) - 19621 [18:06:13]1012 (4) - 21.09.2024 12:01 [18:06:13]1206 (1) - 0 [18:06:13]OFD Sender: Remove packet 19621 [18:06:13]ProducePacketName [18:06:13]name=ofd_packets/00019621 [18:06:13]NVStorageDeleteData [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:32]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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]accept exits with 9 [18:13:44]New connection [18:13:44]New thread 3067264356 created [18:13:44]Thread 3067407716 joined [18:13:44]Waiting for new connection... [18:13:44] Sock 9.Parse request [18:13:44]Sock 9.Check first char [18:13:44]Sock 9.First char is OK [18:13:44]request: POST /json_proto HTTP/1.0 [18:13:44]Method: POST [18:13:44]URL: /json_proto [18:13:44]Method is POST - this is cgi request [18:13:44]url: /json_proto [18:13:44]query_string will be loaded in cgi processing [18:13:44]execute_cgi json_proto POST (null) [18:13:44]execute_cgi path=json_proto method=POST [18:13:44]POST find Content-Length [18:13:44]Host: 172.17.42.73:8080 [18:13:44]Content-Length: 975 [18:13:44]Content-Type: application/json [18:13:44] [18:13:44]POST finish read [18:13:44]Found Content-Length = 975 [18:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117530", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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 }]} ], "payments": [ { "type": 0, "sum" : 167.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:44]execute_script... [18:13: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)117530", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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 }]} ], "payments": [ { "type": 0, "sum" : 167.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:44]POST & json_proto [18:13:44]process_json_proto [18:13:44]json parsed OK: [18:13:44]protocol is kg_v1.0 [18:13:44]action value=close_receipt [18:13:44]process_action close_receipt [18:13:44]cmd_close_receipt [18:13:44]MH_GetDate [18:13:44]Write to MH i2c: F0 00 00 8E 01 7E [18:13:44]Write i2c OK [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: F0 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: F0 09 00 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: F0 09 00 8E 01 00 D9 0C EF 66 99 54 47 66 5B [18:13:44]GetLastDocTimeStamp 1726941960 [18:13:44]current date 1726942425 [18:13:44]FM_GetShiftState [18:13:44]SAM_PROTO_GetShiftState [18:13:44]wFMCommunicate request_size=4 [18:13:44]MH_SAM_APDU [18:13:44]CAPDU: 80 13 01 00 [18:13:44]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [18:13:44]Write i2c OK [18:13:44]MH_I2C_Read... [18:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:44]Read from MH i2c: E2 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: E2 0E 00 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 93 [18:13:44]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:13:44]wFMCommunicate OK [18:13:44]SAM_PROTO_GetShiftState done [18:13:44]FM_GetShiftState done [18:13:44]opened in 1726877463 [18:13:44]opened+sec_in_day 1726963863 [18:13:44]quantity*price = 8600 [18:13:44]sum+1 = 8601 [18:13:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004824 Печ зат Яшкино слив Крем 182г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 167.00 НСП 1% : 1.48 НДС 12% : 17.73 Наличными: 167.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 72 21.09.2024 18:13 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19622 ФПД: 212231869778838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T181345&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19622&fm=212231869778838&tin=02508201610067®Number=0000000000146239&sum=16700 0 [18:13:45]StoreToDocumentArchive [18:13:45]shift 232 fd 19622 [18:13:45]save to /storage/0232/doc_00019622 [18:13:45]save last doc name /storage/0232/doc_00019622 to /storage/kkm_last_doc_name [18:13:45]save OK [18:13:45]Clear old archive folders... [18:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=409 [18:13:45]tlvbuf is 015762E0 [18:13:45]SAM_PROTO_ClearQueue [18:13:45]wFMCommunicate request_size=4 [18:13:45]MH_SAM_APDU [18:13:45]CAPDU: 80 09 00 00 [18:13:45]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [18:13:45]Write i2c OK [18:13:45]MH_I2C_Read... [18:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:45]Read from MH i2c: E2 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [18:13:45]RAPDU: 90 00 [18:13:45]wFMCommunicate OK [18:13:45]SAM_PROTO_ClearQueue done [18:13:45]KKMCreateOFDPacket [18:13:45]OFDProtocolAddRootSTLVToBuf [18:13:45]FM_MakeSignedData [18:13:45]FM_MakeSignedData [18:13:45]SAM_PROTO_SignData [18:13:45]wFMCommunicate request_size=4 [18:13:45]MH_SAM_APDU [18:13:45]CAPDU: 80 0D 01 02 [18:13:45]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [18:13:45]Write i2c OK [18:13:45]MH_I2C_Read... [18:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:45]Read from MH i2c: E2 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [18:13:45]RAPDU: 90 00 [18:13:45]wFMCommunicate OK [18:13:45]wFMCommunicate request_size=255 [18:13:45]MH_SAM_APDU [18:13:45]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 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 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 FC 03 [18:13:45]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 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 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 FC 03 00 00 71 [18:13:45]Write i2c OK [18:13:45]MH_I2C_Read... [18:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:45]Read from MH i2c: E2 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 [18:13:45]MH_I2C_Read... [18:13:45]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [18:13:45]RAPDU: 90 00 [18:13:45]wFMCommunicate OK [18:13:45]wFMCommunicate request_size=168 [18:13:45]MH_SAM_APDU [18:13:45]CAPDU: 80 0D 02 02 A3 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 0C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A6 4C 00 00 35 04 06 00 C1 06 15 35 4B 96 [18:13:45]Write to MH i2c: E2 AB 00 9F 01 80 0D 02 02 A3 00 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 0C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A6 4C 00 00 35 04 06 00 C1 06 15 35 4B 96 00 00 74 [18:13:45]Write i2c OK [18:13:45]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 03 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [18:13:46]RAPDU: 90 00 [18:13:46]wFMCommunicate OK [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 0D 03 02 [18:13:46]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 0B 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 0B 00 A0 01 00 5C 11 30 23 CA 75 42 71 90 00 CF [18:13:46]RAPDU: 5C 11 30 23 CA 75 42 71 90 00 [18:13:46]wFMCommunicate OK [18:13:46]SAM_PROTO_SignData done [18:13:46]FM_MakeSignedData done [18:13:46]CreateOFDProtocolMessage [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 11 00 00 [18:13:46]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 17 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 71 [18:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:13:46]wFMCommunicate OK [18:13:46]CreateOFDProtocolMessage done [18:13:46]OFDSenderStorePacket 19622 [18:13:46]StoreOFDPacket docnum=19622 [18:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 AD 01 00 00 A2 37 A5 01 B1 E0 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 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 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 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 0C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A6 4C 00 00 35 04 06 00 C1 06 15 35 4B 96 5C 11 30 23 CA 75 42 71 [18:13:46]CheckFolder [18:13:46]dirname=/storage/ofd_packets [18:13:46]CheckFolder done [18:13:46]ProducePacketName [18:13:46]name=ofd_packets/00019622 [18:13:46]NVStorageSaveData ofd_packets/00019622 [18:13:46]File name is /storage/ofd_packets/00019622 [18:13:46]Write 459 bytes [18:13:46]NVStorageSaveData done [18:13:46]OFDSenderStorePacket done [18:13:46]KKMCreateOFDPacket done [18:13:46]NVStorageSaveData kkm_last_timestamp [18:13:46]File name is /storage/kkm_last_timestamp [18:13:46]Write 4 bytes [18:13:46]NVStorageSaveData done [18:13:46]ExternCall_PrintAddStr [18:13:46]wPrintStart [18:13:46]Write to MH i2c: 01 00 00 A2 01 A3 [18:13:46]OFD Sender: Processing packet 19622 [packets to send 63, broken 62] [18:13:46]ProducePacketName [18:13:46]name=ofd_packets/00019622 [18:13:46]OFD Sender: To server: pG, [18:13:46]CommunicateWithHost lk.salyk.kg:30040 [18:13:46]ConnectInit lk.salyk.kg [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: 01 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: 01 07 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [18:13:46]RasterBufferAndPrint [18:13:46]line Счет N : (3)117530 [18:13:46]line ИНН: 02508201610067 [18:13:46]line Контрольно-Кассовый Чек [18:13:46]line ПРОДАЖА [18:13:46]line Товар: 4603290004848 [18:13:46]line Печ.зат.TONDI Сэнд.шок-сл.вк [18:13:46]line 1.000 * 86.00 [18:13:46]line = 86.00 [18:13:46]line НДС 12% НСП 1% [18:13:46]line > о реализуемом товаре [18:13:46]line Товар: 4603290004824 [18:13:46]line Печ зат Яшкино слив Крем 182г [18:13:46]line 1.000 * 81.00 [18:13:46]line = 81.00 [18:13:46]line НДС 12% НСП 1% [18:13:46]line > о реализуемом товаре [18:13:46]line ИТОГО: 167.00 [18:13:46]line НСП 1% : 1.48 [18:13:46]line НДС 12% : 17.73 [18:13:46]line Наличными: 167.00 [18:13:46]line Безнал.: 0.00 [18:13:46]line Место: АЗС № 93 "Партнер Нефть" [18:13:46]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:13:46]line СНО: Общий режим [18:13:46]line Чек 72 21.09.2024 18:13 [18:13:46]line Смена: 232 ФФД: 1.0 [18:13:46]line ЗНМ: 0300000060 [18:13:46]line РНМ: 0000000000146239 [18:13:46]line Версия ККМ: v1.0 [18:13:46]line ФМ: 0000000000959362 [18:13:46]line ФД: 19622 [18:13:46]line ФПД: 212231869778838 [18:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T181345&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19622&fm=212231869778838&tin=02508201610067®Number=0000000000146239&sum=16700 [18:13:46]line 0 [18:13:46]written 0, free lines is 4095 [18:13:47]Write to MH i2c: 01 00 00 D1 01 D2 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 07 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 20 0C 05 [18:13:47]RasterBufferAndPrint [18:13:47]line [18:13:47]line [18:13:47]line [18:13:47]line [18:13:47]line [18:13:47]written 0, free lines is 3107 [18:13:47]MH_Cut [18:13:47]Write to MH i2c: D1 01 00 D8 01 01 AB [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: D1 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: D1 01 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: D1 01 00 D8 01 00 AA [18:13:47]Write to MH i2c: 01 00 00 D9 01 DA [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:48]*** Cut start [18:13:48]*** Partial cut [18:13:48]*** CUTSNS_PIN = 1 [18:13:48]*** CUTSNS_PIN = 0 [18:13:48]*** Brake cut motor [18:13:48]Read from MH i2c: 01 [18:13:48]MH_I2C_Read... [18:13:48]*** Stop cut motor [18:13:48]*** Cut end [18:13:48]Read from MH i2c: 01 07 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [18:13:48]process_action close_receipt done [18:13:48]requested_data is exist [18:13:48]produce_requested_data [18:13:48]requested_item fm.sn is exist - process it [18:13:48]wFMCommunicate request_size=4 [18:13:48]MH_SAM_APDU [18:13:48]CAPDU: 80 11 00 00 [18:13:48]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:48]Read from MH i2c: E2 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 17 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 AA [18:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:13:48]wFMCommunicate OK [18:13:48]requested_item fd.num is exist - process it [18:13:48]SAM_PROTO_GetFieldsCounters [18:13:48]wFMCommunicate request_size=4 [18:13:48]MH_SAM_APDU [18:13:48]CAPDU: 80 13 00 00 [18:13:48]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:48]Read from MH i2c: E2 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 62 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A6 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A6 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:48]wFMCommunicate OK [18:13:48]SAM_PROTO_GetFieldsCounters done [18:13:48]requested_item shift.num is exist - process it [18:13:48]requested_item shift.opened is exist - process it [18:13:48]req_shift_opened [18:13:48]FM_GetShiftState [18:13:48]SAM_PROTO_GetShiftState [18:13:48]wFMCommunicate request_size=4 [18:13:48]MH_SAM_APDU [18:13:48]CAPDU: 80 13 01 00 [18:13:48]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:48]Read from MH i2c: E2 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 0E 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 E0 [18:13:48]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:13:48]wFMCommunicate OK [18:13:48]SAM_PROTO_GetShiftState done [18:13:48]FM_GetShiftState done [18:13:48]req_shift_opened done [18:13:48]requested_item shift.open_date is exist - process it [18:13:48]req_shift_open_date [18:13:48]req_shift_open_date done [18:13:48]produce_requested_data done [18:13:48]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19622,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:13:48]process_action_free close_receipt [18:13:48]json_value_free [18:13:48]json_value_free done [18:13:48]process_json_proto returns [18:13:48]Send response to host [18:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19622,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:13:48]free response buf [18:13:48]execute_script done [18:13:49]execute_script returns [18:13:49]free content buf [18:13:49]Sock 9.Close socket [18:13:49]Sock 9.Thread stoped [18:13:49]Connected sock=11 [18:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 AD 01 00 00 A2 37 A5 01 B1 E0 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 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 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 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 0C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A6 4C 00 00 35 04 06 00 C1 06 15 35 4B 96 5C 11 30 23 CA 75 42 71 [18:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 21 C2 47 00 0A 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A6 4C 00 00 F4 03 04 00 75 B7 EE 66 B6 04 01 00 00 1A 31 67 09 A2 1B 24 89 [18:13:50]CommunicateWithHost err = 0 [18:13:50]CheckOFDResponse [18:13:50]1017 (14) - 77093643461234 [18:13:50]1041 (16) - 0000000000959362 [18:13:50]1040 (4) - 19622 [18:13:50]1012 (4) - 21.09.2024 12:09 [18:13:50]1206 (1) - 0 [18:13:50]OFD Sender: Remove packet 19622 [18:13:50]ProducePacketName [18:13:50]name=ofd_packets/00019622 [18:13:50]NVStorageDeleteData [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:03]recv_with_timeout no data received [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:20]recv_with_timeout no data received [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:46]accept exits with 8 [18:16:46]New connection [18:16:46]New thread 3067407716 created [18:16:46]Thread 3067264356 joined [18:16:46]Waiting for new connection... [18:16:46] Sock 8.Parse request [18:16:46]Sock 8.Check first char [18:16:46]Sock 8.First char is OK [18:16:46]request: POST /json_proto HTTP/1.0 [18:16:46]Method: POST [18:16:46]URL: /json_proto [18:16:46]Method is POST - this is cgi request [18:16:46]url: /json_proto [18:16:46]query_string will be loaded in cgi processing [18:16:46]execute_cgi json_proto POST (null) [18:16:46]execute_cgi path=json_proto method=POST [18:16:46]POST find Content-Length [18:16:46]Host: 172.17.42.73:8080 [18:16:46]Content-Length: 989 [18:16:46]Content-Type: application/json [18:16:46] [18:16:46]POST finish read [18:16:46]Found Content-Length = 989 [18:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:46]execute_script... [18:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:46]POST & json_proto [18:16:46]process_json_proto [18:16:46]json parsed OK: [18:16:46]protocol is kg_v1.0 [18:16:46]action value=close_receipt [18:16:46]process_action close_receipt [18:16:46]cmd_close_receipt [18:16:46]MH_GetDate [18:16:46]Write to MH i2c: F0 00 00 DD 01 CD [18:16:46]Write i2c OK [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: F0 [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: F0 09 00 [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: F0 09 00 DD 01 00 8F 0D EF 66 99 54 47 66 61 [18:16:46]GetLastDocTimeStamp 1726942425 [18:16:46]current date 1726942607 [18:16:46]FM_GetShiftState [18:16:46]SAM_PROTO_GetShiftState [18:16:46]wFMCommunicate request_size=4 [18:16:46]MH_SAM_APDU [18:16:46]CAPDU: 80 13 01 00 [18:16:46]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [18:16:46]Write i2c OK [18:16:46]MH_I2C_Read... [18:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:46]Read from MH i2c: E2 [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: E2 0E 00 [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 E2 [18:16:46]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:16:46]wFMCommunicate OK [18:16:46]SAM_PROTO_GetShiftState done [18:16:46]FM_GetShiftState done [18:16:46]opened in 1726877463 [18:16:46]opened+sec_in_day 1726963863 [18:16:46]quantity*price = 990008 [18:16:46]sum+1 = 990009 [18:16:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4601025117702 Напиток Фрутмотив апельсин 0,5 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.57 НДС 12% : 18.91 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 74 21.09.2024 18:41 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19624 ФПД: 280875876469227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184106&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19624&fm=280875876469227&tin=02508201610067®Number=0000000000146239&sum=17800 0 [18:41:08]StoreToDocumentArchive [18:41:08]shift 232 fd 19624 [18:41:08]save to /storage/0232/doc_00019624 [18:41:08]save last doc name /storage/0232/doc_00019624 to /storage/kkm_last_doc_name [18:41:08]save OK [18:41:08]Clear old archive folders... [18:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=415 [18:41:08]tlvbuf is 019D7000 [18:41:08]SAM_PROTO_ClearQueue [18:41:08]wFMCommunicate request_size=4 [18:41:08]MH_SAM_APDU [18:41:08]CAPDU: 80 09 00 00 [18:41:08]Write to MH i2c: E2 08 00 64 00 80 09 00 00 00 00 00 00 D6 [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:08]Read from MH i2c: E2 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [18:41:08]RAPDU: 90 00 [18:41:08]wFMCommunicate OK [18:41:08]SAM_PROTO_ClearQueue done [18:41:08]KKMCreateOFDPacket [18:41:08]OFDProtocolAddRootSTLVToBuf [18:41:08]FM_MakeSignedData [18:41:08]FM_MakeSignedData [18:41:08]SAM_PROTO_SignData [18:41:08]wFMCommunicate request_size=4 [18:41:08]MH_SAM_APDU [18:41:08]CAPDU: 80 0D 01 02 [18:41:08]Write to MH i2c: E2 08 00 65 00 80 0D 01 02 00 00 00 00 DE [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:08]Read from MH i2c: E2 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 65 00 00 90 00 D9 [18:41:08]RAPDU: 90 00 [18:41:08]wFMCommunicate OK [18:41:08]wFMCommunicate request_size=255 [18:41:08]MH_SAM_APDU [18:41:08]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 [18:41:08]Write to MH i2c: E2 02 01 66 00 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 00 00 55 [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:08]Read from MH i2c: E2 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [18:41:08]RAPDU: 90 00 [18:41:08]wFMCommunicate OK [18:41:08]wFMCommunicate request_size=174 [18:41:08]MH_SAM_APDU [18:41:08]CAPDU: 80 0D 02 02 A9 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 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [18:41:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [18:41:02]wFMCommunicate OK [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 17 00 00 [18:41:02]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:03]OFD Sender: No OFD packet to send [18:41:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 CC 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [18:41:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:41:03]wFMCommunicate OK [18:41:03]SAM_PROTO_GetShiftData done [18:41:03]requested_item shift.sale.total_cash is exist - process it [18:41:03]requested_item shift.sale_refund.total is exist - process it [18:41:03]requested_item shift.sale_refund.total_cash is exist - process it [18:41:03]requested_item shift.buy.total is exist - process it [18:41:03]requested_item shift.buy.total_cash is exist - process it [18:41:03]produce_requested_data done [18:41:03]produce_requested_data return {"fm.sale.total":17450465.88,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":75411.43,"shift.sale.total_cash":56520.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} [18:41:03]process_action_free get_value [18:41:03]json_value_free [18:41:03]json_value_free done [18:41:03]process_json_proto returns [18:41:03]Send response to host [18:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17450465.88,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":75411.43,"shift.sale.total_cash":56520.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}}} [18:41:03]free response buf [18:41:03]execute_script done [18:41:03]execute_script returns [18:41:03]free content buf [18:41:03]Sock 10.Close socket [18:41:03]Sock 10.Thread stoped [18:41:03]accept exits with 9 [18:41:03]New connection [18:41:03]New thread 3067424100 created [18:41:03]Thread 3067280740 joined [18:41:03]Waiting for new connection... [18:41:03] Sock 9.Parse request [18:41:03]Sock 9.Check first char [18:41:03]Sock 9.First char is OK [18:41:03]request: POST /json_proto HTTP/1.0 [18:41:03]Method: POST [18:41:03]URL: /json_proto [18:41:03]Method is POST - this is cgi request [18:41:03]url: /json_proto [18:41:03]query_string will be loaded in cgi processing [18:41:03]execute_cgi json_proto POST (null) [18:41:03]execute_cgi path=json_proto method=POST [18:41:03]POST find Content-Length [18:41:03]Host: 172.17.42.73:8080 [18:41:03]Content-Length: 144 [18:41:03]Content-Type: application/json [18:41:03] [18:41:03]POST finish read [18:41:03]Found Content-Length = 144 [18:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:41:03]execute_script... [18:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:41:03]POST & json_proto [18:41:03]process_json_proto [18:41:03]json parsed OK: [18:41:03]protocol is kg_v1.0 [18:41:03]action value=print_doc [18:41:03]process_action print_doc [18:41:03]ExternCall_PrintAddStr [18:41:03]wPrintStart [18:41:03]Write to MH i2c: 01 00 00 1D 00 1D [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [18:41:03]RasterBufferAndPrint [18:41:03]line Счет N : (1)23699876 [18:41:03]line ИНН: 02508201610067 [18:41:03]line Контрольно-Кассовый Чек [18:41:03]line ПРОДАЖА [18:41:03]line ТРК (МРК, ГНК) : 52 [18:41:03]line Товар: 2710194210 [18:41:03]line ДТ(л)-К-5 [18:41:03]line 131.650 * 75.20 [18:41:03]line = 9900.08 [18:41:03]line НДС 12% НСП 1% [18:41:03]line > о реализуемом товаре [18:41:03]line ОКРУГЛЕНИЕ: -0.08 [18:41:03]line ИТОГО: 9900.00 [18:41:03]line Внесено: 9900.00 [18:41:03]line СДАЧА: 0.00 [18:41:03]line НСП 1% : 87.61 [18:41:03]line НДС 12% : 1051.34 [18:41:03]line Наличными: 9900.00 [18:41:03]line Безнал.: 0.00 [18:41:03]line Место: АЗС № 93 "Партнер Нефть" [18:41:03]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:41:03]line СНО: Общий режим [18:41:03]line Чек 73 21.09.2024 18:16 [18:41:03]line Смена: 232 ФФД: 1.0 [18:41:03]line ЗНМ: 0300000060 [18:41:03]line РНМ: 0000000000146239 [18:41:03]line Версия ККМ: v1.0 [18:41:03]line [18:41:03]line Дисконтная программа [18:41:03]line ДТ [18:41:03]line номер 93 [18:41:03]line сэкономлено 131.65 сом [18:41:03]line ФМ: 0000000000959362 [18:41:03]line ФД: 19623 [18:41:03]line ФПД: 187740411481505 [18:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T181647&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19623&fm=187740411481505&tin=02508201610067®Number=0000000000146239&sum=990000 [18:41:03]written 0, free lines is 4095 [18:41:03]Write to MH i2c: 01 00 00 4D 00 4D [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 24 0C 84 [18:41:03]RasterBufferAndPrint [18:41:03]line [18:41:03]line [18:41:03]line [18:41:03]line [18:41:03]line [18:41:03]written 0, free lines is 3121 [18:41:03]MH_Cut [18:41:03]Write to MH i2c: D1 01 00 54 00 01 26 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: D1 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: D1 01 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: D1 01 00 54 00 00 25 [18:41:03]Write to MH i2c: 01 00 00 55 00 55 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:04]recv_with_timeout no data received [18:41:04]*** Cut start [18:41:04]*** Partial cut [18:41:04]*** CUTSNS_PIN = 1 [18:41:04]*** CUTSNS_PIN = 0 [18:41:05]*** Brake cut motor [18:41:05]Read from MH i2c: 01 [18:41:05]MH_I2C_Read... [18:41:05]*** Stop cut motor [18:41:05]*** Cut end [18:41:05]Read from MH i2c: 01 07 00 [18:41:05]MH_I2C_Read... [18:41:05]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [18:41:05]process_action print_doc done [18:41:05]requested_data is exist [18:41:05]produce_requested_data [18:41:05]produce_requested_data return (null) [18:41:05]process_action_free print_doc [18:41:05]json_value_free [18:41:05]json_value_free done [18:41:05]process_json_proto returns [18:41:05]Send response to host [18:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:41:05]free response buf [18:41:05]execute_script done [18:41:05]execute_script returns [18:41:05]free content buf 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 42 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A8 4C 00 00 35 04 06 00 FF 74 82 D7 C9 EB [18:41:08]Write to MH i2c: E2 B1 00 67 00 80 0D 02 02 A9 00 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 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 42 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A8 4C 00 00 35 04 06 00 FF 74 82 D7 C9 EB 00 00 6E [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:09]Read from MH i2c: E2 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 03 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [18:41:09]RAPDU: 90 00 [18:41:09]wFMCommunicate OK [18:41:09]wFMCommunicate request_size=4 [18:41:09]MH_SAM_APDU [18:41:09]CAPDU: 80 0D 03 02 [18:41:09]Write to MH i2c: E2 08 00 68 00 80 0D 03 02 00 00 00 00 E3 [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:09]Read from MH i2c: E2 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 0B 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 0B 00 68 00 00 99 19 D2 AD 88 E3 2A 3F 90 00 E9 [18:41:09]RAPDU: 99 19 D2 AD 88 E3 2A 3F 90 00 [18:41:09]wFMCommunicate OK [18:41:09]SAM_PROTO_SignData done [18:41:09]FM_MakeSignedData done [18:41:09]CreateOFDProtocolMessage [18:41:09]wFMCommunicate request_size=4 [18:41:09]MH_SAM_APDU [18:41:09]CAPDU: 80 11 00 00 [18:41:09]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:09]Read from MH i2c: E2 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 17 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 38 [18:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:41:09]wFMCommunicate OK [18:41:09]CreateOFDProtocolMessage done [18:41:09]OFDSenderStorePacket 19624 [18:41:09]StoreOFDPacket docnum=19624 [18:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B3 01 00 00 96 5C AB 01 4A 82 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 42 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A8 4C 00 00 35 04 06 00 FF 74 82 D7 C9 EB 99 19 D2 AD 88 E3 2A 3F [18:41:09]CheckFolder [18:41:09]dirname=/storage/ofd_packets [18:41:09]CheckFolder done [18:41:09]ProducePacketName [18:41:09]name=ofd_packets/00019624 [18:41:09]NVStorageSaveData ofd_packets/00019624 [18:41:09]File name is /storage/ofd_packets/00019624 [18:41:09]Write 465 bytes [18:41:09]NVStorageSaveData done [18:41:09]OFDSenderStorePacket done [18:41:09]KKMCreateOFDPacket done [18:41:09]NVStorageSaveData kkm_last_timestamp [18:41:09]File name is /storage/kkm_last_timestamp [18:41:09]Write 4 bytes [18:41:09]NVStorageSaveData done [18:41:09]ExternCall_PrintAddStr [18:41:09]wPrintStart [18:41:09]Write to MH i2c: 01 00 00 6A 00 6A [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 07 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 07 00 6A 00 00 00 00 00 00 FF 0F 7F [18:41:09]RasterBufferAndPrint [18:41:09]line Счет N : (3)117531 [18:41:09]line ИНН: 02508201610067 [18:41:09]line Контрольно-Кассовый Чек [18:41:09]line ПРОДАЖА [18:41:09]line Товар: 4603290004862 [18:41:09]line Печ.сах.FORSITE Сэнд.шок-ор.вк [18:41:09]line 1.000 * 93.00 [18:41:09]line = 93.00 [18:41:09]line НДС 12% НСП 1% [18:41:09]line > о реализуемом товаре [18:41:09]line Товар: 4601025117702 [18:41:09]line Напиток Фрутмотив апельсин 0,5 [18:41:09]line 1.000 * 85.00 [18:41:09]line = 85.00 [18:41:09]line НДС 12% НСП 1% [18:41:09]line > о реализуемом товаре [18:41:09]line ИТОГО: 178.00 [18:41:09]line НСП 1% : 1.57 [18:41:09]line НДС 12% : 18.91 [18:41:09]line Наличными: 178.00 [18:41:09]line Безнал.: 0.00 [18:41:09]line Место: АЗС № 93 "Партнер Нефть" [18:41:09]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:41:09]line СНО: Общий режим [18:41:09]line Чек 74 21.09.2024 18:41 [18:41:09]line Смена: 232 ФФД: 1.0 [18:41:09]line ЗНМ: 0300000060 [18:41:09]line РНМ: 0000000000146239 [18:41:09]line Версия ККМ: v1.0 [18:41:09]line ФМ: 0000000000959362 [18:41:09]line ФД: 19624 [18:41:09]line ФПД: 280875876469227 [18:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184106&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19624&fm=280875876469227&tin=02508201610067®Number=0000000000146239&sum=17800 [18:41:09]line 0 [18:41:09]written 0, free lines is 4095 [18:41:09]OFD Sender: Processing packet 19624 [packets to send 63, broken 62] [18:41:09]ProducePacketName [18:41:09]name=ofd_packets/00019624 [18:41:09]OFD Sender: To server: pG, [18:41:09]CommunicateWithHost lk.salyk.kg:30040 [18:41:09]ConnectInit lk.salyk.kg [18:41:09]Write to MH i2c: 01 00 00 9A 00 9A [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 07 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 1D 0C CA [18:41:09]RasterBufferAndPrint [18:41:09]line [18:41:09]line [18:41:09]line [18:41:09]line [18:41:09]line [18:41:09]written 0, free lines is 3113 [18:41:09]MH_Cut [18:41:09]Write to MH i2c: D1 01 00 A1 00 01 73 [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: D1 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: D1 01 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: D1 01 00 A1 00 00 72 [18:41:09]Write to MH i2c: 01 00 00 A2 00 A2 [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:10]*** Cut start [18:41:10]*** Partial cut [18:41:10]*** CUTSNS_PIN = 1 [18:41:10]*** CUTSNS_PIN = 0 [18:41:11]*** Brake cut motor [18:41:11]Connected sock=11 [18:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B3 01 00 00 96 5C AB 01 4A 82 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 Read from MH i2c: F4 01 03 [18:41:11]04 MH_I2C_Read... [18:41:11]00 *** Stop cut motor [18:41:11]42 *** Cut end [18:41:11]13 Read from MH i2c: EF 01 66 07 0E 00 04 [18:41:11]04 MH_I2C_Read... [18:41:11]00 E8 Read from MH i2c: 00 00 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [18:41:11]process_action close_receipt done [18:41:11]requested_data is exist [18:41:11]produce_requested_data [18:41:11]requested_item fm.sn is exist - process it [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 11 00 00 [18:41:11]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A8 4C 00 00 35 04 06 00 FF 74 82 D7 C9 EB 99 19 D2 AD 88 E3 2A 3F [18:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 17 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 72 [18:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:41:11]wFMCommunicate OK [18:41:11]requested_item fd.num is exist - process it [18:41:11]SAM_PROTO_GetFieldsCounters [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 13 00 00 [18:41:11]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 62 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A8 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A8 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:11]wFMCommunicate OK [18:41:11]SAM_PROTO_GetFieldsCounters done [18:41:11]requested_item shift.num is exist - process it [18:41:11]requested_item shift.opened is exist - process it [18:41:11]req_shift_opened [18:41:11]FM_GetShiftState [18:41:11]SAM_PROTO_GetShiftState [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 13 01 00 [18:41:11]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 0E 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 A8 [18:41:11]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:41:11]wFMCommunicate OK [18:41:11]SAM_PROTO_GetShiftState done [18:41:11]FM_GetShiftState done [18:41:11]req_shift_opened done [18:41:11]requested_item shift.open_date is exist - process it [18:41:11]req_shift_open_date [18:41:11]req_shift_open_date done [18:41:11]produce_requested_data done [18:41:11]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19624,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:41:11]process_action_free close_receipt [18:41:11]json_value_free [18:41:11]json_value_free done [18:41:11]process_json_proto returns [18:41:11]Send response to host [18:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19624,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:41:11]free response buf [18:41:11]execute_script done [18:41:11]execute_script returns [18:41:11]free content buf [18:41:11]Sock 10.Close socket [18:41:11]Sock 10.Thread stoped [18:41:12]accept exits with 7 [18:41:12]New connection [18:41:12]New thread 3067424100 created [18:41:12]Thread 3067280740 joined [18:41:12]Waiting for new connection... [18:41:12] Sock 7.Parse request [18:41:12]Sock 7.Check first char [18:41:12]Sock 7.First char is OK [18:41:12]request: POST /json_proto HTTP/1.0 [18:41:12]Method: POST [18:41:12]URL: /json_proto [18:41:12]Method is POST - this is cgi request [18:41:12]url: /json_proto [18:41:12]query_string will be loaded in cgi processing [18:41:12]execute_cgi json_proto POST (null) [18:41:12]execute_cgi path=json_proto method=POST [18:41:12]POST find Content-Length [18:41:12]Host: 172.17.42.73:8080 [18:41:12]Content-Length: 1017 [18:41:12]Content-Type: application/json [18:41:12] [18:41:12]POST finish read [18:41:12]Found Content-Length = 1017 [18:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117532", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:12]execute_script... [18:41: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)117532", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:12]POST & json_proto [18:41:12]process_json_proto [18:41:12]json parsed OK: [18:41:12]protocol is kg_v1.0 [18:41:12]action value=close_receipt [18:41:12]process_action close_receipt [18:41:12]cmd_close_receipt [18:41:12]MH_GetDate [18:41:12]Write to MH i2c: F0 00 00 A6 00 95 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 09 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 09 00 A6 00 00 49 13 EF 66 99 54 47 66 E9 [18:41:12]GetLastDocTimeStamp 1726944066 [18:41:12]current date 1726944073 [18:41:12]FM_GetShiftState [18:41:12]SAM_PROTO_GetShiftState [18:41:12]wFMCommunicate request_size=4 [18:41:12]MH_SAM_APDU [18:41:12]CAPDU: 80 13 01 00 [18:41:12]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:12]Read from MH i2c: E2 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0E 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 AA [18:41:12]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:41:12]wFMCommunicate OK [18:41:12]SAM_PROTO_GetShiftState done [18:41:12]FM_GetShiftState done [18:41:12]opened in 1726877463 [18:41:12]opened+sec_in_day 1726963863 [18:41:12]quantity*price = 13000 [18:41:12]sum+1 = 13001 [18:41:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 75 21.09.2024 18:41 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19625 ФПД: 42538842697421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184113&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19625&fm=42538842697421&tin=02508201610067®Number=0000000000146239&sum=26000 0 [18:41:14]StoreToDocumentArchive [18:41:14]shift 232 fd 19625 [18:41:14]save to /storage/0232/doc_00019625 [18:41:14]save last doc name /storage/0232/doc_00019625 to /storage/kkm_last_doc_name [18:41:14]save OK [18:41:14]Clear old archive folders... [18:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=388 [18:41:14]tlvbuf is 019EFDA0 [18:41:14]SAM_PROTO_ClearQueue [18:41:14]wFMCommunicate request_size=4 [18:41:14]MH_SAM_APDU [18:41:14]CAPDU: 80 09 00 00 [18:41:14]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 03 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [18:41:15]RAPDU: 90 00 [18:41:15]wFMCommunicate OK [18:41:15]SAM_PROTO_ClearQueue done [18:41:15]KKMCreateOFDPacket [18:41:15]OFDProtocolAddRootSTLVToBuf [18:41:15]FM_MakeSignedData [18:41:15]FM_MakeSignedData [18:41:15]SAM_PROTO_SignData [18:41:15]wFMCommunicate request_size=4 [18:41:15]MH_SAM_APDU [18:41:15]CAPDU: 80 0D 01 02 [18:41:15]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [18:41:15]Write i2c OK [18:41:15]MH_I2C_Read... [18:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:15]Read from MH i2c: E2 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [18:41:15]RAPDU: 90 00 [18:41:15]wFMCommunicate OK [18:41:15]wFMCommunicate request_size=255 [18:41:15]MH_SAM_APDU [18:41:15]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [18:41:15]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 B3 [18:41:15]Write i2c OK [18:41:15]MH_I2C_Read... [18:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:15]Read from MH i2c: E2 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [18:41:15]RAPDU: 90 00 [18:41:15]wFMCommunicate OK [18:41:15]wFMCommunicate request_size=147 [18:41:15]MH_SAM_APDU [18:41:15]CAPDU: 80 0D 02 02 8E F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 49 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A9 4C 00 00 35 04 06 00 26 B0 58 9B AE CD [18:41:15]Write to MH i2c: E2 96 00 B7 00 80 0D 02 02 8E 00 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 49 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A9 4C 00 00 35 04 06 00 26 B0 58 9B AE CD 00 00 46 [18:41:15]Write i2c OK [18:41:15]MH_I2C_Read... [18:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:15]Read from MH i2c: E2 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [18:41:15]RAPDU: 90 00 [18:41:15]wFMCommunicate OK [18:41:15]wFMCommunicate request_size=4 [18:41:15]MH_SAM_APDU [18:41:15]CAPDU: 80 0D 03 02 [18:41:15]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [18:41:15]Write i2c OK [18:41:15]MH_I2C_Read... [18:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:15]Read from MH i2c: E2 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 0B 00 [18:41:15]MH_I2C_Read... [18:41:15]Read from MH i2c: E2 0B 00 B8 00 00 C3 52 AB B8 9D 49 6D CD 90 00 CC [18:41:15]RAPDU: C3 52 AB B8 9D 49 6D CD 90 00 [18:41:15]wFMCommunicate OK [18:41:15]SAM_PROTO_SignData done [18:41:15]FM_MakeSignedData done [18:41:15]CreateOFDProtocolMessage [18:41:15]wFMCommunicate request_size=4 [18:41:15]MH_SAM_APDU [18:41:15]CAPDU: 80 11 00 00 [18:41:15]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [18:41:15]Write i2c OK [18:41:15]MH_I2C_Read... [18:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:16]Read from MH i2c: E2 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 17 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 88 [18:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:41:16]wFMCommunicate OK [18:41:16]CreateOFDProtocolMessage done [18:41:16]OFDSenderStorePacket 19625 [18:41:16]StoreOFDPacket docnum=19625 [18:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 98 01 00 00 F8 E5 90 01 B2 23 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 49 13 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A9 4C 00 00 35 04 06 00 26 B0 58 9B AE CD C3 52 AB B8 9D 49 6D CD [18:41:16]CheckFolder [18:41:16]dirname=/storage/ofd_packets [18:41:16]CheckFolder done [18:41:16]ProducePacketName [18:41:16]name=ofd_packets/00019625 [18:41:16]NVStorageSaveData ofd_packets/00019625 [18:41:16]File name is /storage/ofd_packets/00019625 [18:41:16]Write 438 bytes [18:41:16]NVStorageSaveData done [18:41:16]OFDSenderStorePacket done [18:41:16]KKMCreateOFDPacket done [18:41:16]NVStorageSaveData kkm_last_timestamp [18:41:16]File name is /storage/kkm_last_timestamp [18:41:16]Write 4 bytes [18:41:16]NVStorageSaveData done [18:41:16]ExternCall_PrintAddStr [18:41:16]wPrintStart [18:41:16]Write to MH i2c: 01 00 00 BA 00 BA [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: 01 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: 01 07 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [18:41:16]RasterBufferAndPrint [18:41:16]line Счет N : (3)117532 [18:41:16]line ИНН: 02508201610067 [18:41:16]line Контрольно-Кассовый Чек [18:41:16]line ПРОДАЖА [18:41:16]line Товар: 2000036220012 [18:41:16]line Кофе Капучино XL(GABB TRADE) [18:41:16]line 1.000 * 130.00 [18:41:16]line = 130.00 [18:41:16]line НДС 12% НСП 1% [18:41:16]line > о реализуемом товаре [18:41:16]line Товар: 2000036230011 [18:41:16]line Кофе Латте XL(GABB TRADE) [18:41:16]line 1.000 * 130.00 [18:41:16]line = 130.00 [18:41:16]line НДС 12% НСП 1% [18:41:16]line > о реализуемом товаре [18:41:16]line ИТОГО: 260.00 [18:41:16]line НСП 1% : 2.30 [18:41:16]line НДС 12% : 27.60 [18:41:16]line Наличными: 0.00 [18:41:16]line Безнал.: 260.00 [18:41:16]line Место: АЗС № 93 "Партнер Нефть" [18:41:16]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:41:16]line СНО: Общий режим [18:41:16]line Чек 75 21.09.2024 18:41 [18:41:16]line Смена: 232 ФФД: 1.0 [18:41:16]line ЗНМ: 0300000060 [18:41:16]line РНМ: 0000000000146239 [18:41:16]line Версия ККМ: v1.0 [18:41:16]line Платежная система: Mbank [18:41:16]line ФМ: 0000000000959362 [18:41:16]line ФД: 19625 [18:41:16]line ФПД: 42538842697421 [18:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184113&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19625&fm=42538842697421&tin=02508201610067®Number=0000000000146239&sum=26000 [18:41:16]line 0 [18:41:16]written 0, free lines is 4095 [18:41:16]OFD Sender: Processing packet 19625 [packets to send 63, broken 62] [18:41:16]ProducePacketName [18:41:16]name=ofd_packets/00019625 [18:41:16]OFD Sender: To server: pG, [18:41:16]CommunicateWithHost lk.salyk.kg:30040 [18:41:16]ConnectInit lk.salyk.kg [18:41:16]Connected sock=9 [18:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 98 01 00 00 F8 E5 90 01 B2 23 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 Write to MH i2c: 06 01 00 00 90 00 65 EA 00 00 00 EA 00 [18:41:16]00 1F Write i2c OK [18:41:16]04 MH_I2C_Read... [18:41:16]02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 49 13 EF 66 Read from MH i2c: 0E 01 04 [18:41:16]04 MH_I2C_Read... [18:41:16]00 Read from MH i2c: E8 01 00 07 00 00 00 [18:41:16]B9 MH_I2C_Read... [18:41:16]04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 Read from MH i2c: 36 01 32 07 33 00 39 EA 11 00 04 00 10 00 00 00 30 00 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A9 4C 00 00 7E 0C 00 7B 35 [18:41:16]04 RasterBufferAndPrint [18:41:16]06 line [18:41:16]00 line [18:41:16]26 line [18:41:16]B0 line [18:41:16]58 9B AE CD C3 52 AB B8 9D 49 6D CD [18:41:16]line [18:41:16]written 0, free lines is 3277 [18:41:16]MH_Cut [18:41:16]Write to MH i2c: D1 01 00 F1 00 01 C3 [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: D1 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: D1 01 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: D1 01 00 F1 00 00 C2 [18:41:16]Write to MH i2c: 01 00 00 F2 00 F2 [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FA 3B 47 00 A1 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 A9 4C 00 00 F4 03 04 00 E3 BD EE 66 B6 04 01 00 00 33 43 28 24 17 35 85 86 [18:41:17]CommunicateWithHost err = 0 [18:41:17]CheckOFDResponse [18:41:17]1017 (14) - 77093643461234 [18:41:17]1041 (16) - 0000000000959362 [18:41:17]1040 (4) - 19625 [18:41:17]1012 (4) - 21.09.2024 12:36 [18:41:17]1206 (1) - 0 [18:41:17]OFD Sender: Remove packet 19625 [18:41:17]ProducePacketName [18:41:17]name=ofd_packets/00019625 [18:41:17]NVStorageDeleteData [18:41:17]*** Cut start [18:41:17]*** Partial cut [18:41:17]*** CUTSNS_PIN = 1 [18:41:17]*** CUTSNS_PIN = 0 [18:41:17]OFD Sender: No OFD packet to send [18:41:17]*** Brake cut motor [18:41:18]Read from MH i2c: 01 [18:41:18]MH_I2C_Read... [18:41:18]*** Stop cut motor [18:41:18]*** Cut end [18:41:18]Read from MH i2c: 01 07 00 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FF 0F 07 [18:41:18]process_action close_receipt done [18:41:18]requested_data is exist [18:41:18]produce_requested_data [18:41:18]requested_item fm.sn is exist - process it [18:41:18]wFMCommunicate request_size=4 [18:41:18]MH_SAM_APDU [18:41:18]CAPDU: 80 11 00 00 [18:41:18]Write to MH i2c: E2 08 00 F3 00 80 11 00 00 00 00 00 00 6D [18:41:18]Write i2c OK [18:41:18]MH_I2C_Read... [18:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:18]Read from MH i2c: E2 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 17 00 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 17 00 F3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C2 [18:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:41:18]wFMCommunicate OK [18:41:18]requested_item fd.num is exist - process it [18:41:18]SAM_PROTO_GetFieldsCounters [18:41:18]wFMCommunicate request_size=4 [18:41:18]MH_SAM_APDU [18:41:18]CAPDU: 80 13 00 00 [18:41:18]Write to MH i2c: E2 08 00 F4 00 80 13 00 00 00 00 00 00 70 [18:41:18]Write i2c OK [18:41:18]MH_I2C_Read... [18:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:18]Read from MH i2c: E2 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 62 00 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 62 00 F4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [18:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 A9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:18]wFMCommunicate OK [18:41:18]SAM_PROTO_GetFieldsCounters done [18:41:18]requested_item shift.num is exist - process it [18:41:18]requested_item shift.opened is exist - process it [18:41:18]req_shift_opened [18:41:18]FM_GetShiftState [18:41:18]SAM_PROTO_GetShiftState [18:41:18]wFMCommunicate request_size=4 [18:41:18]MH_SAM_APDU [18:41:18]CAPDU: 80 13 01 00 [18:41:18]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [18:41:18]Write i2c OK [18:41:18]MH_I2C_Read... [18:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:18]Read from MH i2c: E2 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 0E 00 [18:41:18]MH_I2C_Read... [18:41:18]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F8 [18:41:18]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:41:18]wFMCommunicate OK [18:41:18]SAM_PROTO_GetShiftState done [18:41:18]FM_GetShiftState done [18:41:18]req_shift_opened done [18:41:18]requested_item shift.open_date is exist - process it [18:41:18]req_shift_open_date [18:41:18]req_shift_open_date done [18:41:18]produce_requested_data done [18:41:18]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19625,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:41:18]process_action_free close_receipt [18:41:18]json_value_free [18:41:18]json_value_free done [18:41:18]process_json_proto returns [18:41:18]Send response to host [18:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19625,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:41:18]free response buf [18:41:18]execute_script done [18:41:18]execute_script returns [18:41:18]free content buf [18:41:18]Sock 7.Close socket [18:41:18]Sock 7.Thread stoped [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:33]recv_with_timeout no data received [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:43]recv_with_timeout no data received [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:01]recv_with_timeout no data received [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:28]recv_with_timeout no data received [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:38]recv_with_timeout no data received [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:49]recv_with_timeout no data received [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:42:59]recv_with_timeout no data received [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:20]recv_with_timeout no data received [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:17]accept exits with 10 [18:47:17]New connection [18:47:17]New thread 3067280740 created [18:47:17]Thread 3067424100 joined [18:47:17]Waiting for new connection... [18:47:17] Sock 10.Parse request [18:47:17]Sock 10.Check first char [18:47:17]Sock 10.First char is OK [18:47:17]request: POST /json_proto HTTP/1.0 [18:47:17]Method: POST [18:47:17]URL: /json_proto [18:47:17]Method is POST - this is cgi request [18:47:17]url: /json_proto [18:47:17]query_string will be loaded in cgi processing [18:47:17]execute_cgi json_proto POST (null) [18:47:17]execute_cgi path=json_proto method=POST [18:47:17]POST find Content-Length [18:47:17]Host: 172.17.42.73:8080 [18:47:17]Content-Length: 800 [18:47:17]Content-Type: application/json [18:47:17] [18:47:17]POST finish read [18:47:17]Found Content-Length = 800 [18:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117533", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:17]execute_script... [18:47: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)117533", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:17]POST & json_proto [18:47:17]process_json_proto [18:47:17]json parsed OK: [18:47:17]protocol is kg_v1.0 [18:47:17]action value=close_receipt [18:47:17]process_action close_receipt [18:47:17]cmd_close_receipt [18:47:17]MH_GetDate [18:47:17]Write to MH i2c: F0 00 00 F6 00 E5 [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 09 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 09 00 F6 00 00 B5 14 EF 66 99 54 47 66 A6 [18:47:17]GetLastDocTimeStamp 1726944073 [18:47:17]current date 1726944437 [18:47:17]FM_GetShiftState [18:47:17]SAM_PROTO_GetShiftState [18:47:17]wFMCommunicate request_size=4 [18:47:17]MH_SAM_APDU [18:47:17]CAPDU: 80 13 01 00 [18:47:17]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:17]Read from MH i2c: E2 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: E2 0E 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FA [18:47:17]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:47:17]wFMCommunicate OK [18:47:17]SAM_PROTO_GetShiftState done [18:47:17]FM_GetShiftState done [18:47:17]opened in 1726877463 [18:47:17]opened+sec_in_day 1726963863 [18:47:17]quantity*price = 700 [18:47:17]sum+1 = 701 [18:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 0.00 Безнал.: 7.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 76 21.09.2024 18:47 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19626 ФПД: 196496300233194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184718&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19626&fm=196496300233194&tin=02508201610067®Number=0000000000146239&sum=700 0 [18:47:18]StoreToDocumentArchive [18:47:18]shift 232 fd 19626 [18:47:18]save to /storage/0232/doc_00019626 [18:47:18]save last doc name /storage/0232/doc_00019626 to /storage/kkm_last_doc_name [18:47:18]save OK [18:47:18]Clear old archive folders... [18:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=287 [18:47:18]tlvbuf is 01A22CA0 [18:47:18]SAM_PROTO_ClearQueue [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 09 00 00 [18:47:18]Write to MH i2c: E2 08 00 04 01 80 09 00 00 00 00 00 00 77 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_ClearQueue done [18:47:18]KKMCreateOFDPacket [18:47:18]OFDProtocolAddRootSTLVToBuf [18:47:18]FM_MakeSignedData [18:47:18]FM_MakeSignedData [18:47:18]SAM_PROTO_SignData [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 01 02 [18:47:18]Write to MH i2c: E2 08 00 05 01 80 0D 01 02 00 00 00 00 7F [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=255 [18:47:18]MH_SAM_APDU [18:47:18]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 00 00 00 00 00 00 39 04 06 00 BC 02 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 [18:47:18]Write to MH i2c: E2 02 01 06 01 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 00 00 00 00 00 00 39 04 06 00 BC 02 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 00 00 0E [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [18:47:19]RAPDU: 90 00 [18:47:19]wFMCommunicate OK [18:47:19]wFMCommunicate request_size=46 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 0D 02 02 29 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AA 4C 00 00 35 04 06 00 B2 B6 5C 2C D1 EA [18:47:19]Write to MH i2c: E2 31 00 07 01 80 0D 02 02 29 00 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AA 4C 00 00 35 04 06 00 B2 B6 5C 2C D1 EA 00 00 B1 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [18:47:19]RAPDU: 90 00 [18:47:19]wFMCommunicate OK [18:47:19]wFMCommunicate request_size=4 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 0D 03 02 [18:47:19]Write to MH i2c: E2 08 00 08 01 80 0D 03 02 00 00 00 00 84 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 0B 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 0B 00 08 01 00 9F E3 52 4F BE ED 45 EA 90 00 82 [18:47:19]RAPDU: 9F E3 52 4F BE ED 45 EA 90 00 [18:47:19]wFMCommunicate OK [18:47:19]SAM_PROTO_SignData done [18:47:19]FM_MakeSignedData done [18:47:19]CreateOFDProtocolMessage [18:47:19]wFMCommunicate request_size=4 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 11 00 00 [18:47:19]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 17 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [18:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:47:19]wFMCommunicate OK [18:47:19]CreateOFDProtocolMessage done [18:47:19]OFDSenderStorePacket 19626 [18:47:19]StoreOFDPacket docnum=19626 [18:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 33 01 00 00 F5 C2 2B 01 AD 47 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 00 00 00 00 00 00 39 04 06 00 BC 02 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AA 4C 00 00 35 04 06 00 B2 B6 5C 2C D1 EA 9F E3 52 4F BE ED 45 EA [18:47:19]CheckFolder [18:47:19]dirname=/storage/ofd_packets [18:47:19]CheckFolder done [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00019626 [18:47:19]NVStorageSaveData ofd_packets/00019626 [18:47:19]File name is /storage/ofd_packets/00019626 [18:47:19]Write 337 bytes [18:47:19]NVStorageSaveData done [18:47:19]OFDSenderStorePacket done [18:47:19]KKMCreateOFDPacket done [18:47:19]NVStorageSaveData kkm_last_timestamp [18:47:19]File name is /storage/kkm_last_timestamp [18:47:19]Write 4 bytes [18:47:19]NVStorageSaveData done [18:47:19]ExternCall_PrintAddStr [18:47:19]wPrintStart [18:47:19]Write to MH i2c: 01 00 00 0A 01 0B [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 0A 01 00 00 00 00 00 FF 0F 20 [18:47:19]RasterBufferAndPrint [18:47:19]line Счет N : (3)117533 [18:47:19]line ИНН: 02508201610067 [18:47:19]line Контрольно-Кассовый Чек [18:47:19]line ПРОДАЖА [18:47:19]line Товар: 2000053020015 [18:47:19]line Бумажные стаканы 250мл 1шт [18:47:19]line 1.000 * 7.00 [18:47:19]line = 7.00 [18:47:19]line НДС 12% НСП 1% [18:47:19]line > о реализуемом товаре [18:47:19]line ИТОГО: 7.00 [18:47:19]line НСП 1% : 0.06 [18:47:19]line НДС 12% : 0.74 [18:47:19]line Наличными: 0.00 [18:47:19]line Безнал.: 7.00 [18:47:19]line Место: АЗС № 93 "Партнер Нефть" [18:47:19]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:47:19]line СНО: Общий режим [18:47:19]line Чек 76 21.09.2024 18:47 [18:47:19]line Смена: 232 ФФД: 1.0 [18:47:19]line ЗНМ: 0300000060 [18:47:19]line РНМ: 0000000000146239 [18:47:19]line Версия ККМ: v1.0 [18:47:19]line Платежная система: Mbank [18:47:19]line ФМ: 0000000000959362 [18:47:19]line ФД: 19626 [18:47:19]line ФПД: 196496300233194 [18:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184718&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19626&fm=196496300233194&tin=02508201610067®Number=0000000000146239&sum=700 [18:47:19]line 0 [18:47:19]OFD Sender: Processing packet 19626 [packets to send 63, broken 62] [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00019626 [18:47:19]OFD Sender: To server: pG, [18:47:19]CommunicateWithHost lk.salyk.kg:30040 [18:47:19]ConnectInit lk.salyk.kg [18:47:19]written 0, free lines is 4095 [18:47:20]Write to MH i2c: 01 00 00 34 01 35 [18:47:20]Write i2c OK [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: 01 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: 01 07 00 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 7E 0C C6 [18:47:20]RasterBufferAndPrint [18:47:20]line [18:47:20]line [18:47:20]line [18:47:20]line [18:47:20]line [18:47:20]written 0, free lines is 3202 [18:47:20]MH_Cut [18:47:20]Write to MH i2c: D1 01 00 3B 01 01 0E [18:47:20]Write i2c OK [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: D1 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: D1 01 00 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: D1 01 00 3B 01 00 0D [18:47:20]Write to MH i2c: 01 00 00 3C 01 3D [18:47:20]Write i2c OK [18:47:20]MH_I2C_Read... [18:47:20]Connected sock=9 [18:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 33 01 00 00 F5 C2 2B 01 AD 47 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 00 00 00 00 00 00 39 04 06 00 BC 02 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AA 4C 00 00 35 04 06 00 B2 B6 5C 2C D1 EA 9F E3 52 4F BE ED 45 EA [18:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 CE C0 47 00 69 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AA 4C 00 00 F4 03 04 00 4F BF EE 66 B6 04 01 00 00 24 BD F7 84 24 1E 98 8B [18:47:20]CommunicateWithHost err = 0 [18:47:20]CheckOFDResponse [18:47:20]1017 (14) - 77093643461234 [18:47:20]1041 (16) - 0000000000959362 [18:47:20]1040 (4) - 19626 [18:47:20]1012 (4) - 21.09.2024 12:42 [18:47:20]1206 (1) - 0 [18:47:20]OFD Sender: Remove packet 19626 [18:47:20]ProducePacketName [18:47:20]name=ofd_packets/00019626 [18:47:20]NVStorageDeleteData [18:47:21]*** Cut start [18:47:21]*** Partial cut [18:47:21]*** CUTSNS_PIN = 1 [18:47:21]*** CUTSNS_PIN = 0 [18:47:21]OFD Sender: No OFD packet to send [18:47:21]*** Brake cut motor [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]*** Stop cut motor [18:47:21]*** Cut end [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [18:47:21]process_action close_receipt done [18:47:21]requested_data is exist [18:47:21]produce_requested_data [18:47:21]requested_item fm.sn is exist - process it [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 11 00 00 [18:47:21]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 17 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 0D [18:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:47:21]wFMCommunicate OK [18:47:21]requested_item fd.num is exist - process it [18:47:21]SAM_PROTO_GetFieldsCounters [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 13 00 00 [18:47:21]Write to MH i2c: E2 08 00 3E 01 80 13 00 00 00 00 00 00 BB [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 62 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 62 00 3E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:47:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:21]wFMCommunicate OK [18:47:21]SAM_PROTO_GetFieldsCounters done [18:47:21]requested_item shift.num is exist - process it [18:47:21]requested_item shift.opened is exist - process it [18:47:21]req_shift_opened [18:47:21]FM_GetShiftState [18:47:21]SAM_PROTO_GetShiftState [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 13 01 00 [18:47:21]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 43 [18:47:21]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:47:21]wFMCommunicate OK [18:47:21]SAM_PROTO_GetShiftState done [18:47:21]FM_GetShiftState done [18:47:21]req_shift_opened done [18:47:21]requested_item shift.open_date is exist - process it [18:47:21]req_shift_open_date [18:47:21]req_shift_open_date done [18:47:21]produce_requested_data done [18:47:21]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19626,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:47:21]process_action_free close_receipt [18:47:21]json_value_free [18:47:21]json_value_free done [18:47:21]process_json_proto returns [18:47:21]Send response to host [18:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19626,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:47:21]free response buf [18:47:21]execute_script done [18:47:21]execute_script returns [18:47:21]free content buf [18:47:21]Sock 10.Close socket [18:47:21]Sock 10.Thread stoped [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:41]recv_with_timeout no data received [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:14]accept exits with 7 [18:48:14]New connection [18:48:14]New thread 3067424100 created [18:48:14]Thread 3067280740 joined [18:48:14]Waiting for new connection... [18:48:14] Sock 7.Parse request [18:48:14]Sock 7.Check first char [18:48:14]Sock 7.First char is OK [18:48:14]request: POST /json_proto HTTP/1.0 [18:48:14]Method: POST [18:48:14]URL: /json_proto [18:48:14]Method is POST - this is cgi request [18:48:14]url: /json_proto [18:48:14]query_string will be loaded in cgi processing [18:48:14]execute_cgi json_proto POST (null) [18:48:14]execute_cgi path=json_proto method=POST [18:48:14]POST find Content-Length [18:48:14]Host: 172.17.42.73:8080 [18:48:14]Content-Length: 773 [18:48:14]Content-Type: application/json [18:48:14] [18:48:14]POST finish read [18:48:14]Found Content-Length = 773 [18:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117534", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:14]execute_script... [18:48: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)117534", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:14]POST & json_proto [18:48:14]process_json_proto [18:48:14]json parsed OK: [18:48:14]protocol is kg_v1.0 [18:48:14]action value=close_receipt [18:48:14]process_action close_receipt [18:48:14]cmd_close_receipt [18:48:14]MH_GetDate [18:48:14]Write to MH i2c: F0 00 00 40 01 30 [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: F0 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: F0 09 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: F0 09 00 40 01 00 EE 14 EF 66 99 54 47 66 2A [18:48:14]GetLastDocTimeStamp 1726944438 [18:48:14]current date 1726944494 [18:48:14]FM_GetShiftState [18:48:14]SAM_PROTO_GetShiftState [18:48:14]wFMCommunicate request_size=4 [18:48:14]MH_SAM_APDU [18:48:14]CAPDU: 80 13 01 00 [18:48:14]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:14]Read from MH i2c: E2 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 0E 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 45 [18:48:14]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:48:14]wFMCommunicate OK [18:48:14]SAM_PROTO_GetShiftState done [18:48:14]FM_GetShiftState done [18:48:14]opened in 1726877463 [18:48:14]opened+sec_in_day 1726963863 [18:48:14]quantity*price = 13000 [18:48:14]sum+1 = 13001 [18:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 77 21.09.2024 18:48 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19627 ФПД: 231419487462730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T184814&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19627&fm=231419487462730&tin=02508201610067®Number=0000000000146239&sum=13000 0 [18:48:15]StoreToDocumentArchive [18:48:15]shift 232 fd 19627 [18:48:15]save to /storage/0232/doc_00019627 [18:48:15]save last doc name /storage/0232/doc_00019627 to /storage/kkm_last_doc_name [18:48:15]save OK [18:48:15]Clear old archive folders... [18:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:48:15]tlvbuf is 01A236C0 [18:48:15]SAM_PROTO_ClearQueue [18:48:15]wFMCommunicate request_size=4 [18:48:15]MH_SAM_APDU [18:48:15]CAPDU: 80 09 00 00 [18:48:15]Write to MH i2c: E2 08 00 4E 01 80 09 00 00 00 00 00 00 C1 [18:48:15]Write i2c OK [18:48:15]MH_I2C_Read... [18:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:15]Read from MH i2c: E2 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 03 00 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [18:48:15]RAPDU: 90 00 [18:48:15]wFMCommunicate OK [18:48:15]SAM_PROTO_ClearQueue done [18:48:15]KKMCreateOFDPacket [18:48:15]OFDProtocolAddRootSTLVToBuf [18:48:15]FM_MakeSignedData [18:48:15]FM_MakeSignedData [18:48:15]SAM_PROTO_SignData [18:48:15]wFMCommunicate request_size=4 [18:48:15]MH_SAM_APDU [18:48:15]CAPDU: 80 0D 01 02 [18:48:15]Write to MH i2c: E2 08 00 4F 01 80 0D 01 02 00 00 00 00 C9 [18:48:15]Write i2c OK [18:48:15]MH_I2C_Read... [18:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:15]Read from MH i2c: E2 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 03 00 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [18:48:15]RAPDU: 90 00 [18:48:15]wFMCommunicate OK [18:48:15]wFMCommunicate request_size=255 [18:48:15]MH_SAM_APDU [18:48:15]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EE 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 [18:48:15]Write to MH i2c: E2 02 01 50 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 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 4D 00 00 00 F4 03 04 00 EE 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 00 00 64 [18:48:15]Write i2c OK [18:48:15]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [18:48:16]RAPDU: 90 00 [18:48:16]wFMCommunicate OK [18:48:16]wFMCommunicate request_size=41 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AB 4C 00 00 35 04 06 00 D2 79 8C 58 25 4A [18:48:16]Write to MH i2c: E2 2C 00 51 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AB 4C 00 00 35 04 06 00 D2 79 8C 58 25 4A 00 00 32 [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [18:48:16]RAPDU: 90 00 [18:48:16]wFMCommunicate OK [18:48:16]wFMCommunicate request_size=4 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 0D 03 02 [18:48:16]Write to MH i2c: E2 08 00 52 01 80 0D 03 02 00 00 00 00 CE [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 0B 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 0B 00 52 01 00 90 48 88 93 A6 26 70 B3 90 00 B1 [18:48:16]RAPDU: 90 48 88 93 A6 26 70 B3 90 00 [18:48:16]wFMCommunicate OK [18:48:16]SAM_PROTO_SignData done [18:48:16]FM_MakeSignedData done [18:48:16]CreateOFDProtocolMessage [18:48:16]wFMCommunicate request_size=4 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 11 00 00 [18:48:16]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 17 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 23 [18:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:48:16]wFMCommunicate OK [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572569 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10994387+1715950745=1726945132 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 50 00 FF FF A6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 6D 17 EF 66 99 54 47 66 72 [18:58:53]Current date/time: 21.09.2024 18:58 [18:58:53]FM_Init [18:58:53]wFMConnect [18:58:53]MH_SAM_On [18:58:53]Write to MH i2c: E0 00 00 08 00 E7 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_init finished! [18:58:53]*** atr: [18:58:53]*** 0F 3B D5 18 FF 81 91 FE [18:58:53]*** 1F C3 80 73 C8 21 10 0A [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]*** 00 00 00 00 00 00 00 00 [18:58:53]Read from MH i2c: E0 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E0 10 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:58:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:58:53]wFMCommunicate request_size=10 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:58:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 11 00 00 [18:58:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [18:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:58:53]wFMCommunicate OK [18:58:53]Detected FM SN is 0000000000959362 [18:58:53]Stored FM SN is 0000000000959362 [18:58:53]wFMCommunicate request_size=9 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 16 00 00 04 B7 57 01 00 [18:58:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 B7 57 01 00 00 00 A1 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]FM PIN OK [18:58:53]wFMCommunicate request_size=8 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 14 04 00 03 02 00 01 [18:58:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=13 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:58:53]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 11 00 00 [18:58:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DD [18:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:58:53]wFMCommunicate OK [18:58:53]DocumentArchiveInit [18:58:53]Start Httpd... [18:58:53]Httpd thread 3067100516 created [18:58:53]Write to MH i2c: 01 00 00 0F 00 0F [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:58:53]Allocated Socket 5 [18:58:53]Bind OK [18:58:53]Listen OK [18:58:53]httpd running on port 8080 [18:58:53]Waiting for new connection... [18:58:53]MH Int Process started [18:58:53]OFD Sender: Processing packet 19627 [packets to send 63, broken 62] [18:58:53]ProducePacketName [18:58:53]name=ofd_packets/00019627 [18:58:53]OFD Sender: To server: pG, [18:58:53]CommunicateWithHost lk.salyk.kg:30040 [18:58:53]ConnectInit lk.salyk.kg [18:58:54]Connected sock=7 [18:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2E 01 00 00 B5 3C 26 01 0A A2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EE 14 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AB 4C 00 00 35 04 06 00 D2 79 8C 58 25 4A 90 48 88 93 A6 26 70 B3 [18:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 26 78 47 00 FB 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AB 4C 00 00 F4 03 04 00 06 C2 EE 66 B6 04 01 00 00 4B 79 E1 0F D6 0E D1 61 [18:58:55]CommunicateWithHost err = 0 [18:58:55]CheckOFDResponse [18:58:55]1017 (14) - 77093643461234 [18:58:55]1041 (16) - 0000000000959362 [18:58:55]1040 (4) - 19627 [18:58:55]1012 (4) - 21.09.2024 12:54 [18:58:55]1206 (1) - 0 [18:58:55]OFD Sender: Remove packet 19627 [18:58:55]ProducePacketName [18:58:55]name=ofd_packets/00019627 [18:58:55]NVStorageDeleteData [18:58:55]OFD Sender: No OFD packet to send [18:58:56]accept exits with 6 [18:58:56]New connection [18:58:56]New thread 3066813796 created [18:58:56]Waiting for new connection... [18:58:56] Sock 6.Parse request [18:58:56]Sock 6.Check first char [18:58:56]Sock 6.First char is OK [18:58:56]request: POST /json_proto HTTP/1.0 [18:58:56]Method: POST [18:58:56]URL: /json_proto [18:58:56]Method is POST - this is cgi request [18:58:56]url: /json_proto [18:58:56]query_string will be loaded in cgi processing [18:58:56]execute_cgi json_proto POST (null) [18:58:56]execute_cgi path=json_proto method=POST [18:58:56]POST find Content-Length [18:58:56]Host: 172.17.42.73:8080 [18:58:56]Content-Length: 215 [18:58:56]Content-Type: application/json [18:58:56] [18:58:56]POST finish read [18:58:56]Found Content-Length = 215 [18:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]execute_script... [18:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]POST & json_proto [18:58:56]process_json_proto [18:58:56]json parsed OK: [18:58:56]protocol is kg_v1.0 [18:58:56]action value=get_value [18:58:56]process_action get_value [18:58:56]cmd_get_value [18:58:56]process_action get_value done [18:58:56]requested_data is exist [18:58:56]produce_requested_data [18:58:56]requested_item kkm.sn is exist - process it [18:58:56]requested_item kkm.ver is exist - process it [18:58:56]requested_item fm.sn is exist - process it [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 11 00 00 [18:58:56]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:56]Read from MH i2c: E2 17 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DF [18:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:58:56]wFMCommunicate OK [18:58:56]requested_item fd.num is exist - process it [18:58:56]SAM_PROTO_GetFieldsCounters [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 13 00 00 [18:58:56]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 62 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AB 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AB 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_GetFieldsCounters done [18:58:56]requested_item shift.num is exist - process it [18:58:56]requested_item shift.opened is exist - process it [18:58:56]req_shift_opened [18:58:56]FM_GetShiftState [18:58:56]SAM_PROTO_GetShiftState [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 13 01 00 [18:58:56]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [18:58:56]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_GetShiftState done [18:58:56]FM_GetShiftState done [18:58:56]req_shift_opened done [18:58:56]requested_item shift.open_date is exist - process it [18:58:56]req_shift_open_date [18:58:56]req_shift_open_date done [18:58:56]produce_requested_data done [18:58:56]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19627,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:58:56]process_action_free get_value [18:58:56]json_value_free [18:58:56]json_value_free done [18:58:56]process_json_proto returns [18:58:56]Send response to host [18:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19627,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:58:56]free response buf [18:58:56]execute_script done [18:58:56]execute_script returns [18:58:56]free content buf [18:58:56]Sock 6.Close socket [18:58:56]Sock 6.Thread stoped [18:58:56]accept exits with 7 [18:58:56]New connection [18:58:56]New thread 3066670436 created [18:58:56]Thread 3066813796 joined [18:58:56]Waiting for new connection... [18:58:56] Sock 7.Parse request [18:58:56]Sock 7.Check first char [18:58:56]Sock 7.First char is OK [18:58:56]request: POST /json_proto HTTP/1.0 [18:58:56]Method: POST [18:58:56]URL: /json_proto [18:58:56]Method is POST - this is cgi request [18:58:56]url: /json_proto [18:58:56]query_string will be loaded in cgi processing [18:58:56]execute_cgi json_proto POST (null) [18:58:56]execute_cgi path=json_proto method=POST [18:58:56]POST find Content-Length [18:58:56]Host: 172.17.42.73:8080 [18:58:56]Content-Length: 331 [18:58:56]Content-Type: application/json [18:58:56] [18:58:56]POST finish read [18:58:56]Found Content-Length = 331 [18:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:58:56]execute_script... [18:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:58:56]POST & json_proto [18:58:56]process_json_proto [18:58:56]json parsed OK: [18:58:56]protocol is kg_v1.0 [18:58:56]action value=get_value [18:58:56]process_action get_value [18:58:56]cmd_get_value [18:58:56]process_action get_value done [18:58:56]requested_data is exist [18:58:56]produce_requested_data [18:58:56]requested_item fm.sale.total is exist - process it [18:58:56]SAM_PROTO_GetFMData [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 13 03 00 [18:58:56]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 DB 4A 00 00 69 04 A0 00 6F 04 04 00 C3 4A 00 00 B1 04 04 00 D8 2C 04 68 70 04 04 00 6C E9 CA 43 72 04 04 00 6C 43 39 24 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 D7 FE 0B 0B 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 AB A1 EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 06 [18:58:57]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DB 4A 00 00 69 04 A0 00 6F 04 04 00 C3 4A 00 00 B1 04 04 00 D8 2C 04 68 70 04 04 00 6C E9 CA 43 72 04 04 00 6C 43 39 24 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 D7 FE 0B 0B 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 AB A1 EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 18 00 00 00 B1 04 03 00 58 2B 72 70 04 03 00 A8 F4 71 72 04 02 00 B0 36 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 0C 20 0C EF 03 09 00 F6 03 01 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 17 00 00 [18:58:57]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 73 [18:58:57]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AC 02 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 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 17 00 00 [18:58:57]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [18:58:57]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 17 00 00 [18:58:57]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [18:58:57]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 17 00 00 [18:58:58]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 DE 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [18:58:58]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:58:58]wFMCommunicate OK [18:58:58]SAM_PROTO_GetFMData done [18:58:58]requested_item fm.sale_refund.total is exist - process it [18:58:58]requested_item fm.buy.total is exist - process it [18:58:58]requested_item shift.sale.total is exist - process it [18:58:58]SAM_PROTO_GetShiftData [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 13 02 00 [18:58:58]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 FD 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 4D 00 00 00 69 04 9C 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 33 F2 73 70 04 03 00 A8 83 56 72 04 03 00 8B 6E 1D 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 56 50 0C 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 A8 06 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 90 [18:58:58]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4D 00 00 00 69 04 9C 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 33 F2 73 70 04 03 00 A8 83 56 72 04 03 00 8B 6E 1D 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 56 50 0C 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 A8 06 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 17 00 00 [18:58:58]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 FD 00 [18:58:58]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [18:58:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 17 00 00 [18:58:59]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 FD 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [18:58:59]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [18:58:59]wFMCommunicate OK [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 17 00 00 [18:58:59]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 FD 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [18:58:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [18:58:59]wFMCommunicate OK [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 17 00 00 [18:58:59]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 CC 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [18:58:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:59:00]wFMCommunicate OK [18:59:00]SAM_PROTO_GetShiftData done [18:59:00]requested_item shift.sale.total_cash is exist - process it [18:59:00]requested_item shift.sale_refund.total is exist - process it [18:59:00]requested_item shift.sale_refund.total_cash is exist - process it [18:59:00]requested_item shift.buy.total is exist - process it [18:59:00]requested_item shift.buy.total_cash is exist - process it [18:59:00]produce_requested_data done [18:59:00]produce_requested_data return {"fm.sale.total":17451040.88,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":75986.43,"shift.sale.total_cash":56698.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} [18:59:00]process_action_free get_value [18:59:00]json_value_free [18:59:00]json_value_free done [18:59:00]process_json_proto returns [18:59:00]Send response to host [18:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17451040.88,"fm.sale_refund.total":74822.00,"fm.buy.total":0.00,"shift.sale.total":75986.43,"shift.sale.total_cash":56698.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}}} [18:59:00]free response buf [18:59:00]execute_script done [18:59:00]execute_script returns [18:59:00]free content buf [18:59:00]Sock 7.Close socket [18:59:00]Sock 7.Thread stoped [18:59:01]OFD Sender: No OFD packet to send [18:59:01]accept exits with 6 [18:59:01]New connection [18:59:01]New thread 3066813796 created [18:59:01]Thread 3066670436 joined [18:59:01]Waiting for new connection... [18:59:01] Sock 6.Parse request [18:59:01]Sock 6.Check first char [18:59:01]Sock 6.First char is OK [18:59:01]request: POST /json_proto HTTP/1.0 [18:59:01]Method: POST [18:59:01]URL: /json_proto [18:59:01]Method is POST - this is cgi request [18:59:01]url: /json_proto [18:59:01]query_string will be loaded in cgi processing [18:59:01]execute_cgi json_proto POST (null) [18:59:01]execute_cgi path=json_proto method=POST [18:59:01]POST find Content-Length [18:59:01]Host: 172.17.42.73:8080 [18:59:01]Content-Length: 647 [18:59:01]Content-Type: application/json [18:59:01] [18:59:01]POST finish read [18:59:01]Found Content-Length = 647 [18:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117535", "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" ] } } [18:59:01]execute_script... [18:59: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)117535", "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" ] } } [18:59:01]POST & json_proto [18:59:01]process_json_proto [18:59:01]json parsed OK: [18:59:01]protocol is kg_v1.0 [18:59:01]action value=close_receipt [18:59:01]process_action close_receipt [18:59:01]cmd_close_receipt [18:59:01]MH_GetDate [18:59:01]Write to MH i2c: F0 00 00 1D 00 0C [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 09 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 09 00 1D 00 00 75 17 EF 66 99 54 47 66 90 [18:59:01]GetLastDocTimeStamp 1726944494 [18:59:01]current date 1726945141 [18:59:01]FM_GetShiftState [18:59:01]SAM_PROTO_GetShiftState [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 13 01 00 [18:59:01]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 21 [18:59:01]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_GetShiftState done [18:59:01]FM_GetShiftState done [18:59:01]opened in 1726877463 [18:59:01]opened+sec_in_day 1726963863 [18:59:01]quantity*price = 13000 [18:59:01]sum+1 = 13001 [18:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 78 21.09.2024 18:59 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19628 ФПД: 39351007959324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T185902&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19628&fm=39351007959324&tin=02508201610067®Number=0000000000146239&sum=13000 0 [18:59:02]StoreToDocumentArchive [18:59:02]shift 232 fd 19628 [18:59:02]save to /storage/0232/doc_00019628 [18:59:02]save last doc name /storage/0232/doc_00019628 to /storage/kkm_last_doc_name [18:59:02]save OK [18:59:02]Clear old archive folders... [18:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:59:02]tlvbuf is 02054660 [18:59:02]SAM_PROTO_ClearQueue [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 09 00 00 [18:59:02]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:59:02]RAPDU: 90 00 [18:59:02]wFMCommunicate OK [18:59:02]SAM_PROTO_ClearQueue done [18:59:02]KKMCreateOFDPacket [18:59:02]OFDProtocolAddRootSTLVToBuf [18:59:02]FM_MakeSignedData [18:59:02]FM_MakeSignedData [18:59:02]SAM_PROTO_SignData [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 0D 01 02 [18:59:02]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:59:03]RAPDU: 90 00 [18:59:03]wFMCommunicate OK [18:59:03]wFMCommunicate request_size=255 [18:59:03]MH_SAM_APDU [18:59:03]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 4E 00 00 00 F4 03 04 00 76 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [18:59:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 76 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5B [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:59:03]RAPDU: 90 00 [18:59:03]wFMCommunicate OK [18:59:03]wFMCommunicate request_size=31 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 AC 4C 00 00 35 04 06 00 23 CA 1E D9 D9 1C [18:59:03]Write to MH i2c: E2 22 00 2E 00 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 AC 4C 00 00 35 04 06 00 23 CA 1E D9 D9 1C 00 00 A6 [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:59:03]RAPDU: 90 00 [18:59:03]wFMCommunicate OK [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 0D 03 02 [18:59:03]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 0B 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 0B 00 2F 00 00 EC AC A4 DE C2 58 62 53 90 00 94 [18:59:03]RAPDU: EC AC A4 DE C2 58 62 53 90 00 [18:59:03]wFMCommunicate OK [18:59:03]SAM_PROTO_SignData done [18:59:03]FM_MakeSignedData done [18:59:03]CreateOFDProtocolMessage [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 11 00 00 [18:59:03]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [18:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:59:03]wFMCommunicate OK [18:59:03]CreateOFDProtocolMessage done [18:59:03]OFDSenderStorePacket 19628 [18:59:03]StoreOFDPacket docnum=19628 [18:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 AD A5 1C 01 77 34 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 4E 00 00 00 F4 03 04 00 76 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AC 4C 00 00 35 04 06 00 23 CA 1E D9 D9 1C EC AC A4 DE C2 58 62 53 [18:59:03]CheckFolder [18:59:03]dirname=/storage/ofd_packets [18:59:03]CheckFolder done [18:59:03]ProducePacketName [18:59:03]name=ofd_packets/00019628 [18:59:03]NVStorageSaveData ofd_packets/00019628 [18:59:03]File name is /storage/ofd_packets/00019628 [18:59:03]Write 322 bytes [18:59:03]NVStorageSaveData done [18:59:03]OFDSenderStorePacket done [18:59:03]KKMCreateOFDPacket done [18:59:03]NVStorageSaveData kkm_last_timestamp [18:59:03]File name is /storage/kkm_last_timestamp [18:59:03]Write 4 bytes [18:59:03]NVStorageSaveData done [18:59:03]ExternCall_PrintAddStr [18:59:03]wPrintStart [18:59:03]Write to MH i2c: 01 00 00 31 00 31 [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 07 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:59:03]RasterBufferAndPrint [18:59:03]line Счет N : (3)117535 [18:59:03]line ИНН: 02508201610067 [18:59:03]line Контрольно-Кассовый Чек [18:59:03]line ПРОДАЖА [18:59:03]line Товар: 47011656 [18:59:03]line Водка Пшеничная 0,1л [18:59:03]line 2.000 * 65.00 [18:59:03]line = 130.00 [18:59:03]line НДС 12% НСП 1% [18:59:03]line > о реализуемом товаре [18:59:03]line ИТОГО: 130.00 [18:59:03]line НСП 1% : 1.15 [18:59:03]line НДС 12% : 13.80 [18:59:03]line Наличными: 130.00 [18:59:03]line Безнал.: 0.00 [18:59:03]line Место: АЗС № 93 "Партнер Нефть" [18:59:03]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:59:03]line СНО: Общий режим [18:59:03]line Чек 78 21.09.2024 18:59 [18:59:03]line Смена: 232 ФФД: 1.0 [18:59:03]line ЗНМ: 0300000060 [18:59:03]line РНМ: 0000000000146239 [18:59:03]line Версия ККМ: v1.0 [18:59:03]line ФМ: 0000000000959362 [18:59:03]line ФД: 19628 [18:59:03]line ФПД: 39351007959324 [18:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T185902&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19628&fm=39351007959324&tin=02508201610067®Number=0000000000146239&sum=13000 [18:59:03]line 0 [18:59:03]written 0, free lines is 4095 [18:59:03]OFD Sender: Processing packet 19628 [packets to send 63, broken 62] [18:59:03]ProducePacketName [18:59:03]name=ofd_packets/00019628 [18:59:03]OFD Sender: To server: pG, [18:59:03]CommunicateWithHost lk.salyk.kg:30040 [18:59:03]ConnectInit lk.salyk.kg [18:59:04]Connected sock=10 [18:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 AD A5 1C 01 77 34 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 4E 00 00 00 F4 03 04 00 76 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AC 4C 00 00 35 04 06 00 23 CA 1E D9 D9 1C EC AC A4 DE C2 58 62 53 [18:59:04]Write to MH i2c: 01 00 00 59 00 59 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 07 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 F7 0C 63 [18:59:04]RasterBufferAndPrint [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]written 0, free lines is 3337 [18:59:04]MH_Cut [18:59:04]Write to MH i2c: D1 01 00 60 00 01 32 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 01 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 01 00 60 00 00 31 [18:59:04]Write to MH i2c: 01 00 00 61 00 61 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 CD C0 47 00 A8 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AC 4C 00 00 F4 03 04 00 0F C2 EE 66 B6 04 01 00 00 7C 2E 03 5C D6 95 AB 1F [18:59:04]CommunicateWithHost err = 0 [18:59:04]CheckOFDResponse [18:59:04]1017 (14) - 77093643461234 [18:59:04]1041 (16) - 0000000000959362 [18:59:04]1040 (4) - 19628 [18:59:04]1012 (4) - 21.09.2024 12:54 [18:59:04]1206 (1) - 0 [18:59:04]OFD Sender: Remove packet 19628 [18:59:04]ProducePacketName [18:59:04]name=ofd_packets/00019628 [18:59:04]NVStorageDeleteData [18:59:05]*** Cut start [18:59:05]*** Partial cut [18:59:05]*** CUTSNS_PIN = 1 [18:59:05]*** CUTSNS_PIN = 0 [18:59:05]*** Brake cut motor [18:59:05]OFD Sender: No OFD packet to send [18:59:05]Read from MH i2c: 01 *** Stop cut motor [18:59:05] [18:59:05]*** Cut end [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: 01 07 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [18:59:05]process_action close_receipt done [18:59:05]requested_data is exist [18:59:05]produce_requested_data [18:59:05]requested_item fm.sn is exist - process it [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 11 00 00 [18:59:05]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 17 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 31 [18:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:59:05]wFMCommunicate OK [18:59:05]requested_item fd.num is exist - process it [18:59:05]SAM_PROTO_GetFieldsCounters [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 13 00 00 [18:59:05]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 62 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AC 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [18:59:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AC 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_GetFieldsCounters done [18:59:05]requested_item shift.num is exist - process it [18:59:05]requested_item shift.opened is exist - process it [18:59:05]req_shift_opened [18:59:05]FM_GetShiftState [18:59:05]SAM_PROTO_GetShiftState [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 13 01 00 [18:59:05]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0E 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 67 [18:59:06]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_GetShiftState done [18:59:06]FM_GetShiftState done [18:59:06]req_shift_opened done [18:59:06]requested_item shift.open_date is exist - process it [18:59:06]req_shift_open_date [18:59:06]req_shift_open_date done [18:59:06]produce_requested_data done [18:59:06]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19628,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:59:06]process_action_free close_receipt [18:59:06]json_value_free [18:59:06]json_value_free done [18:59:06]process_json_proto returns [18:59:06]Send response to host [18:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19628,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:59:06]free response buf [18:59:06]execute_script done [18:59:06]execute_script returns [18:59:06]free content buf [18:59:06]Sock 6.Close socket [18:59:06]Sock 6.Thread stoped [18:59:07]accept exits with 7 [18:59:07]New connection [18:59:07]New thread 3066670436 created [18:59:07]Thread 3066813796 joined [18:59:07]Waiting for new connection... [18:59:07] Sock 7.Parse request [18:59:07]Sock 7.Check first char [18:59:07]Sock 7.First char is OK [18:59:07]request: POST /json_proto HTTP/1.0 [18:59:07]Method: POST [18:59:07]URL: /json_proto [18:59:07]Method is POST - this is cgi request [18:59:07]url: /json_proto [18:59:07]query_string will be loaded in cgi processing [18:59:07]execute_cgi json_proto POST (null) [18:59:07]execute_cgi path=json_proto method=POST [18:59:07]POST find Content-Length [18:59:07]Host: 172.17.42.73:8080 [18:59:07]Content-Length: 623 [18:59:07]Content-Type: application/json [18:59:07] [18:59:07]POST finish read [18:59:07]Found Content-Length = 623 [18:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117536", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:07]execute_script... [18:59:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117536", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:07]POST & json_proto [18:59:07]process_json_proto [18:59:07]json parsed OK: [18:59:07]protocol is kg_v1.0 [18:59:07]action value=close_receipt [18:59:07]process_action close_receipt [18:59:07]cmd_close_receipt [18:59:07]MH_GetDate [18:59:07]Write to MH i2c: F0 00 00 65 00 54 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: F0 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: F0 09 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: F0 09 00 65 00 00 7B 17 EF 66 99 54 47 66 DE [18:59:07]GetLastDocTimeStamp 1726945142 [18:59:07]current date 1726945147 [18:59:07]FM_GetShiftState [18:59:07]SAM_PROTO_GetShiftState [18:59:07]wFMCommunicate request_size=4 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 13 01 00 [18:59:07]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 0E 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 69 [18:59:07]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:59:07]wFMCommunicate OK [18:59:07]SAM_PROTO_GetShiftState done [18:59:07]FM_GetShiftState done [18:59:07]opened in 1726877463 [18:59:07]opened+sec_in_day 1726963863 [18:59:07]quantity*price = 14400 [18:59:07]sum+1 = 14401 [18:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 79 21.09.2024 18:59 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19629 ФПД: 168423808678382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T185907&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19629&fm=168423808678382&tin=02508201610067®Number=0000000000146239&sum=14400 0 [18:59:08]StoreToDocumentArchive [18:59:08]shift 232 fd 19629 [18:59:08]save to /storage/0232/doc_00019629 [18:59:08]save last doc name /storage/0232/doc_00019629 to /storage/kkm_last_doc_name [18:59:08]save OK [18:59:08]Clear old archive folders... [18:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:59:08]tlvbuf is 02054540 [18:59:08]SAM_PROTO_ClearQueue [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 09 00 00 [18:59:08]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [18:59:08]RAPDU: 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_ClearQueue done [18:59:08]KKMCreateOFDPacket [18:59:08]OFDProtocolAddRootSTLVToBuf [18:59:08]FM_MakeSignedData [18:59:08]FM_MakeSignedData [18:59:08]SAM_PROTO_SignData [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 0D 01 02 [18:59:08]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [18:59:08]RAPDU: 90 00 [18:59:08]wFMCommunicate OK [18:59:08]wFMCommunicate request_size=255 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7B 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 [18:59:09]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7B 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 00 00 10 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:59:09]RAPDU: 90 00 [18:59:09]wFMCommunicate OK [18:59:09]wFMCommunicate request_size=34 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AD 4C 00 00 35 04 06 00 99 2E 39 49 B9 EE [18:59:09]Write to MH i2c: E2 25 00 76 00 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AD 4C 00 00 35 04 06 00 99 2E 39 49 B9 EE 00 00 9C [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:59:09]RAPDU: 90 00 [18:59:09]wFMCommunicate OK [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 0D 03 02 [18:59:09]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 0B 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 0B 00 77 00 00 39 49 0B B2 E1 AD A5 46 90 00 AB [18:59:09]RAPDU: 39 49 0B B2 E1 AD A5 46 90 00 [18:59:09]wFMCommunicate OK [18:59:09]SAM_PROTO_SignData done [18:59:09]FM_MakeSignedData done [18:59:09]CreateOFDProtocolMessage [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 11 00 00 [18:59:09]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 17 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 47 [18:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:59:09]wFMCommunicate OK [18:59:09]CreateOFDProtocolMessage done [18:59:09]OFDSenderStorePacket 19629 [18:59:09]StoreOFDPacket docnum=19629 [18:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 27 01 00 00 34 33 1F 01 57 90 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7B 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AD 4C 00 00 35 04 06 00 99 2E 39 49 B9 EE 39 49 0B B2 E1 AD A5 46 [18:59:09]CheckFolder [18:59:09]dirname=/storage/ofd_packets [18:59:09]CheckFolder done [18:59:09]ProducePacketName [18:59:09]name=ofd_packets/00019629 [18:59:09]NVStorageSaveData ofd_packets/00019629 [18:59:09]File name is /storage/ofd_packets/00019629 [18:59:09]Write 325 bytes [18:59:09]NVStorageSaveData done [18:59:09]OFDSenderStorePacket done [18:59:09]KKMCreateOFDPacket done [18:59:09]NVStorageSaveData kkm_last_timestamp [18:59:09]File name is /storage/kkm_last_timestamp [18:59:09]Write 4 bytes [18:59:09]NVStorageSaveData done [18:59:09]ExternCall_PrintAddStr [18:59:09]wPrintStart [18:59:09]Write to MH i2c: 01 00 00 79 00 79 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: 01 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: 01 07 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [18:59:09]RasterBufferAndPrint [18:59:09]line Счет N : (3)117536 [18:59:09]line ИНН: 02508201610067 [18:59:09]line Контрольно-Кассовый Чек [18:59:09]line ПРОДАЖА [18:59:09]line Товар: 48743587 [18:59:09]line Сигареты Winston XStyle Silver [18:59:09]line 1.000 * 144.00 [18:59:09]line = 144.00 [18:59:09]line НДС 12% НСП 1% [18:59:09]line > о реализуемом товаре [18:59:09]line ИТОГО: 144.00 [18:59:09]line НСП 1% : 1.27 [18:59:09]line НДС 12% : 15.29 [18:59:09]line Наличными: 144.00 [18:59:09]line Безнал.: 0.00 [18:59:09]line Место: АЗС № 93 "Партнер Нефть" [18:59:09]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [18:59:09]line СНО: Общий режим [18:59:09]line Чек 79 21.09.2024 18:59 [18:59:09]line Смена: 232 ФФД: 1.0 [18:59:09]line ЗНМ: 0300000060 [18:59:09]line РНМ: 0000000000146239 [18:59:09]line Версия ККМ: v1.0 [18:59:09]line ФМ: 0000000000959362 [18:59:09]line ФД: 19629 [18:59:09]line ФПД: 168423808678382 [18:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T185907&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19629&fm=168423808678382&tin=02508201610067®Number=0000000000146239&sum=14400 [18:59:09]line 0 [18:59:09]written 0, free lines is 4095 [18:59:09]OFD Sender: Processing packet 19629 [packets to send 63, broken 62] [18:59:09]ProducePacketName [18:59:09]name=ofd_packets/00019629 [18:59:09]OFD Sender: To server: pG, [18:59:09]CommunicateWithHost lk.salyk.kg:30040 [18:59:09]ConnectInit lk.salyk.kg [18:59:10]Write to MH i2c: 01 00 00 A2 00 A2 [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 AA 0C 5F [18:59:10]RasterBufferAndPrint [18:59:10]line [18:59:10]line [18:59:10]line [18:59:10]line [18:59:10]line [18:59:10]written 0, free lines is 3258 [18:59:10]MH_Cut [18:59:10]Write to MH i2c: D1 01 00 A9 00 01 7B [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: D1 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: D1 01 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: D1 01 00 A9 00 00 7A [18:59:10]Write to MH i2c: 01 00 00 AA 00 AA [18:59:10]Connected sock=10 [18:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 27 01 00 00 34 33 1F 01 57 90 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 Write i2c OK [18:59:10]03 MH_I2C_Read... [18:59:10]E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7B 17 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AD 4C 00 00 35 04 06 00 99 2E 39 49 B9 EE 39 49 0B B2 E1 AD A5 46 [18:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F8 9F 47 00 07 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AD 4C 00 00 F4 03 04 00 15 C2 EE 66 B6 04 01 00 00 13 B8 A0 DD 42 CF 25 31 [18:59:10]CommunicateWithHost err = 0 [18:59:10]CheckOFDResponse [18:59:10]1017 (14) - 77093643461234 [18:59:10]1041 (16) - 0000000000959362 [18:59:10]1040 (4) - 19629 [18:59:10]1012 (4) - 21.09.2024 12:54 [18:59:10]1206 (1) - 0 [18:59:10]OFD Sender: Remove packet 19629 [18:59:10]ProducePacketName [18:59:10]name=ofd_packets/00019629 [18:59:10]NVStorageDeleteData [18:59:11]*** Cut start [18:59:11]*** Partial cut [18:59:11]*** CUTSNS_PIN = 1 [18:59:11]*** CUTSNS_PIN = 0 [18:59:11]*** Brake cut motor [18:59:11]OFD Sender: No OFD packet to send [18:59:11]Read from MH i2c: *** Stop cut motor [18:59:11]01 *** Cut end [18:59:11] [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: 01 07 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [18:59:11]process_action close_receipt done [18:59:11]requested_data is exist [18:59:11]produce_requested_data [18:59:11]requested_item fm.sn is exist - process it [18:59:11]wFMCommunicate request_size=4 [18:59:11]MH_SAM_APDU [18:59:11]CAPDU: 80 11 00 00 [18:59:11]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:11]Read from MH i2c: E2 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 17 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 7A [18:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [18:59:11]wFMCommunicate OK [18:59:11]requested_item fd.num is exist - process it [18:59:11]SAM_PROTO_GetFieldsCounters [18:59:11]wFMCommunicate request_size=4 [18:59:11]MH_SAM_APDU [18:59:11]CAPDU: 80 13 00 00 [18:59:11]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:11]Read from MH i2c: E2 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 62 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_GetFieldsCounters done [18:59:12]requested_item shift.num is exist - process it [18:59:12]requested_item shift.opened is exist - process it [18:59:12]req_shift_opened [18:59:12]FM_GetShiftState [18:59:12]SAM_PROTO_GetShiftState [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 13 01 00 [18:59:12]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0E 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B0 [18:59:12]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_GetShiftState done [18:59:12]FM_GetShiftState done [18:59:12]req_shift_opened done [18:59:12]requested_item shift.open_date is exist - process it [18:59:12]req_shift_open_date [18:59:12]req_shift_open_date done [18:59:12]produce_requested_data done [18:59:12]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19629,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [18:59:12]process_action_free close_receipt [18:59:12]json_value_free [18:59:12]json_value_free done [18:59:12]process_json_proto returns [18:59:12]Send response to host [18:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19629,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [18:59:12]free response buf [18:59:12]execute_script done [18:59:12]execute_script returns [18:59:12]free content buf [18:59:12]Sock 7.Close socket [18:59:12]Sock 7.Thread stoped [18:59:16]OFD Sender: No OFD packet to send [18:59:18]recv_with_timeout no data received [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:37]recv_with_timeout no data received [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:47]recv_with_timeout no data received [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:22]recv_with_timeout no data received [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:47]recv_with_timeout no data received [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:49]accept exits with 6 [19:05:49]New connection [19:05:49]New thread 3066813796 created [19:05:49]Thread 3066670436 joined [19:05:49]Waiting for new connection... [19:05:49] Sock 6.Parse request [19:05:49]Sock 6.Check first char [19:05:49]Sock 6.First char is OK [19:05:49]request: POST /json_proto HTTP/1.0 [19:05:49]Method: POST [19:05:49]URL: /json_proto [19:05:49]Method is POST - this is cgi request [19:05:49]url: /json_proto [19:05:49]query_string will be loaded in cgi processing [19:05:49]execute_cgi json_proto POST (null) [19:05:49]execute_cgi path=json_proto method=POST [19:05:49]POST find Content-Length [19:05:49]Host: 172.17.42.73:8080 [19:05:49]Content-Length: 715 [19:05:49]Content-Type: application/json [19:05:49] [19:05:49]POST finish read [19:05:49]Found Content-Length = 715 [19:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117537", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]execute_script... [19:05:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117537", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]POST & json_proto [19:05:49]process_json_proto [19:05:49]json parsed OK: [19:05:49]protocol is kg_v1.0 [19:05:49]action value=close_receipt [19:05:49]process_action close_receipt [19:05:49]cmd_close_receipt [19:05:49]MH_GetDate [19:05:49]Write to MH i2c: F0 00 00 AE 00 9D [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 AE 00 00 0E 19 EF 66 99 54 47 66 BC [19:05:49]GetLastDocTimeStamp 1726945147 [19:05:49]current date 1726945550 [19:05:49]FM_GetShiftState [19:05:49]SAM_PROTO_GetShiftState [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 13 01 00 [19:05:49]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B2 [19:05:49]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_GetShiftState done [19:05:49]FM_GetShiftState done [19:05:49]opened in 1726877463 [19:05:49]opened+sec_in_day 1726963863 [19:05:49]quantity*price = 9000 [19:05:49]sum+1 = 9001 [19:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 80 21.09.2024 19:05 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19630 ФПД: 225383685322995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T190550&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19630&fm=225383685322995&tin=02508201610067®Number=0000000000146239&sum=9000 0 [19:05:50]StoreToDocumentArchive [19:05:50]shift 232 fd 19630 [19:05:50]save to /storage/0232/doc_00019630 [19:05:50]save last doc name /storage/0232/doc_00019630 to /storage/kkm_last_doc_name [19:05:50]save OK [19:05:50]Clear old archive folders... [19:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=306 [19:05:50]tlvbuf is 02095DC0 [19:05:50]SAM_PROTO_ClearQueue [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 09 00 00 [19:05:50]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]SAM_PROTO_ClearQueue done [19:05:50]KKMCreateOFDPacket [19:05:50]OFDProtocolAddRootSTLVToBuf [19:05:50]FM_MakeSignedData [19:05:50]FM_MakeSignedData [19:05:50]SAM_PROTO_SignData [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 01 02 [19:05:50]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=255 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 0E 19 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 [19:05:50]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 0E 19 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 00 9F [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=65 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AE 4C 00 00 35 04 06 00 CC FC 3A 80 78 F3 [19:05:51]Write to MH i2c: E2 44 00 BF 00 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AE 4C 00 00 35 04 06 00 CC FC 3A 80 78 F3 00 00 71 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 03 02 [19:05:51]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 C0 00 00 2E 01 43 F0 8E 7F 0A 32 90 00 E7 [19:05:51]RAPDU: 2E 01 43 F0 8E 7F 0A 32 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_SignData done [19:05:51]FM_MakeSignedData done [19:05:51]CreateOFDProtocolMessage [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 11 00 00 [19:05:51]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 90 [19:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:05:51]wFMCommunicate OK [19:05:51]CreateOFDProtocolMessage done [19:05:51]OFDSenderStorePacket 19630 [19:05:51]StoreOFDPacket docnum=19630 [19:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 46 01 00 00 7F BA 3E 01 EE B3 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 0E 19 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AE 4C 00 00 35 04 06 00 CC FC 3A 80 78 F3 2E 01 43 F0 8E 7F 0A 32 [19:05:51]CheckFolder [19:05:51]dirname=/storage/ofd_packets [19:05:51]CheckFolder done [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00019630 [19:05:51]NVStorageSaveData ofd_packets/00019630 [19:05:51]File name is /storage/ofd_packets/00019630 [19:05:51]Write 356 bytes [19:05:51]NVStorageSaveData done [19:05:51]OFDSenderStorePacket done [19:05:51]KKMCreateOFDPacket done [19:05:51]NVStorageSaveData kkm_last_timestamp [19:05:51]File name is /storage/kkm_last_timestamp [19:05:51]Write 4 bytes [19:05:51]NVStorageSaveData done [19:05:51]ExternCall_PrintAddStr [19:05:51]wPrintStart [19:05:51]Write to MH i2c: 01 00 00 C2 00 C2 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [19:05:51]RasterBufferAndPrint [19:05:51]line Счет N : (3)117537 [19:05:51]line ИНН: 02508201610067 [19:05:51]line Контрольно-Кассовый Чек [19:05:51]line ПРОДАЖА [19:05:51]line Товар: 5449000088680 [19:05:51]line Холодный чай Fuse манго, ананас 0,33 ж/б [19:05:51]line 1.000 * 90.00 [19:05:51]line = 90.00 [19:05:51]line НДС 12% НСП 1% [19:05:51]line > о реализуемом товаре [19:05:51]line ИТОГО: 90.00 [19:05:51]line НСП 1% : 0.80 [19:05:51]line НДС 12% : 9.56 [19:05:51]line Наличными: 90.00 [19:05:51]line Безнал.: 0.00 [19:05:51]line Место: АЗС № 93 "Партнер Нефть" [19:05:51]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [19:05:51]line СНО: Общий режим [19:05:51]line Чек 80 21.09.2024 19:05 [19:05:51]line Смена: 232 ФФД: 1.0 [19:05:51]line ЗНМ: 0300000060 [19:05:51]line РНМ: 0000000000146239 [19:05:51]line Версия ККМ: v1.0 [19:05:51]line ФМ: 0000000000959362 [19:05:51]line ФД: 19630 [19:05:51]line ФПД: 225383685322995 [19:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T190550&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19630&fm=225383685322995&tin=02508201610067®Number=0000000000146239&sum=9000 [19:05:51]line 0 [19:05:51]OFD Sender: Processing packet 19630 [packets to send 63, broken 62] [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00019630 [19:05:51]OFD Sender: To server: pG, [19:05:51]CommunicateWithHost lk.salyk.kg:30040 [19:05:51]ConnectInit lk.salyk.kg [19:05:51]written 0, free lines is 4095 [19:05:52]Connected sock=10 [19:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 46 01 00 00 7F BA 3E 01 EE B3 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 0E 19 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AE 4C 00 00 35 04 06 00 CC FC 3A 80 78 F3 2E 01 43 F0 8E 7F 0A 32 [19:05:52]Write to MH i2c: 01 00 00 EB 00 EB [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 A4 0C A2 [19:05:52]RasterBufferAndPrint [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]written 0, free lines is 3240 [19:05:52]MH_Cut [19:05:52]Write to MH i2c: D1 01 00 F2 00 01 C4 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 F2 00 00 C3 [19:05:52]Write to MH i2c: 01 00 00 F3 00 F3 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 9A C8 47 00 72 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AE 4C 00 00 F4 03 04 00 A6 C3 EE 66 B6 04 01 00 00 6F 82 B0 27 48 F7 E9 44 [19:05:52]CommunicateWithHost err = 0 [19:05:52]CheckOFDResponse [19:05:52]1017 (14) - 77093643461234 [19:05:52]1041 (16) - 0000000000959362 [19:05:52]1040 (4) - 19630 [19:05:52]1012 (4) - 21.09.2024 13:01 [19:05:52]1206 (1) - 0 [19:05:52]OFD Sender: Remove packet 19630 [19:05:52]ProducePacketName [19:05:52]name=ofd_packets/00019630 [19:05:52]NVStorageDeleteData [19:05:52]OFD Sender: No OFD packet to send [19:05:53]*** Cut start [19:05:53]*** Partial cut [19:05:53]*** CUTSNS_PIN = 1 [19:05:53]*** CUTSNS_PIN = 0 [19:05:53]*** Brake cut motor [19:05:53]Read from MH i2c: 01 [19:05:53]MH_I2C_Read... [19:05:53]*** Stop cut motor [19:05:53]*** Cut end [19:05:53]Read from MH i2c: 01 07 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 FF 0F 08 [19:05:53]process_action close_receipt done [19:05:53]requested_data is exist [19:05:53]produce_requested_data [19:05:53]requested_item fm.sn is exist - process it [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 11 00 00 [19:05:53]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 17 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C3 [19:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:05:53]wFMCommunicate OK [19:05:53]requested_item fd.num is exist - process it [19:05:53]SAM_PROTO_GetFieldsCounters [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 13 00 00 [19:05:53]Write to MH i2c: E2 08 00 F5 00 80 13 00 00 00 00 00 00 71 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 62 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 62 00 F5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AE 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [19:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AE 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:53]wFMCommunicate OK [19:05:53]SAM_PROTO_GetFieldsCounters done [19:05:53]requested_item shift.num is exist - process it [19:05:53]requested_item shift.opened is exist - process it [19:05:53]req_shift_opened [19:05:53]FM_GetShiftState [19:05:53]SAM_PROTO_GetShiftState [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 13 01 00 [19:05:53]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 0E 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F9 [19:05:53]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:05:53]wFMCommunicate OK [19:05:53]SAM_PROTO_GetShiftState done [19:05:53]FM_GetShiftState done [19:05:53]req_shift_opened done [19:05:53]requested_item shift.open_date is exist - process it [19:05:53]req_shift_open_date [19:05:53]req_shift_open_date done [19:05:53]produce_requested_data done [19:05:53]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19630,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [19:05:53]process_action_free close_receipt [19:05:53]json_value_free [19:05:53]json_value_free done [19:05:53]process_json_proto returns [19:05:53]Send response to host [19:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19630,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [19:05:53]free response buf [19:05:53]execute_script done [19:05:53]execute_script returns [19:05:53]free content buf [19:05:53]Sock 6.Close socket [19:05:53]Sock 6.Thread stoped [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:23]recv_with_timeout no data received [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:09]recv_with_timeout no data received [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:51]accept exits with 9 [19:09:51]New connection [19:09:51]New thread 3066670436 created [19:09:51]Thread 3066813796 joined [19:09:51]Waiting for new connection... [19:09:51] Sock 9.Parse request [19:09:51]Sock 9.Check first char [19:09:51]Sock 9.First char is OK [19:09:51]request: POST /json_proto HTTP/1.0 [19:09:51]Method: POST [19:09:51]URL: /json_proto [19:09:51]Method is POST - this is cgi request [19:09:51]url: /json_proto [19:09:51]query_string will be loaded in cgi processing [19:09:51]execute_cgi json_proto POST (null) [19:09:51]execute_cgi path=json_proto method=POST [19:09:51]POST find Content-Length [19:09:51]Host: 172.17.42.73:8080 [19:09:51]Content-Length: 718 [19:09:51]Content-Type: application/json [19:09:51] [19:09:51]POST finish read [19:09:51]Found Content-Length = 718 [19:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117538", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:51]execute_script... [19:09: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)117538", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:51]POST & json_proto [19:09:51]process_json_proto [19:09:51]json parsed OK: [19:09:51]protocol is kg_v1.0 [19:09:51]action value=close_receipt [19:09:51]process_action close_receipt [19:09:51]cmd_close_receipt [19:09:51]MH_GetDate [19:09:51]Write to MH i2c: F0 00 00 F7 00 E6 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: F0 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: F0 09 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: F0 09 00 F7 00 00 FF 19 EF 66 99 54 47 66 F6 [19:09:51]GetLastDocTimeStamp 1726945550 [19:09:51]current date 1726945791 [19:09:51]FM_GetShiftState [19:09:51]SAM_PROTO_GetShiftState [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 13 01 00 [19:09:51]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FB [19:09:51]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:09:51]wFMCommunicate OK [19:09:51]SAM_PROTO_GetShiftState done [19:09:51]FM_GetShiftState done [19:09:51]opened in 1726877463 [19:09:51]opened+sec_in_day 1726963863 [19:09:51]quantity*price = 5500 [19:09:51]sum+1 = 5501 [19:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 81 21.09.2024 19:09 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19631 ФПД: 103494381170194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T190952&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19631&fm=103494381170194&tin=02508201610067®Number=0000000000146239&sum=5500 0 [19:09:52]StoreToDocumentArchive [19:09:52]shift 232 fd 19631 [19:09:52]save to /storage/0232/doc_00019631 [19:09:52]save last doc name /storage/0232/doc_00019631 to /storage/kkm_last_doc_name [19:09:52]save OK [19:09:52]Clear old archive folders... [19:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=301 [19:09:52]tlvbuf is 02095A00 [19:09:52]SAM_PROTO_ClearQueue [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 09 00 00 [19:09:52]Write to MH i2c: E2 08 00 05 01 80 09 00 00 00 00 00 00 78 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]SAM_PROTO_ClearQueue done [19:09:52]KKMCreateOFDPacket [19:09:52]OFDProtocolAddRootSTLVToBuf [19:09:52]FM_MakeSignedData [19:09:52]FM_MakeSignedData [19:09:52]SAM_PROTO_SignData [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 01 02 [19:09:52]Write to MH i2c: E2 08 00 06 01 80 0D 01 02 00 00 00 00 80 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=255 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 00 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 [19:09:52]Write to MH i2c: E2 02 01 07 01 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 00 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 00 97 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=60 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AF 4C 00 00 35 04 06 00 5E 20 A9 D3 6E 12 [19:09:52]Write to MH i2c: E2 3F 00 08 01 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AF 4C 00 00 35 04 06 00 5E 20 A9 D3 6E 12 00 00 1D [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 03 02 [19:09:52]Write to MH i2c: E2 08 00 09 01 80 0D 03 02 00 00 00 00 85 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0B 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0B 00 09 01 00 B5 6D 28 C3 74 CA 96 42 90 00 A9 [19:09:52]RAPDU: B5 6D 28 C3 74 CA 96 42 90 00 [19:09:52]wFMCommunicate OK [19:09:52]SAM_PROTO_SignData done [19:09:52]FM_MakeSignedData done [19:09:52]CreateOFDProtocolMessage [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 11 00 00 [19:09:52]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 17 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DA [19:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:09:52]wFMCommunicate OK [19:09:52]CreateOFDProtocolMessage done [19:09:52]OFDSenderStorePacket 19631 [19:09:52]StoreOFDPacket docnum=19631 [19:09:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 41 01 00 00 2A 84 39 01 B7 35 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 00 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AF 4C 00 00 35 04 06 00 5E 20 A9 D3 6E 12 B5 6D 28 C3 74 CA 96 42 [19:09:52]CheckFolder [19:09:52]dirname=/storage/ofd_packets [19:09:52]CheckFolder done [19:09:52]ProducePacketName [19:09:52]name=ofd_packets/00019631 [19:09:52]NVStorageSaveData ofd_packets/00019631 [19:09:52]File name is /storage/ofd_packets/00019631 [19:09:52]Write 351 bytes [19:09:52]NVStorageSaveData done [19:09:52]OFDSenderStorePacket done [19:09:52]KKMCreateOFDPacket done [19:09:52]NVStorageSaveData kkm_last_timestamp [19:09:53]File name is /storage/kkm_last_timestamp [19:09:53]Write 4 bytes [19:09:53]NVStorageSaveData done [19:09:53]ExternCall_PrintAddStr [19:09:53]wPrintStart [19:09:53]Write to MH i2c: 01 00 00 0B 01 0C [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [19:09:53]RasterBufferAndPrint [19:09:53]line Счет N : (3)117538 [19:09:53]line ИНН: 02508201610067 [19:09:53]line Контрольно-Кассовый Чек [19:09:53]line ПРОДАЖА [19:09:53]line Товар: 4630007400242 [19:09:53]line Арахис жарен Караван орехов 50 гр [19:09:53]line 1.000 * 55.00 [19:09:53]line = 55.00 [19:09:53]line НДС 12% НСП 1% [19:09:53]line > о реализуемом товаре [19:09:53]line ИТОГО: 55.00 [19:09:53]line НСП 1% : 0.49 [19:09:53]line НДС 12% : 5.84 [19:09:53]line Наличными: 55.00 [19:09:53]line Безнал.: 0.00 [19:09:53]line Место: АЗС № 93 "Партнер Нефть" [19:09:53]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [19:09:53]line СНО: Общий режим [19:09:53]line Чек 81 21.09.2024 19:09 [19:09:53]line Смена: 232 ФФД: 1.0 [19:09:53]line ЗНМ: 0300000060 [19:09:53]line РНМ: 0000000000146239 [19:09:53]line Версия ККМ: v1.0 [19:09:53]line ФМ: 0000000000959362 [19:09:53]line ФД: 19631 [19:09:53]line ФПД: 103494381170194 [19:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T190952&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19631&fm=103494381170194&tin=02508201610067®Number=0000000000146239&sum=5500 [19:09:53]line 0 [19:09:53]OFD Sender: Processing packet 19631 [packets to send 63, broken 62] [19:09:53]ProducePacketName [19:09:53]name=ofd_packets/00019631 [19:09:53]OFD Sender: To server: pG, [19:09:53]CommunicateWithHost lk.salyk.kg:30040 [19:09:53]ConnectInit lk.salyk.kg [19:09:53]written 0, free lines is 4095 [19:09:53]Write to MH i2c: 01 00 00 34 01 35 [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 9E 0C E6 [19:09:53]RasterBufferAndPrint [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]written 0, free lines is 3234 [19:09:53]MH_Cut [19:09:53]Write to MH i2c: D1 01 00 3B 01 01 0E [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 01 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 01 00 3B 01 00 0D [19:09:53]Write to MH i2c: 01 00 00 3C 01 3D [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:54]Connected sock=10 [19:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 41 01 00 00 2A 84 39 01 B7 35 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 00 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AF 4C 00 00 35 04 06 00 5E 20 A9 D3 6E 12 B5 6D 28 C3 74 CA 96 42 [19:09:54]*** Cut start [19:09:54]*** Partial cut [19:09:54]*** CUTSNS_PIN = 1 [19:09:54]*** CUTSNS_PIN = 0 [19:09:54]*** Brake cut motor [19:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 0C AD 47 00 03 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 AF 4C 00 00 F4 03 04 00 99 C4 EE 66 B6 04 01 00 00 5C 6D AF 6C 10 1A CD 68 [19:09:55]CommunicateWithHost err = 0 [19:09:55]CheckOFDResponse [19:09:55]1017 (14) - 77093643461234 [19:09:55]1041 (16) - 0000000000959362 [19:09:55]1040 (4) - 19631 [19:09:55]1012 (4) - 21.09.2024 13:05 [19:09:55]1206 (1) - 0 [19:09:55]OFD Sender: Remove packet 19631 [19:09:55]ProducePacketName [19:09:55]name=ofd_packets/00019631 [19:09:55]NVStorageDeleteData [19:09:55]Read from MH i2c: 01 [19:09:55]MH_I2C_Read... [19:09:55]*** Stop cut motor [19:09:55]*** Cut end [19:09:55]Read from MH i2c: 01 07 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [19:09:55]process_action close_receipt done [19:09:55]requested_data is exist [19:09:55]produce_requested_data [19:09:55]requested_item fm.sn is exist - process it [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 11 00 00 [19:09:55]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 17 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 0D [19:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:09:55]wFMCommunicate OK [19:09:55]requested_item fd.num is exist - process it [19:09:55]SAM_PROTO_GetFieldsCounters [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 13 00 00 [19:09:55]Write to MH i2c: E2 08 00 3E 01 80 13 00 00 00 00 00 00 BB [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 62 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 62 00 3E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AF 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [19:09:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 AF 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:55]wFMCommunicate OK [19:09:55]SAM_PROTO_GetFieldsCounters done [19:09:55]requested_item shift.num is exist - process it [19:09:55]requested_item shift.opened is exist - process it [19:09:55]req_shift_opened [19:09:55]FM_GetShiftState [19:09:55]SAM_PROTO_GetShiftState [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 13 01 00 [19:09:55]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 0E 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 43 [19:09:55]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:09:55]wFMCommunicate OK [19:09:55]SAM_PROTO_GetShiftState done [19:09:55]FM_GetShiftState done [19:09:55]req_shift_opened done [19:09:55]requested_item shift.open_date is exist - process it [19:09:55]req_shift_open_date [19:09:55]req_shift_open_date done [19:09:55]produce_requested_data done [19:09:55]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19631,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [19:09:55]process_action_free close_receipt [19:09:55]json_value_free [19:09:55]json_value_free done [19:09:55]process_json_proto returns [19:09:55]Send response to host [19:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19631,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [19:09:55]free response buf [19:09:55]execute_script done [19:09:55]execute_script returns [19:09:55]free content buf [19:09:55]Sock 9.Close socket [19:09:55]Sock 9.Thread stoped [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]recv_with_timeout no data received [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:44]accept exits with 7 [19:10:44]New connection [19:10:44]New thread 3066813796 created [19:10:44]Thread 3066670436 joined [19:10:44]Waiting for new connection... [19:10:44] Sock 7.Parse request [19:10:44]Sock 7.Check first char [19:10:44]Sock 7.First char is OK [19:10:44]request: POST /json_proto HTTP/1.0 [19:10:44]Method: POST [19:10:44]URL: /json_proto [19:10:44]Method is POST - this is cgi request [19:10:44]url: /json_proto [19:10:44]query_string will be loaded in cgi processing [19:10:44]execute_cgi json_proto POST (null) [19:10:44]execute_cgi path=json_proto method=POST [19:10:44]POST find Content-Length [19:10:44]Host: 172.17.42.73:8080 [19:10:44]Content-Length: 756 [19:10:44]Content-Type: application/json [19:10:44] [19:10:44]POST finish read [19:10:44]Found Content-Length = 756 [19:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117539", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:44]execute_script... [19:10: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)117539", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:44]POST & json_proto [19:10:44]process_json_proto [19:10:44]json parsed OK: [19:10:44]protocol is kg_v1.0 [19:10:44]action value=close_receipt [19:10:44]process_action close_receipt [19:10:44]cmd_close_receipt [19:10:44]MH_GetDate [19:10:44]Write to MH i2c: F0 00 00 40 01 30 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 09 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 09 00 40 01 00 34 1A EF 66 99 54 47 66 76 [19:10:44]GetLastDocTimeStamp 1726945792 [19:10:44]current date 1726945844 [19:10:44]FM_GetShiftState [19:10:44]SAM_PROTO_GetShiftState [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 13 01 00 [19:10:44]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0E 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 45 [19:10:44]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:10:44]wFMCommunicate OK [19:10:44]SAM_PROTO_GetShiftState done [19:10:44]FM_GetShiftState done [19:10:44]opened in 1726877463 [19:10:44]opened+sec_in_day 1726963863 [19:10:44]quantity*price = 13000 [19:10:44]sum+1 = 13001 [19:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 82 21.09.2024 19:10 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19632 ФПД: 168891896915073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T191044&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19632&fm=168891896915073&tin=02508201610067®Number=0000000000146239&sum=13000 0 [19:10:45]StoreToDocumentArchive [19:10:45]shift 232 fd 19632 [19:10:45]save to /storage/0232/doc_00019632 [19:10:45]save last doc name /storage/0232/doc_00019632 to /storage/kkm_last_doc_name [19:10:45]save OK [19:10:45]Clear old archive folders... [19:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:10:45]tlvbuf is 01FEAA40 [19:10:45]SAM_PROTO_ClearQueue [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 09 00 00 [19:10:45]Write to MH i2c: E2 08 00 4E 01 80 09 00 00 00 00 00 00 C1 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 03 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [19:10:45]RAPDU: 90 00 [19:10:45]wFMCommunicate OK [19:10:45]SAM_PROTO_ClearQueue done [19:10:45]KKMCreateOFDPacket [19:10:45]OFDProtocolAddRootSTLVToBuf [19:10:45]FM_MakeSignedData [19:10:45]FM_MakeSignedData [19:10:45]SAM_PROTO_SignData [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 0D 01 02 [19:10:45]Write to MH i2c: E2 08 00 4F 01 80 0D 01 02 00 00 00 00 C9 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 03 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [19:10:45]RAPDU: 90 00 [19:10:45]wFMCommunicate OK [19:10:45]wFMCommunicate request_size=255 [19:10:45]MH_SAM_APDU [19:10:45]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 36 37 31 36 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 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 52 00 00 00 F4 03 04 00 34 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [19:10:45]Write to MH i2c: E2 02 01 50 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 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 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 52 00 00 00 F4 03 04 00 34 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 CF [19:10:45]OFD Sender: No OFD packet to send [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]wFMCommunicate request_size=28 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 0D 02 02 17 35 39 33 36 32 10 04 04 00 B0 4C 00 00 35 04 06 00 99 9B 35 85 64 81 [19:10:46]Write to MH i2c: E2 1F 00 51 01 80 0D 02 02 17 00 35 39 33 36 32 10 04 04 00 B0 4C 00 00 35 04 06 00 99 9B 35 85 64 81 00 00 29 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 0D 03 02 [19:10:46]Write to MH i2c: E2 08 00 52 01 80 0D 03 02 00 00 00 00 CE [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0B 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0B 00 52 01 00 81 3F 3C 06 92 E0 B9 BF 90 00 BB [19:10:46]RAPDU: 81 3F 3C 06 92 E0 B9 BF 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_SignData done [19:10:46]FM_MakeSignedData done [19:10:46]CreateOFDProtocolMessage [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 11 00 00 [19:10:46]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 23 [19:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:10:46]wFMCommunicate OK [19:10:46]CreateOFDProtocolMessage done [19:10:46]OFDSenderStorePacket 19632 [19:10:46]StoreOFDPacket docnum=19632 [19:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 50 C4 19 01 42 A0 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 36 37 31 36 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 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 52 00 00 00 F4 03 04 00 34 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B0 4C 00 00 35 04 06 00 99 9B 35 85 64 81 81 3F 3C 06 92 E0 B9 BF [19:10:46]CheckFolder [19:10:46]dirname=/storage/ofd_packets [19:10:46]CheckFolder done [19:10:46]ProducePacketName [19:10:46]name=ofd_packets/00019632 [19:10:46]NVStorageSaveData ofd_packets/00019632 [19:10:46]File name is /storage/ofd_packets/00019632 [19:10:46]Write 319 bytes [19:10:46]NVStorageSaveData done [19:10:46]OFDSenderStorePacket done [19:10:46]KKMCreateOFDPacket done [19:10:46]NVStorageSaveData kkm_last_timestamp [19:10:46]File name is /storage/kkm_last_timestamp [19:10:46]Write 4 bytes [19:10:46]NVStorageSaveData done [19:10:46]ExternCall_PrintAddStr [19:10:46]wPrintStart [19:10:46]Write to MH i2c: 01 00 00 54 01 55 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [19:10:46]RasterBufferAndPrint [19:10:46]line Счет N : (3)117539 [19:10:46]line ИНН: 02508201610067 [19:10:46]line Контрольно-Кассовый Чек [19:10:46]line ПРОДАЖА [19:10:46]line Товар: 4620006996716 [19:10:46]line Водка Талка 0,1л [19:10:46]line 1.000 * 130.00 [19:10:46]line = 130.00 [19:10:46]line НДС 12% НСП 1% [19:10:46]line > о реализуемом товаре [19:10:46]line ИТОГО: 130.00 [19:10:46]line НСП 1% : 1.15 [19:10:46]line НДС 12% : 13.80 [19:10:46]line Наличными: 0.00 [19:10:46]line Безнал.: 130.00 [19:10:46]line Место: АЗС № 93 "Партнер Нефть" [19:10:46]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [19:10:46]line СНО: Общий режим [19:10:46]line Чек 82 21.09.2024 19:10 [19:10:46]line Смена: 232 ФФД: 1.0 [19:10:46]line ЗНМ: 0300000060 [19:10:46]line РНМ: 0000000000146239 [19:10:46]line Версия ККМ: v1.0 [19:10:46]line Платежная система: Mbank [19:10:46]line ФМ: 0000000000959362 [19:10:46]line ФД: 19632 [19:10:46]line ФПД: 168891896915073 [19:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T191044&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19632&fm=168891896915073&tin=02508201610067®Number=0000000000146239&sum=13000 [19:10:46]OFD Sender: Processing packet 19632 [packets to send 63, broken 62] [19:10:46]ProducePacketName [19:10:46]name=ofd_packets/00019632 [19:10:46]OFD Sender: To server: pG, [19:10:46]CommunicateWithHost lk.salyk.kg:30040 [19:10:46]ConnectInit lk.salyk.kg [19:10:46]line 0 [19:10:46]written 0, free lines is 4095 [19:10:46]Write to MH i2c: 01 00 00 7D 01 7E [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 A8 0C 39 [19:10:46]RasterBufferAndPrint [19:10:46]line [19:10:46]line [19:10:46]line [19:10:46]line [19:10:46]line [19:10:46]written 0, free lines is 3243 [19:10:46]MH_Cut [19:10:46]Write to MH i2c: D1 01 00 84 01 01 57 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: D1 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: D1 01 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: D1 01 00 84 01 00 56 [19:10:46]Write to MH i2c: 01 00 00 85 01 86 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:47]*** Cut start [19:10:47]*** Partial cut [19:10:47]*** CUTSNS_PIN = 1 [19:10:47]*** CUTSNS_PIN = 0 [19:10:48]*** Brake cut motor [19:10:48]Read from MH i2c: 01 [19:10:48]MH_I2C_Read... [19:10:48]*** Stop cut motor [19:10:48]*** Cut end [19:10:48]Read from MH i2c: 01 07 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FF 0F 9B [19:10:48]process_action close_receipt done [19:10:48]requested_data is exist [19:10:48]produce_requested_data [19:10:48]requested_item fm.sn is exist - process it [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 11 00 00 [19:10:48]Write to MH i2c: E2 08 00 86 01 80 11 00 00 00 00 00 00 01 [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 17 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 17 00 86 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 56 [19:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:10:48]wFMCommunicate OK [19:10:48]requested_item fd.num is exist - process it [19:10:48]SAM_PROTO_GetFieldsCounters [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 13 00 00 [19:10:48]Write to MH i2c: E2 08 00 87 01 80 13 00 00 00 00 00 00 04 [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 62 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 62 00 87 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:48]wFMCommunicate OK [19:10:48]SAM_PROTO_GetFieldsCounters done [19:10:48]requested_item shift.num is exist - process it [19:10:48]requested_item shift.opened is exist - process it [19:10:48]req_shift_opened [19:10:48]FM_GetShiftState [19:10:48]SAM_PROTO_GetShiftState [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 13 01 00 [19:10:48]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 0E 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 8C [19:10:48]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:10:48]wFMCommunicate OK [19:10:48]SAM_PROTO_GetShiftState done [19:10:48]FM_GetShiftState done [19:10:48]req_shift_opened done [19:10:48]requested_item shift.open_date is exist - process it [19:10:48]req_shift_open_date [19:10:48]req_shift_open_date done [19:10:48]produce_requested_data done [19:10:48]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19632,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [19:10:48]process_action_free close_receipt [19:10:48]json_value_free [19:10:48]json_value_free done [19:10:48]process_json_proto returns [19:10:48]Send response to host [19:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19632,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [19:10:48]free response buf [19:10:48]execute_script done [19:10:48]execute_script returns [19:10:48]free content buf [19:10:48]Sock 7.Close socket [19:10:48]Sock 7.Thread stoped [19:10:51]ConnectInit Can't take IP for lk.salyk.kg [19:10:51]CommunicateWithHost connect error [19:10:51]CommunicateWithHost err = -1 [19:10:51]OFD Sender: Server communicate error [19:10:56]OFD Sender: Processing packet 19632 [packets to send 63, broken 62] [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00019632 [19:10:56]OFD Sender: To server: pG, [19:10:56]CommunicateWithHost lk.salyk.kg:30040 [19:10:56]ConnectInit lk.salyk.kg [19:10:56]recv_with_timeout no data received [19:11:01]ConnectInit Can't take IP for lk.salyk.kg [19:11:01]CommunicateWithHost connect error [19:11:01]CommunicateWithHost err = -1 [19:11:01]OFD Sender: Server communicate error [19:11:06]OFD Sender: Processing packet 19632 [packets to send 63, broken 62] [19:11:06]ProducePacketName [19:11:06]name=ofd_packets/00019632 [19:11:06]OFD Sender: To server: pG, [19:11:06]CommunicateWithHost lk.salyk.kg:30040 [19:11:06]ConnectInit lk.salyk.kg [19:11:06]Connected sock=10 [19:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 50 C4 19 01 42 A0 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 36 37 31 36 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 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 52 00 00 00 F4 03 04 00 34 1A EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B0 4C 00 00 35 04 06 00 99 9B 35 85 64 81 81 3F 3C 06 92 E0 B9 BF [19:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F2 BB 47 00 D9 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B0 4C 00 00 F4 03 04 00 E1 C4 EE 66 B6 04 01 00 00 FC 0D FA 7C 0D F3 2E BF [19:11:07]CommunicateWithHost err = 0 [19:11:07]CheckOFDResponse [19:11:07]1017 (14) - 77093643461234 [19:11:07]1041 (16) - 0000000000959362 [19:11:07]1040 (4) - 19632 [19:11:07]1012 (4) - 21.09.2024 13:06 [19:11:07]1206 (1) - 0 [19:11:07]OFD Sender: Remove packet 19632 [19:11:07]ProducePacketName [19:11:07]name=ofd_packets/00019632 [19:11:07]NVStorageDeleteData [19:11:07]OFD Sender: No OFD packet to send [19:11:08]recv_with_timeout no data received [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:18]recv_with_timeout no data received [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:38]accept exits with 9 [19:11:38]New connection [19:11:38]New thread 3066670436 created [19:11:38]Thread 3066813796 joined [19:11:38]Waiting for new connection... [19:11:38] Sock 9.Parse request [19:11:38]Sock 9.Check first char [19:11:38]Sock 9.First char is OK [19:11:38]request: POST /json_proto HTTP/1.0 [19:11:38]Method: POST [19:11:38]URL: /json_proto [19:11:38]Method is POST - this is cgi request [19:11:38]url: /json_proto [19:11:38]query_string will be loaded in cgi processing [19:11:38]execute_cgi json_proto POST (null) [19:11:38]execute_cgi path=json_proto method=POST [19:11:38]POST find Content-Length [19:11:38]Host: 172.17.42.73:8080 [19:11:38]Content-Length: 654 [19:11:38]Content-Type: application/json [19:11:38] [19:11:38]POST finish read [19:11:38]Found Content-Length = 654 [19:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117540", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:38]execute_script... [19:11: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)117540", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:38]POST & json_proto [19:11:38]process_json_proto [19:11:38]json parsed OK: [19:11:38]protocol is kg_v1.0 [19:11:38]action value=close_receipt [19:11:38]process_action close_receipt [19:11:38]cmd_close_receipt [19:11:38]MH_GetDate [19:11:38]Write to MH i2c: F0 00 00 89 01 79 [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: F0 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: F0 09 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: F0 09 00 89 01 00 6A 1A EF 66 99 54 47 66 F5 [19:11:38]GetLastDocTimeStamp 1726945844 [19:11:38]current date 1726945898 [19:11:38]FM_GetShiftState [19:11:38]SAM_PROTO_GetShiftState [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 01 00 [19:11:38]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 8E [19:11:38]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:11:38]wFMCommunicate OK [19:11:38]SAM_PROTO_GetShiftState done [19:11:38]FM_GetShiftState done [19:11:38]opened in 1726877463 [19:11:38]opened+sec_in_day 1726963863 [19:11:38]quantity*price = 7700 [19:11:38]sum+1 = 7701 [19:11:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 86 21.09.2024 19:19 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19636 ФПД: 106039289459856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T191940&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19636&fm=106039289459856&tin=02508201610067®Number=0000000000146239&sum=6500 0 [19:19:40]StoreToDocumentArchive [19:19:40]shift 232 fd 19636 [19:19:40]save to /storage/0232/doc_00019636 [19:19:40]save last doc name /storage/0232/doc_00019636 to /storage/kkm_last_doc_name [19:19:40]save OK [19:19:40]Clear old archive folders... [19:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:19:40]tlvbuf is 012FD720 [19:19:40]SAM_PROTO_ClearQueue [19:19:40]wFMCommunicate request_size=4 [19:19:40]MH_SAM_APDU [19:19:40]CAPDU: 80 09 00 00 [19:19:40]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:40]Read from MH i2c: E2 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 03 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:19:40]RAPDU: 90 00 [19:19:40]wFMCommunicate OK [19:19:40]SAM_PROTO_ClearQueue done [19:19:40]KKMCreateOFDPacket [19:19:40]OFDProtocolAddRootSTLVToBuf [19:19:40]FM_MakeSignedData [19:19:40]FM_MakeSignedData [19:19:40]SAM_PROTO_SignData [19:19:40]wFMCommunicate request_size=4 [19:19:40]MH_SAM_APDU [19:19:40]CAPDU: 80 0D 01 02 [19:19:40]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:40]Read from MH i2c: E2 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 03 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:19:40]RAPDU: 90 00 [19:19:40]wFMCommunicate OK [19:19:40]wFMCommunicate request_size=255 [19:19:40]MH_SAM_APDU [19:19:40]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4C 1C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [19:19:40]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4C 1C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 EC [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:41]OFD Sender: No OFD packet to send [19:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 03 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:19:41]RAPDU: 90 00 [19:19:41]wFMCommunicate OK [19:19:41]wFMCommunicate request_size=31 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 B4 4C 00 00 35 04 06 00 60 71 32 2E 34 90 [19:19:41]Write to MH i2c: E2 22 00 2E 00 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 B4 4C 00 00 35 04 06 00 60 71 32 2E 34 90 00 00 CA [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 03 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:19:41]RAPDU: 90 00 [19:19:41]wFMCommunicate OK [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 0D 03 02 [19:19:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0B 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0B 00 2F 00 00 96 62 41 E6 DE 28 33 8C 90 00 8F [19:19:41]RAPDU: 96 62 41 E6 DE 28 33 8C 90 00 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_SignData done [19:19:41]FM_MakeSignedData done [19:19:41]CreateOFDProtocolMessage [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 11 00 00 [19:19:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 17 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FF [19:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:19:41]wFMCommunicate OK [19:19:41]CreateOFDProtocolMessage done [19:19:41]OFDSenderStorePacket 19636 [19:19:41]StoreOFDPacket docnum=19636 [19:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 C9 CB 1C 01 3E AF 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4C 1C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B4 4C 00 00 35 04 06 00 60 71 32 2E 34 90 96 62 41 E6 DE 28 33 8C [19:19:41]CheckFolder [19:19:41]dirname=/storage/ofd_packets [19:19:41]CheckFolder done [19:19:41]ProducePacketName [19:19:41]name=ofd_packets/00019636 [19:19:41]NVStorageSaveData ofd_packets/00019636 [19:19:41]File name is /storage/ofd_packets/00019636 [19:19:41]Write 322 bytes [19:19:41]NVStorageSaveData done [19:19:41]OFDSenderStorePacket done [19:19:41]KKMCreateOFDPacket done [19:19:41]NVStorageSaveData kkm_last_timestamp [19:19:41]File name is /storage/kkm_last_timestamp [19:19:41]Write 4 bytes [19:19:41]NVStorageSaveData done [19:19:41]ExternCall_PrintAddStr [19:19:41]wPrintStart [19:19:41]Write to MH i2c: 01 00 00 31 00 31 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:19:41]RasterBufferAndPrint [19:19:41]line Счет N : (3)117542 [19:19:41]line ИНН: 02508201610067 [19:19:41]line Контрольно-Кассовый Чек [19:19:41]line ПРОДАЖА [19:19:41]line Товар: 47011656 [19:19:41]line Водка Пшеничная 0,1л [19:19:41]line 1.000 * 65.00 [19:19:41]line = 65.00 [19:19:41]line НДС 12% НСП 1% [19:19:41]line > о реализуемом товаре [19:19:41]line ИТОГО: 65.00 [19:19:41]line НСП 1% : 0.57 [19:19:41]line НДС 12% : 6.90 [19:19:41]line Наличными: 65.00 [19:19:41]line Безнал.: 0.00 [19:19:41]line Место: АЗС № 93 "Партнер Нефть" [19:19:41]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [19:19:41]line СНО: Общий режим [19:19:41]line Чек 86 21.09.2024 19:19 [19:19:41]line Смена: 232 ФФД: 1.0 [19:19:41]line ЗНМ: 0300000060 [19:19:41]line РНМ: 0000000000146239 [19:19:41]line Версия ККМ: v1.0 [19:19:41]line ФМ: 0000000000959362 [19:19:41]line ФД: 19636 [19:19:41]line ФПД: 106039289459856 [19:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T191940&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19636&fm=106039289459856&tin=02508201610067®Number=0000000000146239&sum=6500 [19:19:41]line 0 [19:19:41]written 0, free lines is 4095 [19:19:41]OFD Sender: Processing packet 19636 [packets to send 64, broken 63] [19:19:41]ProducePacketName [19:19:41]name=ofd_packets/00019636 [19:19:41]OFD Sender: To server: pG, [19:19:41]CommunicateWithHost lk.salyk.kg:30040 [19:19:41]ConnectInit lk.salyk.kg [19:19:41]Write to MH i2c: 01 00 00 59 00 59 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 BB 0C 27 [19:19:41]RasterBufferAndPrint [19:19:41]line [19:19:41]line [19:19:41]line [19:19:41]line [19:19:41]line [19:19:41]written 0, free lines is 3263 [19:19:41]MH_Cut [19:19:41]Write to MH i2c: D1 01 00 60 00 01 32 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: D1 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: D1 01 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: D1 01 00 60 00 00 31 [19:19:41]Write to MH i2c: 01 00 00 61 00 61 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:42]Connected sock=10 [19:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 C9 CB 1C 01 3E AF 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4C 1C EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B4 4C 00 00 35 04 06 00 60 71 32 2E 34 90 96 62 41 E6 DE 28 33 8C [19:19:42]*** Cut start [19:19:42]*** Partial cut [19:19:42]*** CUTSNS_PIN = 1 [19:19:42]*** CUTSNS_PIN = 0 [19:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 5A 2A 47 00 56 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B4 4C 00 00 F4 03 04 00 E5 C6 EE 66 B6 04 01 00 00 53 5D D6 3F 72 A8 27 39 [19:19:42]CommunicateWithHost err = 0 [19:19:42]CheckOFDResponse [19:19:42]1017 (14) - 77093643461234 [19:19:42]1041 (16) - 0000000000959362 [19:19:42]1040 (4) - 19636 [19:19:42]1012 (4) - 21.09.2024 13:15 [19:19:42]1206 (1) - 0 [19:19:42]OFD Sender: Remove packet 19636 [19:19:42]ProducePacketName [19:19:42]name=ofd_packets/00019636 [19:19:42]NVStorageDeleteData [19:19:42]*** Brake cut motor [19:19:43]Read from MH i2c: 01 [19:19:43]MH_I2C_Read... [19:19:43]*** Stop cut motor [19:19:43]*** Cut end [19:19:43]Read from MH i2c: 01 07 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [19:19:43]process_action close_receipt done [19:19:43]requested_data is exist [19:19:43]produce_requested_data [19:19:43]requested_item fm.sn is exist - process it [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 11 00 00 [19:19:43]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]OFD Sender: No OFD packet to send [19:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 17 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 31 [19:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:19:43]wFMCommunicate OK [19:19:43]requested_item fd.num is exist - process it [19:19:43]SAM_PROTO_GetFieldsCounters [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 13 00 00 [19:19:43]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:43]Read from MH i2c: E2 62 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B4 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B4 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:43]wFMCommunicate OK [19:19:43]SAM_PROTO_GetFieldsCounters done [19:19:43]requested_item shift.num is exist - process it [19:19:43]requested_item shift.opened is exist - process it [19:19:43]req_shift_opened [19:19:43]FM_GetShiftState [19:19:43]SAM_PROTO_GetShiftState [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 13 01 00 [19:19:43]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 0E 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 67 [19:19:43]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:19:43]wFMCommunicate OK [19:19:43]SAM_PROTO_GetShiftState done [19:19:43]FM_GetShiftState done [19:19:43]req_shift_opened done [19:19:43]requested_item shift.open_date is exist - process it [19:19:43]req_shift_open_date [19:19:43]req_shift_open_date done [19:19:43]produce_requested_data done [19:19:43]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19636,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [19:19:43]process_action_free close_receipt [19:19:43]json_value_free [19:19:43]json_value_free done [19:19:43]process_json_proto returns [19:19:43]Send response to host [19:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19636,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [19:19:43]free response buf [19:19:43]execute_script done [19:19:43]execute_script returns [19:19:43]free content buf [19:19:43]Sock 8.Close socket [19:19:43]Sock 8.Thread stoped [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:54]recv_with_timeout no data received [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:04]recv_with_timeout no data received [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:21]recv_with_timeout no data received [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:32]recv_with_timeout no data received [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:54]recv_with_timeout no data received [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]recv_with_timeout no data received [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:57]recv_with_timeout no data received [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:56]recv_with_timeout no data received [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:32]recv_with_timeout no data received [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:29]recv_with_timeout no data received [19:33:34]OFD Sender: No OFD packet to send [19:33:35]accept exits with 9 [19:33:35]New connection [19:33:35]New thread 3066867044 created [19:33:35]Thread 3067010404 joined [19:33:35]Waiting for new connection... [19:33:35] Sock 9.Parse request [19:33:35]Sock 9.Check first char [19:33:35]Sock 9.First char is OK [19:33:35]request: POST /json_proto HTTP/1.0 [19:33:35]Method: POST [19:33:35]URL: /json_proto [19:33:35]Method is POST - this is cgi request [19:33:35]url: /json_proto [19:33:35]query_string will be loaded in cgi processing [19:33:35]execute_cgi json_proto POST (null) [19:33:35]execute_cgi path=json_proto method=POST [19:33:35]POST find Content-Length [19:33:35]Host: 172.17.42.73:8080 [19:33:35]Content-Length: 645 [19:33:35]Content-Type: application/json [19:33:35] [19:33:35]POST finish read [19:33:35]Found Content-Length = 645 [19:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117543", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:35]execute_script... [19:33: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)117543", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:35]POST & json_proto [19:33:35]process_json_proto [19:33:35]json parsed OK: [19:33:35]protocol is kg_v1.0 [19:33:35]action value=close_receipt [19:33:35]process_action close_receipt [19:33:35]cmd_close_receipt [19:33:35]MH_GetDate [19:33:35]Write to MH i2c: F0 00 00 65 00 54 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: F0 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: F0 09 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: F0 09 00 65 00 00 90 1F EF 66 99 54 47 66 FB [19:33:35]GetLastDocTimeStamp 1726946380 [19:33:35]current date 1726947216 [19:33:35]FM_GetShiftState [19:33:35]SAM_PROTO_GetShiftState [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 13 01 00 [19:33:35]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 0E 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 69 [19:33:35]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:33:35]wFMCommunicate OK [19:33:35]SAM_PROTO_GetShiftState done [19:33:35]FM_GetShiftState done [19:33:35]opened in 1726877463 [19:33:35]opened+sec_in_day 1726963863 [19:33:35]quantity*price = 6500 [19:33:35]sum+1 = 6501 [19:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 87 21.09.2024 19:33 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19637 ФПД: 96749652392498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T193336&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19637&fm=96749652392498&tin=02508201610067®Number=0000000000146239&sum=6500 0 [19:33:36]StoreToDocumentArchive [19:33:36]shift 232 fd 19637 [19:33:36]save to /storage/0232/doc_00019637 [19:33:36]save last doc name /storage/0232/doc_00019637 to /storage/kkm_last_doc_name [19:33:36]save OK [19:33:36]Clear old archive folders... [19:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:33:36]tlvbuf is 012FDBA0 [19:33:36]SAM_PROTO_ClearQueue [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 09 00 00 [19:33:36]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]SAM_PROTO_ClearQueue done [19:33:36]KKMCreateOFDPacket [19:33:36]OFDProtocolAddRootSTLVToBuf [19:33:36]FM_MakeSignedData [19:33:36]FM_MakeSignedData [19:33:36]SAM_PROTO_SignData [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 0D 01 02 [19:33:36]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]wFMCommunicate request_size=255 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 1F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 [19:33:36]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 1F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7C [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 03 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [19:33:37]RAPDU: 90 00 [19:33:37]wFMCommunicate OK [19:33:37]wFMCommunicate request_size=31 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 32 10 04 04 00 B5 4C 00 00 35 04 06 00 57 FE 48 A9 BA 32 [19:33:37]Write to MH i2c: E2 22 00 76 00 80 0D 02 02 1A 00 30 30 39 35 39 33 36 32 10 04 04 00 B5 4C 00 00 35 04 06 00 57 FE 48 A9 BA 32 00 00 50 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 03 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:33:37]RAPDU: 90 00 [19:33:37]wFMCommunicate OK [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 0D 03 02 [19:33:37]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0B 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0B 00 77 00 00 81 0D 0B 08 14 C5 BD B2 90 00 DC [19:33:37]RAPDU: 81 0D 0B 08 14 C5 BD B2 90 00 [19:33:37]wFMCommunicate OK [19:33:37]SAM_PROTO_SignData done [19:33:37]FM_MakeSignedData done [19:33:37]CreateOFDProtocolMessage [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 11 00 00 [19:33:37]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 47 [19:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:33:37]wFMCommunicate OK [19:33:37]CreateOFDProtocolMessage done [19:33:37]OFDSenderStorePacket 19637 [19:33:37]StoreOFDPacket docnum=19637 [19:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 4D E0 1C 01 41 A3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 1F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B5 4C 00 00 35 04 06 00 57 FE 48 A9 BA 32 81 0D 0B 08 14 C5 BD B2 [19:33:37]CheckFolder [19:33:37]dirname=/storage/ofd_packets [19:33:37]CheckFolder done [19:33:37]ProducePacketName [19:33:37]name=ofd_packets/00019637 [19:33:37]NVStorageSaveData ofd_packets/00019637 [19:33:37]File name is /storage/ofd_packets/00019637 [19:33:37]Write 322 bytes [19:33:37]NVStorageSaveData done [19:33:37]OFDSenderStorePacket done [19:33:37]KKMCreateOFDPacket done [19:33:37]NVStorageSaveData kkm_last_timestamp [19:33:37]File name is /storage/kkm_last_timestamp [19:33:37]Write 4 bytes [19:33:37]NVStorageSaveData done [19:33:37]ExternCall_PrintAddStr [19:33:37]wPrintStart [19:33:37]Write to MH i2c: 01 00 00 79 00 79 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [19:33:37]RasterBufferAndPrint [19:33:37]line Счет N : (3)117543 [19:33:37]line ИНН: 02508201610067 [19:33:37]line Контрольно-Кассовый Чек [19:33:37]line ПРОДАЖА [19:33:37]line Товар: 47011656 [19:33:37]line Водка Пшеничная 0,1л [19:33:37]line 1.000 * 65.00 [19:33:37]line = 65.00 [19:33:37]line НДС 12% НСП 1% [19:33:37]line > о реализуемом товаре [19:33:37]line ИТОГО: 65.00 [19:33:37]line НСП 1% : 0.57 [19:33:37]line НДС 12% : 6.90 [19:33:37]line Наличными: 65.00 [19:33:37]line Безнал.: 0.00 [19:33:37]line Место: АЗС № 93 "Партнер Нефть" [19:33:37]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [19:33:37]line СНО: Общий режим [19:33:37]line Чек 87 21.09.2024 19:33 [19:33:37]line Смена: 232 ФФД: 1.0 [19:33:37]line ЗНМ: 0300000060 [19:33:37]line РНМ: 0000000000146239 [19:33:37]line Версия ККМ: v1.0 [19:33:37]line ФМ: 0000000000959362 [19:33:37]line ФД: 19637 [19:33:37]line ФПД: 96749652392498 [19:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T193336&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19637&fm=96749652392498&tin=02508201610067®Number=0000000000146239&sum=6500 [19:33:37]OFD Sender: Processing packet 19637 [packets to send 64, broken 63] [19:33:37]ProducePacketName [19:33:37]name=ofd_packets/00019637 [19:33:37]OFD Sender: To server: pG, [19:33:37]CommunicateWithHost lk.salyk.kg:30040 [19:33:37]ConnectInit lk.salyk.kg [19:33:37]line 0 [19:33:37]written 0, free lines is 4095 [19:33:37]Write to MH i2c: 01 00 00 A1 00 A1 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 B3 0C 67 [19:33:37]RasterBufferAndPrint [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]written 0, free lines is 3254 [19:33:37]MH_Cut [19:33:37]Write to MH i2c: D1 01 00 A8 00 01 7A [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 01 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 01 00 A8 00 00 79 [19:33:37]Write to MH i2c: 01 00 00 A9 00 A9 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:38]*** Cut start [19:33:38]*** Partial cut [19:33:38]*** CUTSNS_PIN = 1 [19:33:38]*** CUTSNS_PIN = 0 [19:33:39]*** Brake cut motor [19:33:39]Read from MH i2c: 01 [19:33:39]*** Stop cut motor [19:33:39]*** Cut end [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: 01 07 00 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [19:33:39]process_action close_receipt done [19:33:39]requested_data is exist [19:33:39]produce_requested_data [19:33:39]requested_item fm.sn is exist - process it [19:33:39]wFMCommunicate request_size=4 [19:33:39]MH_SAM_APDU [19:33:39]CAPDU: 80 11 00 00 [19:33:39]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [19:33:39]Write i2c OK [19:33:39]MH_I2C_Read... [19:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:39]Read from MH i2c: E2 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 17 00 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 79 [19:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [19:33:39]wFMCommunicate OK [19:33:39]requested_item fd.num is exist - process it [19:33:39]SAM_PROTO_GetFieldsCounters [19:33:39]wFMCommunicate request_size=4 [19:33:39]MH_SAM_APDU [19:33:39]CAPDU: 80 13 00 00 [19:33:39]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [19:33:39]Write i2c OK [19:33:39]MH_I2C_Read... [19:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:39]Read from MH i2c: E2 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 62 00 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 62 00 AB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B5 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B5 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:39]wFMCommunicate OK [19:33:39]SAM_PROTO_GetFieldsCounters done [19:33:39]requested_item shift.num is exist - process it [19:33:39]requested_item shift.opened is exist - process it [19:33:39]req_shift_opened [19:33:39]FM_GetShiftState [19:33:39]SAM_PROTO_GetShiftState [19:33:39]wFMCommunicate request_size=4 [19:33:39]MH_SAM_APDU [19:33:39]CAPDU: 80 13 01 00 [19:33:39]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [19:33:39]Write i2c OK [19:33:39]MH_I2C_Read... [19:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:39]Read from MH i2c: E2 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 0E 00 [19:33:39]MH_I2C_Read... [19:33:39]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 AF [19:33:39]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [19:33:39]wFMCommunicate OK [19:33:39]SAM_PROTO_GetShiftState done [19:33:39]FM_GetShiftState done [19:33:39]req_shift_opened done [19:33:39]requested_item shift.open_date is exist - process it [19:33:39]req_shift_open_date [19:33:39]req_shift_open_date done [19:33:39]produce_requested_data done [19:33:39]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19637,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [19:33:39]process_action_free close_receipt [19:33:39]json_value_free [19:33:39]json_value_free done [19:33:39]process_json_proto returns [19:33:39]Send response to host [19:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19637,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [19:33:39]free response buf [19:33:39]execute_script done [19:33:39]execute_script returns [19:33:39]free content buf [19:33:39]Sock 9.Close socket [19:33:39]Sock 9.Thread stoped [19:33:42]Connected sock=11 [19:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 24 01 00 00 4D E0 1C 01 41 A3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 1F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B5 4C 00 00 35 04 06 00 57 FE 48 A9 BA 32 81 0D 0B 08 14 C5 BD B2 [19:33:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 49 1B 47 00 19 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 39 35 39 33 36 32 10 04 04 00 B5 4C 00 00 F4 03 04 00 2D CA EE 66 B6 04 01 00 00 CB D5 AA B4 7F 9B D1 9C [19:33:43]CommunicateWithHost err = 0 [19:33:43]CheckOFDResponse [19:33:43]1017 (14) - 77093643461234 [19:33:43]1041 (16) - 0000000000959362 [19:33:43]1040 (4) - 19637 [19:33:43]1012 (4) - 21.09.2024 13:29 [19:33:43]1206 (1) - 0 [19:33:43]OFD Sender: Remove packet 19637 [19:33:43]ProducePacketName [19:33:43]name=ofd_packets/00019637 [19:33:43]NVStorageDeleteData [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]recv_with_timeout no data received [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]recv_with_timeout no data received [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:35]recv_with_timeout no data received [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:38:59]recv_with_timeout no data received [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:27]recv_with_timeout no data received [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:32]recv_with_timeout no data received [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:02]recv_with_timeout no data received [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:35]recv_with_timeout no data received [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:53]recv_with_timeout no data received [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:22]recv_with_timeout no data received [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:34]recv_with_timeout no data received [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:17]recv_with_timeout no data received [19:50:19]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:52]recv_with_timeout no data received [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:05]recv_with_timeout no data received [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:51]recv_with_timeout no data received [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:48]recv_with_timeout no data received [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:43]recv_with_timeout no data received [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02: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:19]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:44]int [20:12:44]Write to MH i2c: 01 00 00 AD 00 AD [20:12:44]*** FLAG_PRN_KEY set [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 AD 00 00 08 00 00 00 FF 0F CA [20:12:44]state=0 [20:12:44]Key pressed [20:12:44]Feed [20:12:44]Write to MH i2c: D8 00 00 AE 00 85 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: D8 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: D8 01 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: D8 01 00 AE 00 00 86 [20:12:44]int [20:12:44]Write to MH i2c: 01 00 00 AF 00 AF [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 AF 00 00 48 00 00 00 3C 00 3A [20:12:44]state=2 [20:12:44]Key pressed [20:12:45]int [20:12:45]Write to MH i2c: 01 00 00 B0 00 B0 [20:12:45]*** FLAG_PRN_KEY reset [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 F6 0F BC [20:12:45]state=2 [20:12:45]Stop feed [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:34]recv_with_timeout no data received [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:32]accept exits with 10 [20:18:32]New connection [20:18:32]New thread 3067010404 created [20:18:32]Thread 3066867044 joined [20:18:32]Waiting for new connection... [20:18:32] Sock 10.Parse request [20:18:32]Sock 10.Check first char [20:18:32]Sock 10.First char is OK [20:18:32]request: POST /json_proto HTTP/1.0 [20:18:32]Method: POST [20:18:32]URL: /json_proto [20:18:32]Method is POST - this is cgi request [20:18:32]url: /json_proto [20:18:32]query_string will be loaded in cgi processing [20:18:32]execute_cgi json_proto POST (null) [20:18:32]execute_cgi path=json_proto method=POST [20:18:32]POST find Content-Length [20:18:32]Host: 172.17.42.73:8080 [20:18:32]Content-Length: 831 [20:18:32]Content-Type: application/json [20:18:32] [20:18:32]POST finish read [20:18:32]Found Content-Length = 831 [20:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117544", "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 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:32]execute_script... [20:18: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)117544", "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 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:32]POST & json_proto [20:18:32]process_json_proto [20:18:32]json parsed OK: [20:18:32]protocol is kg_v1.0 [20:18:32]action value=close_receipt [20:18:32]process_action close_receipt [20:18:32]cmd_close_receipt [20:18:32]MH_GetDate [20:18:32]Write to MH i2c: F0 00 00 B1 00 A0 [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 09 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 09 00 B1 00 00 19 2A EF 66 99 54 47 66 DB [20:18:32]GetLastDocTimeStamp 1726947216 [20:18:32]current date 1726949913 [20:18:32]FM_GetShiftState [20:18:32]SAM_PROTO_GetShiftState [20:18:32]wFMCommunicate request_size=4 [20:18:32]MH_SAM_APDU [20:18:32]CAPDU: 80 13 01 00 [20:18:32]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:32]Read from MH i2c: E2 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 0E 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B5 [20:18:32]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:18:32]wFMCommunicate OK [20:18:32]SAM_PROTO_GetShiftState done [20:18:32]FM_GetShiftState done [20:18:32]opened in 1726877463 [20:18:32]opened+sec_in_day 1726963863 [20:18:32]quantity*price = 13000 [20:18:32]sum+1 = 13001 [20:18:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре [20:40:42]line ИТОГО: 70.00 [20:40:42]line НСП 1% : 0.62 [20:40:42]line НДС 12% : 7.43 [20:40:42]line Наличными: 70.00 [20:40:42]line Безнал.: 0.00 [20:40:42]line Место: АЗС № 93 "Партнер Нефть" [20:40:42]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [20:40:42]line СНО: Общий режим [20:40:42]line Чек 89 21.09.2024 20:40 [20:40:42]line Смена: 232 ФФД: 1.0 [20:40:42]line ЗНМ: 0300000060 [20:40:42]line РНМ: 0000000000146239 [20:40:42]line Версия ККМ: v1.0 [20:40:42]line ФМ: 0000000000959362 [20:40:42]line ФД: 19639 [20:40:42]line ФПД: 123236394263937 [20:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204041&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19639&fm=123236394263937&tin=02508201610067®Number=0000000000146239&sum=7000 [20:40:42]line 0 [20:40:42]written 0, free lines is 4095 [20:40:43]Write to MH i2c: 01 00 00 5A 00 5A [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 07 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 A7 0C 14 [20:40:43]RasterBufferAndPrint [20:40:43]line [20:40:43]line [20:40:43]line [20:40:43]line [20:40:43]line [20:40:43]written 0, free lines is 3250 [20:40:43]MH_Cut [20:40:43]Write to MH i2c: D1 01 00 61 00 01 33 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: D1 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: D1 01 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: D1 01 00 61 00 00 32 [20:40:43]Write to MH i2c: 01 00 00 62 00 62 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:44]*** Cut start [20:40:44]*** Partial cut [20:40:44]*** CUTSNS_PIN = 1 [20:40:44]*** CUTSNS_PIN = 0 [20:40:44]*** Brake cut motor [20:40:44]Read from MH i2c: 01 [20:40:44]MH_I2C_Read... [20:40:44]*** Stop cut motor [20:40:44]*** Cut end [20:40:44]Read from MH i2c: 01 07 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [20:40:44]process_action close_receipt done [20:40:44]requested_data is exist [20:40:44]produce_requested_data [20:40:44]requested_item fm.sn is exist - process it [20:40:44]wFMCommunicate request_size=4 [20:40:44]MH_SAM_APDU [20:40:44]CAPDU: 80 11 00 00 [20:40:44]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:44]Read from MH i2c: E2 17 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 32 [20:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:40:44]wFMCommunicate OK [20:40:44]requested_item fd.num is exist - process it [20:40:44]SAM_PROTO_GetFieldsCounters [20:40:44]wFMCommunicate request_size=4 [20:40:44]MH_SAM_APDU [20:40:44]CAPDU: 80 13 00 00 [20:40:44]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 62 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B7 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [20:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B7 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:45]wFMCommunicate OK [20:40:45]SAM_PROTO_GetFieldsCounters done [20:40:45]requested_item shift.num is exist - process it [20:40:45]requested_item shift.opened is exist - process it [20:40:45]req_shift_opened [20:40:45]FM_GetShiftState [20:40:45]SAM_PROTO_GetShiftState [20:40:45]wFMCommunicate request_size=4 [20:40:45]MH_SAM_APDU [20:40:45]CAPDU: 80 13 01 00 [20:40:45]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:45]Read from MH i2c: E2 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: E2 0E 00 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 68 [20:40:45]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:40:45]wFMCommunicate OK [20:40:45]SAM_PROTO_GetShiftState done [20:40:45]FM_GetShiftState done [20:40:45]req_shift_opened done [20:40:45]requested_item shift.open_date is exist - process it [20:40:45]req_shift_open_date [20:40:45]req_shift_open_date done [20:40:45]produce_requested_data done [20:40:45]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19639,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [20:40:45]process_action_free close_receipt [20:40:45]json_value_free [20:40:45]json_value_free done [20:40:45]process_json_proto returns [20:40:45]Send response to host [20:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19639,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [20:40:45]free response buf [20:40:45]execute_script done [20:40:45]execute_script returns [20:40:45]free content buf [20:40:45]Sock 9.Close socket [20:40:45]Sock 9.Thread stoped [20:40:47]accept exits with 7 [20:40:47]New connection [20:40:47]New thread 3067182436 created [20:40:47]Thread 3067325796 joined [20:40:47]Waiting for new connection... [20:40:47] Sock 7.Parse request [20:40:47]Sock 7.Check first char [20:40:47]Sock 7.First char is OK [20:40:47]request: POST /json_proto HTTP/1.0 [20:40:47]Method: POST [20:40:47]URL: /json_proto [20:40:47]Method is POST - this is cgi request [20:40:47]url: /json_proto [20:40:47]query_string will be loaded in cgi processing [20:40:47]execute_cgi json_proto POST (null) [20:40:47]execute_cgi path=json_proto method=POST [20:40:47]POST find Content-Length [20:40:47]Host: 172.17.42.73:8080 [20:40:47]Content-Length: 1896 [20:40:47]Content-Type: application/json [20:40:47] [20:40:47]POST finish read [20:40:47]Found Content-Length = 1896 [20:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117546", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:47]execute_script... [20:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117546", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:47]POST & json_proto [20:40:47]process_json_proto [20:40:47]json parsed OK: [20:40:47]protocol is kg_v1.0 [20:40:47]action value=close_receipt [20:40:47]process_action close_receipt [20:40:47]cmd_close_receipt [20:40:47]MH_GetDate [20:40:47]Write to MH i2c: F0 00 00 66 00 55 [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: F0 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: F0 09 00 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: F0 09 00 66 00 00 50 2F EF 66 99 54 47 66 CC [20:40:47]GetLastDocTimeStamp 1726951241 [20:40:47]current date 1726951248 [20:40:47]FM_GetShiftState [20:40:47]SAM_PROTO_GetShiftState [20:40:47]wFMCommunicate request_size=4 [20:40:47]MH_SAM_APDU [20:40:47]CAPDU: 80 13 01 00 [20:40:47]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:47]Read from MH i2c: E2 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: E2 0E 00 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 6A [20:40:47]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:40:47]wFMCommunicate OK [20:40:47]SAM_PROTO_GetShiftState done [20:40:47]FM_GetShiftState done [20:40:47]opened in 1726877463 [20:40:47]opened+sec_in_day 1726963863 [20:40:47]quantity*price = 8500 [20:40:47]sum+1 = 8501 [20:40:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 490.00 НСП 1% : 4.33 НДС 12% : 52.02 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 90 21.09.2024 20:40 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19640 ФПД: 49766464745624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204048&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19640&fm=49766464745624&tin=02508201610067®Number=0000000000146239&sum=49000 0 [20:40:49]StoreToDocumentArchive [20:40:49]shift 232 fd 19640 [20:40:49]save to /storage/0232/doc_00019640 [20:40:49]save last doc name /storage/0232/doc_00019640 to /storage/kkm_last_doc_name [20:40:49]save OK [20:40:49]Clear old archive folders... [20:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=796 [20:40:49]tlvbuf is 020863C0 [20:40:49]SAM_PROTO_ClearQueue [20:40:49]wFMCommunicate request_size=4 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 09 00 00 [20:40:49]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [20:40:49]RAPDU: 90 00 [20:40:49]wFMCommunicate OK [20:40:49]SAM_PROTO_ClearQueue done [20:40:49]KKMCreateOFDPacket [20:40:49]OFDProtocolAddRootSTLVToBuf [20:40:49]FM_MakeSignedData [20:40:49]FM_MakeSignedData [20:40:49]SAM_PROTO_SignData [20:40:49]wFMCommunicate request_size=4 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 0D 01 02 [20:40:49]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [20:40:49]RAPDU: 90 00 [20:40:49]wFMCommunicate OK [20:40:49]wFMCommunicate request_size=255 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 0D 02 02 FA 03 00 1C 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 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 31 34 30 D0 B3 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 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 [20:40:49]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 1C 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 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 31 34 30 D0 B3 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 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 00 00 1B [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:40:49]RAPDU: 90 00 [20:40:49]wFMCommunicate OK [20:40:49]wFMCommunicate request_size=255 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 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 [20:40:49]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 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 00 00 B9 [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:50]Read from MH i2c: E2 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:40:50]RAPDU: 90 00 [20:40:50]wFMCommunicate OK [20:40:50]wFMCommunicate request_size=255 [20:40:50]MH_SAM_APDU [20:40:50]CAPDU: 80 0D 02 02 FA 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 50 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [20:40:50]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 50 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B9 [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:50]Read from MH i2c: E2 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:40:50]RAPDU: 90 00 [20:40:50]wFMCommunicate OK [20:40:50]wFMCommunicate request_size=55 [20:40:50]MH_SAM_APDU [20:40:50]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B8 4C 00 00 35 04 06 00 2D 43 28 73 F0 98 [20:40:50]Write to MH i2c: E2 3A 00 79 00 80 0D 02 02 32 00 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B8 4C 00 00 35 04 06 00 2D 43 28 73 F0 98 00 00 E5 [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:50]Read from MH i2c: E2 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [20:40:50]RAPDU: 90 00 [20:40:50]wFMCommunicate OK [20:40:50]wFMCommunicate request_size=4 [20:40:50]MH_SAM_APDU [20:40:50]CAPDU: 80 0D 03 02 [20:40:50]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:50]Read from MH i2c: E2 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 0B 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 0B 00 7A 00 00 A2 57 2C F5 CF 14 5D 2E 90 00 7E [20:40:51]RAPDU: A2 57 2C F5 CF 14 5D 2E 90 00 [20:40:51]wFMCommunicate OK [20:40:51]SAM_PROTO_SignData done [20:40:51]FM_MakeSignedData done [20:40:51]CreateOFDProtocolMessage [20:40:51]wFMCommunicate request_size=4 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 11 00 00 [20:40:51]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 17 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 4A [20:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:40:51]wFMCommunicate OK [20:40:51]CreateOFDProtocolMessage done [20:40:51]OFDSenderStorePacket 19640 [20:40:51]StoreOFDPacket docnum=19640 [20:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 30 03 00 00 66 09 28 03 3A A4 5A 03 01 00 03 00 1C 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 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 31 34 30 D0 B3 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 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 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 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 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 50 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B8 4C 00 00 35 04 06 00 2D 43 28 73 F0 98 A2 57 2C F5 CF 14 5D 2E [20:40:51]CheckFolder [20:40:51]dirname=/storage/ofd_packets [20:40:51]CheckFolder done [20:40:51]ProducePacketName [20:40:51]name=ofd_packets/00019640 [20:40:51]NVStorageSaveData ofd_packets/00019640 [20:40:51]File name is /storage/ofd_packets/00019640 [20:40:51]Write 846 bytes [20:40:51]NVStorageSaveData done [20:40:51]OFDSenderStorePacket done [20:40:51]KKMCreateOFDPacket done [20:40:51]NVStorageSaveData kkm_last_timestamp [20:40:51]File name is /storage/kkm_last_timestamp [20:40:51]Write 4 bytes [20:40:51]NVStorageSaveData done [20:40:51]ExternCall_PrintAddStr [20:40:51]wPrintStart [20:40:51]Write to MH i2c: 01 00 00 7C 00 7C [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 07 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [20:40:51]RasterBufferAndPrint [20:40:51]line Счет N : (3)117546 [20:40:51]line ИНН: 02508201610067 [20:40:51]line Контрольно-Кассовый Чек [20:40:51]line ПРОДАЖА [20:40:51]line Товар: 4870227272957 [20:40:51]line Лимонад Sunbel Тархун 1л [20:40:51]line 1.000 * 85.00 [20:40:51]line = 85.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line Товар: 4630007400389 [20:40:51]line Семечки ДЖИНН 140г [20:40:51]line 1.000 * 130.00 [20:40:51]line = 130.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line Товар: 47803152 [20:40:51]line Сигареты Mevius Revo [20:40:51]line 1.000 * 159.00 [20:40:51]line = 159.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line Товар: 2000031750019 [20:40:51]line Пакет Партнер Нефть [20:40:51]line 1.000 * 4.00 [20:40:51]line = 4.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line Товар: 46141538 [20:40:51]line Р/ж Orbit Bubblemint 13,6г [20:40:51]line 1.000 * 45.00 [20:40:51]line = 45.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line Товар: 6931280300549 [20:40:51]line Зажигалка Cricket ПН пьезо [20:40:51]line 1.000 * 67.00 [20:40:51]line = 67.00 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line ИТОГО: 490.00 [20:40:51]line НСП 1% : 4.33 [20:40:51]line НДС 12% : 52.02 [20:40:51]line Наличными: 490.00 [20:40:51]line Безнал.: 0.00 [20:40:51]line Место: АЗС № 93 "Партнер Нефть" [20:40:51]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [20:40:51]line СНО: Общий режим [20:40:51]line Чек 90 21.09.2024 20:40 [20:40:51]line Смена: 232 ФФД: 1.0 [20:40:51]line ЗНМ: 0300000060 [20:40:51]line РНМ: 0000000000146239 [20:40:51]line Версия ККМ: v1.0 [20:40:51]line ФМ: 0000000000959362 [20:40:51]line ФД: 19640 [20:40:51]line ФПД: 49766464745624 [20:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204048&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19640&fm=49766464745624&tin=02508201610067®Number=0000000000146239&sum=49000 [20:40:51]OFD Sender: Processing packet 19639 [packets to send 65, broken 63] [20:40:51]ProducePacketName [20:40:51]name=ofd_packets/00019639 [20:40:51]OFD Sender: To server: pG, [20:40:51]CommunicateWithHost lk.salyk.kg:30040 [20:40:51]ConnectInit lk.salyk.kg [20:40:51]line 0 [20:40:51]written 0, free lines is 4095 [20:40:52]Write to MH i2c: 01 00 00 C2 00 C2 [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 9E 0A 71 [20:40:52]RasterBufferAndPrint [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]written 0, free lines is 2739 [20:40:52]MH_Cut [20:40:52]Write to MH i2c: D1 01 00 C9 00 01 9B [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 01 00 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 01 00 C9 00 00 9A [20:40:52]Write to MH i2c: 01 00 00 CA 00 CA [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:53]recv_with_timeout no data received [20:40:53]*** Cut start [20:40:53]*** Partial cut [20:40:53]*** CUTSNS_PIN = 1 [20:40:53]*** CUTSNS_PIN = 0 [20:40:53]*** Brake cut motor [20:40:54]Connected sock=11 [20:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 48 01 00 00 CE 6C 40 01 F4 6B 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE *** Stop cut motor [20:40:54]D0 *** Cut end [20:40:54]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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 49 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B7 4C 00 00 35 04 06 00 70 15 35 Read from MH i2c: 80 01 E5 [20:40:54]81 MH_I2C_Read... [20:40:54]87 Read from MH i2c: 52 01 13 07 19 00 5F [20:40:54]DD MH_I2C_Read... [20:40:54]8E 15 [20:40:54]Read from MH i2c: 01 07 00 CA 00 00 00 00 00 00 FF 0F DF [20:40:54]process_action close_receipt done [20:40:54]requested_data is exist [20:40:54]produce_requested_data [20:40:54]requested_item fm.sn is exist - process it [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 11 00 00 [20:40:54]Write to MH i2c: E2 08 00 CB 00 80 11 00 00 00 00 00 00 45 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 CB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9A [20:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:40:54]wFMCommunicate OK [20:40:54]requested_item fd.num is exist - process it [20:40:54]SAM_PROTO_GetFieldsCounters [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 13 00 00 [20:40:54]Write to MH i2c: E2 08 00 CC 00 80 13 00 00 00 00 00 00 48 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]Received data: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 7D 61 47 00 A2 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B7 4C 00 00 F4 03 04 00 ED D9 EE 66 B6 04 01 00 00 BD 9D B2 61 5B 21 EB 61 [20:40:54]CommunicateWithHost err = 0 [20:40:54]CheckOFDResponse [20:40:54]1017 (14) - 77093643461234 [20:40:54]1041 (16) - 0000000000959362 [20:40:54]1040 (4) - 19639 [20:40:54]1012 (4) - 21.09.2024 14:36 [20:40:54]1206 (1) - 0 [20:40:54]OFD Sender: Remove packet 19639 [20:40:54]ProducePacketName [20:40:54]name=ofd_packets/00019639 [20:40:54]NVStorageDeleteData [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 62 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 62 00 CC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B8 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [20:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B8 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:55]wFMCommunicate OK [20:40:55]SAM_PROTO_GetFieldsCounters done [20:40:55]requested_item shift.num is exist - process it [20:40:55]requested_item shift.opened is exist - process it [20:40:55]req_shift_opened [20:40:55]FM_GetShiftState [20:40:55]SAM_PROTO_GetShiftState [20:40:55]wFMCommunicate request_size=4 [20:40:55]MH_SAM_APDU [20:40:55]CAPDU: 80 13 01 00 [20:40:55]Write to MH i2c: E2 08 00 CD 00 80 13 01 00 00 00 00 00 4A [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:55]Read from MH i2c: E2 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 0E 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: E2 0E 00 CD 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 D0 [20:40:55]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:40:55]wFMCommunicate OK [20:40:55]SAM_PROTO_GetShiftState done [20:40:55]FM_GetShiftState done [20:40:55]req_shift_opened done [20:40:55]requested_item shift.open_date is exist - process it [20:40:55]req_shift_open_date [20:40:55]req_shift_open_date done [20:40:55]produce_requested_data done [20:40:55]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19640,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [20:40:55]process_action_free close_receipt [20:40:55]json_value_free [20:40:55]json_value_free done [20:40:55]process_json_proto returns [20:40:55]Send response to host [20:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19640,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [20:40:55]free response buf [20:40:55]execute_script done [20:40:55]execute_script returns [20:40:55]free content buf [20:40:55]Sock 7.Close socket [20:40:55]Sock 7.Thread stoped [20:40:55]OFD Sender: Processing packet 19640 [packets to send 64, broken 63] [20:40:55]ProducePacketName [20:40:55]name=ofd_packets/00019640 [20:40:55]OFD Sender: To server: pG, [20:40:55]CommunicateWithHost lk.salyk.kg:30040 [20:40:55]ConnectInit lk.salyk.kg [20:40:55]Connected sock=7 [20:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 30 03 00 00 66 09 28 03 3A A4 5A 03 01 00 03 00 1C 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 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 31 34 30 D0 B3 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 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 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 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 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 50 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B8 4C 00 00 35 04 06 00 2D 43 28 73 F0 98 A2 57 2C F5 CF 14 5D 2E [20:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 8A 44 47 00 9D 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B8 4C 00 00 F4 03 04 00 EF D9 EE 66 B6 04 01 00 00 B5 89 99 C3 8F F8 D0 23 [20:40:56]CommunicateWithHost err = 0 [20:40:56]CheckOFDResponse [20:40:56]1017 (14) - 77093643461234 [20:40:56]1041 (16) - 0000000000959362 [20:40:56]1040 (4) - 19640 [20:40:56]1012 (4) - 21.09.2024 14:36 [20:40:56]1206 (1) - 0 [20:40:56]OFD Sender: Remove packet 19640 [20:40:56]ProducePacketName [20:40:56]name=ofd_packets/00019640 [20:40:56]NVStorageDeleteData [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:21]recv_with_timeout no data received [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:35]recv_with_timeout no data received [20:41:37]OFD Sender: No OFD packet to send [20:41:38]accept exits with 9 [20:41:38]New connection [20:41:38]New thread 3067325796 created [20:41:38]Thread 3067182436 joined [20:41:38]Waiting for new connection... [20:41:38] Sock 9.Parse request [20:41:38]Sock 9.Check first char [20:41:38]Sock 9.First char is OK [20:41:38]request: POST /json_proto HTTP/1.0 [20:41:38]Method: POST [20:41:38]URL: /json_proto [20:41:38]Method is POST - this is cgi request [20:41:38]url: /json_proto [20:41:38]query_string will be loaded in cgi processing [20:41:38]execute_cgi json_proto POST (null) [20:41:38]execute_cgi path=json_proto method=POST [20:41:38]POST find Content-Length [20:41:38]Host: 172.17.42.73:8080 [20:41:38]Content-Length: 626 [20:41:38]Content-Type: application/json [20:41:38] [20:41:38]POST finish read [20:41:38]Found Content-Length = 626 [20:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117547", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:38]execute_script... [20:41:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117547", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:38]POST & json_proto [20:41:38]process_json_proto [20:41:38]json parsed OK: [20:41:38]protocol is kg_v1.0 [20:41:38]action value=close_receipt [20:41:38]process_action close_receipt [20:41:38]cmd_close_receipt [20:41:38]MH_GetDate [20:41:38]Write to MH i2c: F0 00 00 CE 00 BD [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: F0 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: F0 09 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: F0 09 00 CE 00 00 83 2F EF 66 99 54 47 66 67 [20:41:38]GetLastDocTimeStamp 1726951248 [20:41:38]current date 1726951299 [20:41:38]FM_GetShiftState [20:41:38]SAM_PROTO_GetShiftState [20:41:38]wFMCommunicate request_size=4 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 13 01 00 [20:41:38]Write to MH i2c: E2 08 00 CF 00 80 13 01 00 00 00 00 00 4C [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 0E 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 0E 00 CF 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 D2 [20:41:38]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:41:38]wFMCommunicate OK [20:41:38]SAM_PROTO_GetShiftState done [20:41:38]FM_GetShiftState done [20:41:38]opened in 1726877463 [20:41:38]opened+sec_in_day 1726963863 [20:41:38]quantity*price = 15000 [20:41:38]sum+1 = 15001 [20:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре [20:41:40]line ИТОГО: 150.00 [20:41:40]line НСП 1% : 1.33 [20:41:40]line НДС 12% : 15.93 [20:41:40]line Наличными: 150.00 [20:41:40]line Безнал.: 0.00 [20:41:40]line Место: АЗС № 93 "Партнер Нефть" [20:41:40]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [20:41:40]line СНО: Общий режим [20:41:40]line Чек 91 21.09.2024 20:41 [20:41:40]line Смена: 232 ФФД: 1.0 [20:41:40]line ЗНМ: 0300000060 [20:41:40]line РНМ: 0000000000146239 [20:41:40]line Версия ККМ: v1.0 [20:41:40]line ФМ: 0000000000959362 [20:41:40]line ФД: 19641 [20:41:40]line ФПД: 2940555845816 [20:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204139&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19641&fm=2940555845816&tin=02508201610067®Number=0000000000146239&sum=15000 [20:41:40]line 0 [20:41:40]written 0, free lines is 4095 [20:41:40]OFD Sender: Processing packet 19641 [packets to send 64, broken 63] [20:41:40]ProducePacketName [20:41:40]name=ofd_packets/00019641 [20:41:40]OFD Sender: To server: pG, [20:41:40]CommunicateWithHost lk.salyk.kg:30040 [20:41:40]ConnectInit lk.salyk.kg [20:41:40]Write to MH i2c: 01 00 00 0B 01 0C [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: 01 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: 01 07 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 9A 0C B9 [20:41:40]RasterBufferAndPrint [20:41:40]line [20:41:40]line [20:41:40]line [20:41:40]line [20:41:40]line [20:41:40]written 0, free lines is 3242 [20:41:40]MH_Cut [20:41:40]Write to MH i2c: D1 01 00 12 01 01 E5 [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: D1 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: D1 01 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: D1 01 00 12 01 00 E4 [20:41:40]Write to MH i2c: 01 00 00 13 01 14 [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:41]*** Cut start [20:41:41]*** Partial cut [20:41:41]*** CUTSNS_PIN = 1 [20:41:41]*** CUTSNS_PIN = 0 [20:41:42]*** Brake cut motor [20:41:42]Read from MH i2c: 01 [20:41:42]MH_I2C_Read... [20:41:42]*** Stop cut motor [20:41:42]*** Cut end [20:41:42]Read from MH i2c: 01 07 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 13 01 00 00 00 00 00 FF 0F 29 [20:41:42]process_action close_receipt done [20:41:42]requested_data is exist [20:41:42]produce_requested_data [20:41:42]requested_item fm.sn is exist - process it [20:41:42]wFMCommunicate request_size=4 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 11 00 00 [20:41:42]Write to MH i2c: E2 08 00 14 01 80 11 00 00 00 00 00 00 8F [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 17 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 17 00 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E4 [20:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:41:42]wFMCommunicate OK [20:41:42]requested_item fd.num is exist - process it [20:41:42]SAM_PROTO_GetFieldsCounters [20:41:42]wFMCommunicate request_size=4 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 13 00 00 [20:41:42]Write to MH i2c: E2 08 00 15 01 80 13 00 00 00 00 00 00 92 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 62 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 62 00 15 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [20:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 B9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:42]wFMCommunicate OK [20:41:42]SAM_PROTO_GetFieldsCounters done [20:41:42]requested_item shift.num is exist - process it [20:41:42]requested_item shift.opened is exist - process it [20:41:42]req_shift_opened [20:41:42]FM_GetShiftState [20:41:42]SAM_PROTO_GetShiftState [20:41:42]wFMCommunicate request_size=4 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 13 01 00 [20:41:42]Write to MH i2c: E2 08 00 16 01 80 13 01 00 00 00 00 00 94 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 0E 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 0E 00 16 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 1A [20:41:42]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:41:42]wFMCommunicate OK [20:41:42]SAM_PROTO_GetShiftState done [20:41:42]FM_GetShiftState done [20:41:42]req_shift_opened done [20:41:42]requested_item shift.open_date is exist - process it [20:41:42]req_shift_open_date [20:41:42]req_shift_open_date done [20:41:42]produce_requested_data done [20:41:42]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19641,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [20:41:42]process_action_free close_receipt [20:41:42]json_value_free [20:41:42]json_value_free done [20:41:42]process_json_proto returns [20:41:42]Send response to host [20:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19641,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [20:41:42]free response buf [20:41:42]execute_script done [20:41:42]execute_script returns [20:41:42]free content buf [20:41:42]Sock 9.Close socket [20:41:42]Sock 9.Thread stoped [20:41:44]Connected sock=11 [20:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2A 01 00 00 F6 88 22 01 B7 66 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B9 4C 00 00 35 04 06 00 02 AC A6 C9 60 B8 F3 C4 20 08 6F 1A 8D 7A [20:41:45]recv_with_timeout no data received [20:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 07 84 47 00 F6 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B9 4C 00 00 F4 03 04 00 20 DA EE 66 B6 04 01 00 00 D8 F4 41 C9 26 38 77 FE [20:41:46]CommunicateWithHost err = 0 [20:41:46]CheckOFDResponse [20:41:46]1017 (14) - 77093643461234 [20:41:46]1041 (16) - 0000000000959362 [20:41:46]1040 (4) - 19641 [20:41:46]1012 (4) - 21.09.2024 14:37 [20:41:46]1206 (1) - 0 [20:41:46]OFD Sender: Remove packet 19641 [20:41:46]ProducePacketName [20:41:46]name=ofd_packets/00019641 [20:41:46]NVStorageDeleteData [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:14]recv_with_timeout no data received [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:25]recv_with_timeout no data received [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:35]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:41:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 03 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [20:41:38]RAPDU: 90 00 [20:41:38]wFMCommunicate OK [20:41:38]wFMCommunicate request_size=15 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 15 02 00 0A 07 04 06 00 98 3A 00 00 00 00 [20:41:38]Write to MH i2c: E2 12 00 D5 00 80 15 02 00 0A 00 07 04 06 00 98 3A 00 00 00 00 00 00 4C [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 03 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [20:41:38]RAPDU: 90 00 [20:41:38]wFMCommunicate OK [20:41:38]wFMCommunicate request_size=15 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [20:41:38]Write to MH i2c: E2 12 00 D6 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 AD [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]wFMCommunicate request_size=11 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [20:41:39]Write to MH i2c: E2 0E 00 D7 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 89 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 D7 00 00 90 00 4B [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]wFMCommunicate request_size=13 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 15 02 00 08 F4 03 04 00 83 2F EF 66 [20:41:39]Write to MH i2c: E2 10 00 D8 00 80 15 02 00 08 00 F4 03 04 00 83 2F EF 66 00 00 6A [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 D8 00 00 90 00 4C [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]wFMCommunicate request_size=25 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [20:41:39]Write to MH i2c: E2 1C 00 D9 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 BB [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 D9 00 00 90 00 4D [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 15 03 00 [20:41:39]Write to MH i2c: E2 08 00 DA 00 80 15 03 00 00 00 00 00 5B [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 40 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 40 00 DA 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5B 00 00 00 35 04 06 00 02 AC A6 C9 60 B8 90 00 D0 [20:41:39]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B9 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5B 00 00 00 35 04 06 00 02 AC A6 C9 60 B8 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_ProcessDocument answer len = 59 [20:41:39]SAM_PROTO_ProcessDocument done [20:41:39]SetTLVBufToDocument [20:41:39]Processing tag 1209 (04B9) [20:41:39]Malloc new data [20:41:39]Processing tag 1041 (0411) [20:41:39]Processing tag 1040 (0410) [20:41:39]Malloc new data [20:41:39]Processing tag 1038 (040E) [20:41:39]Malloc new data [20:41:39]Processing tag 1042 (0412) [20:41:39]Malloc new data [20:41:39]Processing tag 1077 (0435) [20:41:39]Malloc new data [20:41:39]SetTLVBufToDocument err=0 [20:41:39]KKMLoadAndSignReceiptData store KKM data [20:41:39]KKMLoadAndSignReceiptData err=0 [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 11 00 00 [20:41:39]Write to MH i2c: E2 08 00 DB 00 80 11 00 00 00 00 00 00 55 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 17 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 17 00 DB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 AA [20:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:41:39]wFMCommunicate OK [20:41:39]Счет N : (3)117547 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 91 21.09.2024 20:41 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19641 ФПД: 2940555845816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204139&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19641&fm=2940555845816&tin=02508201610067®Number=0000000000146239&sum=15000 0 [20:41:39]StoreToDocumentArchive [20:41:39]shift 232 fd 19641 [20:41:39]save to /storage/0232/doc_00019641 [20:41:39]save last doc name /storage/0232/doc_00019641 to /storage/kkm_last_doc_name [20:41:39]save OK [20:41:39]Clear old archive folders... [20:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:41:39]tlvbuf is 020B9B70 [20:41:39]SAM_PROTO_ClearQueue [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 09 00 00 [20:41:39]Write to MH i2c: E2 08 00 DC 00 80 09 00 00 00 00 00 00 4E [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 DC 00 00 90 00 50 [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_ClearQueue done [20:41:39]KKMCreateOFDPacket [20:41:39]OFDProtocolAddRootSTLVToBuf [20:41:39]FM_MakeSignedData [20:41:39]FM_MakeSignedData [20:41:39]SAM_PROTO_SignData [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 0D 01 02 [20:41:39]Write to MH i2c: E2 08 00 DD 00 80 0D 01 02 00 00 00 00 56 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 03 00 DD 00 00 90 00 51 [20:41:39]RAPDU: 90 00 [20:41:39]wFMCommunicate OK [20:41:39]wFMCommunicate request_size=255 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 [20:41:39]Write to MH i2c: E2 02 01 DE 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 2F EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 00 00 C5 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:40]Read from MH i2c: E2 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 03 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 03 00 DE 00 00 90 00 52 [20:41:40]RAPDU: 90 00 [20:41:40]wFMCommunicate OK [20:41:40]wFMCommunicate request_size=37 [20:41:40]MH_SAM_APDU [20:41:40]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 [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:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:14]recv_with_timeout no data received [20:46:17]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:35]recv_with_timeout no data received [20:46:37]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send 15 02 00 0A 00 FC 03 06 00 58 1B 00 00 00 00 00 00 2E [20:40:40]Write i2c OK [20:40:40]MH_I2C_Read... [20:40:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:40]Read from MH i2c: E2 [20:40:40]MH_I2C_Read... [20:40:40]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=47 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 [20:40:41]Write to MH i2c: E2 32 00 23 00 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 00 00 21 [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=15 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 0A 07 04 06 00 58 1B 00 00 00 00 [20:40:41]Write to MH i2c: E2 12 00 24 00 80 15 02 00 0A 00 07 04 06 00 58 1B 00 00 00 00 00 00 3C [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=15 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [20:40:41]Write to MH i2c: E2 12 00 25 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 FC [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=11 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [20:40:41]Write to MH i2c: E2 0E 00 26 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D8 [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=13 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 08 F4 03 04 00 49 2F EF 66 [20:40:41]Write to MH i2c: E2 10 00 27 00 80 15 02 00 08 00 F4 03 04 00 49 2F EF 66 00 00 7F [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=25 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [20:40:41]Write to MH i2c: E2 1C 00 28 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 0A [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [20:40:41]RAPDU: 90 00 [20:40:41]wFMCommunicate OK [20:40:41]wFMCommunicate request_size=4 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 15 03 00 [20:40:41]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 40 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B7 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 59 00 00 00 35 04 06 00 70 15 35 80 E5 81 90 00 86 [20:40:41]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 B7 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 59 00 00 00 35 04 06 00 70 15 35 80 E5 81 90 00 [20:40:41]wFMCommunicate OK [20:40:41]SAM_PROTO_ProcessDocument answer len = 59 [20:40:41]SAM_PROTO_ProcessDocument done [20:40:41]SetTLVBufToDocument [20:40:41]Processing tag 1209 (04B9) [20:40:41]Malloc new data [20:40:41]Processing tag 1041 (0411) [20:40:41]Processing tag 1040 (0410) [20:40:41]Malloc new data [20:40:41]Processing tag 1038 (040E) [20:40:41]Malloc new data [20:40:41]Processing tag 1042 (0412) [20:40:41]Malloc new data [20:40:41]Processing tag 1077 (0435) [20:40:41]Malloc new data [20:40:41]SetTLVBufToDocument err=0 [20:40:41]KKMLoadAndSignReceiptData store KKM data [20:40:41]KKMLoadAndSignReceiptData err=0 [20:40:41]wFMCommunicate request_size=4 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 11 00 00 [20:40:41]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 17 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F9 [20:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:40:41]wFMCommunicate OK [20:40:41]Счет N : (3)117545 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4870202521179 Чай холодный MAXI черный персик ПЭТ 0,45 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 89 21.09.2024 20:40 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19639 ФПД: 123236394263937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T204041&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19639&fm=123236394263937&tin=02508201610067®Number=0000000000146239&sum=7000 0 [20:40:41]StoreToDocumentArchive [20:40:41]shift 232 fd 19639 [20:40:41]save to /storage/0232/doc_00019639 [20:40:41]save last doc name /storage/0232/doc_00019639 to /storage/kkm_last_doc_name [20:40:41]save OK [20:40:41]Clear old archive folders... [20:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=308 [20:40:41]tlvbuf is 020867D0 [20:40:41]SAM_PROTO_ClearQueue [20:40:41]wFMCommunicate request_size=4 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 09 00 00 [20:40:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:41]Read from MH i2c: E2 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: E2 03 00 [20:40:41]MH_I2C_Read... [20[20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:53]recv_with_timeout no data received [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:24]recv_with_timeout no data received [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:57]recv_with_timeout no data received [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:23]recv_with_timeout no data received [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:43]recv_with_timeout no data received [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:20]Malloc new data [20:59:20]cost*persent_nds=1320000 [20:59:20]+500=1320500 [20:59:20]tax_nds_amount=1168 [20:59:20]cost*persent_nds=110000 [20:59:20]+500=110500 [20:59:20]tax_nsp_amount=97 [20:59:20]LoadAmountFromDocumentTag tax_cur_amount=3334 [20:59:20]SetAmountToDocument tax_cur_amount=4502 [20:59:20]Malloc new data [20:59:20]Malloc new data [20:59:20]free (receipt_item_data.pre_item_text) [20:59:20]free (receipt_item_data.post_item_text) [20:59:20]done [20:59:20]Malloc new data [20:59:20]Malloc new data [20:59:20]Malloc new data [20:59:20]KKMSetReceiptData OK [20:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=111 [20:59:20]tlvbuf is 0207E5E0 [20:59:20]KKMLoadAndSignReceiptData [20:59:20]SAM_PROTO_ProcessDocument [20:59:20]wFMCommunicate request_size=9 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 01 00 04 03 00 6F 00 [20:59:20]Write to MH i2c: E2 0C 00 1A 01 80 15 01 00 04 00 03 00 6F 00 00 00 14 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=10 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [20:59:20]Write to MH i2c: E2 0D 00 1B 01 80 15 02 00 05 00 1E 04 01 00 01 00 00 CA [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=15 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 0A FC 03 06 00 A0 A5 00 00 00 00 [20:59:20]Write to MH i2c: E2 12 00 1C 01 80 15 02 00 0A 00 FC 03 06 00 A0 A5 00 00 00 00 00 00 FB [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=47 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 [20:59:20]Write to MH i2c: E2 32 00 1D 01 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 00 00 13 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=15 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 0A 07 04 06 00 A0 A5 00 00 00 00 [20:59:20]Write to MH i2c: E2 12 00 1E 01 80 15 02 00 0A 00 07 04 06 00 A0 A5 00 00 00 00 00 00 09 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1E 01 00 90 00 93 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=15 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [20:59:20]Write to MH i2c: E2 12 00 1F 01 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 F7 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=11 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [20:59:20]Write to MH i2c: E2 0E 00 20 01 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D3 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=13 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 08 F4 03 04 00 A8 33 EF 66 [20:59:20]Write to MH i2c: E2 10 00 21 01 80 15 02 00 08 00 F4 03 04 00 A8 33 EF 66 00 00 DD [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=25 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [20:59:20]Write to MH i2c: E2 1C 00 22 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 05 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [20:59:20]RAPDU: 90 00 [20:59:20]wFMCommunicate OK [20:59:20]wFMCommunicate request_size=4 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 15 03 00 [20:59:20]Write to MH i2c: E2 08 00 23 01 80 15 03 00 00 00 00 00 A5 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 40 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 40 00 23 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5C 00 00 00 35 04 06 00 32 38 25 1E F3 1C 90 00 A3 [20:59:21]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5C 00 00 00 35 04 06 00 32 38 25 1E F3 1C 90 00 [20:59:21]wFMCommunicate OK [20:59:21]SAM_PROTO_ProcessDocument answer len = 59 [20:59:21]SAM_PROTO_ProcessDocument done [20:59:21]SetTLVBufToDocument [20:59:21]Processing tag 1209 (04B9) [20:59:21]Malloc new data [20:59:21]Processing tag 1041 (0411) [20:59:21]Processing tag 1040 (0410) [20:59:21]Malloc new data [20:59:21]Processing tag 1038 (040E) [20:59:21]Malloc new data [20:59:21]Processing tag 1042 (0412) [20:59:21]Malloc new data [20:59:21]Processing tag 1077 (0435) [20:59:21]Malloc new data [20:59:21]SetTLVBufToDocument err=0 [20:59:21]KKMLoadAndSignReceiptData store KKM data [20:59:21]KKMLoadAndSignReceiptData err=0 [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 11 00 00 [20:59:21]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 17 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 F4 [20:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:59:21]wFMCommunicate OK [20:59:21]Счет N : (3)117548 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 47802995 Сигареты Winston XS Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 424.00 НСП 1% : 3.74 НДС 12% : 45.02 Наличными: 424.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 92 21.09.2024 20:59 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19642 ФПД: 55216722342684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T205920&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19642&fm=55216722342684&tin=02508201610067®Number=0000000000146239&sum=42400 0 [20:59:21]StoreToDocumentArchive [20:59:21]shift 232 fd 19642 [20:59:21]save to /storage/0232/doc_00019642 [20:59:21]save last doc name /storage/0232/doc_00019642 to /storage/kkm_last_doc_name [20:59:21]save OK [20:59:21]Clear old archive folders... [20:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=603 [20:59:21]tlvbuf is 0202E660 [20:59:21]SAM_PROTO_ClearQueue [20:59:22]File name is /storage/ofd_packets/00019642 [20:59:22]Write 653 bytes [20:59:22]NVStorageSaveData done [20:59:22]OFDSenderStorePacket done [20:59:22]KKMCreateOFDPacket done [20:59:22]NVStorageSaveData kkm_last_timestamp [20:59:22]File name is /storage/kkm_last_timestamp [20:59:22]Write 4 bytes [20:59:22]NVStorageSaveData done [20:59:22]ExternCall_PrintAddStr [20:59:22]wPrintStart [20:59:22]Write to MH i2c: 01 00 00 2C 01 2D [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [20:59:22]RasterBufferAndPrint [20:59:22]line Счет N : (3)117548 [20:59:22]line ИНН: 02508201610067 [20:59:22]line Контрольно-Кассовый Чек [20:59:22]line ПРОДАЖА [20:59:22]line Товар: 47802995 [20:59:22]line Сигареты Winston XS Silver [20:59:22]line 1.000 * 144.00 [20:59:22]line = 144.00 [20:59:22]line НДС 12% НСП 1% [20:59:22]line > о реализуемом товаре [20:59:22]line Товар: 4870002329951 [20:59:22]line Напиток Lipton IceTea 1л зел чай Regular [20:59:22]line 1.000 * 130.00 [20:59:22]line = 130.00 [20:59:22]line НДС 12% НСП 1% [20:59:22]line > о реализуемом товаре [20:59:22]line Товар: 4700000160211 [20:59:22]line Вода Легенда 0,5л [20:59:22]line 1.000 * 40.00 [20:59:22]line = 40.00 [20:59:22]line НДС 12% НСП 1% [20:59:22]line > о реализуемом товаре [20:59:22]line Товар: 4870112003925 [20:59:22]line Конд ULKER-Albeni 40gr (6*24) [20:59:22]line 2.000 * 55.00 [20:59:22]line = 110.00 [20:59:22]line НДС 12% НСП 1% [20:59:22]line > о реализуемом товаре [20:59:22]line ИТОГО: 424.00 [20:59:22]line НСП 1% : 3.74 [20:59:22]line НДС 12% : 45.02 [20:59:22]line Наличными: 424.00 [20:59:22]line Безнал.: 0.00 [20:59:22]line Место: АЗС № 93 "Партнер Нефть" [20:59:22]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [20:59:22]line СНО: Общий режим [20:59:22]line Чек 92 21.09.2024 20:59 [20:59:22]line Смена: 232 ФФД: 1.0 [20:59:22]line ЗНМ: 0300000060 [20:59:22]line РНМ: 0000000000146239 [20:59:22]line Версия ККМ: v1.0 [20:59:22]line ФМ: 0000000000959362 [20:59:22]line ФД: 19642 [20:59:22]line ФПД: 55216722342684 [20:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T205920&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19642&fm=55216722342684&tin=02508201610067®Number=0000000000146239&sum=42400 [20:59:22]line 0 [20:59:22]OFD Sender: Processing packet 19642 [packets to send 64, broken 63] [20:59:22]ProducePacketName [20:59:22]name=ofd_packets/00019642 [20:59:22]OFD Sender: To server: pG, [20:59:22]CommunicateWithHost lk.salyk.kg:30040 [20:59:22]ConnectInit lk.salyk.kg [20:59:22]written 0, free lines is 4095 [20:59:23]Write to MH i2c: 01 00 00 67 01 68 [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 07 00 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 07 00 67 01 00 00 00 00 00 46 0B C0 [20:59:23]RasterBufferAndPrint [20:59:23]line [20:59:23]line [20:59:23]line [20:59:23]line [20:59:23]line [20:59:23]written 0, free lines is 2890 [20:59:23]MH_Cut [20:59:23]Write to MH i2c: D1 01 00 6E 01 01 41 [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 01 00 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 01 00 6E 01 00 40 [20:59:23]Write to MH i2c: 01 00 00 6F 01 70 [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]Connected sock=10 [20:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 6F 02 00 00 21 A4 67 02 42 13 5A 03 01 00 03 00 5B 02 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 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 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 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 07 04 06 00 A0 A5 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 A8 33 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 35 04 06 00 32 38 25 1E F3 1C F0 4C C0 6C 71 67 70 12 [20:59:24]*** Cut start [20:59:24]*** Partial cut [20:59:24]*** CUTSNS_PIN = 1 [20:59:24]*** CUTSNS_PIN = 0 [20:59:24]*** Brake cut motor [20:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 35 61 47 00 A8 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 F4 03 04 00 43 DE EE 66 B6 04 01 00 00 3C 08 E4 53 37 C5 4B 8B [20:59:24]CommunicateWithHost err = 0 [20:59:24]CheckOFDResponse [20:59:24]1017 (14) - 77093643461234 [20:59:24]1041 (16) - 0000000000959362 [20:59:24]1040 (4) - 19642 [20:59:24]1012 (4) - 21.09.2024 14:54 [20:59:24]1206 (1) - 0 [20:59:24]OFD Sender: Remove packet 19642 [20:59:24]ProducePacketName [20:59:24]name=ofd_packets/00019642 [20:59:24]NVStorageDeleteData [20:59:24]Read from MH i2c: 01 [20:59:24]MH_I2C_Read... [20:59:24]*** Stop cut motor [20:59:24]*** Cut end [20:59:24]Read from MH i2c: 01 07 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 FF 0F 85 [20:59:24]process_action close_receipt done [20:59:24]requested_data is exist [20:59:24]produce_requested_data [20:59:24]requested_item fm.sn is exist - process it [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 11 00 00 [20:59:24]Write to MH i2c: E2 08 00 70 01 80 11 00 00 00 00 00 00 EB [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:24]Read from MH i2c: E2 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 17 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 17 00 70 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 40 [20:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:59:24]wFMCommunicate OK [20:59:24]requested_item fd.num is exist - process it [20:59:24]SAM_PROTO_GetFieldsCounters [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 13 00 00 [20:59:24]Write to MH i2c: E2 08 00 71 01 80 13 00 00 00 00 00 00 EE [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 62 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 62 00 71 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [20:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BA 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:25]wFMCommunicate OK [20:59:25]SAM_PROTO_GetFieldsCounters done [20:59:25]requested_item shift.num is exist - process it [20:59:25]requested_item shift.opened is exist - process it [20:59:25]req_shift_opened [20:59:25]FM_GetShiftState [20:59:25]SAM_PROTO_GetShiftState [20:59:25]wFMCommunicate request_size=4 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 13 01 00 [20:59:25]Write to MH i2c: E2 08 00 72 01 80 13 01 00 00 00 00 00 F0 [20:59:25]OFD Sender: No OFD packet to send [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 0E 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 0E 00 72 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 76 [20:59:25]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:59:25]wFMCommunicate OK [20:59:25]SAM_PROTO_GetShiftState done [20:59:25]FM_GetShiftState done [20:59:25]req_shift_opened done [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 09 00 00 [20:59:21]Write to MH i2c: E2 08 00 25 01 80 09 00 00 00 00 00 00 98 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 25 01 00 90 00 9A [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]SAM_PROTO_ClearQueue done [20:59:21]KKMCreateOFDPacket [20:59:21]OFDProtocolAddRootSTLVToBuf [20:59:21]FM_MakeSignedData [20:59:21]FM_MakeSignedData [20:59:21]SAM_PROTO_SignData [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 01 02 [20:59:21]Write to MH i2c: E2 08 00 26 01 80 0D 01 02 00 00 00 00 A0 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 26 01 00 90 00 9B [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]wFMCommunicate request_size=255 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 02 02 FA 03 00 5B 02 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 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 61 00 8A 04 0D 00 34 37 30 30 30 30 [20:59:21]Write to MH i2c: E2 02 01 27 01 80 0D 02 02 FA 00 03 00 5B 02 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 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 61 00 8A 04 0D 00 34 37 30 30 30 30 00 00 BE [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 27 01 00 90 00 9C [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]wFMCommunicate request_size=255 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 02 02 FA 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 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 07 04 06 00 A0 A5 [20:59:21]Write to MH i2c: E2 02 01 28 01 80 0D 02 02 FA 00 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 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 07 04 06 00 A0 A5 00 00 69 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 28 01 00 90 00 9D [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]wFMCommunicate request_size=112 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 02 02 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A8 33 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 35 04 06 00 32 38 25 1E F3 1C [20:59:21]Write to MH i2c: E2 73 00 29 01 80 0D 02 02 6B 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A8 33 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 35 04 06 00 32 38 25 1E F3 1C 00 00 DB [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 29 01 00 90 00 9E [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 03 02 [20:59:21]Write to MH i2c: E2 08 00 2A 01 80 0D 03 02 00 00 00 00 A6 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:21]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 0B 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 0B 00 2A 01 00 F0 4C C0 6C 71 67 70 12 90 00 69 [20:59:22]RAPDU: F0 4C C0 6C 71 67 70 12 90 00 [20:59:22]wFMCommunicate OK [20:59:22]SAM_PROTO_SignData done [20:59:22]FM_MakeSignedData done [20:59:22]CreateOFDProtocolMessage [20:59:22]wFMCommunicate request_size=4 [20:59:22]MH_SAM_APDU [20:59:22]CAPDU: 80 11 00 00 [20:59:22]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:22]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 17 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 FB [20:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [20:59:22]wFMCommunicate OK [20:59:22]CreateOFDProtocolMessage done [20:59:22]OFDSenderStorePacket 19642 [20:59:22]StoreOFDPacket docnum=19642 [20:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 6F 02 00 00 21 A4 67 02 42 13 5A 03 01 00 03 00 5B 02 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 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 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 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 11 00 00 00 00 07 04 06 00 A0 A5 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 A8 33 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BA 4C 00 00 35 04 06 00 32 38 25 1E F3 1C F0 4C C0 6C 71 67 70 12 [20:59:22]CheckFolder [20:59:22]dirname=/storage/ofd_packets [20:59:22]CheckFolder done [20:59:22]ProducePacketName [20:59:22]name=ofd_packets/00019642 [20:59:22]NVStorageSaveData ofd_packets/00019642 [20:59:18]OFD Sender: No OFD packet to send [20:59:19]accept exits with 7 [20:59:19]New connection [20:59:19]New thread 3067182436 created [20:59:19]Thread 3067325796 joined [20:59:19]Waiting for new connection... [20:59:19] Sock 7.Parse request [20:59:19]Sock 7.Check first char [20:59:19]Sock 7.First char is OK [20:59:19]request: POST /json_proto HTTP/1.0 [20:59:19]Method: POST [20:59:19]URL: /json_proto [20:59:19]Method is POST - this is cgi request [20:59:19]url: /json_proto [20:59:19]query_string will be loaded in cgi processing [20:59:19]execute_cgi json_proto POST (null) [20:59:19]execute_cgi path=json_proto method=POST [20:59:19]POST find Content-Length [20:59:19]Host: 172.17.42.73:8080 [20:59:19]Content-Length: 1374 [20:59:19]Content-Type: application/json [20:59:19] [20:59:19]POST finish read [20:59:19]Found Content-Length = 1374 [20:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117548", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:19]execute_script... [20:59:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117548", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:19]POST & json_proto [20:59:19]process_json_proto [20:59:19]json parsed OK: [20:59:19]protocol is kg_v1.0 [20:59:19]action value=close_receipt [20:59:19]process_action close_receipt [20:59:19]cmd_close_receipt [20:59:19]MH_GetDate [20:59:19]Write to MH i2c: F0 00 00 17 01 07 [20:59:19]Write i2c OK [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: F0 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: F0 09 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: F0 09 00 17 01 00 A8 33 EF 66 99 54 47 66 DA [20:59:19]GetLastDocTimeStamp 1726951299 [20:59:19]current date 1726952360 [20:59:19]FM_GetShiftState [20:59:19]SAM_PROTO_GetShiftState [20:59:19]wFMCommunicate request_size=4 [20:59:19]MH_SAM_APDU [20:59:19]CAPDU: 80 13 01 00 [20:59:19]Write to MH i2c: E2 08 00 18 01 80 13 01 00 00 00 00 00 96 [20:59:19]Write i2c OK [20:59:19]MH_I2C_Read... [20:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:19]Read from MH i2c: E2 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 0E 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 0E 00 18 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 1C [20:59:19]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [20:59:19]wFMCommunicate OK [20:59:19]SAM_PROTO_GetShiftState done [20:59:19]FM_GetShiftState done [20:59:19]opened in 1726877463 [20:59:19]opened+sec_in_day 1726963863 [20:59:20]quantity*price = 14400 [20:59:20]sum+1 = 14401 [20:59:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 93 21.09.2024 21:04 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19643 ФПД: 106971931731798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T210453&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19643&fm=106971931731798&tin=02508201610067®Number=0000000000146239&sum=6500 0 [21:04:53]StoreToDocumentArchive [21:04:53]shift 232 fd 19643 [21:04:53]save to /storage/0232/doc_00019643 [21:04:53]save last doc name /storage/0232/doc_00019643 to /storage/kkm_last_doc_name [21:04:53]save OK [21:04:53]Clear old archive folders... [21:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:04:53]tlvbuf is 02091DF0 [21:04:53]SAM_PROTO_ClearQueue [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 09 00 00 [21:04:53]Write to MH i2c: E2 08 00 81 01 80 09 00 00 00 00 00 00 F4 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [21:04:53]RAPDU: 90 00 [21:04:53]wFMCommunicate OK [21:04:53]SAM_PROTO_ClearQueue done [21:04:53]KKMCreateOFDPacket [21:04:53]OFDProtocolAddRootSTLVToBuf [21:04:53]FM_MakeSignedData [21:04:53]FM_MakeSignedData [21:04:53]SAM_PROTO_SignData [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 0D 01 02 [21:04:53]Write to MH i2c: E2 08 00 82 01 80 0D 01 02 00 00 00 00 FC [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 82 01 00 90 00 F7 [21:04:53]RAPDU: 90 00 [21:04:53]wFMCommunicate OK [21:04:53]wFMCommunicate request_size=255 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5D 00 00 00 F4 03 04 00 F5 34 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 [21:04:53]Write to MH i2c: E2 02 01 83 01 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5D 00 00 00 F4 03 04 00 F5 34 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 00 00 4B [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [21:04:53]RAPDU: 90 00 [21:04:53]wFMCommunicate OK [21:04:53]wFMCommunicate request_size=43 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BB 4C 00 00 35 04 06 00 61 4A 57 FD E7 56 [21:04:53]Write to MH i2c: E2 2E 00 84 01 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BB 4C 00 00 35 04 06 00 61 4A 57 FD E7 56 00 00 2C [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [21:04:53]RAPDU: 90 00 [21:04:53]wFMCommunicate OK [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 0D 03 02 [21:04:53]Write to MH i2c: E2 08 00 85 01 80 0D 03 02 00 00 00 00 01 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 0B 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 0B 00 85 01 00 09 7C 18 55 B0 AE D4 F1 90 00 17 [21:04:53]RAPDU: 09 7C 18 55 B0 AE D4 F1 90 00 [21:04:53]wFMCommunicate OK [21:04:53]SAM_PROTO_SignData done [21:04:53]FM_MakeSignedData done [21:04:53]CreateOFDProtocolMessage [21:04:53]wFMCommunicate request_size=4 [21:04:53]MH_SAM_APDU [21:04:53]CAPDU: 80 11 00 00 [21:04:53]Write to MH i2c: E2 08 00 86 01 80 11 00 00 00 00 00 00 01 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:53]Read from MH i2c: E2 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 17 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: E2 17 00 86 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 56 [21:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:04:53]wFMCommunicate OK [21:04:53]CreateOFDProtocolMessage done [21:04:53]OFDSenderStorePacket 19643 [21:04:53]StoreOFDPacket docnum=19643 [21:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 30 01 00 00 1C 41 28 01 50 0F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5D 00 00 00 F4 03 04 00 F5 34 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BB 4C 00 00 35 04 06 00 61 4A 57 FD E7 56 09 7C 18 55 B0 AE D4 F1 [21:04:53]CheckFolder [21:04:53]dirname=/storage/ofd_packets [21:04:53]CheckFolder done [21:04:53]ProducePacketName [21:04:53]name=ofd_packets/00019643 [21:04:53]NVStorageSaveData ofd_packets/00019643 [21:04:53]File name is /storage/ofd_packets/00019643 [21:04:53]Write 334 bytes [21:04:53]NVStorageSaveData done [21:04:53]OFDSenderStorePacket done [21:04:53]KKMCreateOFDPacket done [21:04:53]NVStorageSaveData kkm_last_timestamp [21:04:53]File name is /storage/kkm_last_timestamp [21:04:53]Write 4 bytes [21:04:53]NVStorageSaveData done [21:04:53]ExternCall_PrintAddStr [21:04:53]wPrintStart [21:04:53]Write to MH i2c: 01 00 00 87 01 88 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 07 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FF 0F 9D [21:04:53]RasterBufferAndPrint [21:04:53]line Счет N : (3)117549 [21:04:53]line ИНН: 02508201610067 [21:04:53]line Контрольно-Кассовый Чек [21:04:53]line ПРОДАЖА [21:04:53]line Товар: 4700040114137 [21:04:53]line Султан чай 1л. зел лимон [21:04:53]line 1.000 * 65.00 [21:04:53]line = 65.00 [21:04:53]line НДС 12% НСП 1% [21:04:53]line > о реализуемом товаре [21:04:53]line ИТОГО: 65.00 [21:04:53]line НСП 1% : 0.57 [21:04:53]line НДС 12% : 6.90 [21:04:53]line Наличными: 0.00 [21:04:53]line Безнал.: 65.00 [21:04:53]line Место: АЗС № 93 "Партнер Нефть" [21:04:53]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:04:53]line СНО: Общий режим [21:04:53]line Чек 93 21.09.2024 21:04 [21:04:53]line Смена: 232 ФФД: 1.0 [21:04:53]line ЗНМ: 0300000060 [21:04:53]line РНМ: 0000000000146239 [21:04:53]line Версия ККМ: v1.0 [21:04:53]line Платежная система: Mbank [21:04:53]line ФМ: 0000000000959362 [21:04:53]line ФД: 19643 [21:04:53]line ФПД: 106971931731798 [21:04:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T210453&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19643&fm=106971931731798&tin=02508201610067®Number=0000000000146239&sum=6500 [21:04:54]line 0 [21:04:54]OFD Sender: Processing packet 19643 [packets to send 64, broken 63] [21:04:54]ProducePacketName [21:04:54]name=ofd_packets/00019643 [21:04:54]OFD Sender: To server: pG, [21:04:54]CommunicateWithHost lk.salyk.kg:30040 [21:04:54]ConnectInit lk.salyk.kg [21:04:54]written 0, free lines is 4095 [21:04:54]Write to MH i2c: 01 00 00 B0 01 B1 [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: 01 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: 01 07 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 94 0C 58 [21:04:54]RasterBufferAndPrint [21:04:54]line [21:04:54]line [21:04:54]line [21:04:54]line [21:04:54]line [21:04:54]written 0, free lines is 3223 [21:04:54]MH_Cut [21:04:54]Write to MH i2c: D1 01 00 B7 01 01 8A [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: D1 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: D1 01 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: D1 01 00 B7 01 00 89 [21:04:54]Write to MH i2c: 01 00 00 B8 01 B9 [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]Connected sock=10 [21:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 30 01 00 00 1C 41 28 01 50 0F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5D 00 00 00 F4 03 04 00 F5 34 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BB 4C 00 00 35 04 06 00 61 4A 57 FD E7 56 09 7C 18 55 B0 AE D4 F1 [21:04:55]*** Cut start [21:04:55]*** Partial cut [21:04:55]*** CUTSNS_PIN = 1 [21:04:55]*** CUTSNS_PIN = 0 [21:04:55]*** Brake cut motor [21:04:56]Read from MH i2c: 01 [21:04:56]MH_I2C_Read... [21:04:56]*** Stop cut motor [21:04:56]*** Cut end [21:04:56]Read from MH i2c: 01 07 00 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [21:04:56]process_action close_receipt done [21:04:56]requested_data is exist [21:04:56]produce_requested_data [21:04:56]requested_item fm.sn is exist - process it [21:04:56]wFMCommunicate request_size=4 [21:04:56]MH_SAM_APDU [21:04:56]CAPDU: 80 11 00 00 [21:04:56]Write to MH i2c: E2 08 00 B9 01 80 11 00 00 00 00 00 00 34 [21:04:56]Write i2c OK [21:04:56]MH_I2C_Read... [21:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:56]Read from MH i2c: E2 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 17 00 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 17 00 B9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 89 [21:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:04:56]wFMCommunicate OK [21:04:56]requested_item fd.num is exist - process it [21:04:56]SAM_PROTO_GetFieldsCounters [21:04:56]wFMCommunicate request_size=4 [21:04:56]MH_SAM_APDU [21:04:56]CAPDU: 80 13 00 00 [21:04:56]Write to MH i2c: E2 08 00 BA 01 80 13 00 00 00 00 00 00 37 [21:04:56]Write i2c OK [21:04:56]MH_I2C_Read... [21:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:56]Read from MH i2c: E2 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 62 00 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 62 00 BA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BB 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [21:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BB 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:56]wFMCommunicate OK [21:04:56]SAM_PROTO_GetFieldsCounters done [21:04:56]requested_item shift.num is exist - process it [21:04:56]requested_item shift.opened is exist - process it [21:04:56]req_shift_opened [21:04:56]FM_GetShiftState [21:04:56]SAM_PROTO_GetShiftState [21:04:56]wFMCommunicate request_size=4 [21:04:56]MH_SAM_APDU [21:04:56]CAPDU: 80 13 01 00 [21:04:56]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [21:04:56]Write i2c OK [21:04:56]MH_I2C_Read... [21:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:56]Read from MH i2c: E2 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 0E 00 [21:04:56]MH_I2C_Read... [21:04:56]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 BF [21:04:56]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:04:56]wFMCommunicate OK [21:04:56]SAM_PROTO_GetShiftState done [21:04:56]FM_GetShiftState done [21:04:56]req_shift_opened done [21:04:56]requested_item shift.open_date is exist - process it [21:04:56]req_shift_open_date [21:04:56]req_shift_open_date done [21:04:56]produce_requested_data done [21:04:56]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19643,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:04:56]process_action_free close_receipt [21:04:56]json_value_free [21:04:56]json_value_free done [21:04:56]process_json_proto returns [21:04:56]Send response to host [21:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19643,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:04:56]free response buf [21:04:56]execute_script done [21:04:56]execute_script returns [21:04:56]free content buf [21:04:56]Sock 9.Close socket [21:04:56]Sock 9.Thread stoped [21:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 2D EF 47 00 B8 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 39 35 39 33 36 32 10 04 04 00 BB 4C 00 00 F4 03 04 00 90 DF EE 66 B6 04 01 00 00 08 6A 76 10 A4 5C 05 BD [21:04:57]CommunicateWithHost err = 0 [21:04:57]CheckOFDResponse [21:04:57]1017 (14) - 77093643461234 [21:04:57]1041 (16) - 0000000000959362 [21:04:57]1040 (4) - 19643 [21:04:57]1012 (4) - 21.09.2024 15:00 [21:04:57]1206 (1) - 0 [21:04:57]OFD Sender: Remove packet 19643 [21:04:57]ProducePacketName [21:04:57]name=ofd_packets/00019643 [21:04:57]NVStorageDeleteData [21:04:58]OFD Sender: No OFD packet to send [21:05:00]recv_with_timeout no data received [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:20]recv_with_timeout no data received [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:23]recv_with_timeout no data received [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]recv_with_timeout no data received [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:00]recv_with_timeout no data received [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:15]recv_with_timeout no data received [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:34]recv_with_timeout no data received [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:50]recv_with_timeout no data received [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:36]recv_with_timeout no data received [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]accept exits with 7 [21:10:58]New connection [21:10:58]New thread 3067182436 created [21:10:58]Thread 3067325796 joined [21:10:58]Waiting for new connection... [21:10:58] Sock 7.Parse request [21:10:58]Sock 7.Check first char [21:10:58]Sock 7.First char is OK [21:10:58]request: POST /json_proto HTTP/1.0 [21:10:58]Method: POST [21:10:58]URL: /json_proto [21:10:58]Method is POST - this is cgi request [21:10:58]url: /json_proto [21:10:58]query_string will be loaded in cgi processing [21:10:58]execute_cgi json_proto POST (null) [21:10:58]execute_cgi path=json_proto method=POST [21:10:58]POST find Content-Length [21:10:58]Host: 172.17.42.73:8080 [21:10:58]Content-Length: 771 [21:10:58]Content-Type: application/json [21:10:58] [21:10:58]POST finish read [21:10:58]Found Content-Length = 771 [21:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:58]execute_script... [21:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23699989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:58]POST & json_proto [21:10:58]process_json_proto [21:10:58]json parsed OK: [21:10:58]protocol is kg_v1.0 [21:10:58]action value=close_receipt [21:10:58]process_action close_receipt [21:10:58]cmd_close_receipt [21:10:58]MH_GetDate [21:10:58]Write to MH i2c: F0 00 00 BC 01 AC [21:10:58]Write i2c OK [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 09 00 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: F0 09 00 BC 01 00 63 36 EF 66 99 54 47 66 3D [21:10:58]GetLastDocTimeStamp 1726952693 [21:10:58]current date 1726953059 [21:10:58]FM_GetShiftState [21:10:58]SAM_PROTO_GetShiftState [21:10:58]wFMCommunicate request_size=4 [21:10:58]MH_SAM_APDU [21:10:58]CAPDU: 80 13 01 00 [21:10:58]Write to MH i2c: E2 08 00 BD 01 80 13 01 00 00 00 00 00 3B [21:10:58]Write i2c OK [21:10:58]MH_I2C_Read... [21:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:58]Read from MH i2c: E2 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: E2 0E 00 [21:10:58]MH_I2C_Read... [21:10:58]Read from MH i2c: E2 0E 00 BD 01 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 C1 [21:10:58]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:10:58]wFMCommunicate OK [21:10:58]SAM_PROTO_GetShiftState done [21:10:58]FM_GetShiftState done [21:10:58]opened in 1726877463 [21:10:58]opened+sec_in_day 1726963863 [21:10:58]quantity*price = 100005 [21:10:58]sum+1 = 100006 [21:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 94 21.09.2024 21:10 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19644 ФПД: 59604722677203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T211059&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19644&fm=59604722677203&tin=02508201610067®Number=0000000000146239&sum=100005 [21:10:59]StoreToDocumentArchive [21:10:59]shift 232 fd 19644 [21:10:59]save to /storage/0232/doc_00019644 [21:10:59]save last doc name /storage/0232/doc_00019644 to /storage/kkm_last_doc_name [21:10:59]save OK [21:10:59]Clear old archive folders... [21:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:59]tlvbuf is 0202CB20 [21:10:59]SAM_PROTO_ClearQueue [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 09 00 00 [21:10:59]Write to MH i2c: E2 08 00 CA 01 80 09 00 00 00 00 00 00 3D [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]SAM_PROTO_ClearQueue done [21:10:59]KKMCreateOFDPacket [21:10:59]OFDProtocolAddRootSTLVToBuf [21:10:59]FM_MakeSignedData [21:10:59]FM_MakeSignedData [21:10:59]SAM_PROTO_SignData [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 01 02 [21:10:59]Write to MH i2c: E2 08 00 CB 01 80 0D 01 02 00 00 00 00 45 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=255 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 63 36 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BC 4C 00 00 35 04 06 00 36 [21:10:59]Write to MH i2c: E2 02 01 CC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 63 36 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BC 4C 00 00 35 04 06 00 36 00 00 D1 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=10 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 02 02 05 35 CE 52 75 D3 [21:10:59]Write to MH i2c: E2 0D 00 CD 01 80 0D 02 02 05 00 35 CE 52 75 D3 00 00 EF [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 03 02 [21:10:59]Write to MH i2c: E2 08 00 CE 01 80 0D 03 02 00 00 00 00 4A [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 0B 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 0B 00 CE 01 00 58 03 3F 3F F9 24 B2 F8 90 00 EB [21:10:59]RAPDU: 58 03 3F 3F F9 24 B2 F8 90 00 [21:10:59]wFMCommunicate OK [21:10:59]SAM_PROTO_SignData done [21:10:59]FM_MakeSignedData done [21:10:59]CreateOFDProtocolMessage [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 11 00 00 [21:10:59]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 17 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 9F [21:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:10:59]wFMCommunicate OK [21:10:59]CreateOFDProtocolMessage done [21:10:59]OFDSenderStorePacket 19644 [21:10:59]StoreOFDPacket docnum=19644 [21:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 29 A5 07 01 D7 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 63 36 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BC 4C 00 00 35 04 06 00 36 35 CE 52 75 D3 58 03 3F 3F F9 24 B2 F8 [21:10:59]CheckFolder [21:10:59]dirname=/storage/ofd_packets [21:10:59]CheckFolder done [21:10:59]ProducePacketName [21:10:59]name=ofd_packets/00019644 [21:10:59]NVStorageSaveData ofd_packets/00019644 [21:10:59]File name is /storage/ofd_packets/00019644 [21:10:59]Write 301 bytes [21:10:59]NVStorageSaveData done [21:10:59]OFDSenderStorePacket done [21:10:59]KKMCreateOFDPacket done [21:10:59]NVStorageSaveData kkm_last_timestamp [21:10:59]File name is /storage/kkm_last_timestamp [21:10:59]Write 4 bytes [21:10:59]NVStorageSaveData done [21:10:59]ExternCall_PrintAddStr [21:10:59]wPrintStart [21:10:59]Write to MH i2c: 01 00 00 D0 01 D1 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 07 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 FF 0F E6 [21:10:59]RasterBufferAndPrint [21:10:59]line Счет N : (1)23699989 [21:10:59]line ИНН: 02508201610067 [21:10:59]line Контрольно-Кассовый Чек [21:10:59]line ПРОДАЖА [21:10:59]line ТРК (МРК, ГНК) : 22 [21:10:59]line Товар: 2710124130 [21:10:59]line Аи-92-К-5 [21:10:59]line 14.750 * 67.80 [21:10:59]line = 1000.05 [21:10:59]line НДС 12% НСП 1% [21:10:59]line > о реализуемом товаре [21:10:59]line ИТОГО: 1000.05 [21:10:59]line НСП 1% : 8.85 [21:10:59]line НДС 12% : 106.20 [21:10:59]line Наличными: 0.00 [21:10:59]line Безнал.: 1000.05 [21:10:59]line Место: АЗС № 93 "Партнер Нефть" [21:10:59]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:10:59]line СНО: Общий режим [21:10:59]line Чек 94 21.09.2024 21:10 [21:10:59]line Смена: 232 ФФД: 1.0 [21:10:59]line ЗНМ: 0300000060 [21:10:59]line РНМ: 0000000000146239 [21:10:59]line Версия ККМ: v1.0 [21:10:59]line Платежная система: Mbank [21:10:59]line ФМ: 0000000000959362 [21:10:59]line ФД: 19644 [21:10:59]line ФПД: 59604722677203 [21:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T211059&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19644&fm=59604722677203&tin=02508201610067®Number=0000000000146239&sum=100005 [21:11:00]OFD Sender: Processing packet 19644 [packets to send 64, broken 63] [21:11:00]ProducePacketName [21:11:00]name=ofd_packets/00019644 [21:11:00]OFD Sender: To server: pG, [21:11:00]CommunicateWithHost lk.salyk.kg:30040 [21:11:00]ConnectInit lk.salyk.kg [21:11:00]written 0, free lines is 4095 [21:11:00]Write to MH i2c: 01 00 00 F9 01 FA [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 B2 0C BF [21:11:00]RasterBufferAndPrint [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]written 0, free lines is 3252 [21:11:00]MH_Cut [21:11:00]Write to MH i2c: D1 01 00 00 02 01 D4 [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 01 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 01 00 00 02 00 D3 [21:11:00]Write to MH i2c: 01 00 00 01 02 03 [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:01]*** Cut start [21:11:01]*** Partial cut [21:11:01]*** CUTSNS_PIN = 1 [21:11:01]*** CUTSNS_PIN = 0 [21:11:01]*** Brake cut motor [21:11:02]Read from MH i2c: 01 [21:11:02]MH_I2C_Read... [21:11:02]*** Stop cut motor [21:11:02]*** Cut end [21:11:02]Read from MH i2c: 01 07 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [21:11:02]process_action close_receipt done [21:11:02]requested_data is exist [21:11:02]produce_requested_data [21:11:02]requested_item fm.sn is exist - process it [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 11 00 00 [21:11:02]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D3 [21:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:11:02]wFMCommunicate OK [21:11:02]requested_item fd.num is exist - process it [21:11:02]SAM_PROTO_GetFieldsCounters [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 13 00 00 [21:11:02]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 62 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 62 00 03 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BC 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [21:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BC 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_GetFieldsCounters done [21:11:02]requested_item shift.num is exist - process it [21:11:02]requested_item shift.opened is exist - process it [21:11:02]req_shift_opened [21:11:02]FM_GetShiftState [21:11:02]SAM_PROTO_GetShiftState [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 13 01 00 [21:11:02]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0E 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 09 [21:11:02]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_GetShiftState done [21:11:02]FM_GetShiftState done [21:11:02]req_shift_opened done [21:11:02]requested_item shift.open_date is exist - process it [21:11:02]req_shift_open_date [21:11:02]req_shift_open_date done [21:11:02]produce_requested_data done [21:11:02]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19644,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:11:02]process_action_free close_receipt [21:11:02]json_value_free [21:11:02]json_value_free done [21:11:02]process_json_proto returns [21:11:02]Send response to host [21:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19644,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:11:02]free response buf [21:11:02]execute_script done [21:11:02]execute_script returns [21:11:02]free content buf [21:11:02]Sock 7.Close socket [21:11:02]Sock 7.Thread stoped [21:11:06]Connected sock=11 [21:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0F 01 00 00 29 A5 07 01 D7 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 63 36 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BC 4C 00 00 35 04 06 00 36 35 CE 52 75 D3 58 03 3F 3F F9 24 B2 F8 [21:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 12 F8 47 00 0A 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BC 4C 00 00 F4 03 04 00 03 E1 EE 66 B6 04 01 00 00 F5 EF 3B 01 F0 B2 55 C0 [21:11:08]CommunicateWithHost err = 0 [21:11:08]CheckOFDResponse [21:11:08]1017 (14) - 77093643461234 [21:11:08]1041 (16) - 0000000000959362 [21:11:08]1040 (4) - 19644 [21:11:08]1012 (4) - 21.09.2024 15:06 [21:11:08]1206 (1) - 0 [21:11:08]OFD Sender: Remove packet 19644 [21:11:08]ProducePacketName [21:11:08]name=ofd_packets/00019644 [21:11:08]NVStorageDeleteData [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:20]recv_with_timeout no data received [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:50]recv_with_timeout no data received [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:18]recv_with_timeout no data received [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:36]recv_with_timeout no data received [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:16]recv_with_timeout no data received [21:15:18]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:36]recv_with_timeout no data received [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:03]recv_with_timeout no data received [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:12]recv_with_timeout no data received [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:41]recv_with_timeout no data received [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:27]recv_with_timeout no data received [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:46]accept exits with 9 [21:31:46]New connection [21:31:46]New thread 3067325796 created [21:31:46]Thread 3067182436 joined [21:31:46]Waiting for new connection... [21:31:46] Sock 9.Parse request [21:31:46]Sock 9.Check first char [21:31:46]Sock 9.First char is OK [21:31:46]request: POST /json_proto HTTP/1.0 [21:31:46]Method: POST [21:31:46]URL: /json_proto [21:31:46]Method is POST - this is cgi request [21:31:46]url: /json_proto [21:31:46]query_string will be loaded in cgi processing [21:31:46]execute_cgi json_proto POST (null) [21:31:46]execute_cgi path=json_proto method=POST [21:31:46]POST find Content-Length [21:31:46]Host: 172.17.42.73:8080 [21:31:46]Content-Length: 744 [21:31:46]Content-Type: application/json [21:31:46] [21:31:46]POST finish read [21:31:46]Found Content-Length = 744 [21:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117550", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:46]execute_script... [21:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117550", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:46]POST & json_proto [21:31:46]process_json_proto [21:31:46]json parsed OK: [21:31:46]protocol is kg_v1.0 [21:31:46]action value=close_receipt [21:31:46]process_action close_receipt [21:31:46]cmd_close_receipt [21:31:46]MH_GetDate [21:31:46]Write to MH i2c: F0 00 00 05 02 F6 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 05 02 00 43 3B EF 66 99 54 47 66 6C [21:31:46]GetLastDocTimeStamp 1726953059 [21:31:46]current date 1726954307 [21:31:46]FM_GetShiftState [21:31:46]SAM_PROTO_GetShiftState [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 13 01 00 [21:31:46]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 0B [21:31:46]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_GetShiftState done [21:31:46]FM_GetShiftState done [21:31:46]opened in 1726877463 [21:31:46]opened+sec_in_day 1726963863 [21:31:46]quantity*price = 28800 [21:31:46]sum+1 = 28801 [21:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 0.00 Безнал.: 288.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 95 21.09.2024 21:31 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959362 ФД: 19645 ФПД: 267147044885300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T213147&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19645&fm=267147044885300&tin=02508201610067®Number=0000000000146239&sum=28800 0 [21:31:47]StoreToDocumentArchive [21:31:47]shift 232 fd 19645 [21:31:47]save to /storage/0232/doc_00019645 [21:31:47]save last doc name /storage/0232/doc_00019645 to /storage/kkm_last_doc_name [21:31:47]save OK [21:31:47]Clear old archive folders... [21:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:31:47]tlvbuf is 02081680 [21:31:47]SAM_PROTO_ClearQueue [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 09 00 00 [21:31:47]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [21:31:47]RAPDU: 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_ClearQueue done [21:31:47]KKMCreateOFDPacket [21:31:47]OFDProtocolAddRootSTLVToBuf [21:31:47]FM_MakeSignedData [21:31:47]FM_MakeSignedData [21:31:47]SAM_PROTO_SignData [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 0D 01 02 [21:31:47]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=255 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 43 3B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [21:31:48]Write to MH i2c: E2 02 01 15 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 43 3B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 DD [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=28 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 02 02 17 35 39 33 36 32 10 04 04 00 BD 4C 00 00 35 04 06 00 F2 F8 04 B6 93 34 [21:31:48]Write to MH i2c: E2 1F 00 16 02 80 0D 02 02 17 00 35 39 33 36 32 10 04 04 00 BD 4C 00 00 35 04 06 00 F2 F8 04 B6 93 34 00 00 94 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 03 02 [21:31:48]Write to MH i2c: E2 08 00 17 02 80 0D 03 02 00 00 00 00 94 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 17 02 00 C2 0F 6E CC 8F C7 28 29 90 00 47 [21:31:48]RAPDU: C2 0F 6E CC 8F C7 28 29 90 00 [21:31:48]wFMCommunicate OK [21:31:48]SAM_PROTO_SignData done [21:31:48]FM_MakeSignedData done [21:31:48]CreateOFDProtocolMessage [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 11 00 00 [21:31:48]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 E9 [21:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:31:48]wFMCommunicate OK [21:31:48]CreateOFDProtocolMessage done [21:31:48]OFDSenderStorePacket 19645 [21:31:48]StoreOFDPacket docnum=19645 [21:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 5A 23 19 01 A2 E1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 43 3B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BD 4C 00 00 35 04 06 00 F2 F8 04 B6 93 34 C2 0F 6E CC 8F C7 28 29 [21:31:48]CheckFolder [21:31:48]dirname=/storage/ofd_packets [21:31:48]CheckFolder done [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00019645 [21:31:48]NVStorageSaveData ofd_packets/00019645 [21:31:48]File name is /storage/ofd_packets/00019645 [21:31:48]Write 319 bytes [21:31:48]NVStorageSaveData done [21:31:48]OFDSenderStorePacket done [21:31:48]KKMCreateOFDPacket done [21:31:48]NVStorageSaveData kkm_last_timestamp [21:31:48]File name is /storage/kkm_last_timestamp [21:31:48]Write 4 bytes [21:31:48]NVStorageSaveData done [21:31:48]ExternCall_PrintAddStr [21:31:48]wPrintStart [21:31:48]Write to MH i2c: 01 00 00 19 02 1B [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [21:31:48]RasterBufferAndPrint [21:31:48]line Счет N : (3)117550 [21:31:48]line ИНН: 02508201610067 [21:31:48]line Контрольно-Кассовый Чек [21:31:48]line ПРОДАЖА [21:31:48]line Товар: 47803008 [21:31:48]line Сигареты Winston XS Blue [21:31:48]line 2.000 * 144.00 [21:31:48]line = 288.00 [21:31:48]line НДС 12% НСП 1% [21:31:48]line > о реализуемом товаре [21:31:48]line ИТОГО: 288.00 [21:31:48]line НСП 1% : 2.55 [21:31:48]line НДС 12% : 30.58 [21:31:48]line Наличными: 0.00 [21:31:48]line Безнал.: 288.00 [21:31:48]line Место: АЗС № 93 "Партнер Нефть" [21:31:48]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:31:48]line СНО: Общий режим [21:31:48]line Чек 95 21.09.2024 21:31 [21:31:48]line Смена: 232 ФФД: 1.0 [21:31:48]line ЗНМ: 0300000060 [21:31:48]line РНМ: 0000000000146239 [21:31:48]line Версия ККМ: v1.0 [21:31:48]line Платежная система: Mbank [21:31:48]line ФМ: 0000000000959362 [21:31:48]line ФД: 19645 [21:31:48]line ФПД: 267147044885300 [21:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T213147&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19645&fm=267147044885300&tin=02508201610067®Number=0000000000146239&sum=28800 [21:31:48]line 0 [21:31:48]OFD Sender: Processing packet 19645 [packets to send 64, broken 63] [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00019645 [21:31:48]OFD Sender: To server: pG, [21:31:48]CommunicateWithHost lk.salyk.kg:30040 [21:31:48]ConnectInit lk.salyk.kg [21:31:48]written 0, free lines is 4095 [21:31:49]Write to MH i2c: 01 00 00 42 02 44 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 91 0C E8 [21:31:49]RasterBufferAndPrint [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]written 0, free lines is 3219 [21:31:49]MH_Cut [21:31:49]Write to MH i2c: D1 01 00 49 02 01 1D [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 49 02 00 1C [21:31:49]Write to MH i2c: 01 00 00 4A 02 4C [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:50]*** Cut start [21:31:50]*** Partial cut [21:31:50]*** CUTSNS_PIN = 1 [21:31:50]*** CUTSNS_PIN = 0 [21:31:50]*** Brake cut motor [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]*** Stop cut motor [21:31:50]*** Cut end [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [21:31:50]process_action close_receipt done [21:31:50]requested_data is exist [21:31:50]produce_requested_data [21:31:50]requested_item fm.sn is exist - process it [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 11 00 00 [21:31:50]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1C [21:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:31:50]wFMCommunicate OK [21:31:50]requested_item fd.num is exist - process it [21:31:50]SAM_PROTO_GetFieldsCounters [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 00 00 [21:31:50]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 4C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetFieldsCounters done [21:31:51]requested_item shift.num is exist - process it [21:31:51]requested_item shift.opened is exist - process it [21:31:51]req_shift_opened [21:31:51]FM_GetShiftState [21:31:51]SAM_PROTO_GetShiftState [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 01 00 [21:31:51]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 52 [21:31:51]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetShiftState done [21:31:51]FM_GetShiftState done [21:31:51]req_shift_opened done [21:31:51]requested_item shift.open_date is exist - process it [21:31:51]req_shift_open_date [21:31:51]req_shift_open_date done [21:31:51]produce_requested_data done [21:31:51]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19645,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:31:51]process_action_free close_receipt [21:31:51]json_value_free [21:31:51]json_value_free done [21:31:51]process_json_proto returns [21:31:51]Send response to host [21:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19645,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:31:51]free response buf [21:31:51]execute_script done [21:31:51]execute_script returns [21:31:51]free content buf [21:31:51]Sock 9.Close socket [21:31:51]Sock 9.Thread stoped [21:31:53]Connected sock=11 [21:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 21 01 00 00 5A 23 19 01 A2 E1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 43 3B EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BD 4C 00 00 35 04 06 00 F2 F8 04 B6 93 34 C2 0F 6E CC 8F C7 28 29 [21:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 86 F3 47 00 BD E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BD 4C 00 00 F4 03 04 00 E0 E5 EE 66 B6 04 01 00 00 69 0C 7C 25 72 EE 1C D3 [21:31:53]CommunicateWithHost err = 0 [21:31:53]CheckOFDResponse [21:31:53]1017 (14) - 77093643461234 [21:31:53]1041 (16) - 0000000000959362 [21:31:53]1040 (4) - 19645 [21:31:53]1012 (4) - 21.09.2024 15:27 [21:31:53]1206 (1) - 0 [21:31:53]OFD Sender: Remove packet 19645 [21:31:53]ProducePacketName [21:31:53]name=ofd_packets/00019645 [21:31:53]NVStorageDeleteData [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:19]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:42]recv_with_timeout no data received [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 57 02 00 00 F6 03 01 00 01 F7 03 01 00 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 30 [21:36:31]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 [21:36:31]wFMCommunicate OK [21:36:31]wFMCommunicate request_size=4 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 17 00 00 [21:36:31]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 58 02 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 9A [21:36:31]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [21:36:31]wFMCommunicate OK [21:36:31]wFMCommunicate request_size=4 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 17 00 00 [21:36:31]Write to MH i2c: E2 08 00 59 02 80 17 00 00 00 00 00 00 DB [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 FD 00 59 02 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 4A [21:36:31]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 [21:36:31]wFMCommunicate OK [21:36:31]wFMCommunicate request_size=4 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 17 00 00 [21:36:31]Write to MH i2c: E2 08 00 5A 02 80 17 00 00 00 00 00 00 DC [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 D3 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 D3 00 5A 02 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [21:36:32]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:36:32]wFMCommunicate OK [21:36:32]SAM_PROTO_GetShiftData done [21:36:32]requested_item shift.sale.total_cash is exist - process it [21:36:32]requested_item shift.sale_refund.total is exist - process it [21:36:32]requested_item shift.sale_refund.total_cash is exist - process it [21:36:32]requested_item shift.buy.total is exist - process it [21:36:32]requested_item shift.buy.total_cash is exist - process it [21:36:32]produce_requested_data done [21:36:32]produce_requested_data return {"fm.sale.total":17454624.93,"fm.sale_refund.total":74899.00,"fm.buy.total":0.00,"shift.sale.total":79570.48,"shift.sale.total_cash":58722.00,"shift.sale_refund.total":77.00,"shift.sale_refund.total_cash":77.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:36:32]process_action_free get_value [21:36:32]json_value_free [21:36:32]json_value_free done [21:36:32]process_json_proto returns [21:36:32]Send response to host [21:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17454624.93,"fm.sale_refund.total":74899.00,"fm.buy.total":0.00,"shift.sale.total":79570.48,"shift.sale.total_cash":58722.00,"shift.sale_refund.total":77.00,"shift.sale_refund.total_cash":77.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:36:32]free response buf [21:36:32]execute_script done [21:36:32]execute_script returns [21:36:32]free content buf [21:36:32]Sock 9.Close socket [21:36:32]Sock 9.Thread stoped [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:51]recv_with_timeout no data received [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:01]recv_with_timeout no data received [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:36:28]accept exits with 10 [21:36:28]New connection [21:36:28]New thread 3067182436 created [21:36:28]Thread 3067325796 joined [21:36:28]Waiting for new connection... [21:36:28] Sock 10.Parse request [21:36:28]Sock 10.Check first char [21:36:28]Sock 10.First char is OK [21:36:28]request: POST /json_proto HTTP/1.0 [21:36:28]Method: POST [21:36:28]URL: /json_proto [21:36:28]Method is POST - this is cgi request [21:36:28]url: /json_proto [21:36:28]query_string will be loaded in cgi processing [21:36:28]execute_cgi json_proto POST (null) [21:36:28]execute_cgi path=json_proto method=POST [21:36:28]POST find Content-Length [21:36:28]Host: 172.17.42.73:8080 [21:36:28]Content-Length: 215 [21:36:28]Content-Type: application/json [21:36:28] [21:36:28]POST finish read [21:36:28]Found Content-Length = 215 [21:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:28]execute_script... [21:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:28]POST & json_proto [21:36:28]process_json_proto [21:36:28]json parsed OK: [21:36:28]protocol is kg_v1.0 [21:36:28]action value=get_value [21:36:28]process_action get_value [21:36:28]cmd_get_value [21:36:28]process_action get_value done [21:36:28]requested_data is exist [21:36:28]produce_requested_data [21:36:28]requested_item kkm.sn is exist - process it [21:36:28]requested_item kkm.ver is exist - process it [21:36:28]requested_item fm.sn is exist - process it [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 11 00 00 [21:36:28]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1F [21:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:36:28]wFMCommunicate OK [21:36:28]requested_item fd.num is exist - process it [21:36:28]SAM_PROTO_GetFieldsCounters [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 13 00 00 [21:36:28]Write to MH i2c: E2 08 00 4F 02 80 13 00 00 00 00 00 00 CD [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 62 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 62 00 4F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [21:36:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BD 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_GetFieldsCounters done [21:36:28]requested_item shift.num is exist - process it [21:36:28]requested_item shift.opened is exist - process it [21:36:28]req_shift_opened [21:36:28]FM_GetShiftState [21:36:28]SAM_PROTO_GetShiftState [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 13 01 00 [21:36:28]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0E 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 55 [21:36:28]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_GetShiftState done [21:36:28]FM_GetShiftState done [21:36:28]req_shift_opened done [21:36:28]requested_item shift.open_date is exist - process it [21:36:28]req_shift_open_date [21:36:28]req_shift_open_date done [21:36:28]produce_requested_data done [21:36:28]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19645,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:36:28]process_action_free get_value [21:36:28]json_value_free [21:36:28]json_value_free done [21:36:28]process_json_proto returns [21:36:28]Send response to host [21:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19645,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:36:28]free response buf [21:36:28]execute_script done [21:36:28]execute_script returns [21:36:28]free content buf [21:36:28]Sock 10.Close socket [21:36:28]Sock 10.Thread stoped [21:36:28]accept exits with 9 [21:36:28]New connection [21:36:28]New thread 3067325796 created [21:36:28]Thread 3067182436 joined [21:36:28]Waiting for new connection... [21:36:28] Sock 9.Parse request [21:36:28]Sock 9.Check first char [21:36:28]Sock 9.First char is OK [21:36:28]request: POST /json_proto HTTP/1.0 [21:36:28]Method: POST [21:36:28]URL: /json_proto [21:36:28]Method is POST - this is cgi request [21:36:28]url: /json_proto [21:36:28]query_string will be loaded in cgi processing [21:36:28]execute_cgi json_proto POST (null) [21:36:28]execute_cgi path=json_proto method=POST [21:36:28]POST find Content-Length [21:36:28]Host: 172.17.42.73:8080 [21:36:28]Content-Length: 331 [21:36:28]Content-Type: application/json [21:36:28] [21:36:28]POST finish read [21:36:28]Found Content-Length = 331 [21:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:36:28]execute_script... [21:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:36:28]POST & json_proto [21:36:28]process_json_proto [21:36:28]json parsed OK: [21:36:28]protocol is kg_v1.0 [21:36:28]action value=get_value [21:36:28]process_action get_value [21:36:28]cmd_get_value [21:36:28]process_action get_value done [21:36:28]requested_data is exist [21:36:28]produce_requested_data [21:36:28]requested_item fm.sale.total is exist - process it [21:36:28]SAM_PROTO_GetFMData [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 13 03 00 [21:36:28]Write to MH i2c: E2 08 00 51 02 80 13 03 00 00 00 00 00 D2 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:36:29]Read from MH i2c: E2 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 FD 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 FD 00 51 02 00 C1 04 85 04 BD 04 6E 04 04 00 ED 4A 00 00 69 04 A0 00 6F 04 04 00 D4 4A 00 00 B1 04 04 00 DD A4 09 68 70 04 04 00 0C 00 CE 43 72 04 04 00 D1 A4 3B 24 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 7F 93 0C 0B 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 0C AE EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 6C 49 72 70 04 03 00 BC 12 72 72 04 02 00 B0 36 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 3E 23 0C EF 03 09 00 F6 03 01 90 00 B5 [21:36:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 ED 4A 00 00 69 04 A0 00 6F 04 04 00 D4 4A 00 00 B1 04 04 00 DD A4 09 68 70 04 04 00 0C 00 CE 43 72 04 04 00 D1 A4 3B 24 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 7F 93 0C 0B 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 0C AE EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 6C 49 72 70 04 03 00 BC 12 72 72 04 02 00 B0 36 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 3E 23 0C EF 03 09 00 F6 03 01 90 00 [21:36:29]wFMCommunicate OK [21:36:29]wFMCommunicate request_size=4 [21:36:29]MH_SAM_APDU [21:36:29]CAPDU: 80 17 00 00 [21:36:29]Write to MH i2c: E2 08 00 52 02 80 17 00 00 00 00 00 00 D4 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:29]Read from MH i2c: E2 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 FD 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 FD 00 52 02 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 02 [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]recv_with_timeout no data received [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:31]accept exits with 10 [21:39:31]New connection [21:39:31]New thread 3067182436 created [21:39:31]Thread 3067325796 joined [21:39:31]Waiting for new connection... [21:39:31] Sock 10.Parse request [21:39:31]Sock 10.Check first char [21:39:31]Sock 10.First char is OK [21:39:31]request: POST /json_proto HTTP/1.0 [21:39:31]Method: POST [21:39:31]URL: /json_proto [21:39:31]Method is POST - this is cgi request [21:39:31]url: /json_proto [21:39:31]query_string will be loaded in cgi processing [21:39:31]execute_cgi json_proto POST (null) [21:39:31]execute_cgi path=json_proto method=POST [21:39:31]POST find Content-Length [21:39:31]Host: 172.17.42.73:8080 [21:39:31]Content-Length: 987 [21:39:31]Content-Type: application/json [21:39:31] [21:39:31]POST finish read [21:39:31]Found Content-Length = 987 [21:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23700003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 50.670, "sum" : 3810.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.67 \u0441\u043E\u043C", "deposit" : 3810.00, "total" : 3810.00, "payments": [ { "type": 0, "sum" : 3810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:31]execute_script... [21:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)23700003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 50.670, "sum" : 3810.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 93\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.67 \u0441\u043E\u043C", "deposit" : 3810.00, "total" : 3810.00, "payments": [ { "type": 0, "sum" : 3810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:31]POST & json_proto [21:39:31]process_json_proto [21:39:31]json parsed OK: [21:39:31]protocol is kg_v1.0 [21:39:31]action value=close_receipt [21:39:31]process_action close_receipt [21:39:31]cmd_close_receipt [21:39:31]MH_GetDate [21:39:31]Write to MH i2c: F0 00 00 5B 02 4C [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 09 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 09 00 5B 02 00 14 3D EF 66 99 54 47 66 95 [21:39:31]GetLastDocTimeStamp 1726954307 [21:39:31]current date 1726954772 [21:39:31]FM_GetShiftState [21:39:31]SAM_PROTO_GetShiftState [21:39:31]wFMCommunicate request_size=4 [21:39:31]MH_SAM_APDU [21:39:31]CAPDU: 80 13 01 00 [21:39:31]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0E 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 61 [21:39:31]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:39:31]wFMCommunicate OK [21:39:31]SAM_PROTO_GetShiftState done [21:39:31]FM_GetShiftState done [21:39:31]opened in 1726877463 [21:39:31]opened+sec_in_day 1726963863 [21:39:31]quantity*price = 381038 [21:39:31]sum+1 = 381039 [21:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 3810.00 Внесено: 3810.00 СДАЧА: 0.00 НСП 1% : 33.72 НДС 12% : 404.64 Наличными: 3810.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 96 21.09.2024 21:39 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 Дисконтная программа ДТ номер 93 сэкономлено 50.67 сом ФМ: 0000000000959362 ФД: 19646 ФПД: 175267737791283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T213932&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19646&fm=175267737791283&tin=02508201610067®Number=0000000000146239&sum=381000 [21:39:32]StoreToDocumentArchive [21:39:32]shift 232 fd 19646 [21:39:32]save to /storage/0232/doc_00019646 [21:39:32]save last doc name /storage/0232/doc_00019646 to /storage/kkm_last_doc_name [21:39:32]save OK [21:39:32]Clear old archive folders... [21:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:39:32]tlvbuf is 02028EB0 [21:39:32]SAM_PROTO_ClearQueue [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 09 00 00 [21:39:32]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_ClearQueue done [21:39:32]KKMCreateOFDPacket [21:39:32]OFDProtocolAddRootSTLVToBuf [21:39:32]FM_MakeSignedData [21:39:32]FM_MakeSignedData [21:39:32]SAM_PROTO_SignData [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 01 02 [21:39:32]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=255 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE C5 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 9E 00 00 00 00 07 04 06 00 48 D0 05 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 14 3D EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 35 04 06 00 [21:39:32]Write to MH i2c: E2 02 01 6B 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE C5 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 9E 00 00 00 00 07 04 06 00 48 D0 05 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 14 3D EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 35 04 06 00 00 00 B8 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=11 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 02 02 06 9F 67 B3 40 6B 33 [21:39:32]Write to MH i2c: E2 0E 00 6C 02 80 0D 02 02 06 00 9F 67 B3 40 6B 33 00 00 8B [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 03 02 [21:39:32]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0B 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0B 00 6D 02 00 1E 03 E3 35 F7 B6 3D 9B 90 00 A9 [21:39:32]RAPDU: 1E 03 E3 35 F7 B6 3D 9B 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_SignData done [21:39:32]FM_MakeSignedData done [21:39:32]CreateOFDProtocolMessage [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 11 00 00 [21:39:32]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 3F [21:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:39:32]wFMCommunicate OK [21:39:32]CreateOFDProtocolMessage done [21:39:32]OFDSenderStorePacket 19646 [21:39:32]StoreOFDPacket docnum=19646 [21:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 C3 09 08 01 CC 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE C5 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 9E 00 00 00 00 07 04 06 00 48 D0 05 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 14 3D EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 35 04 06 00 9F 67 B3 40 6B 33 1E 03 E3 35 F7 B6 3D 9B [21:39:32]CheckFolder [21:39:32]dirname=/storage/ofd_packets [21:39:32]CheckFolder done [21:39:32]ProducePacketName [21:39:32]name=ofd_packets/00019646 [21:39:32]NVStorageSaveData ofd_packets/00019646 [21:39:32]File name is /storage/ofd_packets/00019646 [21:39:32]Write 302 bytes [21:39:32]NVStorageSaveData done [21:39:32]OFDSenderStorePacket done [21:39:32]KKMCreateOFDPacket done [21:39:32]NVStorageSaveData kkm_last_timestamp [21:39:32]File name is /storage/kkm_last_timestamp [21:39:32]Write 4 bytes [21:39:32]NVStorageSaveData done [21:39:32]ExternCall_PrintAddStr [21:39:32]wPrintStart [21:39:32]Write to MH i2c: 01 00 00 6F 02 71 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [21:39:32]RasterBufferAndPrint [21:39:32]line Счет N : (1)23700003 [21:39:32]line ИНН: 02508201610067 [21:39:32]line Контрольно-Кассовый Чек [21:39:32]line ПРОДАЖА [21:39:32]line ТРК (МРК, ГНК) : 61 [21:39:32]line Товар: 2710194210 [21:39:32]line ДТ(л)-К-5 [21:39:32]line 50.670 * 75.20 [21:39:32]line = 3810.38 [21:39:32]line НДС 12% НСП 1% [21:39:32]line > о реализуемом товаре [21:39:32]line ОКРУГЛЕНИЕ: -0.38 [21:39:32]line ИТОГО: 3810.00 [21:39:32]line Внесено: 3810.00 [21:39:32]line СДАЧА: 0.00 [21:39:32]line НСП 1% : 33.72 [21:39:32]line НДС 12% : 404.64 [21:39:32]line Наличными: 3810.00 [21:39:32]line Безнал.: 0.00 [21:39:32]line Место: АЗС № 93 "Партнер Нефть" [21:39:32]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:39:32]line СНО: Общий режим [21:39:32]line Чек 96 21.09.2024 21:39 [21:39:32]line Смена: 232 ФФД: 1.0 [21:39:32]line ЗНМ: 0300000060 [21:39:32]line РНМ: 0000000000146239 [21:39:32]line Версия ККМ: v1.0 [21:39:32]line [21:39:32]line Дисконтная программа [21:39:32]line ДТ [21:39:32]line номер 93 [21:39:32]line сэкономлено 50.67 сом [21:39:32]line ФМ: 0000000000959362 [21:39:32]line ФД: 19646 [21:39:32]line ФПД: 175267737791283 [21:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T213932&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19646&fm=175267737791283&tin=02508201610067®Number=0000000000146239&sum=381000 [21:39:33]OFD Sender: Processing packet 19646 [packets to send 64, broken 63] [21:39:33]ProducePacketName [21:39:33]name=ofd_packets/00019646 [21:39:33]OFD Sender: To server: pG, [21:39:33]CommunicateWithHost lk.salyk.kg:30040 [21:39:33]ConnectInit lk.salyk.kg [21:39:33]written 0, free lines is 4095 [21:39:33]Write to MH i2c: 01 00 00 9F 02 A1 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 13 0C C7 [21:39:33]RasterBufferAndPrint [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]written 0, free lines is 3095 [21:39:33]MH_Cut [21:39:33]Write to MH i2c: D1 01 00 A6 02 01 7A [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 01 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 01 00 A6 02 00 79 [21:39:33]Write to MH i2c: 01 00 00 A7 02 A9 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:34]Connected sock=7 [21:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 C3 09 08 01 CC 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE C5 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 9E 00 00 00 00 07 04 06 00 48 D0 05 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 14 3D EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 35 04 06 00 9F 67 B3 40 6B 33 1E 03 E3 35 F7 B6 3D 9B [21:39:34]*** Cut start [21:39:34]*** Partial cut [21:39:34]*** CUTSNS_PIN = 1 [21:39:34]*** CUTSNS_PIN = 0 [21:39:35]*** Brake cut motor [21:39:35]Read from MH i2c: 01 [21:39:35]MH_I2C_Read... [21:39:35]*** Stop cut motor [21:39:35]*** Cut end [21:39:35]Read from MH i2c: 01 07 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [21:39:35]process_action close_receipt done [21:39:35]requested_data is exist [21:39:35]produce_requested_data [21:39:35]requested_item fm.sn is exist - process it [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 11 00 00 [21:39:35]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 17 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 79 [21:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:39:35]wFMCommunicate OK [21:39:35]requested_item fd.num is exist - process it [21:39:35]SAM_PROTO_GetFieldsCounters [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 13 00 00 [21:39:35]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 62 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 62 00 A9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BE 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BE 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:35]wFMCommunicate OK [21:39:35]SAM_PROTO_GetFieldsCounters done [21:39:35]requested_item shift.num is exist - process it [21:39:35]requested_item shift.opened is exist - process it [21:39:35]req_shift_opened [21:39:35]FM_GetShiftState [21:39:35]SAM_PROTO_GetShiftState [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 13 01 00 [21:39:35]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 0E 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 AF [21:39:35]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:39:35]wFMCommunicate OK [21:39:35]SAM_PROTO_GetShiftState done [21:39:35]FM_GetShiftState done [21:39:35]req_shift_opened done [21:39:35]requested_item shift.open_date is exist - process it [21:39:35]req_shift_open_date [21:39:35]req_shift_open_date done [21:39:35]produce_requested_data done [21:39:35]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19646,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:39:35]process_action_free close_receipt [21:39:35]json_value_free [21:39:35]json_value_free done [21:39:35]process_json_proto returns [21:39:35]Send response to host [21:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19646,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:39:35]free response buf [21:39:35]execute_script done [21:39:35]execute_script returns [21:39:35]free content buf [21:39:35]Sock 10.Close socket [21:39:35]Sock 10.Thread stoped [21:39:39]recv_with_timeout no data received [21:39:39]CommunicateWithHost answer receiving error [21:39:39]CommunicateWithHost err = -3 [21:39:39]OFD Sender: Server communicate error [21:39:43]recv_with_timeout no data received [21:39:44]OFD Sender: Processing packet 19646 [packets to send 64, broken 63] [21:39:44]ProducePacketName [21:39:44]name=ofd_packets/00019646 [21:39:44]OFD Sender: To server: pG, [21:39:44]CommunicateWithHost lk.salyk.kg:30040 [21:39:44]ConnectInit lk.salyk.kg [21:39:45]Connected sock=7 [21:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 01 00 00 C3 09 08 01 CC 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE C5 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 9E 00 00 00 00 07 04 06 00 48 D0 05 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 14 3D EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 35 04 06 00 9F 67 B3 40 6B 33 1E 03 E3 35 F7 B6 3D 9B [21:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 CE 71 47 00 13 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BE 4C 00 00 F4 03 04 00 B9 E7 EE 66 B6 04 01 00 00 2F AD 69 A0 80 31 6A B1 [21:39:46]CommunicateWithHost err = 0 [21:39:46]CheckOFDResponse [21:39:46]1017 (14) - 77093643461234 [21:39:46]1041 (16) - 0000000000959362 [21:39:46]1040 (4) - 19646 [21:39:46]1012 (4) - 21.09.2024 15:35 [21:39:46]1206 (1) - 0 [21:39:46]OFD Sender: Remove packet 19646 [21:39:46]ProducePacketName [21:39:46]name=ofd_packets/00019646 [21:39:46]NVStorageDeleteData [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:53]recv_with_timeout no data received [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:03]recv_with_timeout no data received [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send 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 90 00 F7 [21:36:29]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 02 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 90 00 [21:36:29]wFMCommunicate OK [21:36:29]wFMCommunicate request_size=4 [21:36:29]MH_SAM_APDU [21:36:29]CAPDU: 80 17 00 00 [21:36:29]Write to MH i2c: E2 08 00 53 02 80 17 00 00 00 00 00 00 D5 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]OFD Sender: No OFD packet to send [21:36:29]Read from MH i2c: E2 [21:36:29]MH_I2C_Read... [21:36:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:29]Read from MH i2c: E2 FD 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 FD 00 53 02 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 75 [21:36:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [21:36:29]wFMCommunicate OK [21:36:29]wFMCommunicate request_size=4 [21:36:29]MH_SAM_APDU [21:36:29]CAPDU: 80 17 00 00 [21:36:29]Write to MH i2c: E2 08 00 54 02 80 17 00 00 00 00 00 00 D6 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 FD 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 FD 00 54 02 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 5B [21:36:30]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7[21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:10]recv_with_timeout no data received [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:29]recv_with_timeout no data received [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:26]accept exits with 9 [21:45:26]New connection [21:45:26]New thread 3067325796 created [21:45:26]Thread 3067182436 joined [21:45:26]Waiting for new connection... [21:45:26] Sock 9.Parse request [21:45:26]Sock 9.Check first char [21:45:26]Sock 9.First char is OK [21:45:26]request: POST /json_proto HTTP/1.0 [21:45:26]Method: POST [21:45:26]URL: /json_proto [21:45:26]Method is POST - this is cgi request [21:45:26]url: /json_proto [21:45:26]query_string will be loaded in cgi processing [21:45:26]execute_cgi json_proto POST (null) [21:45:26]execute_cgi path=json_proto method=POST [21:45:26]POST find Content-Length [21:45:26]Host: 172.17.42.73:8080 [21:45:26]Content-Length: 701 [21:45:26]Content-Type: application/json [21:45:26] [21:45:26]POST finish read [21:45:26]Found Content-Length = 701 [21:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117551", "tax_sys" : 0, "items" : [ { "code": "8809010083469", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:26]execute_script... [21:45:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117551", "tax_sys" : 0, "items" : [ { "code": "8809010083469", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:26]POST & json_proto [21:45:26]process_json_proto [21:45:26]json parsed OK: [21:45:26]protocol is kg_v1.0 [21:45:26]action value=close_receipt [21:45:26]process_action close_receipt [21:45:26]cmd_close_receipt [21:45:26]MH_GetDate [21:45:26]Write to MH i2c: F0 00 00 AB 02 9C [21:45:26]Write i2c OK [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 09 00 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 09 00 AB 02 00 77 3E EF 66 99 54 47 66 49 [21:45:26]GetLastDocTimeStamp 1726954772 [21:45:26]current date 1726955127 [21:45:26]FM_GetShiftState [21:45:26]SAM_PROTO_GetShiftState [21:45:26]wFMCommunicate request_size=4 [21:45:26]MH_SAM_APDU [21:45:26]CAPDU: 80 13 01 00 [21:45:26]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [21:45:26]Write i2c OK [21:45:26]MH_I2C_Read... [21:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:26]Read from MH i2c: E2 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: E2 0E 00 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 B1 [21:45:26]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:45:26]wFMCommunicate OK [21:45:26]SAM_PROTO_GetShiftState done [21:45:26]FM_GetShiftState done [21:45:26]opened in 1726877463 [21:45:26]opened+sec_in_day 1726963863 [21:45:26]quantity*price = 19000 [21:45:26]sum+1 = 19001 [21:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 97 21.09.2024 21:45 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19647 ФПД: 252988172090114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T214528&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19647&fm=252988172090114&tin=02508201610067®Number=0000000000146239&sum=19000 0 [21:45:28]StoreToDocumentArchive [21:45:28]shift 232 fd 19647 [21:45:28]save to /storage/0232/doc_00019647 [21:45:28]save last doc name /storage/0232/doc_00019647 to /storage/kkm_last_doc_name [21:45:28]save OK [21:45:28]Clear old archive folders... [21:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=297 [21:45:28]tlvbuf is 02083990 [21:45:28]SAM_PROTO_ClearQueue [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 09 00 00 [21:45:28]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]SAM_PROTO_ClearQueue done [21:45:28]KKMCreateOFDPacket [21:45:28]OFDProtocolAddRootSTLVToBuf [21:45:28]FM_MakeSignedData [21:45:28]FM_MakeSignedData [21:45:28]SAM_PROTO_SignData [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 01 02 [21:45:28]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]wFMCommunicate request_size=255 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 38 33 34 36 39 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 78 3E EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [21:45:28]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 38 33 34 36 39 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 78 3E EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 B4 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]wFMCommunicate request_size=56 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BF 4C 00 00 35 04 06 00 E6 17 66 21 3B 02 [21:45:28]Write to MH i2c: E2 3B 00 BC 02 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BF 4C 00 00 35 04 06 00 E6 17 66 21 3B 02 00 00 91 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 03 02 [21:45:28]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 0B 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 0B 00 BD 02 00 2F 22 59 04 DC 53 EA 72 90 00 74 [21:45:28]RAPDU: 2F 22 59 04 DC 53 EA 72 90 00 [21:45:28]wFMCommunicate OK [21:45:28]SAM_PROTO_SignData done [21:45:28]FM_MakeSignedData done [21:45:28]CreateOFDProtocolMessage [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 11 00 00 [21:45:28]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 17 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 8F [21:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:45:28]wFMCommunicate OK [21:45:28]CreateOFDProtocolMessage done [21:45:28]OFDSenderStorePacket 19647 [21:45:28]StoreOFDPacket docnum=19647 [21:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3D 01 00 00 4F F1 35 01 89 D7 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 38 33 34 36 39 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 78 3E EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BF 4C 00 00 35 04 06 00 E6 17 66 21 3B 02 2F 22 59 04 DC 53 EA 72 [21:45:28]CheckFolder [21:45:28]dirname=/storage/ofd_packets [21:45:28]CheckFolder done [21:45:28]ProducePacketName [21:45:28]name=ofd_packets/00019647 [21:45:28]NVStorageSaveData ofd_packets/00019647 [21:45:28]File name is /storage/ofd_packets/00019647 [21:45:28]Write 347 bytes [21:45:28]NVStorageSaveData done [21:45:28]OFDSenderStorePacket done [21:45:28]KKMCreateOFDPacket done [21:45:28]NVStorageSaveData kkm_last_timestamp [21:45:28]File name is /storage/kkm_last_timestamp [21:45:28]Write 4 bytes [21:45:28]NVStorageSaveData done [21:45:28]ExternCall_PrintAddStr [21:45:28]wPrintStart [21:45:28]Write to MH i2c: 01 00 00 BF 02 C1 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 07 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [21:45:28]RasterBufferAndPrint [21:45:28]line Счет N : (3)117551 [21:45:28]line ИНН: 02508201610067 [21:45:28]line Контрольно-Кассовый Чек [21:45:28]line ПРОДАЖА [21:45:28]line Товар: 8809010083469 [21:45:28]line Салфетка NEW KUMO микрофиб желтая [21:45:28]line 1.000 * 190.00 [21:45:28]line = 190.00 [21:45:28]line НДС 12% НСП 1% [21:45:28]line > о реализуемом товаре [21:45:28]line ИТОГО: 190.00 [21:45:28]line НСП 1% : 1.68 [21:45:28]line НДС 12% : 20.18 [21:45:28]line Наличными: 190.00 [21:45:28]line Безнал.: 0.00 [21:45:28]line Место: АЗС № 93 "Партнер Нефть" [21:45:28]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:45:28]line СНО: Общий режим [21:45:28]line Чек 97 21.09.2024 21:45 [21:45:28]line Смена: 232 ФФД: 1.0 [21:45:28]line ЗНМ: 0300000060 [21:45:28]line РНМ: 0000000000146239 [21:45:28]line Версия ККМ: v1.0 [21:45:28]line ФМ: 0000000000959362 [21:45:28]line ФД: 19647 [21:45:28]line ФПД: 252988172090114 [21:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T214528&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19647&fm=252988172090114&tin=02508201610067®Number=0000000000146239&sum=19000 [21:45:28]line 0 [21:45:28]OFD Sender: Processing packet 19647 [packets to send 64, broken 63] [21:45:28]ProducePacketName [21:45:28]name=ofd_packets/00019647 [21:45:28]OFD Sender: To server: pG, [21:45:28]CommunicateWithHost lk.salyk.kg:30040 [21:45:28]ConnectInit lk.salyk.kg [21:45:28]written 0, free lines is 4095 [21:45:29]Connected sock=10 [21:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 3D 01 00 00 4F F1 35 01 89 D7 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 38 33 34 36 39 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 78 3E EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BF 4C 00 00 35 04 06 00 E6 17 66 21 3B 02 2F 22 59 04 DC 53 EA 72 [21:45:29]Write to MH i2c: 01 00 00 E8 02 EA [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 07 00 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 A1 0C 9E [21:45:29]RasterBufferAndPrint [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]written 0, free lines is 3237 [21:45:29]MH_Cut [21:45:29]Write to MH i2c: D1 01 00 EF 02 01 C3 [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 01 00 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 01 00 EF 02 00 C2 [21:45:29]Write to MH i2c: 01 00 00 F0 02 F2 [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 A6 B3 47 00 C2 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 BF 4C 00 00 F4 03 04 00 10 E9 EE 66 B6 04 01 00 00 21 A0 40 69 22 7B F8 70 [21:45:29]CommunicateWithHost err = 0 [21:45:29]CheckOFDResponse [21:45:29]1017 (14) - 77093643461234 [21:45:29]1041 (16) - 0000000000959362 [21:45:29]1040 (4) - 19647 [21:45:29]1012 (4) - 21.09.2024 15:41 [21:45:29]1206 (1) - 0 [21:45:29]OFD Sender: Remove packet 19647 [21:45:29]ProducePacketName [21:45:29]name=ofd_packets/00019647 [21:45:29]NVStorageDeleteData [21:45:30]OFD Sender: No OFD packet to send [21:45:30]*** Cut start [21:45:30]*** Partial cut [21:45:30]*** CUTSNS_PIN = 1 [21:45:30]*** CUTSNS_PIN = 0 [21:45:30]*** Brake cut motor [21:45:30]Read from MH i2c: 01 [21:45:30]MH_I2C_Read... [21:45:30]*** Stop cut motor [21:45:30]*** Cut end [21:45:30]Read from MH i2c: 01 07 00 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [21:45:30]process_action close_receipt done [21:45:30]requested_data is exist [21:45:30]produce_requested_data [21:45:30]requested_item fm.sn is exist - process it [21:45:30]wFMCommunicate request_size=4 [21:45:30]MH_SAM_APDU [21:45:30]CAPDU: 80 11 00 00 [21:45:30]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [21:45:30]Write i2c OK [21:45:30]MH_I2C_Read... [21:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:31]Read from MH i2c: E2 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 17 00 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 C2 [21:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:45:31]wFMCommunicate OK [21:45:31]requested_item fd.num is exist - process it [21:45:31]SAM_PROTO_GetFieldsCounters [21:45:31]wFMCommunicate request_size=4 [21:45:31]MH_SAM_APDU [21:45:31]CAPDU: 80 13 00 00 [21:45:31]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [21:45:31]Write i2c OK [21:45:31]MH_I2C_Read... [21:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:31]Read from MH i2c: E2 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 62 00 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BF 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [21:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 BF 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:31]wFMCommunicate OK [21:45:31]SAM_PROTO_GetFieldsCounters done [21:45:31]requested_item shift.num is exist - process it [21:45:31]requested_item shift.opened is exist - process it [21:45:31]req_shift_opened [21:45:31]FM_GetShiftState [21:45:31]SAM_PROTO_GetShiftState [21:45:31]wFMCommunicate request_size=4 [21:45:31]MH_SAM_APDU [21:45:31]CAPDU: 80 13 01 00 [21:45:31]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [21:45:31]Write i2c OK [21:45:31]MH_I2C_Read... [21:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:31]Read from MH i2c: E2 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 0E 00 [21:45:31]MH_I2C_Read... [21:45:31]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 F8 [21:45:31]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:45:31]wFMCommunicate OK [21:45:31]SAM_PROTO_GetShiftState done [21:45:31]FM_GetShiftState done [21:45:31]req_shift_opened done [21:45:31]requested_item shift.open_date is exist - process it [21:45:31]req_shift_open_date [21:45:31]req_shift_open_date done [21:45:31]produce_requested_data done [21:45:31]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19647,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:45:31]process_action_free close_receipt [21:45:31]json_value_free [21:45:31]json_value_free done [21:45:31]process_json_proto returns [21:45:31]Send response to host [21:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19647,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:45:31]free response buf [21:45:31]execute_script done [21:45:31]execute_script returns [21:45:31]free content buf [21:45:31]Sock 9.Close socket [21:45:31]Sock 9.Thread stoped [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:50]recv_with_timeout no data received [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:26]recv_with_timeout no data received [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:37]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:36]recv_with_timeout no data received [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:50:28]ConnectInit Can't connect to host [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:39]recv_with_timeout no data received [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:02]accept exits with 7 [21:53:02]New connection [21:53:02]New thread 3067182436 created [21:53:02]Thread 3067325796 joined [21:53:02]Waiting for new connection... [21:53:02] Sock 7.Parse request [21:53:02]Sock 7.Check first char [21:53:02]Sock 7.First char is OK [21:53:02]request: POST /json_proto HTTP/1.0 [21:53:02]Method: POST [21:53:02]URL: /json_proto [21:53:02]Method is POST - this is cgi request [21:53:02]url: /json_proto [21:53:02]query_string will be loaded in cgi processing [21:53:02]execute_cgi json_proto POST (null) [21:53:02]execute_cgi path=json_proto method=POST [21:53:02]POST find Content-Length [21:53:02]Host: 172.17.42.73:8080 [21:53:02]Content-Length: 989 [21:53:02]Content-Type: application/json [21:53:02] [21:53:02]POST finish read [21:53:02]Found Content-Length = 989 [21:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117552", "tax_sys" : 0, "items" : [ { "code": "4870003984128", "name": "\u041F\u0438\u0432\u043E \u041A\u0430\u0440\u0430\u0433 \u0414\u0440\u0430\u0444\u0442 \u041C\u044F\u0433\u043A\u043E\u0435 \u041A\u0440\u0443\u0436\u043A\u0430 \u0441\u0432\u0435\u0436 0,5\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 850.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:02]execute_script... [21:53: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)117552", "tax_sys" : 0, "items" : [ { "code": "4870003984128", "name": "\u041F\u0438\u0432\u043E \u041A\u0430\u0440\u0430\u0433 \u0414\u0440\u0430\u0444\u0442 \u041C\u044F\u0433\u043A\u043E\u0435 \u041A\u0440\u0443\u0436\u043A\u0430 \u0441\u0432\u0435\u0436 0,5\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 850.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:02]POST & json_proto [21:53:02]process_json_proto [21:53:02]json parsed OK: [21:53:02]protocol is kg_v1.0 [21:53:02]action value=close_receipt [21:53:02]process_action close_receipt [21:53:02]cmd_close_receipt [21:53:02]MH_GetDate [21:53:02]Write to MH i2c: F0 00 00 F4 02 E5 [21:53:02]Write i2c OK [21:53:02]MH_I2C_Read... [21:53:02]Read from MH i2c: F0 [21:53:02]MH_I2C_Read... [21:53:02]Read from MH i2c: F0 09 00 [21:53:02]MH_I2C_Read... [21:53:02]Read from MH i2c: F0 09 00 F4 02 00 3F 40 EF 66 99 54 47 66 5C [21:53:02]GetLastDocTimeStamp 1726955128 [21:53:02]current date 1726955583 [21:53:02]FM_GetShiftState [21:53:02]SAM_PROTO_GetShiftState [21:53:02]wFMCommunicate request_size=4 [21:53:02]MH_SAM_APDU [21:53:02]CAPDU: 80 13 01 00 [21:53:02]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [21:53:02]Write i2c OK [21:53:02]MH_I2C_Read... [21:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:02]Read from MH i2c: E2 [21:53:02]MH_I2C_Read... [21:53:02]Read from MH i2c: E2 0E 00 [21:53:02]MH_I2C_Read... [21:53:02]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 FA [21:53:02]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:53:02]wFMCommunicate OK [21:53:02]SAM_PROTO_GetShiftState done [21:53:02]FM_GetShiftState done [21:53:02]opened in 1726877463 [21:53:02]opened+sec_in_day 1726963863 [21:53:02]quantity*price = 25000 [21:53:02]sum+1 = 25001 [21:53:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 4.000 * 150.00 = 600.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 850.00 НСП 1% : 7.52 НДС 12% : 90.27 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 98 21.09.2024 21:53 Смена: 232 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19648 ФПД: 139801655332972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T215303&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19648&fm=139801655332972&tin=02508201610067®Number=0000000000146239&sum=85000 0 [21:53:03]StoreToDocumentArchive [21:53:03]shift 232 fd 19648 [21:53:03]save to /storage/0232/doc_00019648 [21:53:03]save last doc name /storage/0232/doc_00019648 to /storage/kkm_last_doc_name [21:53:03]save OK [21:53:03]Clear old archive folders... [21:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=415 [21:53:03]tlvbuf is 0202A840 [21:53:03]SAM_PROTO_ClearQueue [21:53:03]wFMCommunicate request_size=4 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 09 00 00 [21:53:03]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [21:53:03]RAPDU: 90 00 [21:53:03]wFMCommunicate OK [21:53:03]SAM_PROTO_ClearQueue done [21:53:03]KKMCreateOFDPacket [21:53:03]OFDProtocolAddRootSTLVToBuf [21:53:03]FM_MakeSignedData [21:53:03]FM_MakeSignedData [21:53:03]SAM_PROTO_SignData [21:53:03]wFMCommunicate request_size=4 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 0D 01 02 [21:53:03]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [21:53:03]RAPDU: 90 00 [21:53:03]wFMCommunicate OK [21:53:03]wFMCommunicate request_size=255 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 34 31 32 38 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [21:53:03]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 34 31 32 38 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 C8 [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [21:53:03]RAPDU: 90 00 [21:53:03]wFMCommunicate OK [21:53:03]wFMCommunicate request_size=174 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 40 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C0 4C 00 00 35 04 06 00 7F 26 1C 01 50 6C [21:53:03]Write to MH i2c: E2 B1 00 05 03 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 40 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C0 4C 00 00 35 04 06 00 7F 26 1C 01 50 6C 00 00 C8 [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [21:53:03]RAPDU: 90 00 [21:53:03]wFMCommunicate OK [21:53:03]wFMCommunicate request_size=4 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 0D 03 02 [21:53:03]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 0B 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 0B 00 06 03 00 E3 62 17 75 26 01 77 61 90 00 55 [21:53:03]RAPDU: E3 62 17 75 26 01 77 61 90 00 [21:53:03]wFMCommunicate OK [21:53:03]SAM_PROTO_SignData done [21:53:03]FM_MakeSignedData done [21:53:03]CreateOFDProtocolMessage [21:53:03]wFMCommunicate request_size=4 [21:53:03]MH_SAM_APDU [21:53:03]CAPDU: 80 11 00 00 [21:53:03]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [21:53:03]Write i2c OK [21:53:03]MH_I2C_Read... [21:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:03]Read from MH i2c: E2 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 17 00 [21:53:03]MH_I2C_Read... [21:53:03]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [21:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:53:03]wFMCommunicate OK [21:53:03]CreateOFDProtocolMessage done [21:53:03]OFDSenderStorePacket 19648 [21:53:03]StoreOFDPacket docnum=19648 [21:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B3 01 00 00 02 34 AB 01 A9 37 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 34 31 32 38 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 40 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C0 4C 00 00 35 04 06 00 7F 26 1C 01 50 6C E3 62 17 75 26 01 77 61 [21:53:03]CheckFolder [21:53:03]dirname=/storage/ofd_packets [21:53:03]CheckFolder done [21:53:03]ProducePacketName [21:53:03]name=ofd_packets/00019648 [21:53:03]NVStorageSaveData ofd_packets/00019648 [21:53:03]File name is /storage/ofd_packets/00019648 [21:53:03]Write 465 bytes [21:53:03]NVStorageSaveData done [21:53:03]OFDSenderStorePacket done [21:53:03]KKMCreateOFDPacket done [21:53:03]NVStorageSaveData kkm_last_timestamp [21:53:03]File name is /storage/kkm_last_timestamp [21:53:03]Write 4 bytes [21:53:03]NVStorageSaveData done [21:53:03]ExternCall_PrintAddStr [21:53:03]wPrintStart [21:53:03]Write to MH i2c: 01 00 00 08 03 0B [21:53:04]Write i2c OK [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 07 00 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [21:53:04]RasterBufferAndPrint [21:53:04]line Счет N : (3)117552 [21:53:04]line ИНН: 02508201610067 [21:53:04]line Контрольно-Кассовый Чек [21:53:04]line ПРОДАЖА [21:53:04]line Товар: 4870003984128 [21:53:04]line Пиво Караг Драфт Мягкое Кружка свеж 0,5л [21:53:04]line 2.000 * 125.00 [21:53:04]line = 250.00 [21:53:04]line НДС 12% НСП 1% [21:53:04]line > о реализуемом товаре [21:53:04]line Товар: 4640030091607 [21:53:04]line Сигареты ESSE Exchange [21:53:04]line 4.000 * 150.00 [21:53:04]line = 600.00 [21:53:04]line НДС 12% НСП 1% [21:53:04]line > о реализуемом товаре [21:53:04]line ИТОГО: 850.00 [21:53:04]line НСП 1% : 7.52 [21:53:04]line НДС 12% : 90.27 [21:53:04]line Наличными: 850.00 [21:53:04]line Безнал.: 0.00 [21:53:04]line Место: АЗС № 93 "Партнер Нефть" [21:53:04]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [21:53:04]line СНО: Общий режим [21:53:04]line Чек 98 21.09.2024 21:53 [21:53:04]line Смена: 232 ФФД: 1.0 [21:53:04]line ЗНМ: 0300000060 [21:53:04]line РНМ: 0000000000146239 [21:53:04]line Версия ККМ: v1.0 [21:53:04]line ФМ: 0000000000959362 [21:53:04]line ФД: 19648 [21:53:04]line ФПД: 139801655332972 [21:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240921T215303&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19648&fm=139801655332972&tin=02508201610067®Number=0000000000146239&sum=85000 [21:53:04]OFD Sender: Processing packet 19648 [packets to send 64, broken 63] [21:53:04]ProducePacketName [21:53:04]name=ofd_packets/00019648 [21:53:04]OFD Sender: To server: pG, [21:53:04]CommunicateWithHost lk.salyk.kg:30040 [21:53:04]ConnectInit lk.salyk.kg [21:53:04]line 0 [21:53:04]written 0, free lines is 4095 [21:53:04]Write to MH i2c: 01 00 00 37 03 3A [21:53:04]Write i2c OK [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 07 00 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 2B 0C 78 [21:53:04]RasterBufferAndPrint [21:53:04]line [21:53:04]line [21:53:04]line [21:53:04]line [21:53:04]line [21:53:04]written 0, free lines is 3119 [21:53:04]MH_Cut [21:53:04]Write to MH i2c: D1 01 00 3E 03 01 13 [21:53:04]Write i2c OK [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: D1 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: D1 01 00 [21:53:04]MH_I2C_Read... [21:53:04]Read from MH i2c: D1 01 00 3E 03 00 12 [21:53:04]Write to MH i2c: 01 00 00 3F 03 42 [21:53:04]Write i2c OK [21:53:04]MH_I2C_Read... [21:53:05]Connected sock=11 [21:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 B3 01 00 00 02 34 AB 01 A9 37 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 34 31 32 38 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 40 EF 66 0E 04 04 00 E8 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C0 4C 00 00 35 04 06 00 7F 26 1C 01 50 6C E3 62 17 75 26 01 77 61 [21:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 CA CB 47 00 46 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C0 4C 00 00 F4 03 04 00 D8 EA EE 66 B6 04 01 00 00 A4 3D 3A DF DB 07 60 13 [21:53:05]CommunicateWithHost err = 0 [21:53:05]CheckOFDResponse [21:53:05]1017 (14) - 77093643461234 [21:53:05]1041 (16) - 0000000000959362 [21:53:05]1040 (4) - 19648 [21:53:05]1012 (4) - 21.09.2024 15:48 [21:53:05]1206 (1) - 0 [21:53:05]OFD Sender: Remove packet 19648 [21:53:05]ProducePacketName [21:53:05]name=ofd_packets/00019648 [21:53:05]NVStorageDeleteData [21:53:05]*** Cut start [21:53:05]*** Partial cut [21:53:05]*** CUTSNS_PIN = 1 [21:53:05]*** CUTSNS_PIN = 0 [21:53:06]*** Brake cut motor [21:53:06]OFD Sender: No OFD packet to send [21:53:06]Read from MH i2c: 01 [21:53:06]MH_I2C_Read... [21:53:06]*** Stop cut motor [21:53:06]*** Cut end [21:53:06]Read from MH i2c: 01 07 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [21:53:06]process_action close_receipt done [21:53:06]requested_data is exist [21:53:06]produce_requested_data [21:53:06]requested_item fm.sn is exist - process it [21:53:06]wFMCommunicate request_size=4 [21:53:06]MH_SAM_APDU [21:53:06]CAPDU: 80 11 00 00 [21:53:06]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [21:53:06]Write i2c OK [21:53:06]MH_I2C_Read... [21:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:06]Read from MH i2c: E2 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 17 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 12 [21:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [21:53:06]wFMCommunicate OK [21:53:06]requested_item fd.num is exist - process it [21:53:06]SAM_PROTO_GetFieldsCounters [21:53:06]wFMCommunicate request_size=4 [21:53:06]MH_SAM_APDU [21:53:06]CAPDU: 80 13 00 00 [21:53:06]Write to MH i2c: E2 08 00 41 03 80 13 00 00 00 00 00 00 C0 [21:53:06]Write i2c OK [21:53:06]MH_I2C_Read... [21:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:06]Read from MH i2c: E2 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 62 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 62 00 41 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [21:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:06]wFMCommunicate OK [21:53:06]SAM_PROTO_GetFieldsCounters done [21:53:06]requested_item shift.num is exist - process it [21:53:06]requested_item shift.opened is exist - process it [21:53:06]req_shift_opened [21:53:06]FM_GetShiftState [21:53:06]SAM_PROTO_GetShiftState [21:53:06]wFMCommunicate request_size=4 [21:53:06]MH_SAM_APDU [21:53:06]CAPDU: 80 13 01 00 [21:53:06]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [21:53:06]Write i2c OK [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 [21:53:06]MH_I2C_Read... [21:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:06]Read from MH i2c: E2 0E 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 48 [21:53:06]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [21:53:06]wFMCommunicate OK [21:53:06]SAM_PROTO_GetShiftState done [21:53:06]FM_GetShiftState done [21:53:06]req_shift_opened done [21:53:06]requested_item shift.open_date is exist - process it [21:53:06]req_shift_open_date [21:53:06]req_shift_open_date done [21:53:06]produce_requested_data done [21:53:06]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19648,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [21:53:06]process_action_free close_receipt [21:53:06]json_value_free [21:53:06]json_value_free done [21:53:06]process_json_proto returns [21:53:06]Send response to host [21:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19648,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [21:53:06]free response buf [21:53:06]execute_script done [21:53:06]execute_script returns [21:53:06]free content buf [21:53:06]Sock 7.Close socket [21:53:06]Sock 7.Thread stoped [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:23]recv_with_timeout no data received [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:24]recv_with_timeout no data received [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:22]recv_with_timeout no data received [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:35]recv_with_timeout no data received [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:53]recv_with_timeout no data received [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:31]recv_with_timeout no data received [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:11]recv_with_timeout no data received [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:35]recv_with_timeout no data received [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]recv_with_timeout no data received [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:27]recv_with_timeout no data received [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:04]recv_with_timeout no data received [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:08]recv_with_timeout no data received [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:38]recv_with_timeout no data received [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:56]recv_with_timeout no data received [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:27:27]ConnectInit Can't connect to host [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:22]recv_with_timeout no data received [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:41]recv_with_timeout no data received [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:34]recv_with_timeout no data received [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:01]recv_with_timeout no data received [22:35:03]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:40]recv_with_timeout no data received [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:18]recv_with_timeout no data received [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:56]recv_with_timeout no data received [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:16]recv_with_timeout no data received [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:19]recv_with_timeout no data received [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:42]recv_with_timeout no data received [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:39]ConnectInit Can't connect to host [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:42]recv_with_timeout no data received [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:18]recv_with_timeout no data received [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:29]recv_with_timeout no data received [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:42]recv_with_timeout no data received [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:27]recv_with_timeout no data received [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:03]recv_with_timeout no data received [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:22]recv_with_timeout no data received [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:04]recv_with_timeout no data received [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:35]ConnectInit Can't connect to host [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:14:57]recv_with_timeout no data received [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:29]recv_with_timeout no data received [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:51]recv_with_timeout no data received [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:08]recv_with_timeout no data received [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:38]recv_with_timeout no data received [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572569 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 11010770+1715950745=1726961515 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 69 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 50 00 FF FF A6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 6C 57 EF 66 99 54 47 66 B1 [23:31:56]Current date/time: 21.09.2024 23:31 [23:31:56]FM_Init [23:31:56]wFMConnect [23:31:56]MH_SAM_On [23:31:56]Write to MH i2c: E0 00 00 08 00 E7 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_init finished! [23:31:56]*** atr: [23:31:56]*** 0F 3B D5 18 FF 81 91 FE [23:31:56]*** 1F C3 80 73 C8 21 10 0A [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]*** 00 00 00 00 00 00 00 00 [23:31:56]Read from MH i2c: E0 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E0 10 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:31:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:31:56]wFMCommunicate request_size=10 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:31:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:31:56]RAPDU: 90 00 [23:31:56]wFMCommunicate OK [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 11 00 00 [23:31:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D9 [23:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [23:31:56]wFMCommunicate OK [23:31:56]Detected FM SN is 0000000000959362 [23:31:56]Stored FM SN is 0000000000959362 [23:31:56]wFMCommunicate request_size=9 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 16 00 00 04 B7 57 01 00 [23:31:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 B7 57 01 00 00 00 A1 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:31:56]RAPDU: 90 00 [23:31:56]wFMCommunicate OK [23:31:56]FM PIN OK [23:31:56]wFMCommunicate request_size=8 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 14 04 00 03 02 00 01 [23:31:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:31:56]RAPDU: 90 00 [23:31:56]wFMCommunicate OK [23:31:56]wFMCommunicate request_size=13 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:31:56]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:31:56]RAPDU: 90 00 [23:31:56]wFMCommunicate OK [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 11 00 00 [23:31:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DD [23:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [23:31:56]wFMCommunicate OK [23:31:56]DocumentArchiveInit [23:31:56]Start Httpd... [23:31:56]Httpd thread 3067047268 created [23:31:56]Write to MH i2c: 01 00 00 0F 00 0F [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: 01 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: 01 07 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:31:56]MH Int Process started [23:31:56]Allocated Socket 8 [23:31:56]Bind OK [23:31:56]Listen OK [23:31:56]httpd running on port 8080 [23:31:56]Waiting for new connection... [23:31:56]OFD Sender: No OFD packet to send [23:31:56]accept exits with 9 [23:31:56]New connection [23:31:56]New thread 3066760548 created [23:31:56]Waiting for new connection... [23:31:56] Sock 9.Parse request [23:31:56]Sock 9.Check first char [23:31:56]Sock 9.First char is OK [23:31:56]request: POST /json_proto HTTP/1.0 [23:31:56]Method: POST [23:31:56]URL: /json_proto [23:31:56]Method is POST - this is cgi request [23:31:56]url: /json_proto [23:31:56]query_string will be loaded in cgi processing [23:31:56]execute_cgi json_proto POST (null) [23:31:56]execute_cgi path=json_proto method=POST [23:31:56]POST find Content-Length [23:31:56]Host: 172.17.42.73:8080 [23:31:56]Content-Length: 215 [23:31:56]Content-Type: application/json [23:31:56] [23:31:56]POST finish read [23:31:56]Found Content-Length = 215 [23:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:56]execute_script... [23:31:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:56]POST & json_proto [23:31:56]process_json_proto [23:31:56]json parsed OK: [23:31:56]protocol is kg_v1.0 [23:31:56]action value=get_value [23:31:56]process_action get_value [23:31:56]cmd_get_value [23:31:56]process_action get_value done [23:31:56]requested_data is exist [23:31:56]produce_requested_data [23:31:56]requested_item kkm.sn is exist - process it [23:31:56]requested_item kkm.ver is exist - process it [23:31:56]requested_item fm.sn is exist - process it [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 11 00 00 [23:31:56]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:56]E2 17 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 DF [23:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [23:31:56]wFMCommunicate OK [23:31:56]requested_item fd.num is exist - process it [23:31:56]SAM_PROTO_GetFieldsCounters [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 13 00 00 [23:31:56]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 62 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C0 4C 00 00 0E 04 04 00 E8 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:57]wFMCommunicate OK [23:31:57]SAM_PROTO_GetFieldsCounters done [23:31:57]requested_item shift.num is exist - process it [23:31:57]requested_item shift.opened is exist - process it [23:31:57]req_shift_opened [23:31:57]FM_GetShiftState [23:31:57]SAM_PROTO_GetShiftState [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 13 01 00 [23:31:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 0E 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 15 [23:31:57]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [23:31:57]wFMCommunicate OK [23:31:57]SAM_PROTO_GetShiftState done [23:31:57]FM_GetShiftState done [23:31:57]req_shift_opened done [23:31:57]requested_item shift.open_date is exist - process it [23:31:57]req_shift_open_date [23:31:57]req_shift_open_date done [23:31:57]produce_requested_data done [23:31:57]produce_requested_data return {"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19648,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463} [23:31:57]process_action_free get_value [23:31:57]json_value_free [23:31:57]json_value_free done [23:31:57]process_json_proto returns [23:31:57]Send response to host [23:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000060","kkm.ver":"v1.0","fm.sn":"0000000000959362","fd.num":19648,"shift.num":232,"shift.opened":1,"shift.open_date":1726877463}}} [23:31:57]free response buf [23:31:57]execute_script done [23:31:57]execute_script returns [23:31:57]free content buf [23:31:57]Sock 9.Close socket [23:31:57]Sock 9.Thread stoped [23:31:57]accept exits with 6 [23:31:57]New connection [23:31:57]New thread 3066617188 created [23:31:57]Thread 3066760548 joined [23:31:57]Waiting for new connection... [23:31:57] Sock 6.Parse request [23:31:57]Sock 6.Check first char [23:31:57]Sock 6.First char is OK [23:31:57]request: POST /json_proto HTTP/1.0 [23:31:57]Method: POST [23:31:57]URL: /json_proto [23:31:57]Method is POST - this is cgi request [23:31:57]url: /json_proto [23:31:57]query_string will be loaded in cgi processing [23:31:57]execute_cgi json_proto POST (null) [23:31:57]execute_cgi path=json_proto method=POST [23:31:57]POST find Content-Length [23:31:57]Host: 172.17.42.73:8080 [23:31:57]Content-Length: 331 [23:31:57]Content-Type: application/json [23:31:57] [23:31:57]POST finish read [23:31:57]Found Content-Length = 331 [23:31: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" ] } } [23:31:57]execute_script... [23:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:31:57]POST & json_proto [23:31:57]process_json_proto [23:31:57]json parsed OK: [23:31:57]protocol is kg_v1.0 [23:31:57]action value=get_value [23:31:57]process_action get_value [23:31:57]cmd_get_value [23:31:57]process_action get_value done [23:31:57]requested_data is exist [23:31:57]produce_requested_data [23:31:57]requested_item fm.sale.total is exist - process it [23:31:57]SAM_PROTO_GetFMData [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 13 03 00 [23:31:57]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 FD 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 F0 4A 00 00 69 04 A0 00 6F 04 04 00 D7 4A 00 00 B1 04 04 00 65 0B 11 68 70 04 04 00 94 66 D5 43 72 04 04 00 D1 A4 3B 24 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 B4 5C 0D 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BE EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 6C 49 72 70 04 03 00 BC 12 72 72 04 02 00 B0 36 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 3E 23 0C EF 03 09 00 F6 03 01 90 00 3A [23:31:57]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 F0 4A 00 00 69 04 A0 00 6F 04 04 00 D7 4A 00 00 B1 04 04 00 65 0B 11 68 70 04 04 00 94 66 D5 43 72 04 04 00 D1 A4 3B 24 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 B4 5C 0D 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BE EB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 6C 49 72 70 04 03 00 BC 12 72 72 04 02 00 B0 36 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 3E 23 0C EF 03 09 00 F6 03 01 90 00 [23:31:57]wFMCommunicate OK [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 17 00 00 [23:31:57]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 02 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 90 00 B7 [23:31:58]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 02 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 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [23:31:58]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [23:31:58]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 DE 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [23:31:59]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:31:59]wFMCommunicate OK [23:31:59]SAM_PROTO_GetFMData done [23:31:59]requested_item fm.sale_refund.total is exist - process it [23:31:59]requested_item fm.buy.total is exist - process it [23:31:59]requested_item shift.sale.total is exist - process it [23:31:59]SAM_PROTO_GetShiftData [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 13 02 00 [23:31:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 18 00 00 B6 04 AA 04 B2 04 6E 04 04 00 62 00 00 00 69 04 9C 00 6F 04 04 00 61 00 00 00 B1 04 03 00 C0 D0 80 70 04 03 00 D0 00 61 72 04 03 00 F0 CF 1F 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 33 AE 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CD 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 14 1E 70 04 02 00 14 1E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 E7 [23:31:59]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 62 00 00 00 69 04 9C 00 6F 04 04 00 61 00 00 00 B1 04 03 00 C0 D0 80 70 04 03 00 D0 00 61 72 04 03 00 F0 CF 1F 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 33 AE 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CD 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 14 1E 70 04 02 00 14 1E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 32 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:31:59]wFMCommunicate OK [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 17 00 00 [23:31:59]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 01 00 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 F0 [23:31:59]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 [23:31:59]wFMCommunicate OK [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 17 00 00 [23:31:59]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 1A 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 5A [23:32:00]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [23:32:00]wFMCommunicate OK [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 17 00 00 [23:32:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 1B 00 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 0A [23:32:00]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 [23:32:00]wFMCommunicate OK [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 17 00 00 [23:32:00]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 D3 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 D3 00 1C 00 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [23:32:00]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:00]wFMCommunicate OK [23:32:00]SAM_PROTO_GetShiftData done [23:32:00]requested_item shift.sale.total_cash is exist - process it [23:32:00]requested_item shift.sale_refund.total is exist - process it [23:32:00]requested_item shift.sale_refund.total_cash is exist - process it [23:32:00]requested_item shift.buy.total is exist - process it [23:32:00]requested_item shift.buy.total_cash is exist - process it [23:32:00]produce_requested_data done [23:32:00]produce_requested_data return {"fm.sale.total":17459474.93,"fm.sale_refund.total":74899.00,"fm.buy.total":0.00,"shift.sale.total":84420.48,"shift.sale.total_cash":63572.00,"shift.sale_refund.total":77.00,"shift.sale_refund.total_cash":77.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:32:00]process_action_free get_value [23:32:00]json_value_free [23:32:00]json_value_free done [23:32:00]process_json_proto returns [23:32:00]Send response to host [23:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":17459474.93,"fm.sale_refund.total":74899.00,"fm.buy.total":0.00,"shift.sale.total":84420.48,"shift.sale.total_cash":63572.00,"shift.sale_refund.total":77.00,"shift.sale_refund.total_cash":77.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:32:00]free response buf [23:32:00]execute_script done [23:32:00]execute_script returns [23:32:00]free content buf [23:32:00]Sock 6.Close socket [23:32:00]Sock 6.Thread stoped [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:15]recv_with_timeout no data received [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:37]accept exits with 9 [23:37:37]New connection [23:37:37]New thread 3066760548 created [23:37:37]Thread 3066617188 joined [23:37:37]Waiting for new connection... [23:37:37] Sock 9.Parse request [23:37:37]Sock 9.Check first char [23:37:37]Sock 9.First char is OK [23:37:37]request: POST /json_proto HTTP/1.0 [23:37:37]Method: POST [23:37:37]URL: /json_proto [23:37:37]Method is POST - this is cgi request [23:37:37]url: /json_proto [23:37:37]query_string will be loaded in cgi processing [23:37:37]execute_cgi json_proto POST (null) [23:37:37]execute_cgi path=json_proto method=POST [23:37:37]POST find Content-Length [23:37:37]Host: 172.17.42.73:8080 [23:37:37]Content-Length: 626 [23:37:37]Content-Type: application/json [23:37:37] [23:37:37]POST finish read [23:37:37]Found Content-Length = 626 [23:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117553", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:37]execute_script... [23:37: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)117553", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:37]POST & json_proto [23:37:37]process_json_proto [23:37:37]json parsed OK: [23:37:37]protocol is kg_v1.0 [23:37:37]action value=close_receipt [23:37:37]process_action close_receipt [23:37:37]cmd_close_receipt [23:37:37]MH_GetDate [23:37:37]Write to MH i2c: F0 00 00 1D 00 0C [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: F0 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: F0 09 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: F0 09 00 1D 00 00 C2 58 EF 66 99 54 47 66 1E [23:37:37]GetLastDocTimeStamp 1726955583 [23:37:37]current date 1726961858 [23:37:37]FM_GetShiftState [23:37:37]SAM_PROTO_GetShiftState [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 13 01 00 [23:37:37]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0E 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 17 0F EE 66 00 00 00 00 90 00 21 [23:37:37]RAPDU: 09 00 01 17 0F EE 66 00 00 00 00 90 00 [23:37:37]wFMCommunicate OK [23:37:37]SAM_PROTO_GetShiftState done [23:37:37]FM_GetShiftState done [23:37:37]opened in 1726877463 [23:37:37]opened+sec_in_day 1726963863 [23:37:37]quantity*price = 13900 [23:37:37]sum+1 = 13901 [23:37:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 445.00 НСП 1% : 3.93 НДС 12% : 47.26 Наличными: 445.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 1 22.09.2024 00:27 Смена: 233 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19652 ФПД: 216228376305086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T002722&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19652&fm=216228376305086&tin=02508201610067®Number=0000000000146239&sum=44500 0 [00:27:23]StoreToDocumentArchive [00:27:23]shift 233 fd 19652 [00:27:23]save to /storage/0233/doc_00019652 [00:27:23]save last doc name /storage/0233/doc_00019652 to /storage/kkm_last_doc_name [00:27:23]save OK [00:27:23]Clear old archive folders... [00:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=381 [00:27:23]tlvbuf is 01ECBDE0 [00:27:23]SAM_PROTO_ClearQueue [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 09 00 00 [00:27:23]Write to MH i2c: E2 08 00 7D 01 80 09 00 00 00 00 00 00 F0 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_ClearQueue done [00:27:23]KKMCreateOFDPacket [00:27:23]OFDProtocolAddRootSTLVToBuf [00:27:23]FM_MakeSignedData [00:27:23]FM_MakeSignedData [00:27:23]SAM_PROTO_SignData [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 01 02 [00:27:23]Write to MH i2c: E2 08 00 7E 01 80 0D 01 02 00 00 00 00 F8 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]OFD Sender: No OFD packet to send [00:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=255 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 [00:27:23]Write to MH i2c: E2 02 01 7F 01 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 D6 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=140 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6A 64 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C4 4C 00 00 35 04 06 00 C4 A8 97 8F 5D BE [00:27:23]Write to MH i2c: E2 8F 00 80 01 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6A 64 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C4 4C 00 00 35 04 06 00 C4 A8 97 8F 5D BE 00 00 0B [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 03 02 [00:27:23]Write to MH i2c: E2 08 00 81 01 80 0D 03 02 00 00 00 00 FD [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 0B 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 0B 00 81 01 00 D5 B5 A7 A8 3C C9 1C 41 90 00 39 [00:27:24]RAPDU: D5 B5 A7 A8 3C C9 1C 41 90 00 [00:27:24]wFMCommunicate OK [00:27:24]SAM_PROTO_SignData done [00:27:24]FM_MakeSignedData done [00:27:24]CreateOFDProtocolMessage [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 11 00 00 [00:27:24]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 17 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 52 [00:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:27:24]wFMCommunicate OK [00:27:24]CreateOFDProtocolMessage done [00:27:24]OFDSenderStorePacket 19652 [00:27:24]StoreOFDPacket docnum=19652 [00:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 91 01 00 00 C2 7F 89 01 68 28 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6A 64 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C4 4C 00 00 35 04 06 00 C4 A8 97 8F 5D BE D5 B5 A7 A8 3C C9 1C 41 [00:27:24]CheckFolder [00:27:24]dirname=/storage/ofd_packets [00:27:24]CheckFolder done [00:27:24]ProducePacketName [00:27:24]name=ofd_packets/00019652 [00:27:24]NVStorageSaveData ofd_packets/00019652 [00:27:24]File name is /storage/ofd_packets/00019652 [00:27:24]Write 431 bytes [00:27:24]NVStorageSaveData done [00:27:24]OFDSenderStorePacket done [00:27:24]KKMCreateOFDPacket done [00:27:24]NVStorageSaveData kkm_last_timestamp [00:27:24]File name is /storage/kkm_last_timestamp [00:27:24]Write 4 bytes [00:27:24]NVStorageSaveData done [00:27:24]ExternCall_PrintAddStr [00:27:24]wPrintStart [00:27:24]Write to MH i2c: 01 00 00 83 01 84 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 07 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [00:27:24]RasterBufferAndPrint [00:27:24]line Счет N : (3)117555 [00:27:24]line ИНН: 02508201610067 [00:27:24]line Контрольно-Кассовый Чек [00:27:24]line ПРОДАЖА [00:27:24]line Товар: 4650063110756 [00:27:24]line Масло Gazpromneft Super 10w40 1л [00:27:24]line 1.000 * 405.00 [00:27:24]line = 405.00 [00:27:24]line НДС 12% НСП 1% [00:27:24]line > о реализуемом товаре [00:27:24]line Товар: 4700000160211 [00:27:24]line Вода Легенда 0,5л [00:27:24]line 1.000 * 40.00 [00:27:24]line = 40.00 [00:27:24]line НДС 12% НСП 1% [00:27:24]line > о реализуемом товаре [00:27:24]line ИТОГО: 445.00 [00:27:24]line НСП 1% : 3.93 [00:27:24]line НДС 12% : 47.26 [00:27:24]line Наличными: 445.00 [00:27:24]line Безнал.: 0.00 [00:27:24]line Место: АЗС № 93 "Партнер Нефть" [00:27:24]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [00:27:24]line СНО: Общий режим [00:27:24]line Чек 1 22.09.2024 00:27 [00:27:24]line Смена: 233 ФФД: 1.0 [00:27:24]line ЗНМ: 0300000060 [00:27:24]line РНМ: 0000000000146239 [00:27:24]line Версия ККМ: v1.0 [00:27:24]line ФМ: 0000000000959362 [00:27:24]line ФД: 19652 [00:27:24]line ФПД: 216228376305086 [00:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T002722&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19652&fm=216228376305086&tin=02508201610067®Number=0000000000146239&sum=44500 [00:27:24]OFD Sender: Processing packet 19652 [packets to send 64, broken 63] [00:27:24]ProducePacketName [00:27:24]name=ofd_packets/00019652 [00:27:24]OFD Sender: To server: pG, [00:27:24]CommunicateWithHost lk.salyk.kg:30040 [00:27:24]ConnectInit lk.salyk.kg [00:27:24]line 0 [00:27:24]written 0, free lines is 4095 [00:27:24]Write to MH i2c: 01 00 00 B2 01 B3 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 07 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 20 0C E6 [00:27:24]RasterBufferAndPrint [00:27:24]line [00:27:24]line [00:27:24]line [00:27:24]line [00:27:24]line [00:27:24]written 0, free lines is 3108 [00:27:24]MH_Cut [00:27:24]Write to MH i2c: D1 01 00 B9 01 01 8C [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: D1 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: D1 01 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: D1 01 00 B9 01 00 8B [00:27:24]Write to MH i2c: 01 00 00 BA 01 BB [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:25]*** Cut start [00:27:25]*** Partial cut [00:27:25]*** CUTSNS_PIN = 1 [00:27:26]*** CUTSNS_PIN = 0 [00:27:26]*** Brake cut motor [00:27:26]Connected sock=11 [00:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 91 01 00 00 C2 7F 89 01 68 28 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6A 64 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C4 4C 00 00 35 04 06 00 C4 A8 97 8F 5D BE D5 B5 A7 A8 3C C9 1C 41 [00:27:26]Read from MH i2c: 01 [00:27:26]MH_I2C_Read... [00:27:26]*** Stop cut motor [00:27:26]*** Cut end [00:27:26]Read from MH i2c: 01 07 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 FF 0F D0 [00:27:26]process_action close_receipt done [00:27:26]requested_data is exist [00:27:26]produce_requested_data [00:27:26]requested_item fm.sn is exist - process it [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 11 00 00 [00:27:26]Write to MH i2c: E2 08 00 BB 01 80 11 00 00 00 00 00 00 36 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 17 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 17 00 BB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 8B [00:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:27:26]wFMCommunicate OK [00:27:26]requested_item fd.num is exist - process it [00:27:26]SAM_PROTO_GetFieldsCounters [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 13 00 00 [00:27:26]Write to MH i2c: E2 08 00 BC 01 80 13 00 00 00 00 00 00 39 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 62 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 62 00 BC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C4 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [00:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C4 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:26]wFMCommunicate OK [00:27:26]SAM_PROTO_GetFieldsCounters done [00:27:26]requested_item shift.num is exist - process it [00:27:26]requested_item shift.opened is exist - process it [00:27:26]req_shift_opened [00:27:26]FM_GetShiftState [00:27:26]SAM_PROTO_GetShiftState [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 13 01 00 [00:27:26]Write to MH i2c: E2 08 00 BD 01 80 13 01 00 00 00 00 00 3B [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 BD 01 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 5D [00:27:26]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:27:26]wFMCommunicate OK [00:27:26]SAM_PROTO_GetShiftState done [00:27:26]FM_GetShiftState done [00:27:26]req_shift_opened done [00:27:26]requested_item shift.open_date is exist - process it [00:27:26]req_shift_open_date [00:27:26]req_shift_open_date done [00:27:26]produce_requested_data done [00:27:26]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19652,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809} [00:27:26]process_action_free close_receipt [00:27:26]json_value_free [00:27:26]json_value_free done [00:27:26]process_json_proto returns [00:27:26]Send response to host [00:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19652,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809}}} [00:27:26]free response buf [00:27:26]execute_script done [00:27:26]execute_script returns [00:27:26]free content buf [00:27:26]Sock 7.Close socket [00:27:26]Sock 7.Thread stoped [00:27:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 93 D3 47 00 EE 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C4 4C 00 00 F4 03 04 00 04 0F EF 66 B6 04 01 00 00 A3 19 44 B6 4E 3A 5D A3 [00:27:27]CommunicateWithHost err = 0 [00:27:27]CheckOFDResponse [00:27:27]1017 (14) - 77093643461234 [00:27:27]1041 (16) - 0000000000959362 [00:27:27]1040 (4) - 19652 [00:27:27]1012 (4) - 21.09.2024 18:23 [00:27:27]1206 (1) - 0 [00:27:27]OFD Sender: Remove packet 19652 [00:27:27]ProducePacketName [00:27:27]name=ofd_packets/00019652 [00:27:27]NVStorageDeleteData [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:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:01]recv_with_timeout no data received [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:05]recv_with_timeout no data received [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:26]recv_with_timeout no data received [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:42]recv_with_timeout no data received [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:07]recv_with_timeout no data received [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:17]recv_with_timeout no data received [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:56]recv_with_timeout no data received [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:32]recv_with_timeout no data received [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:53]recv_with_timeout no data received [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:05]accept exits with 9 [00:36:05]New connection [00:36:05]New thread 3067260260 created [00:36:05]Thread 3067403620 joined [00:36:05]Waiting for new connection... [00:36:05] Sock 9.Parse request [00:36:05]Sock 9.Check first char [00:36:05]Sock 9.First char is OK [00:36:05]request: POST /json_proto HTTP/1.0 [00:36:05]Method: POST [00:36:05]URL: /json_proto [00:36:05]Method is POST - this is cgi request [00:36:05]url: /json_proto [00:36:05]query_string will be loaded in cgi processing [00:36:05]execute_cgi json_proto POST (null) [00:36:05]execute_cgi path=json_proto method=POST [00:36:05]POST find Content-Length [00:36:05]Host: 172.17.42.73:8080 [00:36:05]Content-Length: 614 [00:36:05]Content-Type: application/json [00:36:05] [00:36:05]POST finish read [00:36:05]Found Content-Length = 614 [00:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117556", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [00:36:05]execute_script... [00:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117556", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [00:36:05]POST & json_proto [00:36:05]process_json_proto [00:36:05]json parsed OK: [00:36:05]protocol is kg_v1.0 [00:36:05]action value=close_receipt [00:36:05]process_action close_receipt [00:36:05]cmd_close_receipt [00:36:05]MH_GetDate [00:36:05]Write to MH i2c: F0 00 00 BE 01 AE [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: F0 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: F0 09 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: F0 09 00 BE 01 00 76 66 EF 66 99 54 47 66 82 [00:36:05]GetLastDocTimeStamp 1726964842 [00:36:05]current date 1726965366 [00:36:05]FM_GetShiftState [00:36:05]SAM_PROTO_GetShiftState [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 13 01 00 [00:36:05]Write to MH i2c: E2 08 00 BF 01 80 13 01 00 00 00 00 00 3D [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0E 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0E 00 BF 01 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 5F [00:36:05]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:36:05]wFMCommunicate OK [00:36:05]SAM_PROTO_GetShiftState done [00:36:05]FM_GetShiftState done [00:36:05]opened in 1726963809 [00:36:05]opened+sec_in_day 1727050209 [00:36:05]quantity*price = 11000 [00:36:05]sum+1 = 11001 [00:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 2 22.09.2024 00:36 Смена: 233 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19653 ФПД: 13336820916311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003606&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19653&fm=13336820916311&tin=02508201610067®Number=0000000000146239&sum=11000 0 [00:36:07]StoreToDocumentArchive [00:36:07]shift 233 fd 19653 [00:36:07]save to /storage/0233/doc_00019653 [00:36:07]save last doc name /storage/0233/doc_00019653 to /storage/kkm_last_doc_name [00:36:07]save OK [00:36:07]Clear old archive folders... [00:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:36:07]tlvbuf is 01EDF980 [00:36:07]SAM_PROTO_ClearQueue [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 09 00 00 [00:36:07]Write to MH i2c: E2 08 00 CC 01 80 09 00 00 00 00 00 00 3F [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [00:36:07]RAPDU: 90 00 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_ClearQueue done [00:36:07]KKMCreateOFDPacket [00:36:07]OFDProtocolAddRootSTLVToBuf [00:36:07]FM_MakeSignedData [00:36:07]FM_MakeSignedData [00:36:07]SAM_PROTO_SignData [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 0D 01 02 [00:36:07]Write to MH i2c: E2 08 00 CD 01 80 0D 01 02 00 00 00 00 47 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [00:36:07]RAPDU: 90 00 [00:36:07]wFMCommunicate OK [00:36:07]wFMCommunicate request_size=255 [00:36:07]MH_SAM_APDU [00:36:07]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 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 02 00 00 00 F4 03 04 00 76 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [00:36:07]Write to MH i2c: E2 02 01 CE 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 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 02 00 00 00 F4 03 04 00 76 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 DC [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [00:36:07]RAPDU: 90 00 [00:36:07]wFMCommunicate OK [00:36:07]wFMCommunicate request_size=25 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 0D 02 02 14 36 32 10 04 04 00 C5 4C 00 00 35 04 06 00 0C 21 38 79 20 57 [00:36:07]Write to MH i2c: E2 1C 00 CF 01 80 0D 02 02 14 00 36 32 10 04 04 00 C5 4C 00 00 35 04 06 00 0C 21 38 79 20 57 00 00 97 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [00:36:07]RAPDU: 90 00 [00:36:07]wFMCommunicate OK [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 0D 03 02 [00:36:07]Write to MH i2c: E2 08 00 D0 01 80 0D 03 02 00 00 00 00 4C [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0B 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0B 00 D0 01 00 42 18 D2 83 83 8F 94 88 90 00 2A [00:36:07]RAPDU: 42 18 D2 83 83 8F 94 88 90 00 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_SignData done [00:36:07]FM_MakeSignedData done [00:36:07]CreateOFDProtocolMessage [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 11 00 00 [00:36:07]Write to MH i2c: E2 08 00 D1 01 80 11 00 00 00 00 00 00 4C [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 17 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 17 00 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 A1 [00:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:36:07]wFMCommunicate OK [00:36:07]CreateOFDProtocolMessage done [00:36:07]OFDSenderStorePacket 19653 [00:36:07]StoreOFDPacket docnum=19653 [00:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 2E 4A 16 01 3F 95 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 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 02 00 00 00 F4 03 04 00 76 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C5 4C 00 00 35 04 06 00 0C 21 38 79 20 57 42 18 D2 83 83 8F 94 88 [00:36:07]CheckFolder [00:36:07]dirname=/storage/ofd_packets [00:36:07]CheckFolder done [00:36:07]ProducePacketName [00:36:07]name=ofd_packets/00019653 [00:36:07]NVStorageSaveData ofd_packets/00019653 [00:36:07]File name is /storage/ofd_packets/00019653 [00:36:07]Write 316 bytes [00:36:07]NVStorageSaveData done [00:36:07]OFDSenderStorePacket done [00:36:07]KKMCreateOFDPacket done [00:36:07]NVStorageSaveData kkm_last_timestamp [00:36:07]File name is /storage/kkm_last_timestamp [00:36:07]Write 4 bytes [00:36:07]NVStorageSaveData done [00:36:07]ExternCall_PrintAddStr [00:36:07]wPrintStart [00:36:07]Write to MH i2c: 01 00 00 D2 01 D3 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 07 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [00:36:07]RasterBufferAndPrint [00:36:07]line Счет N : (3)117556 [00:36:07]line ИНН: 02508201610067 [00:36:07]line Контрольно-Кассовый Чек [00:36:07]line ПРОДАЖА [00:36:07]line Товар: 4870001570071 [00:36:07]line Напиток Pepsi 1л [00:36:07]line 1.000 * 110.00 [00:36:07]line = 110.00 [00:36:07]line НДС 12% НСП 1% [00:36:07]line > о реализуемом товаре [00:36:07]line ИТОГО: 110.00 [00:36:07]line НСП 1% : 0.97 [00:36:07]line НДС 12% : 11.68 [00:36:07]line Наличными: 110.00 [00:36:07]line Безнал.: 0.00 [00:36:07]line Место: АЗС № 93 "Партнер Нефть" [00:36:07]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [00:36:07]line СНО: Общий режим [00:36:07]line Чек 2 22.09.2024 00:36 [00:36:07]line Смена: 233 ФФД: 1.0 [00:36:07]line ЗНМ: 0300000060 [00:36:07]line РНМ: 0000000000146239 [00:36:07]line Версия ККМ: v1.0 [00:36:07]line ФМ: 0000000000959362 [00:36:07]line ФД: 19653 [00:36:07]line ФПД: 13336820916311 [00:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003606&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19653&fm=13336820916311&tin=02508201610067®Number=0000000000146239&sum=11000 [00:36:07]line 0 [00:36:07]OFD Sender: Processing packet 19653 [packets to send 64, broken 63] [00:36:07]ProducePacketName [00:36:07]name=ofd_packets/00019653 [00:36:07]OFD Sender: To server: pG, [00:36:07]CommunicateWithHost lk.salyk.kg:30040 [00:36:07]ConnectInit lk.salyk.kg [00:36:07]written 0, free lines is 4095 [00:36:08]Write to MH i2c: 01 00 00 FA 01 FB [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 07 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 AD 0C BB [00:36:08]RasterBufferAndPrint [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]written 0, free lines is 3247 [00:36:08]MH_Cut [00:36:08]Write to MH i2c: D1 01 00 01 02 01 D5 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 01 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 01 00 01 02 00 D4 [00:36:08]Write to MH i2c: 01 00 00 02 02 04 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:09]*** Cut start [00:36:09]*** Partial cut [00:36:09]*** CUTSNS_PIN = 1 [00:36:09]*** CUTSNS_PIN = 0 [00:36:09]*** Brake cut motor [00:36:09]Read from MH i2c: 01 [00:36:09]MH_I2C_Read... [00:36:09]*** Stop cut motor [00:36:09]*** Cut end [00:36:09]Read from MH i2c: 01 07 00 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 FF 0F 19 [00:36:09]process_action close_receipt done [00:36:09]requested_data is exist [00:36:09]produce_requested_data [00:36:09]requested_item fm.sn is exist - process it [00:36:09]wFMCommunicate request_size=4 [00:36:09]MH_SAM_APDU [00:36:09]CAPDU: 80 11 00 00 [00:36:09]Write to MH i2c: E2 08 00 03 02 80 11 00 00 00 00 00 00 7F [00:36:09]Write i2c OK [00:36:09]MH_I2C_Read... [00:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:09]Read from MH i2c: E2 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 17 00 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 17 00 03 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 D4 [00:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:36:09]wFMCommunicate OK [00:36:09]requested_item fd.num is exist - process it [00:36:09]SAM_PROTO_GetFieldsCounters [00:36:09]wFMCommunicate request_size=4 [00:36:09]MH_SAM_APDU [00:36:09]CAPDU: 80 13 00 00 [00:36:09]Write to MH i2c: E2 08 00 04 02 80 13 00 00 00 00 00 00 82 [00:36:09]Write i2c OK [00:36:09]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 62 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 62 00 04 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C5 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:36:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C5 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetFieldsCounters done [00:36:10]requested_item shift.num is exist - process it [00:36:10]requested_item shift.opened is exist - process it [00:36:10]req_shift_opened [00:36:10]FM_GetShiftState [00:36:10]SAM_PROTO_GetShiftState [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 13 01 00 [00:36:10]Write to MH i2c: E2 08 00 05 02 80 13 01 00 00 00 00 00 84 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 05 02 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 A6 [00:36:10]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetShiftState done [00:36:10]FM_GetShiftState done [00:36:10]req_shift_opened done [00:36:10]requested_item shift.open_date is exist - process it [00:36:10]req_shift_open_date [00:36:10]req_shift_open_date done [00:36:10]produce_requested_data done [00:36:10]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19653,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809} [00:36:10]process_action_free close_receipt [00:36:10]json_value_free [00:36:10]json_value_free done [00:36:10]process_json_proto returns [00:36:10]Send response to host [00:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19653,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809}}} [00:36:10]free response buf [00:36:10]execute_script done [00:36:10]execute_script returns [00:36:10]free content buf [00:36:10]Sock 9.Close socket [00:36:10]Sock 9.Thread stoped [00:36:12]ConnectInit Can't take IP for lk.salyk.kg [00:36:12]CommunicateWithHost connect error [00:36:12]CommunicateWithHost err = -1 [00:36:12]OFD Sender: Server communicate error [00:36:16]recv_with_timeout no data received [00:36:17]OFD Sender: Processing packet 19653 [packets to send 64, broken 63] [00:36:17]ProducePacketName [00:36:17]name=ofd_packets/00019653 [00:36:17]OFD Sender: To server: pG, [00:36:17]CommunicateWithHost lk.salyk.kg:30040 [00:36:17]ConnectInit lk.salyk.kg [00:36:22]ConnectInit Can't take IP for lk.salyk.kg [00:36:22]CommunicateWithHost connect error [00:36:22]CommunicateWithHost err = -1 [00:36:22]OFD Sender: Server communicate error [00:36:27]OFD Sender: Processing packet 19653 [packets to send 64, broken 63] [00:36:27]ProducePacketName [00:36:27]name=ofd_packets/00019653 [00:36:27]OFD Sender: To server: pG, [00:36:27]CommunicateWithHost lk.salyk.kg:30040 [00:36:27]ConnectInit lk.salyk.kg [00:36:32]ConnectInit Can't take IP for lk.salyk.kg [00:36:32]CommunicateWithHost connect error [00:36:32]CommunicateWithHost err = -1 [00:36:32]OFD Sender: Server communicate error [00:36:37]OFD Sender: Processing packet 19653 [packets to send 64, broken 63] [00:36:37]ProducePacketName [00:36:37]name=ofd_packets/00019653 [00:36:37]OFD Sender: To server: pG, [00:36:37]CommunicateWithHost lk.salyk.kg:30040 [00:36:37]ConnectInit lk.salyk.kg [00:36:38]Connected sock=7 [00:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 1E 01 00 00 2E 4A 16 01 3F 95 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 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 02 00 00 00 F4 03 04 00 76 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C5 4C 00 00 35 04 06 00 0C 21 38 79 20 57 42 18 D2 83 83 8F 94 88 [00:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 F9 C2 47 00 DE 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C5 4C 00 00 F4 03 04 00 2C 11 EF 66 B6 04 01 00 00 33 8B 9B 27 BA 9D BB 52 [00:36:38]CommunicateWithHost err = 0 [00:36:38]CheckOFDResponse [00:36:38]1017 (14) - 77093643461234 [00:36:38]1041 (16) - 0000000000959362 [00:36:38]1040 (4) - 19653 [00:36:38]1012 (4) - 21.09.2024 18:32 [00:36:38]1206 (1) - 0 [00:36:38]OFD Sender: Remove packet 19653 [00:36:38]ProducePacketName [00:36:38]name=ofd_packets/00019653 [00:36:38]NVStorageDeleteData [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:56]recv_with_timeout no data received [00:36:59]accept exits with 10 [00:36:59]New connection [00:36:59]New thread 3067403620 created [00:36:59]Thread 3067260260 joined [00:36:59]Waiting for new connection... [00:36:59] Sock 10.Parse request [00:36:59]Sock 10.Check first char [00:36:59]Sock 10.First char is OK [00:36:59]request: POST /json_proto HTTP/1.0 [00:36:59]Method: POST [00:36:59]URL: /json_proto [00:36:59]Method is POST - this is cgi request [00:36:59]url: /json_proto [00:36:59]query_string will be loaded in cgi processing [00:36:59]execute_cgi json_proto POST (null) [00:36:59]execute_cgi path=json_proto method=POST [00:36:59]POST find Content-Length [00:36:59]Host: 172.17.42.73:8080 [00:36:59]Content-Length: 620 [00:36:59]Content-Type: application/json [00:36:59] [00:36:59]POST finish read [00:36:59]Found Content-Length = 620 [00:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117557", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:59]execute_script... [00:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117557", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:59]POST & json_proto [00:36:59]process_json_proto [00:36:59]json parsed OK: [00:36:59]protocol is kg_v1.0 [00:36:59]action value=close_receipt [00:36:59]process_action close_receipt [00:36:59]cmd_close_receipt [00:36:59]MH_GetDate [00:36:59]Write to MH i2c: F0 00 00 06 02 F7 [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: F0 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: F0 09 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: F0 09 00 06 02 00 AB 66 EF 66 99 54 47 66 00 [00:36:59]GetLastDocTimeStamp 1726965366 [00:36:59]current date 1726965419 [00:36:59]FM_GetShiftState [00:36:59]SAM_PROTO_GetShiftState [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 13 01 00 [00:36:59]Write to MH i2c: E2 08 00 07 02 80 13 01 00 00 00 00 00 86 [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0E 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0E 00 07 02 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 A8 [00:36:59]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:36:59]wFMCommunicate OK [00:36:59]SAM_PROTO_GetShiftState done [00:36:59]FM_GetShiftState done [00:36:59]opened in 1726963809 [00:36:59]opened+sec_in_day 1727050209 [00:36:59]quantity*price = 40500 [00:36:59]sum+1 = 40501 [00:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 3 22.09.2024 00:36 Смена: 233 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19654 ФПД: 3874746501274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003659&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19654&fm=3874746501274&tin=02508201610067®Number=0000000000146239&sum=40500 0 [00:37:00]StoreToDocumentArchive [00:37:00]shift 233 fd 19654 [00:37:00]save to /storage/0233/doc_00019654 [00:37:00]save last doc name /storage/0233/doc_00019654 to /storage/kkm_last_doc_name [00:37:00]save OK [00:37:00]Clear old archive folders... [00:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=280 [00:37:00]tlvbuf is 01ED9D30 [00:37:00]SAM_PROTO_ClearQueue [00:37:00]wFMCommunicate request_size=4 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 09 00 00 [00:37:00]Write to MH i2c: E2 08 00 14 02 80 09 00 00 00 00 00 00 88 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [00:37:00]RAPDU: 90 00 [00:37:00]wFMCommunicate OK [00:37:00]SAM_PROTO_ClearQueue done [00:37:00]KKMCreateOFDPacket [00:37:00]OFDProtocolAddRootSTLVToBuf [00:37:00]FM_MakeSignedData [00:37:00]FM_MakeSignedData [00:37:00]SAM_PROTO_SignData [00:37:00]wFMCommunicate request_size=4 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 0D 01 02 [00:37:00]Write to MH i2c: E2 08 00 15 02 80 0D 01 02 00 00 00 00 90 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [00:37:00]RAPDU: 90 00 [00:37:00]wFMCommunicate OK [00:37:00]wFMCommunicate request_size=255 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AB 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 [00:37:00]Write to MH i2c: E2 02 01 16 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AB 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 00 00 DD [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [00:37:00]RAPDU: 90 00 [00:37:00]wFMCommunicate OK [00:37:00]wFMCommunicate request_size=39 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C6 4C 00 00 35 04 06 00 03 86 28 E3 88 9A [00:37:00]Write to MH i2c: E2 2A 00 17 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C6 4C 00 00 35 04 06 00 03 86 28 E3 88 9A 00 00 18 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [00:37:00]RAPDU: 90 00 [00:37:00]wFMCommunicate OK [00:37:00]wFMCommunicate request_size=4 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 0D 03 02 [00:37:00]Write to MH i2c: E2 08 00 18 02 80 0D 03 02 00 00 00 00 95 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 0B 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 0B 00 18 02 00 25 58 38 06 EC 41 00 2A 90 00 A8 [00:37:00]RAPDU: 25 58 38 06 EC 41 00 2A 90 00 [00:37:00]wFMCommunicate OK [00:37:00]SAM_PROTO_SignData done [00:37:00]FM_MakeSignedData done [00:37:00]CreateOFDProtocolMessage [00:37:00]wFMCommunicate request_size=4 [00:37:00]MH_SAM_APDU [00:37:00]CAPDU: 80 11 00 00 [00:37:00]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:00]Read from MH i2c: E2 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 17 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 EA [00:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:37:00]wFMCommunicate OK [00:37:00]CreateOFDProtocolMessage done [00:37:00]OFDSenderStorePacket 19654 [00:37:00]StoreOFDPacket docnum=19654 [00:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2C 01 00 00 0D E9 24 01 F0 ED 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AB 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C6 4C 00 00 35 04 06 00 03 86 28 E3 88 9A 25 58 38 06 EC 41 00 2A [00:37:00]CheckFolder [00:37:00]dirname=/storage/ofd_packets [00:37:00]CheckFolder done [00:37:00]ProducePacketName [00:37:00]name=ofd_packets/00019654 [00:37:00]NVStorageSaveData ofd_packets/00019654 [00:37:00]File name is /storage/ofd_packets/00019654 [00:37:00]Write 330 bytes [00:37:00]NVStorageSaveData done [00:37:00]OFDSenderStorePacket done [00:37:00]KKMCreateOFDPacket done [00:37:00]NVStorageSaveData kkm_last_timestamp [00:37:00]File name is /storage/kkm_last_timestamp [00:37:00]Write 4 bytes [00:37:00]NVStorageSaveData done [00:37:00]ExternCall_PrintAddStr [00:37:00]wPrintStart [00:37:00]Write to MH i2c: 01 00 00 1A 02 1C [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 07 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [00:37:00]RasterBufferAndPrint [00:37:00]line Счет N : (3)117557 [00:37:00]line ИНН: 02508201610067 [00:37:00]line Контрольно-Кассовый Чек [00:37:00]line ПРОДАЖА [00:37:00]line Товар: 4650063110756 [00:37:00]line Масло Gazpromneft Super 10w40 1л [00:37:00]line 1.000 * 405.00 [00:37:00]line = 405.00 [00:37:00]line НДС 12% НСП 1% [00:37:00]line > о реализуемом товаре [00:37:00]line ИТОГО: 405.00 [00:37:00]line НСП 1% : 3.58 [00:37:00]line НДС 12% : 43.01 [00:37:00]line Наличными: 405.00 [00:37:00]line Безнал.: 0.00 [00:37:00]line Место: АЗС № 93 "Партнер Нефть" [00:37:00]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [00:37:00]line СНО: Общий режим [00:37:00]line Чек 3 22.09.2024 00:36 [00:37:00]line Смена: 233 ФФД: 1.0 [00:37:00]line ЗНМ: 0300000060 [00:37:00]line РНМ: 0000000000146239 [00:37:00]line Версия ККМ: v1.0 [00:37:00]line ФМ: 0000000000959362 [00:37:00]line ФД: 19654 [00:37:00]line ФПД: 3874746501274 [00:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003659&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19654&fm=3874746501274&tin=02508201610067®Number=0000000000146239&sum=40500 [00:37:01]line 0 [00:37:01]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:01]ProducePacketName [00:37:01]name=ofd_packets/00019654 [00:37:01]OFD Sender: To server: pG, [00:37:01]CommunicateWithHost lk.salyk.kg:30040 [00:37:01]ConnectInit lk.salyk.kg [00:37:01]written 0, free lines is 4095 [00:37:01]Write to MH i2c: 01 00 00 43 02 45 [00:37:01]Write i2c OK [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: 01 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: 01 07 00 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 94 0C EC [00:37:01]RasterBufferAndPrint [00:37:01]line [00:37:01]line [00:37:01]line [00:37:01]line [00:37:01]line [00:37:01]written 0, free lines is 3226 [00:37:01]MH_Cut [00:37:01]Write to MH i2c: D1 01 00 4A 02 01 1E [00:37:01]Write i2c OK [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: D1 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: D1 01 00 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: D1 01 00 4A 02 00 1D [00:37:01]Write to MH i2c: 01 00 00 4B 02 4D [00:37:01]Write i2c OK [00:37:01]MH_I2C_Read... [00:37:02]*** Cut start [00:37:02]*** Partial cut [00:37:02]*** CUTSNS_PIN = 1 [00:37:02]*** CUTSNS_PIN = 0 [00:37:02]*** Brake cut motor [00:37:03]Read from MH i2c: 01 [00:37:03]MH_I2C_Read... [00:37:03]*** Stop cut motor [00:37:03]*** Cut end [00:37:03]Read from MH i2c: 01 07 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [00:37:03]process_action close_receipt done [00:37:03]requested_data is exist [00:37:03]produce_requested_data [00:37:03]requested_item fm.sn is exist - process it [00:37:03]wFMCommunicate request_size=4 [00:37:03]MH_SAM_APDU [00:37:03]CAPDU: 80 11 00 00 [00:37:03]Write to MH i2c: E2 08 00 4C 02 80 11 00 00 00 00 00 00 C8 [00:37:03]Write i2c OK [00:37:03]MH_I2C_Read... [00:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:03]Read from MH i2c: E2 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 17 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 17 00 4C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 1D [00:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:37:03]wFMCommunicate OK [00:37:03]requested_item fd.num is exist - process it [00:37:03]SAM_PROTO_GetFieldsCounters [00:37:03]wFMCommunicate request_size=4 [00:37:03]MH_SAM_APDU [00:37:03]CAPDU: 80 13 00 00 [00:37:03]Write to MH i2c: E2 08 00 4D 02 80 13 00 00 00 00 00 00 CB [00:37:03]Write i2c OK [00:37:03]MH_I2C_Read... [00:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:03]Read from MH i2c: E2 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 62 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 62 00 4D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C6 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C6 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:03]wFMCommunicate OK [00:37:03]SAM_PROTO_GetFieldsCounters done [00:37:03]requested_item shift.num is exist - process it [00:37:03]requested_item shift.opened is exist - process it [00:37:03]req_shift_opened [00:37:03]FM_GetShiftState [00:37:03]SAM_PROTO_GetShiftState [00:37:03]wFMCommunicate request_size=4 [00:37:03]MH_SAM_APDU [00:37:03]CAPDU: 80 13 01 00 [00:37:03]Write to MH i2c: E2 08 00 4E 02 80 13 01 00 00 00 00 00 CD [00:37:03]Write i2c OK [00:37:03]MH_I2C_Read... [00:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:03]Read from MH i2c: E2 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 0E 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 0E 00 4E 02 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 EF [00:37:03]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:37:03]wFMCommunicate OK [00:37:03]SAM_PROTO_GetShiftState done [00:37:03]FM_GetShiftState done [00:37:03]req_shift_opened done [00:37:03]requested_item shift.open_date is exist - process it [00:37:03]req_shift_open_date [00:37:03]req_shift_open_date done [00:37:03]produce_requested_data done [00:37:03]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19654,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809} [00:37:03]process_action_free close_receipt [00:37:03]json_value_free [00:37:03]json_value_free done [00:37:03]process_json_proto returns [00:37:03]Send response to host [00:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19654,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809}}} [00:37:03]free response buf [00:37:03]execute_script done [00:37:03]execute_script returns [00:37:03]free content buf [00:37:03]Sock 10.Close socket [00:37:03]Sock 10.Thread stoped [00:37:06]ConnectInit Can't take IP for lk.salyk.kg [00:37:06]CommunicateWithHost connect error [00:37:06]CommunicateWithHost err = -1 [00:37:06]OFD Sender: Server communicate error [00:37:11]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:11]ProducePacketName [00:37:11]name=ofd_packets/00019654 [00:37:11]OFD Sender: To server: pG, [00:37:11]CommunicateWithHost lk.salyk.kg:30040 [00:37:11]ConnectInit lk.salyk.kg [00:37:12]recv_with_timeout no data received [00:37:16]ConnectInit Can't take IP for lk.salyk.kg [00:37:16]CommunicateWithHost connect error [00:37:16]CommunicateWithHost err = -1 [00:37:16]OFD Sender: Server communicate error [00:37:21]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:21]ProducePacketName [00:37:21]name=ofd_packets/00019654 [00:37:21]OFD Sender: To server: pG, [00:37:21]CommunicateWithHost lk.salyk.kg:30040 [00:37:21]ConnectInit lk.salyk.kg [00:37:26]ConnectInit Can't take IP for lk.salyk.kg [00:37:26]CommunicateWithHost connect error [00:37:26]CommunicateWithHost err = -1 [00:37:26]OFD Sender: Server communicate error [00:37:30]recv_with_timeout no data received [00:37:31]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:31]ProducePacketName [00:37:31]name=ofd_packets/00019654 [00:37:31]OFD Sender: To server: pG, [00:37:31]CommunicateWithHost lk.salyk.kg:30040 [00:37:31]ConnectInit lk.salyk.kg [00:37:36]ConnectInit Can't take IP for lk.salyk.kg [00:37:36]CommunicateWithHost connect error [00:37:36]CommunicateWithHost err = -1 [00:37:36]OFD Sender: Server communicate error [00:37:41]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:41]ProducePacketName [00:37:41]name=ofd_packets/00019654 [00:37:41]OFD Sender: To server: pG, [00:37:41]CommunicateWithHost lk.salyk.kg:30040 [00:37:41]ConnectInit lk.salyk.kg [00:37:46]ConnectInit Can't take IP for lk.salyk.kg [00:37:46]CommunicateWithHost connect error [00:37:46]CommunicateWithHost err = -1 [00:37:46]OFD Sender: Server communicate error [00:37:51]OFD Sender: Processing packet 19654 [packets to send 64, broken 63] [00:37:51]ProducePacketName [00:37:51]name=ofd_packets/00019654 [00:37:51]OFD Sender: To server: pG, [00:37:51]CommunicateWithHost lk.salyk.kg:30040 [00:37:51]ConnectInit lk.salyk.kg [00:37:56]Connected sock=9 [00:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 2C 01 00 00 0D E9 24 01 F0 ED 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AB 66 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C6 4C 00 00 35 04 06 00 03 86 28 E3 88 9A 25 58 38 06 EC 41 00 2A [00:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 5A 0D 47 00 A5 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C6 4C 00 00 F4 03 04 00 7A 11 EF 66 B6 04 01 00 00 EF 33 6E 23 9D F9 90 1C [00:37:57]CommunicateWithHost err = 0 [00:37:57]CheckOFDResponse [00:37:57]1017 (14) - 77093643461234 [00:37:57]1041 (16) - 0000000000959362 [00:37:57]1040 (4) - 19654 [00:37:57]1012 (4) - 21.09.2024 18:33 [00:37:57]1206 (1) - 0 [00:37:57]OFD Sender: Remove packet 19654 [00:37:57]ProducePacketName [00:37:57]name=ofd_packets/00019654 [00:37:57]NVStorageDeleteData [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:30]accept exits with 7 [00:38:30]New connection [00:38:30]New thread 3067260260 created [00:38:30]Thread 3067403620 joined [00:38:30]Waiting for new connection... [00:38:30] Sock 7.Parse request [00:38:30]Sock 7.Check first char [00:38:30]Sock 7.First char is OK [00:38:30]request: POST /json_proto HTTP/1.0 [00:38:30]Method: POST [00:38:30]URL: /json_proto [00:38:30]Method is POST - this is cgi request [00:38:30]url: /json_proto [00:38:30]query_string will be loaded in cgi processing [00:38:30]execute_cgi json_proto POST (null) [00:38:30]execute_cgi path=json_proto method=POST [00:38:30]POST find Content-Length [00:38:30]Host: 172.17.42.73:8080 [00:38:30]Content-Length: 605 [00:38:30]Content-Type: application/json [00:38:30] [00:38:30]POST finish read [00:38:30]Found Content-Length = 605 [00:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117558", "tax_sys" : 0, "items" : [ { "code": "4036021100258", "name": "\u041C\u041C Mannol Universal SAE 15W40 1\u043B", "price" : 680.00, "quantity" : 1.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:30]execute_script... [00:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)117558", "tax_sys" : 0, "items" : [ { "code": "4036021100258", "name": "\u041C\u041C Mannol Universal SAE 15W40 1\u043B", "price" : 680.00, "quantity" : 1.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:30]POST & json_proto [00:38:30]process_json_proto [00:38:30]json parsed OK: [00:38:30]protocol is kg_v1.0 [00:38:30]action value=close_receipt [00:38:30]process_action close_receipt [00:38:30]cmd_close_receipt [00:38:30]MH_GetDate [00:38:30]Write to MH i2c: F0 00 00 4F 02 40 [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 09 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 09 00 4F 02 00 07 67 EF 66 99 54 47 66 A6 [00:38:30]GetLastDocTimeStamp 1726965419 [00:38:30]current date 1726965511 [00:38:30]FM_GetShiftState [00:38:30]SAM_PROTO_GetShiftState [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 13 01 00 [00:38:30]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:30]Read from MH i2c: E2 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 0E 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 F1 [00:38:30]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:38:30]wFMCommunicate OK [00:38:30]SAM_PROTO_GetShiftState done [00:38:30]FM_GetShiftState done [00:38:30]opened in 1726963809 [00:38:30]opened+sec_in_day 1727050209 [00:38:30]quantity*price = 68000 [00:38:30]sum+1 = 68001 [00:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 680.00 НСП 1% : 6.02 НДС 12% : 72.21 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 93 "Партнер Нефть" Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 СНО: Общий режим Чек 4 22.09.2024 00:38 Смена: 233 ФФД: 1.0 ЗНМ: 0300000060 РНМ: 0000000000146239 Версия ККМ: v1.0 ФМ: 0000000000959362 ФД: 19655 ФПД: 164838513799385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003831&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19655&fm=164838513799385&tin=02508201610067®Number=0000000000146239&sum=68000 0 [00:38:32]StoreToDocumentArchive [00:38:32]shift 233 fd 19655 [00:38:32]save to /storage/0233/doc_00019655 [00:38:32]save last doc name /storage/0233/doc_00019655 to /storage/kkm_last_doc_name [00:38:32]save OK [00:38:32]Clear old archive folders... [00:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=277 [00:38:32]tlvbuf is 01D05030 [00:38:32]SAM_PROTO_ClearQueue [00:38:32]wFMCommunicate request_size=4 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 09 00 00 [00:38:32]Write to MH i2c: E2 08 00 5D 02 80 09 00 00 00 00 00 00 D1 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [00:38:32]RAPDU: 90 00 [00:38:32]wFMCommunicate OK [00:38:32]SAM_PROTO_ClearQueue done [00:38:32]KKMCreateOFDPacket [00:38:32]OFDProtocolAddRootSTLVToBuf [00:38:32]FM_MakeSignedData [00:38:32]FM_MakeSignedData [00:38:32]SAM_PROTO_SignData [00:38:32]wFMCommunicate request_size=4 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 0D 01 02 [00:38:32]Write to MH i2c: E2 08 00 5E 02 80 0D 01 02 00 00 00 00 D9 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [00:38:32]RAPDU: 90 00 [00:38:32]wFMCommunicate OK [00:38:32]wFMCommunicate request_size=255 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 07 67 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 [00:38:32]Write to MH i2c: E2 02 01 5F 02 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 07 67 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 00 00 A9 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [00:38:32]RAPDU: 90 00 [00:38:32]wFMCommunicate OK [00:38:32]wFMCommunicate request_size=36 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C7 4C 00 00 35 04 06 00 95 EB 75 0F 70 D9 [00:38:32]Write to MH i2c: E2 27 00 60 02 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C7 4C 00 00 35 04 06 00 95 EB 75 0F 70 D9 00 00 63 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [00:38:32]RAPDU: 90 00 [00:38:32]wFMCommunicate OK [00:38:32]wFMCommunicate request_size=4 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 0D 03 02 [00:38:32]Write to MH i2c: E2 08 00 61 02 80 0D 03 02 00 00 00 00 DE [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 0B 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 0B 00 61 02 00 86 AB D0 C8 E9 5C 3F CD 90 00 F9 [00:38:32]RAPDU: 86 AB D0 C8 E9 5C 3F CD 90 00 [00:38:32]wFMCommunicate OK [00:38:32]SAM_PROTO_SignData done [00:38:32]FM_MakeSignedData done [00:38:32]CreateOFDProtocolMessage [00:38:32]wFMCommunicate request_size=4 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 11 00 00 [00:38:32]Write to MH i2c: E2 08 00 62 02 80 11 00 00 00 00 00 00 DE [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 17 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 17 00 62 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 33 [00:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:38:32]wFMCommunicate OK [00:38:32]CreateOFDProtocolMessage done [00:38:32]OFDSenderStorePacket 19655 [00:38:32]StoreOFDPacket docnum=19655 [00:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 29 01 00 00 EE A9 21 01 45 AE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 07 67 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C7 4C 00 00 35 04 06 00 95 EB 75 0F 70 D9 86 AB D0 C8 E9 5C 3F CD [00:38:32]CheckFolder [00:38:32]dirname=/storage/ofd_packets [00:38:32]CheckFolder done [00:38:32]ProducePacketName [00:38:32]name=ofd_packets/00019655 [00:38:32]NVStorageSaveData ofd_packets/00019655 [00:38:32]File name is /storage/ofd_packets/00019655 [00:38:32]Write 327 bytes [00:38:32]NVStorageSaveData done [00:38:32]OFDSenderStorePacket done [00:38:32]KKMCreateOFDPacket done [00:38:32]NVStorageSaveData kkm_last_timestamp [00:38:32]File name is /storage/kkm_last_timestamp [00:38:32]Write 4 bytes [00:38:32]NVStorageSaveData done [00:38:32]ExternCall_PrintAddStr [00:38:32]wPrintStart [00:38:32]Write to MH i2c: 01 00 00 63 02 65 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 07 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [00:38:32]RasterBufferAndPrint [00:38:32]line Счет N : (3)117558 [00:38:32]line ИНН: 02508201610067 [00:38:32]line Контрольно-Кассовый Чек [00:38:32]line ПРОДАЖА [00:38:32]line Товар: 4036021100258 [00:38:32]line ММ Mannol Universal SAE 15W40 1л [00:38:32]line 1.000 * 680.00 [00:38:32]line = 680.00 [00:38:32]line НДС 12% НСП 1% [00:38:32]line > о реализуемом товаре [00:38:32]line ИТОГО: 680.00 [00:38:32]line НСП 1% : 6.02 [00:38:32]line НДС 12% : 72.21 [00:38:32]line Наличными: 680.00 [00:38:32]line Безнал.: 0.00 [00:38:32]line Место: АЗС № 93 "Партнер Нефть" [00:38:32]line Адрес: 720001, с. Мады, Кара-Сууйский район 40.543294,72.925406 [00:38:32]line СНО: Общий режим [00:38:32]line Чек 4 22.09.2024 00:38 [00:38:32]line Смена: 233 ФФД: 1.0 [00:38:32]line ЗНМ: 0300000060 [00:38:32]line РНМ: 0000000000146239 [00:38:32]line Версия ККМ: v1.0 [00:38:32]line ФМ: 0000000000959362 [00:38:32]line ФД: 19655 [00:38:32]line ФПД: 164838513799385 [00:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T003831&type=1&operation_type=1&fn_number=0000000000959362&fd_number=19655&fm=164838513799385&tin=02508201610067®Number=0000000000146239&sum=68000 [00:38:32]line 0 [00:38:32]OFD Sender: Processing packet 19655 [packets to send 64, broken 63] [00:38:32]ProducePacketName [00:38:32]name=ofd_packets/00019655 [00:38:32]OFD Sender: To server: pG, [00:38:32]CommunicateWithHost lk.salyk.kg:30040 [00:38:32]ConnectInit lk.salyk.kg [00:38:32]written 0, free lines is 4095 [00:38:33]Write to MH i2c: 01 00 00 8C 02 8E [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: 01 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: 01 07 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 95 0C 36 [00:38:33]RasterBufferAndPrint [00:38:33]line [00:38:33]line [00:38:33]line [00:38:33]line [00:38:33]line [00:38:33]written 0, free lines is 3225 [00:38:33]MH_Cut [00:38:33]Write to MH i2c: D1 01 00 93 02 01 67 [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: D1 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: D1 01 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: D1 01 00 93 02 00 66 [00:38:33]Write to MH i2c: 01 00 00 94 02 96 [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:34]*** Cut start [00:38:34]*** Partial cut [00:38:34]*** CUTSNS_PIN = 1 [00:38:34]*** CUTSNS_PIN = 0 [00:38:34]Connected sock=10 [00:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 29 01 00 00 EE A9 21 01 45 AE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 07 67 EF 66 0E 04 04 00 E9 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 10 04 04 00 C7 4C 00 00 35 04 06 00 95 EB 75 0F 70 D9 86 AB D0 C8 E9 5C 3F CD [00:38:34]*** Brake cut motor [00:38:34]Read from MH i2c: 01 [00:38:34]MH_I2C_Read... [00:38:34]*** Stop cut motor [00:38:34]*** Cut end [00:38:34]Read from MH i2c: 01 07 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 FF 0F AB [00:38:34]process_action close_receipt done [00:38:34]requested_data is exist [00:38:34]produce_requested_data [00:38:34]requested_item fm.sn is exist - process it [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 11 00 00 [00:38:34]Write to MH i2c: E2 08 00 95 02 80 11 00 00 00 00 00 00 11 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 4F 00 00 00 FC CB 47 00 50 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 39 35 39 33 36 32 10 04 04 00 C7 4C 00 00 F4 03 04 00 A0 11 EF 66 B6 04 01 00 00 D3 B1 70 D8 4B 2D BA 18 [00:38:34]CommunicateWithHost err = 0 [00:38:34]CheckOFDResponse [00:38:34]1017 (14) - 77093643461234 [00:38:34]1041 (16) - 0000000000959362 [00:38:34]1040 (4) - 19655 [00:38:34]1012 (4) - 21.09.2024 18:34 [00:38:34]1206 (1) - 0 [00:38:34]OFD Sender: Remove packet 19655 [00:38:34]ProducePacketName [00:38:34]name=ofd_packets/00019655 [00:38:34]NVStorageDeleteData [00:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 17 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 17 00 95 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 66 [00:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 90 00 [00:38:34]wFMCommunicate OK [00:38:34]requested_item fd.num is exist - process it [00:38:34]SAM_PROTO_GetFieldsCounters [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 13 00 00 [00:38:34]Write to MH i2c: E2 08 00 96 02 80 13 00 00 00 00 00 00 14 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 62 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 62 00 96 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C7 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [00:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 33 39 10 04 04 00 C7 4C 00 00 0E 04 04 00 E9 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:35]wFMCommunicate OK [00:38:35]SAM_PROTO_GetFieldsCounters done [00:38:35]requested_item shift.num is exist - process it [00:38:35]requested_item shift.opened is exist - process it [00:38:35]req_shift_opened [00:38:35]FM_GetShiftState [00:38:35]SAM_PROTO_GetShiftState [00:38:35]wFMCommunicate request_size=4 [00:38:35]MH_SAM_APDU [00:38:35]CAPDU: 80 13 01 00 [00:38:35]Write to MH i2c: E2 08 00 97 02 80 13 01 00 00 00 00 00 16 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:35]Read from MH i2c: E2 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 0E 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: E2 0E 00 97 02 00 09 00 01 61 60 EF 66 00 00 00 00 90 00 38 [00:38:35]RAPDU: 09 00 01 61 60 EF 66 00 00 00 00 90 00 [00:38:35]wFMCommunicate OK [00:38:35]SAM_PROTO_GetShiftState done [00:38:35]FM_GetShiftState done [00:38:35]req_shift_opened done [00:38:35]requested_item shift.open_date is exist - process it [00:38:35]req_shift_open_date [00:38:35]req_shift_open_date done [00:38:35]produce_requested_data done [00:38:35]produce_requested_data return {"fm.sn":"0000000000959362","fd.num":19655,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809} [00:38:35]process_action_free close_receipt [00:38:35]json_value_free [00:38:35]json_value_free done [00:38:35]process_json_proto returns [00:38:35]Send response to host [00:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959362","fd.num":19655,"shift.num":233,"shift.opened":1,"shift.open_date":1726963809}}} [00:38:35]free response buf [00:38:35]execute_script done [00:38:35]execute_script returns [00:38:35]free content buf [00:38:35]Sock 7.Close socket [00:38:35]Sock 7.Thread stoped [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:49]recv_with_timeout no data received [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:11]recv_with_timeout no data received [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:41]recv_with_timeout no data received [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:27]recv_with_timeout no data received [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:38]recv_with_timeout no data received [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:25]recv_with_timeout no data received [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]recv_with_timeout no data received [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]recv_with_timeout no data received [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:51]recv_with_timeout no data received [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:08]recv_with_timeout no data received [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:54]recv_with_timeout no data received [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:31]recv_with_timeout no data received [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:51]recv_with_timeout no data received [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:09]recv_with_timeout no data received [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:48]recv_with_timeout no data received [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:01]recv_with_timeout no data received [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:31]recv_with_timeout no data received [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:19]recv_with_timeout no data received [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:35]recv_with_timeout no data received [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [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:54]recv_with_timeout no data received [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:11]recv_with_timeout no data received [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:29]recv_with_timeout no data received [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:20]recv_with_timeout no data received [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]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:43]recv_with_timeout no data received [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:08:58]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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]recv_with_timeout no data received [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:11:59]recv_with_timeout no data received [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:10]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:47]recv_with_timeout no data received [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]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:51]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:55]recv_with_timeout no data received [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:06]recv_with_timeout no data received [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:26]recv_with_timeout no data received [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:45]recv_with_timeout no data received [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:45]recv_with_timeout no data received [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:26]recv_with_timeout no data received [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:37]recv_with_timeout no data received [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]recv_with_timeout no data received [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]recv_with_timeout no data received [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:21]recv_with_timeout no data received [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]recv_with_timeout no data received [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]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:25]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:52]recv_with_timeout no data received [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:46]recv_with_timeout no data received [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:52]recv_with_timeout no data received [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:05]recv_with_timeout no data received [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:48]recv_with_timeout no data received [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]recv_with_timeout no data received [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:15]recv_with_timeout no data received [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:21]recv_with_timeout no data received [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:38]recv_with_timeout no data received [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:08]recv_with_timeout no data received [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:38]recv_with_timeout no data received [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:49]recv_with_timeout no data received [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:12]recv_with_timeout no data received [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]recv_with_timeout no data received [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]recv_with_timeout no data received [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]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]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:33]recv_with_timeout no data received [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:09]recv_with_timeout no data received [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:10]recv_with_timeout no data received [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:36]recv_with_timeout no data received [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:35]recv_with_timeout no data received [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]recv_with_timeout no data received [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:31]recv_with_timeout no data received [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:41:23]ConnectInit Can't connect to host [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:01]recv_with_timeout no data received [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]recv_with_timeout no data received [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]recv_with_timeout no data received [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:43]recv_with_timeout no data received [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:00]recv_with_timeout no data received [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:31]recv_with_timeout no data received [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]recv_with_timeout no data received [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:39]recv_with_timeout no data received [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:04]recv_with_timeout no data received [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:42]recv_with_timeout no data received [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:51:59]recv_with_timeout no data received [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:29]recv_with_timeout no data received [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:45]recv_with_timeout no data received [02:53:48]OFD Sender: No OFD packet to send [02:54:26]ConnectInit Can't connect to host [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]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:05]recv_with_timeout no data received [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